<?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_f67be536-3d82-4972-bdd7-88bece13a4f8">
        <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:FeeExhibitTp
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_9177079b-d723-4440-a1ba-bdabdca6845e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_4024c34a-42fd-4d8e-8f65-f90e85a6577f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_4bf1bbdb-57cd-412a-9a80-764f07ebfd2f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_ad71ec07-1a12-441c-bb7d-30aa45833654">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_ec88d2a5-d224-477f-8351-1bac06c5c420">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_e8bd721f-5803-455b-9556-3b19ea3c8d98">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_6cc56731-42c5-4a86-8a57-a241c4b744d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_a648daf2-2be6-48ab-80e2-358e07d947a5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_d913774f-7ab7-4135-9cbc-d94096bb30f8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f67be536-3d82-4972-bdd7-88bece13a4f8"
      id="F_b1d3b24b-7095-4317-8cd8-dbed8d24a739">&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;51,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_f67be536-3d82-4972-bdd7-88bece13a4f8"
      decimals="0"
      id="F_09ca79d6-1c13-46fb-a4fa-d48e7c686c0c"
      unitRef="U_USD">51000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
