<?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_faae1c2e-7697-4e8e-9c58-937676c70295">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_ebff8bd4-7b8e-4d4c-a1f2-6461cb7428d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_88c936c6-edea-4d9e-8f3d-140d34e57d6b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_2387b56b-a54a-4f42-9731-e72fa5fcd45c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_7d6ecdcc-2e13-4c84-ade3-0f3c11a7333a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_b45f1196-f8a6-45be-a46f-d0a7fd23fb22">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_e3a659e0-a732-4b3b-ac86-9b9ea11151f5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_5680910e-4bcf-4c81-bad0-558f955d07ba">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_d55b5be0-59a7-4ab9-b404-4d6722656537">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_de2f9c8a-2d0c-4ce4-9c3d-49b0c46a2aef">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_faae1c2e-7697-4e8e-9c58-937676c70295"
      id="F_72a70585-21a5-44a0-b7ac-c6c5a2c032d9">&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;3,744,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_faae1c2e-7697-4e8e-9c58-937676c70295"
      decimals="0"
      id="F_c8e80d5d-4cad-4cb6-b9f4-a1e9d829f102"
      unitRef="U_USD">3744000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
