<?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_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_6ca565b2-c9d6-45ad-8db7-d5346405ea3e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_a45afb09-c8bb-4e5f-b13d-cd1e871747cb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_d56c3443-2cb9-4d06-b54d-0ccbaf052741">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_2808b438-35e7-4948-ab50-53b82472f67a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_5e02544a-246c-48c9-8b5b-3cf874b254f2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_f6ec9445-64db-46bc-a0c8-b33b470f1aef">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_4197f108-3f23-4f69-9e57-03227e62e773">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_0f2b70c3-aba9-4109-a446-087f51fe91ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_08eb2dfc-5c09-4887-8f60-5ab69f626f1a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      id="F_894e3b0f-ec0d-40fb-ad41-0985d804a7d2">&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;4,492,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_5218180f-3fdd-46d8-b3f8-5dcfbbbbbc3a"
      decimals="-3"
      id="F_c05ea73b-014a-4a56-8d17-586058221e1a"
      unitRef="U_USD">4492000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
