<?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_c3dd3d1b-e936-47b9-a7aa-50959ae014cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_ffe7c6ad-4ff9-4163-b4f9-296b7e0d6752">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_cc6b55dc-5367-4a5a-99b7-1856400bbab5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_a094e2a0-5f63-43fb-b357-d0f8f146ba03">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_c547625a-6beb-4364-b369-cf8a55e0d480">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_baa7b574-115c-46cf-b71d-a5b0aaf2cf5e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_ca5f06d0-41e5-4f3f-9638-99f149973b75">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_26a35737-5fc2-4910-b3d9-096b2c5707a2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_e20d0c59-7759-405b-b54e-fb85aa7081b4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_0075ea2a-8934-44ff-8013-ed22730b8bc0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      id="F_6ab6dc5e-59f6-4f88-9e19-7d5595646656">&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;385,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_c3dd3d1b-e936-47b9-a7aa-50959ae014cf"
      decimals="-3"
      id="F_7de47dec-4be0-42eb-aa5b-521649c46f91"
      unitRef="U_USD">385000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
