<?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_5c256fed-8c11-4cc0-a763-a411475b4fcf">
        <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:OfferingTableNa
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_ca0e8919-ae3c-4f68-b7f3-96b28b10167e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_1c89214d-e55b-4b8d-801f-10e1b1dfb13f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_40badde3-e787-4f54-ac94-8d54b2f19647">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_39f72fc4-3858-46ae-a403-f95e1426771c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_477fcc01-7b7a-44f8-acf0-3593a566e2c2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_f38a02eb-eb16-455c-93e2-5c9702bbd1bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_2d34c030-fc3f-415f-ac6e-c64497692f5b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_740c38f1-d6b9-4947-8a9d-1907d9512223">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_73aa9198-7c2c-4a7d-8258-af6ff7262047">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      id="F_cf618db6-11d2-425d-b10d-2e36755347bf">&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,195,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_5c256fed-8c11-4cc0-a763-a411475b4fcf"
      decimals="-3"
      id="F_d3f8a178-bffe-40d8-8a9d-f036c0abdc0d"
      unitRef="U_USD">1195000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
