<?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_5b3990a3-6832-4edd-a645-a984d70e392f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_634dd398-c6e9-4a8e-947b-1ce6343e9e9d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_520dd4a9-cdb1-4c3d-9bc7-90476b783cf3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_f6ee4b37-c6a5-483b-ba0b-54ec305f7061">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_86307f55-862f-4f4a-8c50-53629b0cd6cc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_8ecc2931-c654-409d-a92e-59d927dd96f2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_d41de73a-5d4f-4516-9333-9159066d25ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_034d49d3-13e6-4fe4-903c-e55033c58f2c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_80457abf-ae6f-4912-bd87-36aa3aa15581">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_a611f770-5901-415c-969d-091df2cc716c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b3990a3-6832-4edd-a645-a984d70e392f"
      id="F_a97241a4-e33c-4931-a207-c183f4ab21b0">&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;535,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_5b3990a3-6832-4edd-a645-a984d70e392f"
      decimals="0"
      id="F_7399421d-7917-4056-b8f5-0efb119f3d3f"
      unitRef="U_USD">535000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
