<?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_987968ba-03f6-4600-9e14-70e95a362f32">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_f36ec6c5-3020-4a72-a658-463bedd7eb07">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_8fd5934f-9021-49af-8ac3-a9dc29150784">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_63df39c0-d24c-4fcc-a1f4-1aa2b84ced61">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_fae12fe7-73b0-4501-870f-bad46820874d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_95aac9ad-bf0e-40f0-ae89-769981119067">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_b32de1dc-f769-4ab3-9ded-05ca9cec625e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_5f05b9a7-b0ae-4507-9c70-07e8e69d8e16">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_c6fa9e77-f1ce-487a-af5b-e760798ecf09">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_b046b5da-d508-430d-8557-306dac757c9c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_987968ba-03f6-4600-9e14-70e95a362f32"
      id="F_7de5db14-1081-40ca-8258-a3e136f8ce2a">&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;2,330,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_987968ba-03f6-4600-9e14-70e95a362f32"
      decimals="-3"
      id="F_f791fb8f-a20e-4b9c-9a5e-01ea77a2b9e7"
      unitRef="U_USD">2330000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
