<?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_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8">
        <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:SubmissnTp
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_716349d2-244a-4f10-8290-825fb1dc8902">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_966ffea1-d75f-4d48-88c0-4c7c7bd2b8fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_5a97b7e0-31ac-4de9-8c5c-d682a7718440">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_70c8fa0d-0f09-45fe-acfd-b90d9da7d12b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_3e2b2c7b-9164-4e1d-bece-ba537bee04fa">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_0b7493a8-4d84-4a10-94fa-08be2be48c98">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_f75d2523-cf78-49a6-af18-334474993f46">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_1a7cf60f-2ef2-4cc6-8de7-3e9879fe48c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_c6a3a619-472c-4f2c-a1c0-e889ce8bef3e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      id="F_a3e016e3-9642-4f6e-836d-4543017f46f7">&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,228,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_7c1df8bd-c2a4-4fde-a2f4-9d73794b85b8"
      decimals="0"
      id="F_72f18c8c-06ad-4b55-a7ad-48fc25480761"
      unitRef="U_USD">2228000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
