<?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_6144eb4d-c508-47b4-917e-e295a24bbeda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_c17a3c3d-2cda-4aab-9d5c-357df1fb641c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_664cc013-7248-4470-856b-f8c2e31503f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_1b0e8a0e-de37-4c86-9102-c041948e8c07">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_4a118c6a-9ed0-4489-ba53-53e4510dfc6d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_969fa3b6-8f02-4218-a644-207e57eb32c4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_ca8024cd-44ab-412d-9012-97a9ed480732">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_e851bab6-b4de-4e30-a159-91f3ed722851">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_81ad807e-f118-4e5b-8ba9-300c4ad49ab8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_5f434fce-9df0-46db-acc8-92ee72085424">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6144eb4d-c508-47b4-917e-e295a24bbeda"
      id="F_ade56489-94ee-4bab-8106-cec6e958c13f">&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;525,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_6144eb4d-c508-47b4-917e-e295a24bbeda"
      decimals="-3"
      id="F_a812d90e-ef29-421a-ae1a-ec9dd56801c7"
      unitRef="U_USD">525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
