<?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_09b18522-8a2c-4297-ae43-9503f50d0151">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_8dab05b2-28bb-486a-8189-2f069b1c9868">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_66c38135-1d53-49b3-96c5-9fe2a1cca599">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_f8c58dad-9fe6-45c3-92c1-eba61d40f908">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_49723590-f3a8-4e09-95c2-34ed6d4d65da">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_1fd4c901-48c7-419a-b841-9ee3839b94e4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_eb7fba85-2de9-4d5f-a928-7fb76909d01f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_e94c26d8-5b81-4a69-a536-df309ffc6382">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_547b145e-27e0-43e8-8d0b-31509d775657">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_f3278f40-269c-4b66-aef0-3a88b8958022">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09b18522-8a2c-4297-ae43-9503f50d0151"
      id="F_e26b9240-d18f-4986-a047-7f8e4a0026e3">&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;500,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_09b18522-8a2c-4297-ae43-9503f50d0151"
      decimals="0"
      id="F_a6a8711d-b583-40cc-ad74-e5e7c9eb02d2"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
