<?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_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_487b096a-044a-4b10-92b8-bc419a71049d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_67be75e1-7bd1-4145-9d5b-4567363a884c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_bd82cf58-5b60-4a60-956c-4ce72e686be8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_0b296331-cda5-4991-ab83-e51b811a34a8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_96a8cb59-4fdc-4b45-ad4f-cd8788884068">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_1acbea48-af7d-460d-a481-854345a32831">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_0e3c4be8-a3bc-4f55-a392-801061497985">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_36092cb3-ac7d-472e-943c-934a592e1b54">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_d4004cf0-b18b-4e1a-91ac-6c06ccfc070d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      id="F_fcc50e97-7612-458d-a2a2-18db0647386e">&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_894c0e88-ded3-4fc8-b6cc-49ac6a77fc5f"
      decimals="0"
      id="F_1d43d70c-0364-47c1-9d08-ff32e583a301"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
