<?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_054b90c9-0907-47dd-93cd-a44686e237f8">
        <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_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_f1700334-6a14-42cf-9734-e06cfc449327">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_02dda6b5-43f9-4d18-bd69-28f896a0dc77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_067d7fe2-c98e-4c37-a745-4f437d2c0445">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_e83bb26d-bbf0-4bdd-bbaa-c831685a8886">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_b8124235-2156-4543-920f-7f42f366acda">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_3284b355-561f-4e22-b0ad-382e0951ecb9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_8adead78-d237-4d37-bf7c-9ff0309e8f8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_a61e8ff4-4744-4138-b42d-a530a37cb03d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_48bebf40-4988-426d-91dd-971e8dae1ea4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_054b90c9-0907-47dd-93cd-a44686e237f8"
      id="F_b7f6c0e0-fabc-4781-bbab-7ee2ee0300c2">&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;5,572,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_054b90c9-0907-47dd-93cd-a44686e237f8"
      decimals="0"
      id="F_e0c99b75-960e-4bae-8f11-c1cf0c0cdd2e"
      unitRef="U_USD">5572000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
