<?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_f8b7f7a0-874c-41c9-b54c-a29fd32429d1">
        <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:OffsetTableNa
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_40f759e2-6de0-4d89-b879-8eaec4de1ec4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_11e7e96d-074a-48b2-a49b-9642f5514589">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_42602560-0f0b-4dc4-bb6e-503ee23ce045">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_b1bb489a-4aa7-48fb-a969-737a548cebfe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_42118d3d-b00a-49d9-8b63-2ea2bca0239e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_7c08e980-e06d-4c17-aa15-4773d48a956c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_b0cf212e-ecca-433f-a0f3-8fed4d1e213e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_6a7238bf-0d56-42dc-95bd-5799d4639716">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_bf31223c-f513-4946-8f73-afb0361d282c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      id="F_c63131bb-326c-4854-bd93-f315be12f368">&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;10,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_f8b7f7a0-874c-41c9-b54c-a29fd32429d1"
      decimals="-3"
      id="F_e4432ac3-342f-4824-93d0-56960e690130"
      unitRef="U_USD">10000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
