<?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_927bccf0-fe1b-497f-8d11-097df6f513dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_f9779682-5527-468e-a2ac-0ee244ae40ab">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_f182a146-c12a-427b-9e20-87c3759f259d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_db03d819-89ce-4280-b272-16c5f5eae69f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_df01e33b-6863-4fd1-9b4c-c954fbd20e57">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_1be263e3-1d0e-4a3e-851a-798c708a9924">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_50c18500-fc2b-4c41-885e-73472622f5db">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_4686e270-a60a-4517-9b17-ef99422a6ff4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_9f6ba925-9f25-4562-9a04-f8d52ad7782d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_3d779a37-77de-4a96-976a-a3d7549ce44a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_927bccf0-fe1b-497f-8d11-097df6f513dc"
      id="F_29c5faf4-f0c5-4c74-a74f-7c841f5d5863">&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;2,997,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_927bccf0-fe1b-497f-8d11-097df6f513dc"
      decimals="-3"
      id="F_a763a2df-42f4-4b54-b7c3-fe83f00d61e1"
      unitRef="U_USD">2997000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
