<?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_4e9248d4-d9e9-446f-8311-8887e1d6246f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_fcc9647d-cb1e-4652-8d41-0f60d6d69988">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_08b07af6-52a7-4284-9dab-f2e983a773cc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_224c8cb5-a845-447d-a3d7-c40d3fdd3a3f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_2f722777-c552-4f89-b816-b3c4c633167f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_3b16af39-9160-411c-ad80-561f8b5a6372">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_84083632-ff9e-492a-befe-dc2c5dbaea14">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_51407dcb-2891-4f46-9dd9-1ea2a1886a68">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_49b30501-97e0-4b40-8505-c6a89e7c6820">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_5ed9f290-d99a-4c52-8c3e-eda21592c32a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      id="F_9b4a116c-b9f0-4a0a-a05d-fc16ac5a7f3b">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,536,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_4e9248d4-d9e9-446f-8311-8887e1d6246f"
      decimals="-3"
      id="F_4c954fcc-802c-43ff-8971-da6f9ac31b6f"
      unitRef="U_USD">3536000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
