<?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_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_f986cc9c-0410-40e3-bd4b-15e698a1be99">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_dcbd2c43-9cdf-40d0-ac37-ca4c519f53c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_fbc8dc79-d7d9-4832-897f-05493ded931a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_66b07b3d-0592-4ec1-8716-1de20f5b4c79">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_83e17fc4-6444-46a6-a3e0-549aa94cc986">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_660d6e7b-d907-4c94-b771-bc4c5643b0e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_f8c04710-1ac8-4572-9ff3-0a42ddc42291">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_46e8acc6-5ae5-465b-bbb5-b30df9d5ee49">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_cf6f9ad7-6929-4c94-8e3a-ccc20cb6d9e2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      id="F_361837c8-ae06-4754-b3e7-645c119eaadc">&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;13,320,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_cbba87cc-a2dd-4898-b1f8-18f8b48ef61f"
      decimals="0"
      id="F_355bb1cc-1aee-4d5d-94ad-cdb6e5eff4bf"
      unitRef="U_USD">13320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
