<?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_844cab64-7f56-4e9f-b388-ddaf18673308">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_187f0822-69d6-44e1-bebb-9e6375877998">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_f012ab60-2c77-4a4a-82bb-12da9cfc4e65">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_3826a861-1226-4d84-9c9e-2ecbb1bb5cd0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_2ac38a20-b526-470b-8b14-da018daf13d7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_de40485d-7b39-4226-b85f-ff758a26a48a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_c8beed8e-c97f-4643-a056-50407b5a95bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_8b372cf4-7992-44a5-9eb4-64a724c7178c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_09ba1636-b94f-4ac0-8f37-7b5bdc2776de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_0bb77cca-6056-45f9-b2b5-b56c26c7cb76">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_844cab64-7f56-4e9f-b388-ddaf18673308"
      id="F_6bc05c4b-74b5-4020-9884-a3f8f1985fed">&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;12,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_844cab64-7f56-4e9f-b388-ddaf18673308"
      decimals="0"
      id="F_abfe0e5c-8b62-41ec-bb9b-15a326e27f44"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
