<?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_5cacee98-fc3b-4168-9875-8c7fe940941b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_e4cdc352-0a4d-42bb-8af2-eb75ef1ee9bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_50568495-f88c-4455-a078-14c02b772361">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_b7cefb64-077b-44fe-a9ac-f29f2410d51e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_92b95461-d35b-4cd3-8611-971eccfa8214">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_bab1b047-41d3-4de1-9e2b-604af1a24e79">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_b4f0c042-ff48-4c31-b405-fb00e82f3f0d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_f0b0b9c9-8194-46e1-a21c-bab09cd2c8a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_16de8f22-7a53-43d4-9fc7-ebd1cc2586f5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_21930d04-9440-4293-bcc3-5b7db7fa9ca7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5cacee98-fc3b-4168-9875-8c7fe940941b"
      id="F_1111311b-1db0-4d7c-8081-fc8bff64adec">&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,100,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_5cacee98-fc3b-4168-9875-8c7fe940941b"
      decimals="-3"
      id="F_8e3bdcfb-f7a4-4aa7-95e2-7bac093a6839"
      unitRef="U_USD">1100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
