<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_84deb8db-ba4b-43fb-a331-744f1205258b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_16c3df28-529d-4316-a050-8b323d95d88e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_c965c3bb-2c68-4902-97d4-908b0527ebed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_d4d788fd-efd8-4056-8d13-537bb816b93a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_3bd3f82f-0a53-4bcb-83ba-183dfdfe1032">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_a4474032-e108-447c-b7e5-563b4b4b9248">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_281070d3-5a4b-46e9-b6db-4a34579f5755">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_faaf2662-6f1a-4b0d-b223-f29dfc3a02c9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_4a2f6f63-f3a5-4364-b873-d8fa1d18cfab">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      id="F_9d3c5e4a-e1dd-4dd8-bdd4-32b322479ce9">&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;21,720,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_f001cf33-dc5a-4a5d-9abf-b0b29d077356"
      decimals="0"
      id="F_fb02378a-fdd6-4fb9-b835-e3d12d1a2ccd"
      unitRef="U_USD">21720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
