<?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_54843967-977c-411f-bbfe-f0f7018a06a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_c47ae24f-81f6-4400-9eaf-ca74b889e79c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_8590775d-29ad-4ee3-801b-8c227deb5ede">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_852d3fc8-2d65-4ed7-bbc4-bc2cf78efc9e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_b23d51ec-01b5-4ce4-84f1-55e20da25ece">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_22b97de7-dd8a-4a21-800a-8a4b0e92e9a6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_d4e7f8fe-3fe7-4c32-b97c-d4e323a7f0c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_b32fe7e1-d2b9-4ba4-87ba-7dda1d3e68c2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_a59101bf-7f52-4d76-8309-19853fb181ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_9d5276e4-a53d-4f20-b32c-ef4a0c8d8303">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_54843967-977c-411f-bbfe-f0f7018a06a4"
      id="F_df9cfe65-0809-48bd-8276-8ce2fef0e40b">&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;13,426,210&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_54843967-977c-411f-bbfe-f0f7018a06a4"
      decimals="0"
      id="F_c3aa92e7-7710-408f-bc54-5efa6b3c82bd"
      unitRef="U_USD">13426210</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
