<?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_e7a79fca-4d80-48c9-899c-5b7f82294bb1">
        <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:OffsetTableNa
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_55596cfb-b548-47b0-8225-58fe0ffa7560">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_0b36ad95-b040-423d-ad11-ac0e8bc631e6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_adc474e2-c96d-481f-9d9f-f318ec1f3e6e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_43707ce4-9e4b-4829-b4e5-7137d0fc6ca4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_e1023c73-f116-4c6c-97fc-adb48a149419">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_1c1f98e8-3a62-40ee-9fae-2547da5e6d08">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_2cbed4bd-535e-47ee-9371-e63ed95fe88b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_68b43acc-2a8e-41e9-9d9b-1d5b67e710c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_8a7a6777-14d9-45df-99aa-a9cf7b4fcf54">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      id="F_4a82e581-f02b-4421-9032-bb12739bfeba">&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,861,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_e7a79fca-4d80-48c9-899c-5b7f82294bb1"
      decimals="0"
      id="F_28e23cfb-336b-4f27-876e-c4a2e5810f86"
      unitRef="U_USD">1861000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
