<?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_409ae1ab-cdb3-4620-9327-d900690fddba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_d0b55ff5-f383-4515-ad0a-c8fd52c0f2c7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_8a025f57-79a1-4c64-996d-22668d574e06">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_1d8c9731-6734-4748-893b-dc8f2d4a5fc8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_916c62a9-7b2a-488d-a0c9-c5e0bb2acd72">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_f53702a1-3af4-406c-863b-33384e012072">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_ee1de5b1-4daf-4655-98d1-7d90c899213b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_2fbabacc-40ce-4d01-9a8d-69024927da53">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_1d973150-64c1-4d56-b3fb-59b70ee979a0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_24a18c50-90c6-4abd-8068-d05b7cf85995">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_409ae1ab-cdb3-4620-9327-d900690fddba"
      id="F_01107cb5-a2e3-4f5b-bb8a-418a1e87d749">&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;10,352,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_409ae1ab-cdb3-4620-9327-d900690fddba"
      decimals="0"
      id="F_adaf1e8e-86ce-4b3f-afae-a925d4ec7714"
      unitRef="U_USD">10352000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
