<?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_e361196c-810f-47ee-a3c7-e3d44510bc3f">
        <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>
    <ffd:SubmissnTp
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_0561d75f-385c-43bc-a2c4-ddfb36cf1c4e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_b59638a2-6ff3-4917-8abe-8229fc8427f6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_61a796fe-31fa-4198-ad17-0f6c36a50185">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_39d869e9-96d1-4242-b247-4f842ebc9a80">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_da65646a-8a99-435c-ba7c-f694f924d537">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_de16be6b-a01c-4888-b2c0-3d5afdcba680">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_b64b78e0-a431-4987-868a-88f3da54cbd3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_d4b62458-4290-449f-bed7-5de505c90ce9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_73665adf-5897-4053-987d-0ba294abec1c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      id="F_3132932c-5ae9-4138-82f5-68f65aa27bf3">&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;250,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_e361196c-810f-47ee-a3c7-e3d44510bc3f"
      decimals="-3"
      id="F_1151faa5-d152-454f-b6da-24e5301475cc"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
