<?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_e6f0603d-eb12-495a-839c-210b8629d97b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_ddc25ed8-af51-4165-bb24-5277a9948c3c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_760f8c78-fd6e-4755-83b9-760703615c14">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_b8c8d895-f533-4ba3-890a-be6a1b8ce42b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_0ed662eb-db70-4a40-a9fb-9bf4e087710b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_468dea13-943b-40d4-bdc0-2cca9414b1dc">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_1ad115a8-1bcd-4dbc-8b1b-954937c88963">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_d0ed54e0-64db-4c24-8d99-6abc94a4f88f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_98c1219a-52af-41a5-b796-5c8c31771071">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_378eb31d-67d7-46f3-95e2-3ad28403cf9f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e6f0603d-eb12-495a-839c-210b8629d97b"
      id="F_ea1e082e-9e13-498b-a345-2515eb2b3581">&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;2,000,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_e6f0603d-eb12-495a-839c-210b8629d97b"
      decimals="-6"
      id="F_d1b95f1c-e121-4abe-b31f-a8b4282f65d2"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
