<?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_7de2ee59-f7db-4a67-8488-b43b18b455be">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_08e93c88-43bc-4d93-bb2f-c5b44d1388e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_0aca2072-599e-40da-a8b7-4d6cc886ce42">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_513b2b24-5382-48ab-a1aa-53b0cf4edb21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_19df20fe-07a5-400e-b741-55bc833b3f59">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_18cda509-78f5-4a5d-af20-d88ff7587a2b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_1d97cd65-7613-4e03-afda-036e11db23c9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_6af08481-3e45-46f3-8883-675dfd6c1e95">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_300498af-a06c-49aa-b6c8-918a0db1e04b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_37e5b7bc-ccef-4e53-b871-280c4475efe4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      id="F_67942b7d-7d08-4994-8c83-3e52453d15c5">&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;12,875,00&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;0.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_7de2ee59-f7db-4a67-8488-b43b18b455be"
      decimals="0"
      id="F_df418f60-f68f-4769-b658-30071031f714"
      unitRef="U_USD">1287500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
