<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_2562259e-eb6d-4512-b265-5bace2546785">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_67681809-d06f-496b-adb6-644a7766c582">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_5a211d83-73c2-429e-9702-e2f891d2b996">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_a54264c9-c454-4146-ba02-8f5edd069f54">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_15b55ee5-4aff-406c-b143-2d54ad0ea3be">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_99c981f0-854c-4f1b-880c-47874bf7b77a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_e0aac379-3173-4aa7-9119-56e37ed7297a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_bc9fc73e-e73d-4b05-b7e5-0dbe1320ee30">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_456a55c4-fcfb-4102-8a78-9ba0428ec6f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_000e4058-d7d7-4bd5-b660-09794323340c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2562259e-eb6d-4512-b265-5bace2546785"
      id="F_0e492c32-dd50-4d30-a471-18bce36adefc">&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;14,154,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_2562259e-eb6d-4512-b265-5bace2546785"
      decimals="-3"
      id="F_3bb46acb-bcf8-41b6-8233-3a2b766686cb"
      unitRef="U_USD">14154000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
