<?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_27ffea33-1111-4c5f-8592-e5208140204a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_51dab34d-e6bb-4f8e-9a25-48ab6a913293">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_7e40c2a1-85eb-479a-82c3-847d1d7e7d2e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_cc608fa6-7fdb-4d7f-b362-bcaa379bfbe4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_7dcca3b1-f737-4f5c-818b-f1b4161b28d1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_c1dbf19b-4a23-4dda-806f-784f2312e464">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_0d7126ae-e0d9-499e-9339-762780dc53d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_9fe8a972-762d-446f-8417-80f4ca8e000c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_98075cef-897b-438c-a8bf-2711194128fa">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_5d441fc0-85e1-47a3-8584-0e0b2f8f890d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_27ffea33-1111-4c5f-8592-e5208140204a"
      id="F_dba3f642-4824-4ae5-a52b-08e7a7fb91b1">&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,300,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_27ffea33-1111-4c5f-8592-e5208140204a"
      decimals="-3"
      id="F_7b004bc9-545b-4309-8060-37f99a9c695d"
      unitRef="U_USD">2300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
