<?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_0f40463b-ab8f-4582-8984-c82a5594ee20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_ca7c9b68-ee56-4a55-b1ef-86121b950702">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_92a7c1e5-3323-4df9-b71d-4cc472e81465">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_b82afa8b-2ecb-4124-a481-b33083036aa4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_51e97453-d24f-40b1-a4a6-57d7f566e9cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_e83cdf78-c4e6-4e95-bbfb-510406c60305">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_363fb25c-9cb1-483e-8c1a-582a6af7d0d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_17fda13e-15b4-4c8d-9a82-b2fe0ed99d09">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_c4593990-0c73-4150-b229-47bb35a56008">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_4d9c5617-9bbf-4a63-bf72-96424f88c2d9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0f40463b-ab8f-4582-8984-c82a5594ee20"
      id="F_f31d687f-9dcd-4b13-914a-6999a6198757">&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,305,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_0f40463b-ab8f-4582-8984-c82a5594ee20"
      decimals="-3"
      id="F_d290040a-ed18-47ef-a41c-444e949af5a3"
      unitRef="U_USD">4305000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
