<?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_4c27224b-b367-45a6-8d9c-984347a79f91">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_f28f6505-0671-40c4-87c5-31b76b5f8c45">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_948ff6e6-c029-489d-bba8-132a90f0c69f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_f1d978ec-994a-458d-a741-771128da7efb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_ad2b42f9-e9a7-42b0-8660-493b5f0bd489">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_11316ddc-679b-441b-8b7f-93c0d3b8d5bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_270618c7-dbb9-4561-aeac-1ea193d76b08">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_969e03c8-56ab-4612-900f-0624030e10ef">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_b6f27e24-db3a-4be2-b78d-59936cae623d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_85573a35-c600-441d-9072-0ddeaca4a4ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4c27224b-b367-45a6-8d9c-984347a79f91"
      id="F_022a5926-83a5-40c6-a588-2eb68cd1ca46">&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;293,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_4c27224b-b367-45a6-8d9c-984347a79f91"
      decimals="0"
      id="F_ba524a31-06db-46b8-be74-b2c4126392a2"
      unitRef="U_USD">293000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
