<?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_7b112e0d-541d-455d-91e4-ce094ef120ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_bb5678bf-1cfd-4f66-a880-0762cf60f2cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_3e28a7c3-da69-46a1-a234-da9268239ebf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_a437709f-7ecc-44e1-a3c0-4f4ec6747c48">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_5fce3dfe-e033-44c4-88ec-2a1a10cc4d41">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_ce1540b3-3105-4f20-abaa-2b074507c35e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_35dc3cd7-3ea9-4358-8828-2622f99bdc1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_b038debd-edba-4b70-8b65-eb6d9f9e9373">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_4581674b-ef00-462a-8d50-307ddb4d5526">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_c56f2cb5-8f56-40d5-8bdf-3e4c0215cfd6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7b112e0d-541d-455d-91e4-ce094ef120ab"
      id="F_1d45b54f-e5ec-4be9-98aa-02006c6ea125">&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;50,000,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_7b112e0d-541d-455d-91e4-ce094ef120ab"
      decimals="-6"
      id="F_ac06cd15-d75d-4ced-bf7d-c62398016c09"
      unitRef="U_USD">50000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
