<?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_430d9ea3-d02d-4d61-9262-21bcc8266dd9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_9c227bcc-87e8-4aca-94c5-527c977f8067">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_d853c918-977b-4a37-b0ee-89b7190bd6a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_14366f0b-6342-44b7-a544-f9076ced451f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_b575ca82-4eed-4729-9910-50115e1bab46">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_5b7121be-4786-4957-be9a-b960007cfaeb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_2d0749d2-a080-4f13-b0aa-17c92581480f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_5f74d8d3-2639-457c-a153-eab364f1961f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_bc3aa7b8-fc39-49cc-ade1-b55f43d58c4f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_078db976-5817-4529-b133-44e27c24fba0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      id="F_9fd1c5dd-98a6-4352-b0b4-eb51099eb373">&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;250,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_430d9ea3-d02d-4d61-9262-21bcc8266dd9"
      decimals="-3"
      id="F_82d60d84-aef2-4118-8052-59433e78fcb0"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
