<?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_d90f18f6-2043-4f1a-a56c-fefbedfa8a55">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_18f4ead3-3aee-49b5-9cc0-6ee2b1c95e30">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_eadcdec5-5cba-4a8b-a988-81a57fbeb3b4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_3f0c724d-6bdb-4591-99b1-de2587104920">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_722153d5-f252-45a1-8231-2fd045932bec">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_cfa8fc39-ea12-42a0-a0a1-98c6d7d88574">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_a31992fa-a568-422e-8678-d8ce78b02fda">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_1ba16184-6283-46d5-955e-9e1ac8b3ca4e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_aa56b78f-c773-4a21-bed8-5095dd0568ae">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_f115351c-aeab-44d7-bf23-6116bb8e27e3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      id="F_1976464d-d179-4931-adfe-296167c423e8">&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,773,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_d90f18f6-2043-4f1a-a56c-fefbedfa8a55"
      decimals="0"
      id="F_164482a0-77cf-4cf4-a2a1-5e18ce4c6d62"
      unitRef="U_USD">4773000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
