<?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_dd4363d0-e592-4fa2-8699-a2cc5e11073a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_f322646a-e499-4153-8a86-7a85f17a12d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_1fb6cf17-5413-4dac-8341-d93b8ee76657">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_4cf5db55-d7b8-4635-9f79-f5cdf0603d89">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_fbb8954e-f6c7-41a3-9e26-f987aa79e4c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_79119c97-508e-4593-9f2e-00d218cc8389">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_a6daab19-43f4-4769-9a41-db65e9774e40">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_47a66c4b-23be-4ef7-a440-b5564ab33273">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_b4606d94-566e-4c9e-a6f0-0a33bd4952c6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_26a95324-e7b6-4b86-b126-5ccc01181048">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      id="F_9941e7cf-ca01-4caa-b71d-88e3cf9f60fc">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,054,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_dd4363d0-e592-4fa2-8699-a2cc5e11073a"
      decimals="-3"
      id="F_c9d9f238-3d34-4ea8-9360-cdb1c3e24b0f"
      unitRef="U_USD">1054000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
