<?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_3e6bb748-3eac-480b-9779-0e8cb92dc06f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_18ec40bc-5a2e-4dec-a25e-5bb8784659e7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_9f9d7353-2176-4914-906b-4fcd05ffff5d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_f3564e7a-1474-4ed1-be71-6379950f56c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_e6779e6c-af79-4085-9801-b31cc1873c03">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_5a728a3b-1bdb-4abb-9b90-e6d508ea11de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_de749379-46f7-41a6-8565-154f8163aaac">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_3a44aaae-9294-4713-a2d0-d8042c638cde">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_aa24388f-d040-4e7a-ab0d-d636000444d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_4081f7a8-cbbf-4e8b-94b9-516e5323f3fe">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      id="F_f91e8232-6016-4488-9f11-85bd21abc2cf">&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,056,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_3e6bb748-3eac-480b-9779-0e8cb92dc06f"
      decimals="0"
      id="F_99f79cfd-80a8-46ba-934a-db256d350f3b"
      unitRef="U_USD">1056000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
