<?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_5e8f317a-b087-4856-acd0-e6c5b5007d8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_b0fda141-f69c-4ca5-afb2-87cced831b12">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_f068378d-2345-400f-86e0-40ec2fe6f631">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_491d0484-086a-42e7-b44b-e8449a1d598b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_0405db2c-50bd-484d-81b7-de1ccd5b83b6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_d1cee5cc-a34c-47f4-b440-1bf2e9298522">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_81895e28-6e4f-4c50-898b-e62e1fc84943">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_786bae28-21f8-4137-a071-4fbb089cc951">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_20ec1782-3c5e-451c-9f1a-e590abbe029d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_1aff25e3-583f-4f01-a2e8-92d2842c13b5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      id="F_32227068-a51e-471e-96d0-ca7fbbf13830">&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;624,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_5e8f317a-b087-4856-acd0-e6c5b5007d8c"
      decimals="-3"
      id="F_c5592c66-2943-4d23-86a2-135237c65ff4"
      unitRef="U_USD">624000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
