<?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_3272ced9-62f6-4086-b72e-bdcec0840045">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_1209ded9-6796-42e4-b432-f224afdfe8a6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_5b4e14d6-e91a-45f3-b80e-8b005808ae2b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_f22b4a2c-807e-46ff-bac2-e587da6a9ccf">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_724bdbf2-5449-45a4-87dc-6533061a53da">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_a20eb0b7-10ad-4a9f-9e02-b5e7be1bd2e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_57146146-e2cf-45ae-91be-5478aa3ce478">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_1bb04730-6f4a-44c9-b949-92c6c5d9aa20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_7dec7c71-599f-49a1-a14f-8f39775ba4ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_1c9801bf-1f34-4ee3-a018-35ac2181587b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3272ced9-62f6-4086-b72e-bdcec0840045"
      id="F_8bd2b28e-84cb-479e-b13e-46880977d311">&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;2,000,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_3272ced9-62f6-4086-b72e-bdcec0840045"
      decimals="0"
      id="F_958b6400-674e-4726-ac9f-420b2a8e94f3"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
