<?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_4fef8d90-1554-492b-9bc0-38985ef3b112">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-19</startDate>
            <endDate>2026-03-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_453e63e7-4b71-4850-bffe-19db83b40cab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_33ca82e5-4894-44e4-a389-f6e31309d4ad">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_4b81f1a4-61dc-4a8f-b7b6-d08c833e21e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_702690df-ed96-4d12-99dc-9ed05c04128d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_82dd375b-b0ef-4844-ae43-475a1a441620">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_88d51786-cde0-4260-96df-07ce6d239893">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_dac19b41-c9fb-4f78-8ad3-670276ce694a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_31a1462a-7a9e-4010-aee9-7ed95f014b73">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_0a866bfa-cc7b-4b13-adb6-392c8e6ab9b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4fef8d90-1554-492b-9bc0-38985ef3b112"
      id="F_acfbd2e1-7e67-498d-b191-3bf91fecaedc">&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;4,825,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_4fef8d90-1554-492b-9bc0-38985ef3b112"
      decimals="0"
      id="F_93de0ebf-b833-40d5-9119-f8c2cce407be"
      unitRef="U_USD">4825000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
