<?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_0ae69fe0-af94-44d7-b298-d95296c19b8a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_c2077c01-7a37-4902-94b5-ca88aaf118e5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_2f0d8942-4305-4b63-a92c-7a11227f723d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_91a95508-09f8-408a-a49a-3d1f00145b22">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_e97eefef-800a-4bb2-b12b-4f5abf188965">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_f3099acb-ce73-495e-b19a-3dedb9413f9c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_7e6b83b8-5996-46b3-85e6-6f382e72be09">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_5f78d13a-15c9-4495-8cbf-2a55d1fac52c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_80b72cd4-d0b4-4aff-b759-2086b9dae209">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_1916b900-a9a5-406b-8fb3-b06dc3270196">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      id="F_1a1e329f-a400-44bc-8b7f-e8ca5c6cd273">&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;22,500,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_0ae69fe0-af94-44d7-b298-d95296c19b8a"
      decimals="-3"
      id="F_a305ec1d-cc6b-4cd8-9cc1-49936dba59b8"
      unitRef="U_USD">22500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
