<?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_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_de1705ee-5fc9-4061-b219-581abb1600c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_a0c6f6ce-700e-4f26-9252-f51ea8bffe1c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_52ef1939-bd28-46b9-a35e-b5616ec32544">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_0f60492b-318a-4b60-bd0a-0c51e156f585">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_a26a3c36-faaa-44ff-8379-af69bd8dd9b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_d6bbd217-0166-4bdf-bfb6-857511d9af20">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_bd5cbac6-77fc-4938-bbad-c47a3a982b4f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_e880d639-b742-450a-8171-70743197f37d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_a9e0914d-5c9c-476b-85aa-c6e9fa181ecf">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      id="F_eb723917-6bd2-48d2-83cd-295877f4923d">&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;2,991,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_0fcf26fc-ec8a-4ae8-ac80-17465411ef0c"
      decimals="0"
      id="F_4359127d-60eb-497f-95ae-5eb888cfdbcd"
      unitRef="U_USD">2991000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
