<?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_762e0d8e-c039-45ff-abd7-8aa5c84e5709">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_06019f23-b8d0-497f-8f18-38bdf15124a4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_466e7def-6e4f-4289-8ca3-75724aca6f45">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_336f0531-4e22-4d67-9b50-9234f9c1ec7b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_50773fe6-1c4d-4288-9678-ee10c457dbf6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_e8869b4d-1e7c-4f45-bb3d-7f2fd454eeb2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_d7415719-ed7d-4963-85f3-17b5b50cbde3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_716362d4-5204-49b2-ba32-a216eb74bbf4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_8a7874d7-0976-4865-9764-656c3a99f489">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_db767340-8745-4599-83c8-c8a0e8ae5b60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      id="F_a85faa5f-5e7c-42ac-aeba-5b3eb6499be2">&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,587,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_762e0d8e-c039-45ff-abd7-8aa5c84e5709"
      decimals="0"
      id="F_5acfd542-eade-4f78-b3f0-8c7ec58a67c6"
      unitRef="U_USD">2587000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
