<?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_c1584278-1e46-4546-be31-063e4691fe13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-06</startDate>
            <endDate>2026-04-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_d68d7f74-8b86-4186-b891-856f96ad544c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_d5d75ea4-42e5-488d-9fed-af2c23a2c1e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_c1dc3d3d-6b56-4c0d-a8bc-d1072a8d787a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_c8c4857c-94ee-45e6-8bb1-3f40d19d3527">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_f73d741e-86f7-49bc-a92e-52be2cfc9ae9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_20d106f3-fe93-4106-8f5d-df015d4fc27d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_0a07c76d-7611-4cde-ad0f-1b7e94e1121a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_aa64f896-89e1-4423-8637-86a7c17b81f7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_4651406a-c6b9-4409-ae22-d6ac4606bb78">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c1584278-1e46-4546-be31-063e4691fe13"
      id="F_fb6e042e-03b9-49a0-8d39-b64dfb06f8a3">&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;250,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_c1584278-1e46-4546-be31-063e4691fe13"
      decimals="0"
      id="F_3ca4dc30-0743-48e6-9aac-9fbbec687bc3"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
