<?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_1b7f1261-76e9-412f-a059-59d953115baf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_b91207fc-f6d8-4efb-9e38-23e6c387707b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_3e958fdc-6eda-44c6-9352-a83460d89556">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_5fb5611e-5c17-49f9-86bc-968085bd0886">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_17c507bd-5226-40d8-9091-b99adb384b7c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_1aa095d9-2d53-4b5e-accc-245110200e58">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_38fc7c68-d433-45a7-810e-a5121a8245f0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_5e750f20-eb00-4973-9601-0802ecde5a21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_2c3b19a8-d67e-4ad7-a318-a71c1b578500">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_a668a4ca-d1bd-4486-bdc8-563804c71403">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1b7f1261-76e9-412f-a059-59d953115baf"
      id="F_cb1eade9-a4ea-469d-835b-ffe82be52d39">&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;615,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_1b7f1261-76e9-412f-a059-59d953115baf"
      decimals="-3"
      id="F_5cb75829-7e3a-47e2-a83c-bc6ab1cdd01c"
      unitRef="U_USD">615000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
