<?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_645e8ec1-5af8-4734-95d0-c118f1ded432">
        <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:CombinedProspectusTableNa
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_c1881077-b7dc-481c-b567-10ac496a3d9a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_645cbd9d-3fb8-4711-abc1-2e80fa7e6e26">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_7af25012-b6b2-463c-9194-3bafcc4a3e6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_541fabd5-1050-4b63-9e29-de08ffd8297e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_5148ac36-7142-4881-9512-93b250ceec26">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_1588ff57-0f5c-45b9-80ac-be485ef2340b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_c651f101-d7c8-4a79-b1d7-424164a10f93">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_38926889-a933-4c75-9887-f1f691d5409b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_01275f4b-08f0-4e97-85bb-97e68d9137cb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_645e8ec1-5af8-4734-95d0-c118f1ded432"
      id="F_8c5b9d83-81e7-49a6-9f92-21681c68861d">&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,175,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_645e8ec1-5af8-4734-95d0-c118f1ded432"
      decimals="-3"
      id="F_6e8417f9-f7e6-472e-b605-a9007e638ef6"
      unitRef="U_USD">1175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
