<?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_ddcd4275-ce52-4722-9a4d-59243424bb4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_ed3c7b07-434d-474d-90a8-0536b9036c81">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_6a15f5cc-5dbf-4349-9837-9e28b4d11b17">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_209c0633-c66f-4e01-90b2-27c7ed493e09">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_ad744386-ba6b-4209-a1a4-7d3e1d0987f5">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_0a86307d-ed5e-4596-b65d-8f68f9fd3b68">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_0012b6b6-3190-4dda-b264-8ae8b333fa22">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_6744f227-678a-4301-a4d8-998deed1ab6a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_b84c93e8-fe44-4c4b-b40e-4c6734db8e8f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_418c37a4-5154-4a1c-98dd-d67c264c0647">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      id="F_7fe17459-48a3-450a-aa34-871e99eac913">&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;9,853,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_ddcd4275-ce52-4722-9a4d-59243424bb4b"
      decimals="-3"
      id="F_3dffbc96-3a0a-4cfa-a742-dcc933f574ec"
      unitRef="U_USD">9853000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
