<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_f27acc73-cd05-4905-8a03-a626dd602b5f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_5c6c1561-f8c4-4805-937a-cbcd179a42d7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_208994de-0970-4821-9811-105e95003b19">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_717ab6c2-8301-474d-b66b-d1267cc33bee">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_6dfe5332-6a56-46d9-bb8a-ce6e5a7676f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_a9f49097-06fc-4dfd-ab0c-4cc381bffb45">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_0d67969e-1c9f-4a7a-9465-d9474118264f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_36b7316d-1653-47f0-95aa-469090a0af87">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_e09d3492-f57a-4075-9c62-7ac507554de6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_f2e92a9e-d05f-49ac-8b87-23a1d72109e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f27acc73-cd05-4905-8a03-a626dd602b5f"
      id="F_1d5a3d4c-3a87-4ef9-aae2-4d980b990f18">&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;280,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_f27acc73-cd05-4905-8a03-a626dd602b5f"
      decimals="-3"
      id="F_ba72e586-67ea-4e15-86f9-d278b907b095"
      unitRef="U_USD">280000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
