<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_d19c3e16-977f-466c-95ab-56d31a465949">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_1dfa451f-5d67-4d3b-b097-56c1a841e682">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_f13fc201-3c64-49c2-bebd-9f61deca22c8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_16b4fb9d-b089-4c8b-b4d4-2504bcc33221">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_872c7526-8b05-4816-b1a9-30da2fca4bcb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_0ec8f8f3-d309-49d1-a4f4-f10cc5dbfd36">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_f1318f29-07a7-4aee-befa-ccb99ba75aa5">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_a69749cd-714d-4563-b3e8-4a9827c2c1aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_68c06628-9075-41b9-aea6-4867fb58d4f3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_8eb97209-483b-45c6-aff7-009d1585db2b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d19c3e16-977f-466c-95ab-56d31a465949"
      id="F_141d2cfd-814a-401f-8105-ada805e90e87">&lt;p style="font-size:10pt;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;8,225,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_d19c3e16-977f-466c-95ab-56d31a465949"
      decimals="0"
      id="F_cf134064-3ce5-44a2-b5b0-e44db36f6eaa"
      unitRef="U_USD">8225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
