<?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_a5447c9e-aafd-4413-b10c-2955a9c9f4d9">
        <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>
    <ffd:FormTp
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_6ee58e32-5d43-41cd-92bc-f84917cf47c3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_a228512e-2e5a-4501-9e52-3820df754ba4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_50c0640f-be84-460c-b5ce-94832fabc6e5">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_ad1aa21b-f057-4669-a558-8b948af0abb6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_e265440b-8127-48cf-b39a-b0a2d3f9de11">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_d41bc8e5-9675-4628-9894-64c0847aef93">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_10222b4a-c68f-437e-a441-62f4d7c783d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_b801effa-f368-4ffc-9082-4a1b6c1173de">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_64e5a236-1651-4e28-b7e4-6229f5c3a1b0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      id="F_e5aebc4e-363d-4559-a625-afbfb6434c98">&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;7,357,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_a5447c9e-aafd-4413-b10c-2955a9c9f4d9"
      decimals="0"
      id="F_0df9ab1b-278b-421b-9c74-6f8bc39fd477"
      unitRef="U_USD">7357000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
