<?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_07871149-dd1c-4475-ac4d-4e0cfa82ffbe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_9c3c619d-c539-4139-be11-1861eff9851e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_fd49f382-02bb-4c25-bec3-67318d734dfa">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_21c5b427-86b7-4b57-a4ed-4d5f762cc0a4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_427003d8-2501-4c65-a7e6-eb01fc828abf">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_173e6644-887b-494b-88b5-8156c3dfd501">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_91687ae3-9e24-4106-bd46-3edde91b466a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_a60d4d95-40d6-434e-bb4c-4c9bea63d819">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_caed0635-a348-41f0-a343-d9d86659d962">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_94cbc571-6c2e-46db-9466-90dc62fb43bf">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      id="F_2298f978-142a-4bd7-95c1-37f7ce4714e6">&lt;p style="font-size:10pt;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;1,575,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_07871149-dd1c-4475-ac4d-4e0cfa82ffbe"
      decimals="-3"
      id="F_8ed11f6e-7a97-4da0-af59-1b1337b725cf"
      unitRef="U_USD">1575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
