<?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_b3907d7f-011d-426e-b245-09300afdf55c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_b80c37d7-1849-4d64-adb7-8299f1ca11a5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_14559e2d-7fab-49ff-92e0-abda805eac38">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_0b5672eb-2bdc-47bc-b66c-ee2113cedcbf">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_ef21e85a-520e-433b-9532-875964463b19">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_afad2c95-456c-4cb8-8137-6699d5a077fe">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_35317b94-5b08-4ca8-8fc8-f27ef0239835">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_ac9dbe2f-3247-4e68-a661-cd55283e7553">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_63548be8-943c-491e-baa9-ca07590817b8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_72936bae-8354-4dd1-98e5-fd5c5eaffe34">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b3907d7f-011d-426e-b245-09300afdf55c"
      id="F_f441f805-a256-4116-8977-1eb5838b879b">&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;8,675,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_b3907d7f-011d-426e-b245-09300afdf55c"
      decimals="0"
      id="F_3de747a9-ff72-40b2-99e2-4e37e3a5619d"
      unitRef="U_USD">8675000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
