<?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_f596d676-df16-4cf5-a953-e02efc036ebd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_4d9cfee8-a303-4a59-a0df-b4bdaf139496">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_aef53c1d-7bda-42d3-8390-f3b4ed7b8cd5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_a9a94a12-9671-4808-8eee-e7c5831c5dbd">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_a44915e7-c286-414e-9eeb-a5ca4bf84c20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_c9d6c6ef-0fb8-4400-9a8e-0fadc57354f3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_c7faf13d-eb6f-4da2-8d85-f60a885506ba">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_276689e4-a4c8-4466-815e-c826fc5b915e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_bb8ead60-70af-4973-a45b-cc742e0dbdd5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_ca1098a9-ffcb-4cdd-bf89-c7cda6563c1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f596d676-df16-4cf5-a953-e02efc036ebd"
      id="F_b349ef34-f588-4b65-8ae3-39ef70a3e6bc">&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,732,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_f596d676-df16-4cf5-a953-e02efc036ebd"
      decimals="-3"
      id="F_cc58b4ac-e75f-4fe8-9d69-91a2cd3bb68b"
      unitRef="U_USD">4732000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
