<?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_3db9bcf4-a37d-4f94-b624-caeb9183a1a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_39bc3a29-5a0b-4d11-bf31-e03fa95ee105">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_771d68cf-36a8-44e1-87f9-8844cba1909d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_7d8d47e1-8016-4c8c-be4e-0d37eccaba75">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_3f96a4f6-4a78-4cad-8663-25c9cb89a531">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_cced07a7-97c5-4b94-b0d2-2afbf8755ce3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_19bc1cd4-d1b0-4496-90c3-1260322f1fd1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_516c1a90-9ef3-49f5-95ab-9a1f9db93445">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_43077cbd-a6bd-4712-aae5-d82234a2f313">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_b8641288-89c7-439b-baf0-bd5b0eefbb35">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      id="F_cf1d0ade-2c49-4c57-bdfb-25bbc75c09ce">&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;32,092.50&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_3db9bcf4-a37d-4f94-b624-caeb9183a1a9"
      decimals="2"
      id="F_f08a9a99-8035-407e-a2e1-07d8dcbdc54b"
      unitRef="U_USD">32092.5</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
