<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_8f0b73d4-d32e-4daa-b609-110f33450adc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_17683876-ef88-4793-9151-31d640f8a5ae">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_425f66f7-ec04-4d52-99aa-0d294c51b900">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_648c1ff8-b235-43a3-a61e-120653f98666">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_f277e6f2-8c8a-46d0-b5e6-9e2250fba56e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_2dd7e7c7-366d-44f8-aaec-bb0bb0a61a39">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_30e45ffe-1787-4da0-99e9-3c73a215a6ca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_4e1c9bdc-afe0-4259-811e-4393d9b79088">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_0e42f456-2974-49b3-a5c9-569ff744f17a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_404d11a8-54b4-4d4c-9217-77bbe12845fd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      id="F_3cb9be4c-d207-422b-b507-3026b0fca50b">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;750,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_8f0b73d4-d32e-4daa-b609-110f33450adc"
      decimals="-3"
      id="F_1949f877-7a2f-4e57-a52e-c1a5eda82098"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
