<?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_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_9705ab0d-d457-43b3-ba08-649e75d53930">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_00fbbca0-ba3a-47b7-8b0a-cc2b780cada2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_adf4528e-22a6-4d20-8c6f-568f02d0f9d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_81790d5b-751d-4cc1-beab-5102e91dd6fd">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_ebebde05-af43-4ca3-9b0c-76a89256e7e6">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_608bd2fc-b927-4505-88c3-a27c6ae8b175">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_138fa376-8148-4c1d-843f-af94f3109b69">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_6e4b3d5f-c975-44ec-b1b9-9ad93c2b5cc9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_328338a8-7775-4478-b6e3-e8e258221c71">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      id="F_c722aee9-4b01-43f9-89b5-f0bd564539f4">&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;12,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_5e8cc3fc-c94c-40ee-9efc-9c3664c26e83"
      decimals="0"
      id="F_360e428f-9339-4b39-b6cb-c6cfaa0d7b40"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
