<?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_66fca07e-cc09-4d68-9923-507750ff78a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_d56abd81-3438-4215-ac19-e4174f6f7a09">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_58e826df-3080-444b-bfe6-23793379ea95">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_1cacc63c-fa15-4cfb-9a63-05f9692d5b94">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_c6f5e4ef-556d-4b11-8a07-414f77cbaed1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_36cfa1c0-1c59-4444-8b7b-bdf536354d9e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_b3b80c7a-44de-4855-a9cc-22fafa14d38d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_5dc66134-249b-44f7-b835-556ab7202b88">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_4521b995-c32f-48a5-8e0d-dbc9c87e8bac">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_3381406b-11b1-4e19-8591-9eb21ba206b3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_66fca07e-cc09-4d68-9923-507750ff78a9"
      id="F_c11d3be4-bb06-4bf7-b7ef-b04c4f600811">&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;2,394,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_66fca07e-cc09-4d68-9923-507750ff78a9"
      decimals="-3"
      id="F_de5a065c-4f6c-4238-92d9-a4996fbdded2"
      unitRef="U_USD">2394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
