<?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_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_6fad21ef-b74f-42e7-a827-2f0c96bb0df7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_f1cf9ad9-36c2-4355-96bb-3c50d83d519b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_8732d139-1039-4c50-b3af-38f56b6f91e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_d87c902c-0516-4a44-983a-44fdd3de3c83">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_60a526fe-604c-4d85-afcf-cb5223eab6cd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_b93a4ff0-77e3-4462-ad75-8d6f1ad76c17">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_7b3a2dea-2e27-449c-a52b-c3a639d4ba3a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_beaf72df-4e5e-4a28-ae27-52759d07b32d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_d90b0500-c9d6-4dbf-9c78-2fa28fe05811">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      id="F_56cae3c2-cbc3-4ab8-8dd1-caedb601a726">&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,126,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_0cdb7805-eb58-40ae-b2f9-c5ad3c94eab4"
      decimals="0"
      id="F_994d8dcb-8cac-4d3f-a2a2-2add8c3ff10f"
      unitRef="U_USD">2126000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
