<?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_a1347827-836f-450c-b816-31c96c80871d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_94d35fac-0838-44e2-b5da-fb58cbacfa24">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_1da00efb-aebc-4474-a8f2-8822cde22121">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_c763c580-2005-4552-a076-6340e9c8e763">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_0f4b0c9a-0241-4861-ba9a-6976e067b87a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_1e940760-9dd3-4400-93d7-9abb168c1aaa">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_0400d4ef-012e-472c-99b3-388c59ccc89b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_fd47cbb3-de84-41df-9538-7cc4ae8b1286">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_3c31ae62-0839-49aa-a8b4-ef1c6baca672">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_c4507e0f-e2de-4ae3-b177-fe434da66d55">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1347827-836f-450c-b816-31c96c80871d"
      id="F_b1a23a9d-cbf9-4d12-981e-db23200d522c">&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,066,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_a1347827-836f-450c-b816-31c96c80871d"
      decimals="0"
      id="F_e84ce3de-28e8-4c6a-aae5-6d6725649c25"
      unitRef="U_USD">1066000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
