<?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_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_5fc4340f-b813-46ac-a4c2-28a375f94950">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_bd4bb9f2-d8df-4f19-9ee3-50fba0fcb0f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_b749d8e2-e4d9-47f7-8078-fa8e01ee4ebc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_522ea57c-908d-445e-b88b-cbd005fb76c4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_c2ec517a-ffc8-4059-9af6-7c9016b82480">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_9b9071d7-2a7f-4888-aa63-c630e0144c02">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_54da6930-0466-4e83-a878-22eaca0a504b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_650c9941-c1f5-497f-ac6f-a7abbfe9d0ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_29e9527e-9935-4419-8a97-40d403df3ccf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      id="F_80fe1c2a-4bfc-4800-8333-327765c4cc8c">&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;5,219,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_bb8d44aa-6cdb-4cca-9303-6d3172e9e0bf"
      decimals="-3"
      id="F_299cd587-1ca5-4c6c-9885-8533b82ae14b"
      unitRef="U_USD">5219000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
