<?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_4e89d25c-361e-4a5e-acbc-68dda583481c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_2539850f-aad5-4359-9bfb-0a3121f85356">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_e7037729-3960-4793-ab44-0f09b8733915">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_86b601e5-3ea1-4401-b18a-b6e859e8eedf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_c8392bc7-2cb5-4b00-b9de-ec7296bcedb8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_966f8d5b-3cc9-43be-85ed-9d9510267999">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_3db9afe0-513e-4448-93fc-74279e00d943">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_d37c274a-2ee6-4e51-8cdc-0b06ac4a153e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_248ab2eb-aa1a-4282-b3f9-f53bec69fb8f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_b9aec9bb-7257-4e14-9f80-6e92b8746153">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4e89d25c-361e-4a5e-acbc-68dda583481c"
      id="F_5820627e-eaa8-4daa-927a-ae757a79a252">&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,292,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_4e89d25c-361e-4a5e-acbc-68dda583481c"
      decimals="-3"
      id="F_03fcd178-46f3-4f1b-b477-1987b87249c7"
      unitRef="U_USD">4292000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
