<?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_723badcc-2af6-4635-9ef2-6f6f24ccb782">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-26</startDate>
            <endDate>2026-03-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_b4f7fbf5-b09e-4074-a262-8e27de94bd96">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_83efcb99-77b3-4c58-9b48-458a33489520">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_289d46c3-0c58-4b1b-a2df-1ce74b2d0b84">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_e2385608-dacf-43c1-836e-ee8741f29291">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_f37cf12e-7898-4e44-bb85-685ae1723210">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_b24deaf7-f840-4dc6-b4c8-9734293f6c1b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_88236fd7-8a69-4d1d-a6b7-10169d58896a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_1985da55-1ecc-4360-996c-d578ed697267">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_7f0f9921-4bcb-4110-9d6c-279bd1801234">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      id="F_c4d58624-e9e5-4c13-a8b9-d911a57e8993">&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;2,886,390&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_723badcc-2af6-4635-9ef2-6f6f24ccb782"
      decimals="0"
      id="F_90bc52d0-f42d-45cb-ae78-b458ea1d3773"
      unitRef="U_USD">2886390</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
