<?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_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_956afad4-c3f2-45bd-b4c8-13e136d132df">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_9ba5588b-300e-49dc-a875-d8cd4f69eed7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_20fe13ce-e39f-45b3-bd8c-f00744b22cff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_e66cacd9-a356-4ede-8fb6-5bbcda23318a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_2f04c6ae-0d1c-4d21-a465-ecd3e6b9a410">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_d267f14b-8e9e-478d-b29d-865085a27310">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_7987808a-8cff-4046-9ccc-7b90c6f9f7dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_3d47c3a8-b6ad-4aee-a40a-bfec56f5b54f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_fc4bf623-2988-4c46-9175-0388099a2696">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      id="F_39bd7f94-e1eb-4338-b653-abfd7a0acb9c">&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;572,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_8a75f721-1e4b-42b6-b1b0-a220ac4cb8af"
      decimals="0"
      id="F_bba72db5-4dff-4283-8ffb-b5a6873aa7d0"
      unitRef="U_USD">572000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
