<?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_cdb43db8-ab38-4959-9bb8-b7f298ed60f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_598fe393-3de2-4db9-9b83-ee7b6790b998">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_c082fc58-c2ab-40cc-8432-6c747349a6cd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_79aa076d-8ecf-4245-986a-69d4e6aa4d28">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_66bdbc22-a8c3-455c-abc2-ff3d633a906d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_5a3d96d3-e2bd-4b84-9b85-89a53f0c23b2">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_484dc6ae-8f64-4e48-bb9d-84ec1f285145">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_a5934f1b-375e-4220-8f60-1e6e7656c92b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_091261f7-f480-43f8-826b-ed38b5ee0b8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_f76c6b17-a563-42ee-90fe-00974abd0bd0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      id="F_deced1fc-9dc9-420d-9221-41c53e2f1a91">&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;795,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_cdb43db8-ab38-4959-9bb8-b7f298ed60f3"
      decimals="-3"
      id="F_03be0250-be12-4930-820e-5f272c0c8dcf"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
