<?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_a2c6fa6d-2a77-46a3-88c4-cefd48689867">
        <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>
    <ffd:RegnFileNb
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_17029c68-47ac-45ef-b0eb-f62c5198cb36">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_8891262d-6062-4b14-af13-66648b5be57c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_48e09f7b-07e8-4213-ba27-56c54dc6b8f8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_066bcfaf-6ec1-4d7d-ac99-3369d2120af8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_b3811a9e-2347-4c8c-acef-2c094c315f0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_a8c47f9b-e1bd-4bd6-95fa-d38121ba7890">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_80b1e45f-2f99-4f65-9bec-8a760dbff682">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_27720216-9c83-4e85-8e7b-6caf4edbb7ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_a36516c9-5304-4dc9-9cd2-567a328200cd">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      id="F_1a9198e8-192c-436d-9df8-853c195f7bc1">&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;600,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_a2c6fa6d-2a77-46a3-88c4-cefd48689867"
      decimals="-3"
      id="F_15a1bd1e-6b84-470f-a7e4-a53c50b0dba5"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
