<?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_5879e560-7a05-4eda-a4f8-cf075b19f3e0">
        <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>
    <ffd:FormTp
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_78d59f6f-51cb-4983-9260-9e46e00dc83d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_48537820-99b9-42eb-94c7-05497843b033">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_db789747-993d-487f-b4ac-de4677fbb4e7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_34cbe5e4-2197-4bc7-8f35-cfb124ba2b4f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_fa437fc4-4ca2-4cdf-9d3f-e736b21c2d9c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_f557cd45-b693-47a0-80d6-b6ad6c76c0c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_64bb9a3f-99fc-4575-8142-d4afe4db0a5a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_0f6ec37e-d746-4fa1-a063-bdd48f61a6b3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_a28259ba-1e40-4057-bd31-780fc6611485">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      id="F_c3978edd-39fb-4446-9b2c-334019040f41">&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;11,384,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_5879e560-7a05-4eda-a4f8-cf075b19f3e0"
      decimals="-3"
      id="F_81414af4-0306-4512-9b26-d4b3ae3f9a35"
      unitRef="U_USD">11384000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
