<?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_beddfe00-e530-422b-83cb-650e86aa7358">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_5116783f-0f1a-43d0-b620-144a782ebfaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_5cb3fa53-e93c-4371-8203-c0538349be1d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_5980e785-dbd4-4d5c-8b38-5a74f072b302">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_2fc14e11-4be9-401f-b231-f05fe0626889">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_c1ad087e-cfaf-428d-ad6d-d337737cdcb2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_f539a62b-39bb-4ca8-9af4-cba3cffd75f5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_ef273734-8b03-4883-ac0b-37dee281f2b4">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_d626f7b3-7e40-4a2c-a54a-57f3cee7b1c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_b84ab5f4-1ac8-4420-8a1f-71ea5a35c721">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_beddfe00-e530-422b-83cb-650e86aa7358"
      id="F_d1e177f8-9024-42ed-a7a4-437cf23b706a">&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,376,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_beddfe00-e530-422b-83cb-650e86aa7358"
      decimals="-3"
      id="F_3b93da9f-a292-49c9-94d6-7f96ad65f0ab"
      unitRef="U_USD">4376000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
