<?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_9ff4327f-b11e-45cc-8423-5201297de917">
        <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:OfferingTableNa
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_9582523d-b501-4d31-9f68-194dee702557">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_d3c0464c-2aca-4659-9490-81a9d681802e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_95483e0d-3074-46a6-873b-417d13da16d3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_5daa4af5-7579-48a6-b484-9760db9ea544">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_978a2883-938d-4185-9447-cbf6d87a5885">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_0af6126a-0cd5-4ee6-985d-dc8509fc5e3a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_a2401619-3f27-421d-a90a-a15176838b25">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_2e0d1c81-2485-4fe7-9763-047daecd0585">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_1e78a2d2-8623-4aef-a0e6-e7af2a4acd96">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9ff4327f-b11e-45cc-8423-5201297de917"
      id="F_5173f2be-1495-466f-ac96-edf5b7ba2928">&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;2,474,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_9ff4327f-b11e-45cc-8423-5201297de917"
      decimals="-3"
      id="F_45a398b8-4ad0-4d14-a1e7-4cda0202c20d"
      unitRef="U_USD">2474000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
