<?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_b9beff45-46ad-4932-9323-2d436094856a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_82783942-5539-40f4-aa64-e06799a6035f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_1c788098-d403-4b20-9e89-fa3a50e1846d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_1e8dbdcd-b7d8-472b-ba56-c6866581186e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_37b1851a-45d7-4f26-9cdb-c8d8a07d2b19">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_4efe33fb-f36d-41dd-9990-077ca228fbb7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_9a02ecec-12e9-47c9-a304-916ec7ecd176">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_3e868316-4b59-4d74-9305-2988e8c88d37">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_d0e95439-a654-4800-bd4c-66f065fb431f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_462f2224-b26d-441b-af39-56d51fcd9441">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b9beff45-46ad-4932-9323-2d436094856a"
      id="F_dc0bc710-d9ba-41c7-8435-bb3341a518fb">&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,181,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_b9beff45-46ad-4932-9323-2d436094856a"
      decimals="-3"
      id="F_b25246e6-f2e4-4bd6-aa48-4510b6dfb71f"
      unitRef="U_USD">1181000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
