<?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_877d6237-a307-4685-8674-df788bb8c047">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_348a594e-eebd-4ae3-8fc1-a4c54dcbb533">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_15d73ef2-8941-4d85-bbcb-fda321eb4b1e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_e4db6fb8-d55f-4e17-a919-d79ce2a0f31d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_f1ea7765-4cc1-44fd-942e-91bcc81f7a24">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_9eafa20e-b76c-463a-a81f-60c37c626579">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_9d15122c-9984-4bc4-ad0d-dda1c21c3bd8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_1df52c7d-dbc6-4474-b4f4-ea8d1aa8fddc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_5d1ab8b4-2e01-4e5d-9c0f-b469db37be3e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_056ff43b-cad7-42c5-bacc-755e770a82cd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_877d6237-a307-4685-8674-df788bb8c047"
      id="F_713aac7a-f022-4ebf-8ce5-7ae74526ca7f">&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;5,671,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_877d6237-a307-4685-8674-df788bb8c047"
      decimals="0"
      id="F_09950ed7-b81e-4022-8a22-d48c768f19d1"
      unitRef="U_USD">5671000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
