<?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_85ee12a0-6e83-45e9-abde-4e8c6b70ca63">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_42a6f788-be94-45d8-86fc-ab4010ea1691">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_a26a7911-4ec4-4b82-a355-4fcfd2aac813">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_f2b56936-2b05-4cdd-873c-260658f66c57">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_2c08ff3b-58d3-46f4-a7dc-7c4cd6063c8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_0e2bfce9-c3a5-4d14-b8ae-60fa480de703">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_821e77ce-6863-481d-b75c-ac9feb3142fd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_99e2b320-bc44-484e-8cd7-a74919097c3c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_6caa245a-caf3-4e9d-a4a0-efd79340c876">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_2d2ed8a3-b342-4f31-8b12-4e02bd1d6aa1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      id="F_fefe07c2-10a4-4dc0-8e0d-8440651db05f">&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;32,127,410&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_85ee12a0-6e83-45e9-abde-4e8c6b70ca63"
      decimals="0"
      id="F_4b0fc001-0819-403d-b766-6ae2049175f0"
      unitRef="U_USD">32127410</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
