<?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_6a6b48a1-14a7-47be-9754-baa646cc52c4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_5b8e0847-3c1b-4eae-b523-8e1f00540a7f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_7b4a4c94-825f-4dda-9426-76f353981b0e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_205d376e-b8a1-4784-81a0-04bdc7e11958">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_9b9359c1-1497-47ce-9c94-f1424c9fc3ad">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_280e3e7a-a4ee-4be4-9953-b6c2f802927a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_5512fd96-1816-4f33-925a-5fe9f989d2a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_b27fe565-f651-4603-955b-79038e35aaf4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_a967f480-5df2-4f59-9bc5-742eacab0407">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_a43b0411-84c1-401d-834e-2d0be7f79172">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      id="F_ea69890b-e7ad-48d6-874d-57b546ec4ab0">&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;2,348,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_6a6b48a1-14a7-47be-9754-baa646cc52c4"
      decimals="-3"
      id="F_7650d8ce-4833-4549-a495-93e6f41b0684"
      unitRef="U_USD">2348000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
