<?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_374a2079-4e3d-43d8-87b0-7946b9e38c5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_e6537644-3c83-487e-8373-99bffde007c2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_f7a97c82-f103-416d-b712-3635c12181cb">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_e7fd94bc-8313-4922-83b2-902598c6ac5a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_fa3ff60a-8ef6-4384-8114-1afd27f82760">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_51d4f699-b357-439e-a565-87af07c37fe3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_21042623-41e2-471e-8e1e-e4c3e7bb1495">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_eb7fba01-05ca-426b-bcbf-76f07a2280d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_d7341068-f031-46c6-b02b-e70a47cb3dae">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_54e1d291-69be-4eba-8134-5fe6a79a8d41">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      id="F_a3cd5b2f-eb81-494a-b298-1e25bd0b0566">&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;879,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_374a2079-4e3d-43d8-87b0-7946b9e38c5c"
      decimals="-3"
      id="F_a2b4a1c9-e2ab-4e7e-99b0-52b3827ac81a"
      unitRef="U_USD">879000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
