<?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_9c6afd2e-86d4-4f13-8785-bc4657f30f93">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_b5127f73-7149-452c-b835-dd1a20828be0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_bc7036be-e1d6-4113-a82b-2b5554555b00">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_f49a256f-6ef9-4dca-a8c2-27b183e77321">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_86c7c0cf-a607-43f7-81a6-121aeca325c2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_d455fbd5-8db7-4691-9f58-7422fe92d6cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_9d193f64-8f96-45d6-85cb-73aff38be4c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_dcbf9094-614e-4b88-87ad-9db81933406d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_bab66d3e-35d0-4df0-9c9a-eaa018fb4325">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_3f55a2b4-2a80-4f64-8cbf-5fff40007a88">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      id="F_0acb5aca-662d-4207-a1c0-c11d6776bf54">&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;300,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_9c6afd2e-86d4-4f13-8785-bc4657f30f93"
      decimals="-3"
      id="F_eb913804-14ff-4a11-b166-f40157c038c9"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
