<?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_86e6b9b3-28fb-46c6-8a96-586bd7070b0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_5a239470-0d6a-4969-8bbe-539fdfa9f2ea">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_5b57b48e-15cf-497b-8684-a8c0f68201be">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_ed16b67e-8e9e-45a5-8fd9-b60497454744">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_ac818d79-bfc9-45b8-96c2-9a8e642d4a72">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_872ba811-81dd-4056-b676-6f39dbf30d8a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_e750974a-bfb3-4208-abab-270267e8104b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_7f77967e-aed3-4967-a0bc-5ba031e452c1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_c494490a-d770-4544-805b-e4b9dd209b81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_c8068db1-9d9e-4084-a228-c1aa43b152f5">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      id="F_2306c8aa-feaf-4782-b7b0-3114da9ba614">&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,881,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_86e6b9b3-28fb-46c6-8a96-586bd7070b0b"
      decimals="-3"
      id="F_38cdf7c9-d68d-4847-afb8-8a1bd347758a"
      unitRef="U_USD">1881000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
