<?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_2b593caa-18ea-4a64-bac4-4a08a211942f">
        <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:SubmissnTp
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_e133dcf2-a900-4781-aa5d-e594fb8d75f3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_67bcde94-4800-43bc-95d6-9c2edfd1c06a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_20a5a92e-2abc-4531-8471-cf03542e921c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_dfba54dc-eef5-46b3-aad7-9209f00603a9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_c1c80ef3-1032-41d7-bf1f-779981a87e3c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_90a06015-2d78-46d9-aa28-52767b7ef613">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_dcb37cdf-9549-4e3d-97eb-7b459cde008c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_f61c3ed8-bd84-4c31-80ae-ca254711662e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_86f66022-8eb7-4808-a18f-8ba02dec2cde">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2b593caa-18ea-4a64-bac4-4a08a211942f"
      id="F_2c140b3d-1833-4a55-8833-1b37f6010963">&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,260,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_2b593caa-18ea-4a64-bac4-4a08a211942f"
      decimals="-3"
      id="F_4580467c-5dcd-4943-beaa-d02a821df3bb"
      unitRef="U_USD">1260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
