<?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_cd649442-7fd4-46ea-9166-596656b82ae5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_d3a278b0-d668-458d-872b-9eeb32da894b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_4d75c089-30fa-41e4-9b5f-2aaf0f1de9bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_4b14066a-1337-431d-b508-e13542463af3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_dcafe11e-9850-4f93-91aa-ceec7b4ab332">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_c0f6c690-cc6e-4b28-88e6-0879953fa2cb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_4fe10234-12e1-447d-8ffa-7f90a916f3cd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_b7ebd3fc-b336-4ee4-b164-2ac96991a63c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_540c237a-902f-4700-af8f-4e26a7337205">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_c08b6c3f-cb95-4ca1-8de2-ec1fb0031163">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cd649442-7fd4-46ea-9166-596656b82ae5"
      id="F_662eec41-dc03-4bf2-873f-e2b0126afccb">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,000,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_cd649442-7fd4-46ea-9166-596656b82ae5"
      decimals="-6"
      id="F_c565b33a-e413-42ac-8a9f-7a966a699096"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
