<?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_b339911e-24d4-40f7-9e48-5c18d0cf1290">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_04dc3298-ccb6-4ba1-9457-fb767eab8d3c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_604dc7f5-aa75-4f7c-b980-65ee2c0a84bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_08358324-b696-425c-8da3-a539bfc33c9a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_b7a959e2-7a09-42fc-9092-138df9cdd428">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_07a557ec-12dc-41eb-a8c6-71bd3c5dc2d6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_e60060eb-e303-4d50-b4ef-24159568c225">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_a9613ef7-61e8-4689-b68e-92a3adf6fe0f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_5dff20d1-c8f5-4bcd-a8df-fa8e9ccc3db2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_fd28ac00-265f-4589-a5a9-6cd038f6b9ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      id="F_d404e853-5aa9-4111-84f7-0958c1b45f43">&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;10,294,200&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_b339911e-24d4-40f7-9e48-5c18d0cf1290"
      decimals="0"
      id="F_55f70aec-3f8c-4bec-ad19-4b49d0810272"
      unitRef="U_USD">10294200</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
