<?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_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_f7de940a-9cbc-4913-a7c8-3d2bb25f56a1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_841d23ef-4d45-4b54-bab4-421cdfa8bca2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_0af1fb7f-8489-432f-abf5-a9fe39704ca5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_23b518f6-d1a8-45c4-97fb-e49d8a9c6d92">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_9dc9d572-353e-41b1-b61c-9810b9240fee">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_bd121eb7-68d6-4d05-8893-16437445f317">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_85202e78-2a92-4022-9991-6f8bf17b8c08">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_4ad1000c-4ed0-4c2a-8b1c-15fdc3d17cb6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_bea84e28-fcf0-4f73-b3e6-b78d04c16db2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      id="F_51e29e80-b7c3-442f-938b-8edc1cefc24c">&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;2,622,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_4a6c0b69-672e-4deb-95a5-2d634ca6fb9e"
      decimals="-3"
      id="F_cc1eff59-5806-4091-804d-b63d03a259cb"
      unitRef="U_USD">2622000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
