<?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_597b1040-4c03-4f39-aaf7-ee0414ffc75e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_59549f3f-9b06-4b80-b628-4a7590356992">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_8dda535b-07c5-4f60-9db0-c20fcd8f9711">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_2d8b71f6-0b05-40ac-a0f6-6e4f4156a3da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_0623cbce-51ae-494c-b6d3-d5317247ca78">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_7937f447-3fde-43a7-8a32-e5d1eac1df5c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_1c8f6d11-73f1-43b7-a07b-ec16a173891b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_40b2e35e-dff0-42c0-a9cf-4cc2147be144">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_ef9e29b4-0e40-41f6-b96b-2b3522f62cf7">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_f2bbd7a8-c1fb-49a2-9f43-8ce206320349">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      id="F_2b5a9efb-a088-49be-bcb2-43c0ca73ef4c">&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;3,231,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_597b1040-4c03-4f39-aaf7-ee0414ffc75e"
      decimals="-3"
      id="F_6ffd80af-ffb8-40fc-96f4-fe06606049b9"
      unitRef="U_USD">3231000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
