<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_72383c33-0f18-4fb8-b393-177342dbbbbd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_30246f0b-8f6d-4d66-8be6-fda58f2d35c6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_ada00859-081c-474f-9998-27aa0dd8fa1e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_1399fe16-7e58-4597-af61-adb612756dfd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_e53d7e6a-ea47-48f1-a726-68360d86090e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_6f419643-d49e-4990-af56-4855b2f530e5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_feb45d88-f92d-4a2a-9a68-1020ef1acea5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_0f84b69f-224e-4700-84c1-60ae842e15df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_0ec36db8-cd49-47d0-97ee-bab6322ae405">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_5279f1e6-b9ee-4d69-8422-cb9e51e8494b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_72383c33-0f18-4fb8-b393-177342dbbbbd"
      id="F_2753dfd9-17e7-4da5-9fd8-f8a33fccea97">&lt;p style="font-size:10pt;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;4,488,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_72383c33-0f18-4fb8-b393-177342dbbbbd"
      decimals="0"
      id="F_b87de3db-8aad-40de-a77a-8692cdeb2fed"
      unitRef="U_USD">4488000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
