<?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_e8fce1b7-6e0c-4887-b45e-939293f05479">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_be813587-5cb1-45aa-bf11-77f9408b40d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_3f604d48-aa2e-4db5-8eb2-b3ea638e4f31">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_3ac87110-fb43-4d48-ae63-ab29332f40ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_de5bc484-2064-4686-9059-95f259ec1787">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_a2e3b9ec-a6c3-455c-943e-4526c966a0f7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_3b1c84f9-d238-43f5-90b5-4d9eb756965a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_a5c46744-df2f-4178-bf41-1cd71e7abee5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_dcad541a-f442-42a2-b6c8-01908ad6cf23">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_f8a0d9c9-0422-44db-a483-24a6129c5e35">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e8fce1b7-6e0c-4887-b45e-939293f05479"
      id="F_a06f37e8-b224-43fe-9498-39797331816f">&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;1,222,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_e8fce1b7-6e0c-4887-b45e-939293f05479"
      decimals="-3"
      id="F_78e87f97-19d7-4b3c-8245-794dd23347b5"
      unitRef="U_USD">1222000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
