<?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_c1070f8e-8a36-4e44-ade6-736ba7b492c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_b63b593f-561f-4cb5-9ef2-1b909a54f4c8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_f633b695-f18e-433e-a784-40e30cb14c46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_19d45094-ee5e-4dcf-a3ac-228329c82c0b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_74775b59-718e-4446-b459-c46ab730bbf1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_3f4287cd-9b9f-41f8-989c-33d5a90b416e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_b33f6ff6-d431-4e64-9511-60164e3b9a3d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_b324a8ab-a255-460b-9756-9b294b5bf0df">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_106b9a3e-87c0-4cc9-bb58-5b6a0e90fc70">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_3096b382-d084-4043-997c-03f929b885a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      id="F_5f5d7511-cb56-4825-abf6-7e77c7a4e3f8">&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;378,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_c1070f8e-8a36-4e44-ade6-736ba7b492c9"
      decimals="-3"
      id="F_fc61dfdb-c102-49e2-823f-739c18b7be5a"
      unitRef="U_USD">378000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
