<?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_ef4bed15-51d3-4925-a77a-6a77c2968b24">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_42cc8bf0-9738-4599-aa5e-d3ca5469d540">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_71a42904-f790-49c6-9c69-24775c0a8f15">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_bd3fe844-1ee9-4f4c-b361-c63f5d806a02">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_c074a9c7-7798-44a9-a1c7-8c5c45c84ebe">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_ab848931-e445-4011-a29a-cc048f47cd75">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_2cf97ab1-cce5-4ba0-9261-4348578fcd5b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_51568800-c610-4a6e-ac05-6ed593bc1206">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_09516847-c17d-4bbf-a185-7c447566fb51">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_712d4cbc-34e6-4fab-bda2-c15c1e96487e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      id="F_41b81e42-9f8e-4056-ab41-dfa1aa38cc11">&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;157,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_ef4bed15-51d3-4925-a77a-6a77c2968b24"
      decimals="-3"
      id="F_40597a5d-6dee-4418-b2cf-50eebc2d0a04"
      unitRef="U_USD">157000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
