<?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_3493af8b-2781-4050-ab7d-580da9d0a357">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_187c4fa9-8e37-4603-afda-57f3a5e0c567">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_08117758-c265-4ca4-96de-9e2f88f1cb1a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_ff6eb8d1-5e1e-4a02-965e-28a0b2adb848">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_bdfdf162-f6d8-40d0-85ac-5a6a4422ff74">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_a40d89b6-b4de-42da-a17c-f6f97521b3a9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_8a460d45-36c3-4e57-865c-fdad39c434af">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_17917a15-e1eb-4936-85aa-a59da6ef2384">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_1dcceb05-f2be-4011-ba18-bd308c98c600">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_525e4a4e-d80b-4266-a04f-5e3b01cbebd9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3493af8b-2781-4050-ab7d-580da9d0a357"
      id="F_f178959a-615e-4239-a29c-c60e2d3dc34e">&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;961,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_3493af8b-2781-4050-ab7d-580da9d0a357"
      decimals="0"
      id="F_0614674d-cadb-4fa5-9feb-7834705fc4f6"
      unitRef="U_USD">961000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
