<?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_64341163-4f9e-478b-b045-5abe93a7bb9c">
        <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:EntityCentralIndexKey
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_4d8d6d1a-1c3d-43a9-badd-a7bf5520571b">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_b33062ac-83ce-4ae7-a477-b6c39c3bd60c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_0f8098c5-e7e5-4746-a30d-ca5291de5cb7">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_3170c152-b5cb-447d-baab-640c182b7c43">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_cd1cd63c-9f8c-497d-b88c-c307e49b1720">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_04f5ce0e-1552-4d61-9e7c-dcac5c788f97">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_b5f00a74-d14a-495c-ab10-f796abcbba82">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_40ea2598-ab4c-43e0-96cb-c99afbe0b1eb">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_49fb6e90-b9c3-4cd8-ba27-904d2b09cb36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_64341163-4f9e-478b-b045-5abe93a7bb9c"
      id="F_b5474a6e-d7c3-4204-a003-840df227cf17">&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,099,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_64341163-4f9e-478b-b045-5abe93a7bb9c"
      decimals="0"
      id="F_3417dcc3-3f30-4859-8a55-cc14aa5ae817"
      unitRef="U_USD">1099000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
