<?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_8c5fadd9-030b-40c9-84b4-a15b63c9c401">
        <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:OfferingTableNa
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_66da9623-11f0-4ebc-a062-77c02a14c160">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_0cad6206-dc2c-4af1-9baa-3bb60990ab32">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_4552e467-9d54-4ab0-9ccb-74bc431a200a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_81576e8c-d012-4d71-aaa2-af8a1f6262f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_9a105b70-1d9b-4ec5-829d-39020359599f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_4c702e1b-4242-4ab3-a991-0a65faaa1cc3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_5cd87506-5058-4b3b-b882-45e5728c3b67">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_d34ea0d2-5890-48ee-a78e-b8cd6b2e81df">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_3c3d846c-2cd4-4f63-a9fe-1902a5c6faea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      id="F_bbec8149-7614-4580-822f-7d416c4858a9">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;1,481,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_8c5fadd9-030b-40c9-84b4-a15b63c9c401"
      decimals="-3"
      id="F_abc0f68f-68d0-4ffb-8641-7b04ec064c3d"
      unitRef="U_USD">1481000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
