<?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_eea0e047-dd9c-486b-9454-1ce02087833d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_5daeb308-eccc-4366-aeb7-fb90b0e4bd5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_2d63c47c-1c32-4068-8785-a3181bb0bf43">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_12828373-db5d-4c2e-b22b-712bf66a5bfb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_a6f74bd9-0506-4826-9efd-77394a0ce7e2">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_6f6966ea-de05-467a-a9b5-f080d7750328">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_979d8019-b665-484a-8f5e-75f4eabd61c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_e08d3353-8c1b-4568-995a-dcc816e80c45">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_35ba10ba-f314-4083-b7ad-346facf8c39a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_efaceed7-92db-4be5-8868-4e99ed0fe67d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_eea0e047-dd9c-486b-9454-1ce02087833d"
      id="F_0d29cfa4-108b-4f0c-87ff-e2b05a54cffa">&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;2,120,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_eea0e047-dd9c-486b-9454-1ce02087833d"
      decimals="-3"
      id="F_6e91b0c2-a937-4f84-a4e5-d8cbeb67cfc8"
      unitRef="U_USD">2120000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
