<?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_867ad279-84a8-4717-b1d7-9b901efe86fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_e5e063f8-2e52-4be1-ba6c-f131541254fc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_70fc20c2-36d9-4207-8d2e-84fa0d1b6310">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_f7520332-be7d-4ab6-b40e-f04486d005d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_e0fbd6f2-b34d-45ef-807b-4e905c0c1cc1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_bd3899a8-9533-4c0c-b6b4-fcc4c8f8a680">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_5b2c265b-18d9-4b20-94d9-3aaf921258a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_577b4d08-a8d6-4979-90f8-7ff920bd05cd">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_abeaa0ca-6465-414f-bbfc-65775b0fc1fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_db047440-6fa9-4308-9d2e-70fd20bd864e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_867ad279-84a8-4717-b1d7-9b901efe86fc"
      id="F_adb7e990-d8cc-4ce3-9456-55769a61a949">&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,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_867ad279-84a8-4717-b1d7-9b901efe86fc"
      decimals="-3"
      id="F_711951cb-2d02-4bb7-b3ac-90d707e2655e"
      unitRef="U_USD">1000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
