<?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_98f7def1-5d2f-4723-8f1d-05e8cab03cf5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_143846d2-d420-45f9-9134-20112a18a751">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_e0ba1780-48ed-49aa-a054-3feb8945885a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_ebb77e55-189c-4175-8332-87a8856de43f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_26e53bdd-29f8-4ebe-9d54-da92fc5ca058">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_d24c6522-da46-48d8-a60c-6707c9bd33e1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_7a064bbd-97aa-4ecd-95b1-bc0d0407d238">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_0d587970-a576-4440-ab89-bd321ead92ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_0e9422b2-de59-4dc9-8d5a-4a50775f21e4">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_5f1066e8-d5df-429b-acc6-32e22ebf48c8">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      id="F_c10022eb-3bae-4e97-b582-cfb48f96835f">&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;950,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_98f7def1-5d2f-4723-8f1d-05e8cab03cf5"
      decimals="-3"
      id="F_58ac87d3-ef18-426a-876a-9fd517b6154d"
      unitRef="U_USD">950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
