<?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_06269d15-9155-40f8-92ed-12dcd8c1e057">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_60754374-bcba-439c-8c15-fd2847ebc16e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_070924e3-58c6-4a74-bda7-5d0a7f722d38">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_63722ae9-81a1-4c5b-b649-7cc454f2948c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_23adc5c6-1792-4e62-a632-4e23dce37743">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_f2aa2e15-ef6a-4525-9fdc-67e8d13f53d4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_168e3552-29ec-457e-b87d-ee2b6cdd95f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_571636f2-9eed-4a6b-8533-68ed447c40e5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_493e9b2d-cc41-44f2-ae02-97e2a124e272">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_79c81be9-c598-4bd0-969c-9bc571c95a99">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_06269d15-9155-40f8-92ed-12dcd8c1e057"
      id="F_1a6d35a6-0094-4460-b817-534306618a97">&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;16,466,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_06269d15-9155-40f8-92ed-12dcd8c1e057"
      decimals="0"
      id="F_00c041b8-4c9f-4567-9b4c-fd6681595171"
      unitRef="U_USD">16466000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
