<?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_7e86f3a7-a17a-4ada-adb6-2ce7808a894d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_eed50089-dd22-43b3-a381-e34f4491a391">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_3fdafe3c-7b28-43a6-9f3f-7182fa5875a7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_febb39ac-0625-4f2b-8101-674a03b62785">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_57ba6fb6-b6e3-474f-b53a-5ceecb804fef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_b90418f2-6ddd-4d39-afae-8afd7227bb13">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_ffe12887-a8f7-46a0-bbcd-685577b8707d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_4edfab08-c7bd-44af-9d22-e5f0d33369d0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_72475134-1791-409a-8384-eb3e9ce4114c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_8c76e995-6a0d-4b64-a250-692386880150">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      id="F_8d8ce2ba-55e7-4c36-898c-e05cde118a1d">&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;23,232,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_7e86f3a7-a17a-4ada-adb6-2ce7808a894d"
      decimals="-3"
      id="F_00a09a7e-ac97-4901-9f50-a6e5b042b4a1"
      unitRef="U_USD">23232000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
