<?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_9e7c498b-495a-473d-ab36-8b39f017ff20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_9289f241-46c7-4dda-a6f8-d9e2d79eef83">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_1b381067-a692-457c-a9a0-f52ec1c68e27">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_cdb617af-3a41-450d-a715-1359674b46ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_46482967-a249-4ebf-b0b4-71cc138130d6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_940dfdaa-f413-4c82-b1b2-9e51b3b33c93">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_9d1d7519-1db9-4ba1-a67a-584c6e1cad26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_e7d4123a-5caa-4656-a847-3927face5657">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_3a93cd0b-edc7-4faa-aa5a-80fce7440e64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_1ea73d6b-6c19-41df-996f-bf683718cea5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9e7c498b-495a-473d-ab36-8b39f017ff20"
      id="F_d614b39e-1a1f-4fc0-832a-87c6b7f22d45">&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;143,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_9e7c498b-495a-473d-ab36-8b39f017ff20"
      decimals="0"
      id="F_870b0074-5f9b-4b19-aa94-fc0652dd3f8b"
      unitRef="U_USD">143000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
