<?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_5d0116a1-06d3-4ce6-b711-56de30c810ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_dfb0eabf-04b9-460e-b7f3-cf7294f2f430">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_1f274977-4317-4957-aeaf-c93ca6abbeaa">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_96a064c1-29b6-4b00-8c26-7a471ca0ba93">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_2a639c32-c604-4049-9835-ac5086a99228">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_71bbf3a2-6c2b-43b5-9f9d-49027e789c01">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_6ccef468-4f5d-4e75-9909-862327acc5e2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_bdb55d2d-45ca-4cdc-bc3a-f6c8dbcc884b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_5515a402-2a1a-4612-89ef-cdca15aa177d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_e3ca398d-4f53-4f71-b611-870e56a10e76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      id="F_74a828db-6a67-4e6b-aacd-7214159907a9">&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;980,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_5d0116a1-06d3-4ce6-b711-56de30c810ba"
      decimals="0"
      id="F_207d4d87-60c8-4084-a1bd-843d8732ca6f"
      unitRef="U_USD">980000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
