<?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_b32e1350-0778-4d7d-825d-939fc7f4ecc7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_4234c9b2-44b6-4d16-aaae-d24cdb39dbdf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_1169ab97-1d7c-4395-a495-8fab5423fc38">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_c171c1bc-f60d-4067-8f4b-b821523de1f8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_4e334840-b660-4f57-ba3a-47567ab9ccbd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_bdc3ebf7-992a-4d1f-9443-2b2aa00bc24a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_860bdab1-29da-4cf5-b0b7-121d1b843eda">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_c92e1f2f-d894-4148-9d8a-7f257e22db02">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_80194908-309d-47c4-9d3d-4c264a99c4dd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_6cdf7825-9f9e-4e2f-8250-56b558e275d9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      id="F_5bbed824-5938-4af3-a13b-41a029da1c41">&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,646,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_b32e1350-0778-4d7d-825d-939fc7f4ecc7"
      decimals="0"
      id="F_c554e795-4d41-45d4-8a38-8d811990716c"
      unitRef="U_USD">1646000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
