<?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_a64f53e3-e51d-40e6-bdad-238c1720eb66">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_b573d8d8-db45-468e-9970-aadbf9758d2f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_1588d829-ce7d-4a83-8553-a2a1371bf987">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_38903b0e-6035-43ff-8230-eb1657c64083">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_a7e0dba5-6256-448d-b5aa-237273e846ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_e41e8ec7-7e54-4ad5-b95a-652feff8a874">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_d68a4f88-e851-43a6-95d9-927f0c3c8575">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_968f3fb5-7809-4bcb-a591-d559ad5faca9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_3427566a-ab79-47cf-89b4-62a55b4162df">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_e8bb4b28-76ec-45da-bc27-97f7bc54f6fc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      id="F_4608bd5b-8356-4bba-946c-a41f0bf42c3b">&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;1,400,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_a64f53e3-e51d-40e6-bdad-238c1720eb66"
      decimals="0"
      id="F_cbbdd48c-f159-445c-9dbf-5769eee8eab7"
      unitRef="U_USD">1400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
