<?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_6fda8d8d-8123-445e-aa76-87a2954c9ec5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_12c5a82b-7a9c-4ae2-aa5c-888338b15e5f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_f2856ac6-abdd-4cf7-85e7-5f1d921d0857">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_a3983a42-f9d5-4c12-a930-4b3ca794c1a9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_616fd5a5-a8a4-4c92-9277-4e57a27832aa">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_90e08533-1e75-4c83-ba88-efb46ff17583">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_03693ed3-7bea-49ff-9784-11e6daa312c2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_8bde49d8-8fc2-4928-a0e5-8361d742da64">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_e0ecf22b-cd3c-4e2f-97e6-6e52049a348f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_35f5e799-974d-41d0-a4f2-1f9581c15cde">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      id="F_2b833225-0212-4bab-8388-273b502c60f3">&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;245,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_6fda8d8d-8123-445e-aa76-87a2954c9ec5"
      decimals="-3"
      id="F_6322462d-fe67-427e-b2b5-d306151ac9c6"
      unitRef="U_USD">245000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
