<?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_e0744f81-5053-43c4-980d-88843606bf85">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_64975500-107b-455e-a8e3-30366a2348c8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_6e532f0d-8f0c-4654-aa73-be4782412e93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_5b3158c0-b986-4e3f-b85b-7d2dd5e61075">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_a3d731b4-d19d-4cae-89e9-f59668b3e1ea">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_70dfda3d-9c85-4a94-b325-d67e5d90bd4d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_9968e334-5bf0-43fc-a65d-e80ed8a9e276">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_d0a1d105-39b1-44ea-bedd-61daed6a788c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_aaf429d4-6256-4c85-b3b7-a667b9bf01e8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_fcaeac0e-5d6c-45d3-a48e-3f6836ac94d4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e0744f81-5053-43c4-980d-88843606bf85"
      id="F_9dc99f74-7ae5-49db-88b9-72316130eded">&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;550,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_e0744f81-5053-43c4-980d-88843606bf85"
      decimals="0"
      id="F_fff55f42-407c-4292-a22a-a8a567639d5e"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
