<?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_7312694b-f091-4af4-a2f7-17ba3bce3c5a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_ca1cbdd4-5278-46a5-a60c-793c0d84b13b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_02a0f2d8-9c43-43dd-b6f6-02f27ab190c1">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_c3aad669-b5cf-4c59-bd50-92749da5d719">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_dac4f217-8c9b-4686-941e-bde6af01911e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_9f4fd943-da2f-4930-b7ac-87158f148332">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_f110032b-bd92-4500-9a2a-3bacff1ac0d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_95b2d32a-0e2d-4bc3-a495-05c53979bc7e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_5fa6de24-f435-4934-ac1e-712de2b78178">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_aa9cf6fb-aa48-4729-b8d1-7f861364752a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      id="F_a7291ff9-ea14-41cb-ab87-8584c1e20e6e">&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,350,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_7312694b-f091-4af4-a2f7-17ba3bce3c5a"
      decimals="0"
      id="F_2680c475-3034-421b-80f9-80b546796fe1"
      unitRef="U_USD">1350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
