<?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_9e62792c-2615-4b4b-97b1-599f4da8f7e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_5677af15-01d5-437e-982c-a4143723c64a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_bf29f0ad-72b2-43f1-9571-ffc8cd0a8d9e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_73141fee-0601-4ee2-b048-23def9925fd9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_19ee8687-9554-412d-8618-d4607bda5240">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_bb51323e-5613-4a0e-b7c9-9943e5c409ed">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_627ea9d7-6ea5-47b2-8e00-4a8f8bc8e9da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_97f82c92-44f7-42c7-a758-3df2c0fa8ef3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_de494f40-79f9-4a47-bea5-3082eef184fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_51011e00-492f-484c-bba1-b8f9d1e01c91">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      id="F_0dcae18b-93a9-4c9d-a50b-42149f21ca04">&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;310,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_9e62792c-2615-4b4b-97b1-599f4da8f7e9"
      decimals="-3"
      id="F_f542f19d-91ce-4667-bc26-0bcaea0a42ae"
      unitRef="U_USD">310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
