<?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_a370d974-c03b-4017-95be-a075aee068d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_a43c3455-615a-4b23-b019-67f91dc53f2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_357dd183-1ef4-4706-bca0-f0ddfcdcb8a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_c167415e-561c-429c-adde-c5b8052fc673">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_90ac30c4-48f3-45af-8fc4-196136f46008">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_272aa0f8-2475-4e7b-bb9b-f9ee821b777d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_e0d78146-ac75-46aa-9df6-d34b3a456898">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_0f1fc2bd-e9a4-44f7-a053-18d48b016cec">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_db81d512-8dc1-40da-bf04-238353a53bb8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_d81e5e89-cac5-4fb9-b1f6-c7a1289f9cd9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a370d974-c03b-4017-95be-a075aee068d6"
      id="F_38c6b1c3-6cfe-40c1-a1bb-38d3d11b3b6e">&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;208,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_a370d974-c03b-4017-95be-a075aee068d6"
      decimals="-3"
      id="F_11b4b823-90b7-47f7-85ec-2df064c7bea3"
      unitRef="U_USD">208000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
