<?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_81be746d-429c-4efd-a444-5d8b1e0d7464">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_fb1917b0-d04a-4978-a973-79df0f1b0171">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_72433678-b79a-451b-aaa3-3e375a943a5a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_515cfa36-6cbd-44b4-8663-b201b37c96ab">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_1849bf1e-8878-438a-9433-a3b3dec85966">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_d667c51b-e20e-4b3d-a15c-8f0b688094eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_9145181d-d35b-4e41-bd25-d00e07779e91">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_abf345f6-1402-420b-916e-2f1ec07875c1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_693b4037-8a5d-45ab-ba7f-9380a14430e9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_b3dd99a5-7c5a-48e1-a4ec-d1358948bb1a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_81be746d-429c-4efd-a444-5d8b1e0d7464"
      id="F_1c3cc40b-b47f-4954-9827-be10c23cb9a2">&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;9,919,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_81be746d-429c-4efd-a444-5d8b1e0d7464"
      decimals="-3"
      id="F_92a8c21d-ceab-48c4-99e1-67cfd37ae004"
      unitRef="U_USD">9919000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
