<?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_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18">
        <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:RegnFileNb
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_c127a8fa-286f-4141-a486-4ff8e7109d9d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_c38563f7-d440-4c67-bdca-fcb8d28ba012">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_a9bb4347-a654-43b4-8ee0-f910ba9fe3ad">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_2424b489-0689-4c1e-8e0a-bafd94f22934">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_960ce62c-e0ca-4d0e-b32e-0766c5c4b516">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_1a1e4aa7-0896-486f-a597-dba09f5f33f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_2d049570-2a02-4bad-b6ea-45d38ea695c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_a1dce32e-3106-4f5b-8bd8-779216c4539d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_dc47572f-5c28-4b33-80f3-d1c00a094035">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      id="F_a7df9bb6-8e97-4b2c-842a-7a39babe5477">&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;40,892,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_9c2ff332-c2fb-4dd2-9ffe-c343138a2f18"
      decimals="0"
      id="F_b90abf47-d18c-4579-81a0-40513b0501db"
      unitRef="U_USD">40892000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
