<?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_1e68b286-652e-4e04-b77f-aeec17fd1009">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_028a9e94-4122-47d4-9292-b1ba3607a647">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_01028223-06e9-4804-aeb7-44af8de32fcb">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_13fa81f9-7da3-4660-a2ad-cb167bba2c05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_ec40bdbc-9755-44e1-83d2-caafb69aebc4">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_78ea2ed1-98b3-42bc-8372-c7c78a0f3cc8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_42ce7720-0be5-4001-a41f-a43f9c9e13be">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_c0237ed3-06bf-453d-9cee-a33ed143b8f9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_76a04a20-16da-47ba-bdc2-02e5145fd774">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_6405dcd3-372a-4238-b057-8880cb71eb81">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1e68b286-652e-4e04-b77f-aeec17fd1009"
      id="F_9eec600a-9ebd-4fd0-91d8-58bf62557e9a">&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,067,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_1e68b286-652e-4e04-b77f-aeec17fd1009"
      decimals="-3"
      id="F_02a65ef1-99b5-463f-ace8-5dc5b1830f4b"
      unitRef="U_USD">2067000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
