<?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_a7e11f5f-4bd3-4c32-948b-813a3da0ee61">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_e68fbcf6-9430-4d38-95a0-1153df150ba7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_798598a6-bb8d-4dc9-a624-59ce58eae8f7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_ab280f4c-0e28-4776-8c80-53d0996cd3cf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_cfe3d0fa-21a0-43db-ac6f-04a98dc2cc5c">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_bf6f590c-a9a5-4dfe-9392-f45027715f09">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_8c166621-2474-4629-afe7-26ff81abdf4f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_9dea72dc-baab-4933-8c16-1a130b809a0b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_f8bb05e6-36d2-42ce-bf0d-79fca40d11ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_39b59d48-443d-48cc-a733-2f2979fef9bc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      id="F_186e87f0-d54b-4694-9f17-72e5111585b6">&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;400,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_a7e11f5f-4bd3-4c32-948b-813a3da0ee61"
      decimals="-3"
      id="F_62e736d9-97a8-4b1b-a253-c9285f22543a"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
