<?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_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_79bf2411-c742-45ea-bd6a-d9638e367e8f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_ec0635e4-9191-47e8-906c-b2f30d7429f2">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_ccf4a2c0-7ccf-4880-a6c2-f61e81b244e2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_f0c96afd-5bb2-4538-82b0-962f42c1b675">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_0015cff8-22d6-4984-be62-4e011308fe8b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_63cd2a92-5611-4c7a-8d34-9a74efc12065">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_dc97fa01-918f-4c19-bdf9-913cc7766108">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_06343487-9bec-4114-be7f-f24245a0fb19">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_9d53efbd-34ac-47cf-87ad-314bc413bb72">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      id="F_b09e433f-a2b9-446c-9b5f-c32bbb5cb12f">&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;4,775,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_4d157c0e-d5be-41ac-9c26-0f8c8d9515b2"
      decimals="-3"
      id="F_8265ea8c-f264-4de6-9e07-127e111d49d0"
      unitRef="U_USD">4775000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
