<?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_c557b5e2-ce47-4793-a617-d001e0a52d1e">
        <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_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_a05e01aa-2e81-4062-aee2-885b82af9b09">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_6f8b7368-87fe-4549-881c-9203f7e7530c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_66cbf9b1-d1ba-4c85-adad-95f84729e732">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_42c31e87-91f6-4b54-aef1-93e711b8c1c1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_5509b1aa-3a8f-4ea1-8b7a-14f245cc1fb4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_b412558a-0799-4a90-affa-c50e2a8b53f9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_23550070-20a1-491f-a862-2decf45a7983">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_105b480f-09fa-44ff-b594-baae7c2799f3">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_d109ebc6-f757-47b4-8c7b-f949302291c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      id="F_d62ade9a-bb82-4b29-b155-bf1b66372000">&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;500,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_c557b5e2-ce47-4793-a617-d001e0a52d1e"
      decimals="-3"
      id="F_fd51b00d-e60b-4a85-a779-eed53815e34f"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
