<?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_cd0790c3-732b-443d-b157-214dcdf24469">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_360f45e0-ab3d-4d37-8087-f2281ddba41b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_47f750e8-d10a-4bd5-b91b-db4f00329d43">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_7a2afdca-70c3-418a-b427-d47cc84dbb89">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_96af72a3-f296-4b27-ac47-29a00d803427">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_e24b5b51-f1b3-4533-8d92-d665902e5474">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_2befe91e-b13f-40c3-abb2-6834f713571b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_39536b72-6a61-4237-8627-16095b91c186">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_639e4941-2bdb-4451-91f8-c3931dbcb688">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_9f28f2a8-a927-45b3-8a38-47ff2c6252a3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_cd0790c3-732b-443d-b157-214dcdf24469"
      id="F_82eae002-835f-402a-9555-dd6df4dd7f15">&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;980,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_cd0790c3-732b-443d-b157-214dcdf24469"
      decimals="0"
      id="F_7f02a1a4-3725-4c6e-86ba-b238a0182b4e"
      unitRef="U_USD">980000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
