<?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_5e506a1d-7d22-47f6-80dd-54fe6d670f00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_28b7bf1e-7ef7-4b26-919b-2a14abab8382">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_4fddf3e3-f61d-463e-9740-64052194870b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_fb0dadef-8696-4cc4-af5c-1b42171de573">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_c5fb8c44-02d9-46b0-a739-1fa0a510c63c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_35bd4124-7be8-4c39-84e0-0a922292f78e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_f26742f3-41da-4b77-9457-4b0ae69ebb63">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_3352856a-76eb-4231-8f0e-4d38e9015537">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_13dda506-bc0c-4c4e-ad6d-9abb78a039a1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_9d3dd021-d909-4525-8866-9c7a8095babc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      id="F_cbb9f1e1-1a6e-406e-a8cf-7ef744092665">&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;7,093,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_5e506a1d-7d22-47f6-80dd-54fe6d670f00"
      decimals="-3"
      id="F_d31f1b71-cfaf-41d1-a7f2-a17cdd4a8d64"
      unitRef="U_USD">7093000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
