<?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_21b34b35-18e4-406d-8020-a9fc721e6fdb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_58291f5d-06d3-4cd5-a065-7f5dc1eea79b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_ef5eba01-2458-4bcc-906f-2f76cbb6db83">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_73d483a7-1f57-437a-94f8-729e0f00513f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_88df8c0d-7b45-43bf-a488-495fed963a73">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_12c3d27b-9edc-4584-9d73-69b1818c0b37">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_5f742c75-3217-4cc2-89b2-34f1102021ed">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_f7f2e1ba-909b-4b09-9db2-650761e060fc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_f03c135e-1909-4919-97c8-accc85927e0e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_3abfb1c2-21d3-4708-b892-315b6a3e11ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      id="F_9fe30a3e-bb2f-4814-bf68-d59b08f4dfd5">&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;9,565,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_21b34b35-18e4-406d-8020-a9fc721e6fdb"
      decimals="-3"
      id="F_1f7aadb4-c111-44a0-8b03-e6f36c8d98e1"
      unitRef="U_USD">9565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
