<?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_68ca381e-6cef-4f06-b1e0-a8e82cec739b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_d3681f80-53df-4353-9c37-a0a536540571">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_70271c4e-1e0f-4479-be56-c46be285361b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_4f30983d-34ea-4862-9078-37cdbb18f039">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_d728d342-524a-4f46-b978-0349f142ee19">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_dd26cb2c-3df3-4171-af5b-8a7925f28e69">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_2319fcd2-b4a3-4515-a7cf-72a02554a1d3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_2989220a-26b3-4ea9-b8a0-a9b789666c27">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_456064aa-60b3-4f7d-a554-acaa75cb7cd9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_70fc5ac9-c003-41f4-ac6f-2159ae0a10a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      id="F_5b62d0ed-b0ea-4051-b6af-b45be6494d93">&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,927,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_68ca381e-6cef-4f06-b1e0-a8e82cec739b"
      decimals="-3"
      id="F_376351c6-6a15-4244-8190-9e295cf9d888"
      unitRef="U_USD">4927000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
