<?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_f9a791f8-6642-4ab0-b45f-95a55d30c8e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-25</startDate>
            <endDate>2026-03-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_fe43cc56-64ff-4f36-b6c4-dbafa82362cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_3d4cbfb5-ba64-4e8d-82d7-50a8072f20bf">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_ecd30b86-e7b4-4e99-bf5a-a5638e4f327d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_4e34d684-32e7-4ad3-8239-9b2f168c88f1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_80737166-c14c-4873-b8a8-82677ef6e722">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_43afe78c-b329-497c-b96c-22e545713cd3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_5c1ef7a2-cde6-4a22-ba8d-d74668fb7e7c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_4973a9dd-5582-49b5-a673-2929f152b7d8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_ca1b322b-0e5b-4fcc-9897-afc35090b55d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      id="F_5c57ace4-f29e-4185-b312-519167ee37f1">&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,000,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_f9a791f8-6642-4ab0-b45f-95a55d30c8e0"
      decimals="0"
      id="F_4a6f6120-fe43-4148-9806-4cc417b5ad03"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
