<?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_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_d0066b93-2ae9-4bf0-8d8c-130ee4474a08">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_edd2bf6f-dc8b-46c0-bdf5-92c0b0598291">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_931cb896-2e76-4cad-a275-e55bea7a624d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_5feff0a1-34f8-48da-8e8c-948ca9fda149">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_2cf67351-15b7-43e3-b66b-34b3fe8d4b36">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_bfa2f382-e448-47dd-ac6a-8d529051b643">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_5cbfb87c-fd88-4a77-bd4b-7d9941440dd0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_3fa35d0e-79bd-4e15-9b61-8f1b2c06acce">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_fe256f58-93d4-4cfa-90bb-717a15601621">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      id="F_1fe022ca-9089-440e-9c33-24579f1e1dd6">&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;7,560,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_1c70b2d4-4bc7-4d48-89ce-6a22ab938e68"
      decimals="-3"
      id="F_6f6d2216-d4c3-404c-a8dd-35aae653a83c"
      unitRef="U_USD">7560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
