<?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_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_7339ea63-815f-4335-9b95-d99608162ba3">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_f7b7c446-d6ec-4fa7-819c-ff1a3d8564b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_c36bcda0-92d4-4067-a548-dbc56b1c6dfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_4b8c8449-2f11-46eb-b905-7cda542d957d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_236f5e16-5ef4-4ad2-aae3-7e79cf330f87">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_040739dc-6fce-4873-b777-f74aa7351896">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_4ffd5cec-4b6c-42a5-bb1e-22262155a10c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_f90dccd8-8903-4aa6-9742-deae37903e0d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_2929aa90-d05a-4ece-b1e2-bfa8c547fcf9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      id="F_7265e92b-8e18-416a-b1a9-b56929edf530">&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,852,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_5b6b2271-46cd-47d8-8de6-00a1f6c8ad08"
      decimals="0"
      id="F_0ce3d752-1fe7-4013-889d-8f8357a3bec4"
      unitRef="U_USD">1852000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
