<?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_76b62ffd-27a0-4ebb-8aca-d3d473f605b0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_31fa337e-1e9d-4af8-86f3-feaff3d64e29">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_b4c78b50-8552-4e79-a9f3-aa2aedbfe1be">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_aa80f2e2-da8c-4c25-b841-ea295d87111e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_6c9fab09-28da-406e-a9b4-f7df6e32ad23">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_b0a37a84-e133-432a-ab61-adffb3dc0c14">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_c606e33d-3ba0-4824-b38e-941763a11f9f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_acf13d31-f095-4fe7-a53b-292a20d33792">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_1745d12a-79ed-4d25-a9be-06d2a60d203c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_d7b64c1b-fa74-41b0-a7e9-031de390bca6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      id="F_4e21ff7d-40b5-4ba0-9506-c8973f667a2b">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,605,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_76b62ffd-27a0-4ebb-8aca-d3d473f605b0"
      decimals="-3"
      id="F_d08053bd-666a-4014-b951-b2bf5a9b7746"
      unitRef="U_USD">4605000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
