<?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_8bd8d2ce-d32d-4977-b189-e300a7fe0490">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_b498c5bc-d872-4b30-bccd-c6abd573954a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_c7cad84d-8178-4387-849b-50f3abdcd030">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_b2a54340-0e91-4d56-a50b-87f80f81f04d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_fc179873-8497-446f-82d9-21c6ae4f8786">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_192348a2-82a2-48c2-8728-48f28286eccf">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_8b8584c9-d5c7-434e-8832-83f4ae1d53b5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_eff3b253-99c4-4060-a9db-ce8038abb43b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_5a7f848c-4456-48d0-8754-4ce5c94a450d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_d7a6fcbe-66cd-49ff-98cf-461fc42da7ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      id="F_2c863653-3433-4a69-8c6d-028b079a7ab0">&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;734,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_8bd8d2ce-d32d-4977-b189-e300a7fe0490"
      decimals="0"
      id="F_86dd7b45-305f-48c8-ad03-90e2a1eefc62"
      unitRef="U_USD">734000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
