<?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_d813f62e-efe8-4d65-b96c-42005edaac68">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-20</startDate>
            <endDate>2026-03-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_90536e6e-9ad1-41db-a7fe-964c72be853c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_2774d37d-a33f-46eb-99e0-0a078e377807">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_14ead9a1-9e4e-467d-b9e0-090192a79cd5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_f3e9b72c-9005-49db-9acd-55eadfc81dff">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_a85832cf-34ed-4d7d-b395-026b170ae9a6">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_89b9c907-a43b-47fd-bb8b-951f904e612c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_dd9f7652-5bf9-4ad5-8430-0a979d748b67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_328ac01a-ce97-4223-867c-e61e79a6d502">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_11f6a1b7-fa59-40c4-afc1-f9ae6afa50fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d813f62e-efe8-4d65-b96c-42005edaac68"
      id="F_df1f9ddf-12b3-48cd-9cd3-d68b743f50e8">&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,494,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_d813f62e-efe8-4d65-b96c-42005edaac68"
      decimals="0"
      id="F_f90a599d-a185-4098-aca5-39554937939d"
      unitRef="U_USD">4494000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
