<?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_c761aa0e-cef0-436c-945d-4e0e49057bff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_d1eda704-ad29-475b-a249-2666dc047714">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_f6ba17c7-718e-400e-b017-47bfc99c0295">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_759bca3c-aa41-4b58-8967-fdd90b78b5bc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_ecb8bd35-6e48-4acd-973b-7cf73ab6975e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_dc827149-e44d-4032-8121-7f4687899afa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_de04d0fe-becf-4856-95ec-f81a694e259f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_db79ed15-60f1-4337-bee9-384523f7e322">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_c95d4d89-db54-4697-b9e6-5d01224c362f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_790c980f-c7b7-44aa-a618-ec24ce0c5735">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c761aa0e-cef0-436c-945d-4e0e49057bff"
      id="F_43d78db6-da1d-4da4-8682-ffc81d1cf0a5">&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;630,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_c761aa0e-cef0-436c-945d-4e0e49057bff"
      decimals="-3"
      id="F_39be73d3-3f4b-48fc-8212-738bffc2e96c"
      unitRef="U_USD">630000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
