<?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_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_fe21e3f3-512b-4bb4-97ab-f65adbad655f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_88d86788-14f6-41fe-8224-2afb2bb3141b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_c7b7562d-88a1-490d-852e-e535ee869b90">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_fc6dfcdc-ad76-4092-aa1a-2949d28a153c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_aa05b770-66bd-4fba-9056-1fe6bddb1a07">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_42902f3f-16d4-448d-b7ea-51c708661b48">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_676f8d9d-dc28-4318-95cc-eb38a5cb7aa0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_75b96248-78e4-484b-adcf-aad2a614d5d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_8db699b4-4206-4469-a8d2-94ef052bbd8e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      id="F_f2e45182-790e-47ec-b926-30efdfe99e75">&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;4,475,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_e6f2c53f-f1c3-47b0-8d63-8cc3175aef34"
      decimals="0"
      id="F_02fd9948-a15f-4735-bab0-e417ee3df841"
      unitRef="U_USD">4475000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
