<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_f5aeb3ea-7641-4da2-bf51-e74b0931abf0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_c737ec0b-7ff0-48aa-bc5b-17a14b5dde55">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_e0265443-110f-4d64-9bee-240bd09f4b2f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_db671bc3-ee71-4942-a00a-465f3d765176">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_0c4d6d19-fe07-47b8-9469-b888cbfd9774">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_34f5a5a1-0064-4c24-961d-6e3039418903">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_51da676c-9c94-4a1b-8c34-d01c491202ec">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_411e048b-0c7c-4c85-829c-d85da581bdd0">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_9d122281-579a-4505-97c6-80be8036d8f9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      id="F_eae575df-b311-4cf7-b9ad-a50e3fecba1d">&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;800,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_39fa9f84-f6b2-4cf7-82fe-69086bbf0057"
      decimals="-3"
      id="F_96815169-5f0c-4bf2-b9e9-8f0fcdb60658"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
