<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_96c8d420-220b-4b88-b97b-2fe04fdc3061">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_1d5ffdc0-5d56-4589-85d8-30f699f40451">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_4278b822-d758-4691-b22e-a19f5f2fa64e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_c7a3a18d-de4e-4d18-a461-576b3023f149">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_5eb007fc-52ef-4a85-a66b-12b9b8fab734">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_fe571d90-ae09-4f9d-99fa-755aa592aa9f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_34827a44-b047-457b-a090-18d2068c9643">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_1af90d87-ca6d-4331-b6b1-a1ca6b7afd5c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_e5fe9bd8-d918-4df9-9261-ca63ddd7ca9a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_08a64107-1f3b-4c36-9f0b-505d1ea655c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      id="F_0dd666d4-e748-4e3e-b310-8173bfb96e7d">&lt;p style="tab-size:26.66px;font-size:12pt;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;60,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_96c8d420-220b-4b88-b97b-2fe04fdc3061"
      decimals="-3"
      id="F_7e6a5abc-83fa-4aae-9c74-7639cc80755d"
      unitRef="U_USD">60000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
