<?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_8b84671e-3f0c-4066-a686-957cc9b59f76">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_e9647ba3-cd8f-470d-8792-c20a1516b1a6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_b57c04c0-4d7b-48d6-8b2f-7f8ff6f55dc3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_aea45be9-9b67-4140-9303-6d937be904e2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_e3e7e5ee-a44b-42e6-8081-b97eb7918672">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_6099a09c-2df0-4fe9-9779-d6ec0217d04d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_80ed9f67-954f-4e49-84af-43fd08868df7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_e937c66f-e92b-497c-9e26-70118e6d81eb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_3d325a6a-5273-41f8-b763-5674b6a2e390">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_b26a5d38-f5e5-4eac-952e-57d84f882a5c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b84671e-3f0c-4066-a686-957cc9b59f76"
      id="F_04fc6a25-62fd-4ef0-8376-7973dd7c0ebb">&lt;p style="tab-size:26.66px;font-size:12pt;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;373,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_8b84671e-3f0c-4066-a686-957cc9b59f76"
      decimals="-3"
      id="F_cb0a8fc3-4da3-41f8-9fd2-d4b7901ce5fc"
      unitRef="U_USD">373000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
