<?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_3454e868-1c17-4592-ae3c-78f0ce84edfa">
        <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:OfferingTableNa
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_f87e5ebe-02b6-4898-a295-03b6c967a982">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_25a49b36-baa3-4e68-822b-a41d7072c421">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_5bc0b886-3deb-418b-9ff4-32d607d2fe3b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_424051fb-1b61-4d3a-8eb9-237881c7d46e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_8704fe15-0496-40a3-827b-282c8bf0a3fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_af96be11-c5f9-4cdd-82e7-48b228a784e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_e5beb86f-cd52-4b09-8824-d23891767f94">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_f1896051-1683-4101-affc-0f39a59d39be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_f241fa97-bebf-420b-a311-bd121b23aed4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      id="F_56bca8dc-9455-4da6-b1f1-abaa78a3cc0c">&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;457,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_3454e868-1c17-4592-ae3c-78f0ce84edfa"
      decimals="0"
      id="F_96fc05c4-059e-4c99-8b6b-60aedba8c5e5"
      unitRef="U_USD">457000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
