<?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_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35">
        <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:OfferingTableNa
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_299e40f3-b234-40e4-a730-106e214f4bdb">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_692a7395-9d4b-472e-9ab0-d7ae37f7407c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_0a981668-afe8-47ba-8d8c-1ef7c47addc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_75075242-f52e-439c-a8fe-53a83ee15071">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_a086ddab-ebaf-44ff-83da-36a623bad274">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_133a7620-bde4-4a43-94ac-410884769653">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_811c0d3e-58b2-42ac-bfce-a633edb463d1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_01947ea4-b9bd-4549-b617-6a421271b871">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_37d898b5-adb1-4cb9-8d0f-c1a90e73767f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      id="F_6b23db16-f0a0-4bb7-a102-a96da4d4b052">&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;12,969,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_1a09f8ed-8b87-4c0a-9bad-9d6a3c060d35"
      decimals="-3"
      id="F_4903194e-e6a4-41e9-ae3f-df0ebbce8ced"
      unitRef="U_USD">12969000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
