<?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_1b4041b1-c16d-4785-b7fa-db9adc828652">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_51ffcde7-73f0-4a94-81ac-aa6739c099aa">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_8bbfa5c6-f271-4c00-ae59-a0484adcc627">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_8fd07890-bcd5-4de6-9d03-296258c026a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_1db0c53a-48af-4fe4-a27b-8c161c997dba">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_d489794d-ece0-4555-9c29-7b7994044b32">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_8f04a13f-0177-4c8e-a7ae-cff957dc6a56">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_de230216-d401-4a93-b2a3-32374b50d5dd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_12dd7ff5-d93f-4c5d-9ff4-e62300765360">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_968bcebe-3d57-4b4a-883a-d3f26029c838">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1b4041b1-c16d-4785-b7fa-db9adc828652"
      id="F_b7840032-f7a5-419f-a141-5a48243a35c2">&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;3,058,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_1b4041b1-c16d-4785-b7fa-db9adc828652"
      decimals="-3"
      id="F_c7f25bb9-854b-4c31-9d7e-c6e2a399d0c7"
      unitRef="U_USD">3058000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
