<?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_3d29838f-beb3-4838-ae19-6ecd2250df1a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_5c1bb028-9931-414e-9f2c-fada3786f80c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_4d67565a-6e0e-4744-b66b-eec786a02780">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_5ff7e46f-45d3-4b73-95a2-ec34b4d495f9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_74c8e3a4-f0df-4492-92b6-8e11634c9207">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_8ee56fd4-5db3-4b88-acea-159eb7995457">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_58034bd0-f33c-4dad-9e99-5c67baa1a763">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_729cff54-6dc4-4d77-9c55-74c7a2e89421">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_a52aee99-d58f-453e-be3c-85625d6a1067">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_dfc25f11-ecda-4b96-8a8f-465c92edcbe5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      id="F_7183ab4c-8518-4409-93b1-8b3dd64fe97e">&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;1,425,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_3d29838f-beb3-4838-ae19-6ecd2250df1a"
      decimals="0"
      id="F_ba04bea0-104f-4ccf-ba13-f40176d6b563"
      unitRef="U_USD">1425000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
