<?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_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_ac0cc633-45a8-4732-9e62-f6994404ab22">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_097d39bb-2498-4794-9141-6d198c916897">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_66c35aca-cef3-45e7-913b-fdd8500e914a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_65cccce7-fbae-4bbe-8ced-04ad99ffec5c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_32dbfa8a-51a2-49db-ab37-6a3304ad22ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_7bfc55f7-9d9e-4a28-8d3c-616905584e87">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_53c4cd7f-32e2-4387-a636-c86f5b5445d7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_bdfa33e3-7fc3-4128-952a-15396f9a4277">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_4f6df110-74b3-48ac-948d-e998ca046b7b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      id="F_367c9f48-5064-4ca5-88bb-bd1d87ee0a52">&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,655,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_5f42ed78-40a0-42ae-bc0b-516eda7ce4ba"
      decimals="0"
      id="F_32344edc-61df-4c0b-a8f0-785585477ca2"
      unitRef="U_USD">1655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
