<?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_b76a0282-c0a7-4789-bcab-3ca0706b1f87">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_cd0b3872-c554-4610-a3f4-b0f499a1eb57">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_f8f0f53c-b267-4284-a568-05f339ddd9d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_b1a22591-4399-4b0d-adf0-07016c7c464e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_3b764733-55ff-49ba-815b-3698052f3d9f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_51d86fcc-c409-494a-874d-00b5238dc261">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_04c4c8e6-73e9-485e-ae36-4662ed40a169">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_da314358-42c7-4144-93b7-2fbbda287319">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_b73c1e5b-108b-43d8-afa5-4afb25a165ea">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_ddb801d1-ad6b-4961-9e16-5b06f22689af">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      id="F_964fd090-4fa1-442e-b7b2-b43a9064f137">&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;5,195,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_b76a0282-c0a7-4789-bcab-3ca0706b1f87"
      decimals="-3"
      id="F_9686407c-a553-4616-90b7-c7ee9cc88e9d"
      unitRef="U_USD">5195000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
