<?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_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f">
        <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:CombinedProspectusTableNa
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_266747fb-d8f7-41b8-9ecc-e6d65fe6c70c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_cd08ccc8-d2ba-4fce-998d-b9e61e6c6b05">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_55e30ddb-6d89-48aa-b13e-b9f9384d5347">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_c1a9bd6c-8c29-494f-90f2-2fe23549445e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_b400fb92-13ae-43e5-9c4c-d4576e8afcfa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_1f64d78c-87fe-48b5-a261-3c21fdc62f1e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_5db1d308-870f-4c73-be4d-8b4632169a33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_a1d3275a-e528-4a30-9149-5faa82f94302">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_be6326f5-5d45-4502-9c5c-0f77edcc6af5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      id="F_27b8e404-1ae7-4956-b449-83116055236a">&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;883,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_b3ed4cc9-9d6b-4fa7-8854-8ef55c6f434f"
      decimals="-3"
      id="F_d7e3ba54-479f-49dc-a82d-fe40d7977fc8"
      unitRef="U_USD">883000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
