<?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_6bfb3147-c660-4539-978a-8506eb03e98f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_615f1509-ace6-4545-aca2-7442bd773235">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_1054e2ab-3be7-493e-9313-675044a12935">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_d96c56ab-167f-49a7-b1d2-322d3a807674">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_498cf8c0-96b6-4660-b40b-5c60ece34bd7">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_1b1be376-ef38-447d-9c15-40a5e494e055">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_8e06143b-6195-4653-ac7c-f004bbf6c5d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_095f8b96-1ac7-403c-ad3c-aa5ab1985845">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_b5e39dd1-9919-42f2-abb6-788a61a8fd04">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_3d506ea8-d483-4a60-8530-b09adc86045a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6bfb3147-c660-4539-978a-8506eb03e98f"
      id="F_a3a9959f-b149-4c05-8874-282f770c5f37">&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;1,500,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_6bfb3147-c660-4539-978a-8506eb03e98f"
      decimals="-3"
      id="F_a8dc8e13-446e-448f-8880-6857e447bbb9"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
