<?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_d5c9af3e-2eaa-4073-8920-2400a48c0919">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_b98aa26a-c0c6-4b23-b9d4-48256e83d0ff">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_00cea9ed-4fcb-4bf8-9def-f3c723a3af4a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_5205bfd2-5832-44ad-892a-bac6b9de845c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_b733f312-226e-48e5-80ae-98f47ff4f498">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_314117f1-4a5d-429e-b332-9bd61af1faea">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_6a4f78f3-7cd7-4133-9dea-3a666ab64277">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_ab9dc52b-c4ed-4d35-a5a9-65bcbc5585eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_45742f1f-1d59-4678-97ba-b329387d4b25">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_05298ff4-9b0d-4eef-808a-9a3b5a6de734">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      id="F_26e60f0e-b9fa-4a49-8715-e122ec5b7002">&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;6,355,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_d5c9af3e-2eaa-4073-8920-2400a48c0919"
      decimals="-3"
      id="F_a99fdde6-8051-4dd1-bbd2-60b9241bd40c"
      unitRef="U_USD">6355000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
