<?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_2e49dcb9-d838-4dc9-8202-6066260de1b5">
        <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:FormTp
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_0ad9733e-ceb3-4a7f-9310-9ed5485c5f23">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_caea0786-d806-4461-ae0b-cb0147aa76b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_a418c6e8-c2eb-46f3-b5bd-aa40127864b1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_c62255c4-d829-447d-af4c-90f66b4e6e75">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_f704691e-8d4e-46cc-a0d4-2316aae111b2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_eb7d9997-fa4d-4d12-90eb-c21d907224c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_f3f043eb-3fb1-49e2-a12d-78603205a69f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_d67369cc-d445-496b-b3f2-646409ea10d7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_d580ced3-aab1-4441-aab6-882d9a84cf75">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      id="F_f536f26d-7234-4ab2-8e47-a0ba1acadbe1">&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;7,026,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_2e49dcb9-d838-4dc9-8202-6066260de1b5"
      decimals="-3"
      id="F_c9cda02d-1d6d-4f20-b40b-7147fa455074"
      unitRef="U_USD">7026000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
