<?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_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_54950308-0d1a-4674-a862-d96a444c82f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_3abbfa20-fac4-4155-a6c7-9dd75c5dadc1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_55303125-f2f4-4570-891e-bd1783dfb5c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_1bca14b1-cc86-4c09-afd6-9c1eefbdf60e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_07b2a785-6007-41bd-b4f8-9dba55306b60">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_cd0985da-477a-4612-96e7-30820af00057">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_83c8e158-51e6-4864-949d-bc709ff03ed9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_a1590b7a-8427-4909-8b21-778281feaf33">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_16f2c8b7-ea7e-4603-b243-e1311410a76b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      id="F_45d66b70-a398-458c-a027-7e52ea2cad1b">&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;298,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_8a7e58c3-84e6-47ce-ad44-ac46d4eb9102"
      decimals="-3"
      id="F_275c738d-bc0a-41f0-bb03-c8788ad34e71"
      unitRef="U_USD">298000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
