<?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_a596f7a8-4688-46dc-9785-179858f53acf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_f3869b48-1d67-4a1d-b9f5-fc1c0c3a230a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_b0723137-23eb-492a-915f-18ce452c6723">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_95782184-08ee-4d7f-81ea-a81e38d832a3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_6a7d0822-a81f-40c2-a786-dde8782b6d46">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_d6e8ed72-4906-4560-837c-14c9e6de322c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_cd5b7ca9-3e75-4b4d-a1ba-56cb8bdaf8f5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_2a5d71cc-66aa-4d57-894f-860a60034093">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_be952fcf-2e7c-4e63-a479-5719c8224810">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_dfaa5005-0326-43e5-9c9a-3dffd6b7ebde">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a596f7a8-4688-46dc-9785-179858f53acf"
      id="F_8430fb98-763d-4eae-b280-b730fca3127f">&lt;p style="tab-size:26.66px;font-size:12pt;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;18,543,760&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_a596f7a8-4688-46dc-9785-179858f53acf"
      decimals="0"
      id="F_82c7b778-4e31-4eb9-aefd-25648095ebc9"
      unitRef="U_USD">18543760</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
