<?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_fb6db72e-ff02-47e3-9009-ae3b4e0d814a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_5f067e9f-a8fd-4afd-b508-af86abfc63e9">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_8ac34b42-d7b2-4556-8130-84a60e66dfc3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_308b77ad-39af-4309-9838-673df9063084">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_db761fa2-1e84-40bd-949f-3533736f3ed2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_87b8a11a-c9c6-48fe-ad4d-b89a82f6c0cd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_4cfccff2-1c01-4eea-8109-bc61bcd66757">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_42438936-ad4c-43c6-90ce-6c7ce44b9bae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_a112cc6f-3733-423d-95d5-1f13151672e9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_723a6935-cf40-49ad-a059-febc3ecf98f0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      id="F_bff4f6e2-ac92-4ffe-afa8-903a9321a38e">&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;1,870,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_fb6db72e-ff02-47e3-9009-ae3b4e0d814a"
      decimals="-3"
      id="F_b9b0d0aa-287f-4994-abbc-b85ccfa1665f"
      unitRef="U_USD">1870000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
