<?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_bb2fdc57-63e5-4aa7-ad1d-3aba015651da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_ba2bc537-987f-47f2-8d46-e4d27ffceefa">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_e04ae0d1-85c2-4608-a795-8e256c355d25">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_09ec5b53-c25b-4fcd-b24b-09726e2283cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_ba2b5205-3c01-4b06-8ca7-592a796c38c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_8b5b6d13-75a7-482a-900f-cabc7908657b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_af0ae473-83ee-4f88-b785-422202cfe487">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_6dae09a1-c341-4823-afaf-9b351a525cfd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_b41fd6f2-e487-4bb2-b7a4-4433ea7a8a24">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_ad5419d6-2756-4567-a9b0-81906b2fa335">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      id="F_7f70b2b7-7e31-4e40-a07b-8108c950b255">&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,176,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_bb2fdc57-63e5-4aa7-ad1d-3aba015651da"
      decimals="-3"
      id="F_49c191f4-d9b5-4aef-ad17-46257d0643dd"
      unitRef="U_USD">1176000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
