<?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_f3896126-8ca1-4d42-b387-555426a37e7b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_a2b62673-fc03-48ce-991c-ed009b8fda36">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_941dbcc1-6ea2-4387-a9be-a6e40c803f71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_023eb773-04d1-4c22-a5f7-b304d7a1eae1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_3a396003-6b60-4639-b1b9-2e52bcd4e606">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_879f95b3-e078-464f-a131-85498b327be7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_5237737f-9802-4653-8787-d747e407e134">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_23678850-688a-4e09-964e-2aba780c1c0f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_b1864352-8531-4e89-b041-4f99232d0e92">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_4d173b49-4c0f-4bce-b275-d97b162113ea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f3896126-8ca1-4d42-b387-555426a37e7b"
      id="F_b4cedafb-32c7-4076-a36d-c71313d777ac">&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;12,000,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_f3896126-8ca1-4d42-b387-555426a37e7b"
      decimals="-6"
      id="F_2c74d35a-6df1-4d5a-875b-0854e7a17450"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
