<?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_f75c7f62-ab08-43f0-8734-f1843e809ba6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_5e27e4ad-8e08-4f6a-828d-1540a6fd3716">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_2fa353e4-2200-48ca-b10f-5ec9576dc027">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_415a9862-8d1a-4049-a57b-bf5fe9f0bcaf">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_a2d42d6f-bb03-4232-8b23-8921263a441e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_1b26f85e-1871-4234-8aa0-e747b275640f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_0dbcf127-3f7b-41e6-9358-99c323ce5bcd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_d61ff362-27d2-402d-95e0-de8bd4220bcc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_134cd31f-a577-4846-803b-7b4184383f9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_475d48c5-1441-4dc7-8d9a-7900b0db19f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      id="F_e5528751-18dd-4102-bbd8-7b87f50b9ee9">&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;10,649,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_f75c7f62-ab08-43f0-8734-f1843e809ba6"
      decimals="-3"
      id="F_6f11793f-cbb4-4932-a2ad-f790e953d18a"
      unitRef="U_USD">10649000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
