<?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_d1f420bc-254e-4307-8f3d-4973bbc90f27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_6b0163fd-7426-4ce6-b250-91d2527347c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_804dc000-05c6-47da-961e-dd7ea19faf5e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_b98134c9-e586-4769-bcff-bf011c5b2048">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_36f4e439-1f43-4f21-a112-4f6f179f1337">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_948a7d54-b51f-40f2-a7eb-857f59d42cbe">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_0ae547a1-d582-41c8-a96d-39f89de74712">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_9e015ce1-624f-4d90-b880-7edeb30cb0dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_b187fc9b-dc54-4702-a332-2ac7f53e60ca">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_e41edbf5-c57f-4293-adab-7ac2f3a68604">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      id="F_279a6986-4ea3-443a-ae3e-ceaa571545df">&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;1,032,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_d1f420bc-254e-4307-8f3d-4973bbc90f27"
      decimals="0"
      id="F_b0167bc3-5851-4253-a083-5eccc6be8399"
      unitRef="U_USD">1032000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
