<?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_759faa4e-063e-45df-a0b9-7c5fac12c0c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_e38c2373-249c-4218-af76-d254d2db6941">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_cf3992d8-0bd7-4323-9e9d-1bb86ac83684">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_ef858657-dc0b-4daa-b26b-9d05b413b5c7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_52ea9c59-35db-4842-b395-b972c0d52c54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_655e48b7-7b9a-47d6-be50-600173b86a66">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_c218b213-1b98-4c31-8391-40a9ae420d1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_c1aa1f36-ded3-4886-b85a-4f50176ef833">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_c33db787-a22d-4e94-8565-8851782d9076">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_e65f4fc2-801b-4e3f-8514-3b83449eecad">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      id="F_91cd43b0-9a9e-41f2-b6aa-dc58e9f8bb2b">&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;52,521,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_759faa4e-063e-45df-a0b9-7c5fac12c0c6"
      decimals="-3"
      id="F_8faacb37-34f8-42e6-be62-66a16a7ec11e"
      unitRef="U_USD">52521000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
