<?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_1795c6a5-53fc-4b4e-af88-d6ab3908ff61">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_62a20c8c-1f96-4968-92dd-9fe66b312e91">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_d692c463-32d3-44dd-8918-bf53b72b8f38">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_676464d4-25e3-437b-804a-e4d165903ac2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_ee734f44-232a-4287-a871-ecab94b8250a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_fd15bb84-8f8a-4abc-824e-85fe554eb4c8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_033f0a0e-21b8-41eb-ac9d-5556ae6309a3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_fefe1f18-7c5a-4c63-a805-2fd406395f2f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_2f0d5872-6656-4c75-9119-699a403f5941">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_87ebed05-746d-4654-8330-5eb6541c6610">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      id="F_91ec2e83-27ad-46ad-82be-900c6689bcc4">&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;5,558,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_1795c6a5-53fc-4b4e-af88-d6ab3908ff61"
      decimals="-3"
      id="F_568a9c81-f162-4b1d-af88-d7bc8e42a39d"
      unitRef="U_USD">5558000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
