<?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_0ec82b83-a8b2-4d9f-80e0-12ca78f38388">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_bf06ae3d-6db1-4cb8-b803-22ecbc6087ee">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_ae0773bf-fe12-4e59-b04a-5cbee922b243">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_b49a28d0-c31d-4075-915a-c58019c52d0c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_db8273ab-0a76-4a73-b729-e3154c2aca04">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_8910453b-4a80-44f7-8115-2c0eae0db592">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_703e6999-26b5-4aa8-8ebd-0a804dc76e20">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_b3d13641-2c3f-4acc-b6d6-d7238fa426d7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_8dc1e760-e86b-4821-a16a-5d1c06be01e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_56889904-0012-4869-a23d-3ed7c77431e6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      id="F_76d037f2-33e4-4f68-b05a-997a7d67d4b4">&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,360,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_0ec82b83-a8b2-4d9f-80e0-12ca78f38388"
      decimals="-3"
      id="F_73cf004a-af54-4e50-81b0-6163db16f84b"
      unitRef="U_USD">1360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
