<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_0a44a8a7-5d06-432e-8e89-add40b1d2404">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_d92a386d-2252-4cbe-9c29-100fff4d455e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_1199fef5-8fe9-4578-99b2-15f7c89a6cd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_a92c8934-357c-4ca6-a334-706753bb3645">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_f9aec978-3dc5-4552-ba3a-a49bdabbf84e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_33c49ccb-1594-462b-8118-de27a736cc03">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_2d02f8ed-6f58-4c29-a420-cf4556c1052c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_fb5ee18c-d511-47d1-887a-7612b86a48e1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_9b0b66b2-e130-4b0c-925b-7698c564ec3a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      id="F_41897b93-1902-42b1-9d5c-0bdfae9cdc3b">&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;19,055,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_e9d6a062-ad81-4fe1-9544-c9ecfd2fbe5e"
      decimals="0"
      id="F_0cd0adf9-8137-407b-b42d-30f52081f886"
      unitRef="U_USD">19055000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
