<?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_8b1fc0a1-4135-4926-ae52-30d3811e8276">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_19bce561-2dc8-469d-bb4a-ed39a5b93975">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_921383ee-1bba-444f-ab10-2d3d563d9e53">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_b8299fce-0d1c-4fbb-af3f-cad6927aa245">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_11f18547-6209-40cb-b549-ecdb794daba4">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_e071db8a-833c-47b0-a3ad-237f11d1f460">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_069800ca-369f-479c-ae66-0476f8567797">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_752c20b5-8e65-46ed-9e52-25d94ff361bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_a051392a-8a05-49ff-904a-41d7147c14de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_b27f9719-1891-447a-8710-15178c790388">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      id="F_6851bd31-af1b-489f-b9e5-642ea12736cc">&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;400,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_8b1fc0a1-4135-4926-ae52-30d3811e8276"
      decimals="-3"
      id="F_8e5a9c7d-f358-434e-adb5-09c34fd4f4ec"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
