<?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_f89f67e7-b2a3-4ed7-871d-f45535a9286c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_d607bd93-ea51-47e6-807a-a9b3a5d253eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_733ab354-d882-45cc-bfcb-1474358eeee6">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_6ec0f087-eb22-468a-860c-afaa76575878">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_371e11e5-5d94-4ffd-b7cf-b8ba560e599f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_0e35ba08-4eff-4424-b8c8-f4f9c617f863">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_dde7241b-49a1-4383-8e17-9ff365b5ecef">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_0e6a61cf-6d5c-4acf-84f1-277a92d6aacc">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_2e5fe053-3717-4500-b225-044bda339aa8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_9823e9fd-7b2c-4fee-974e-76f9b9d29183">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      id="F_33028829-b27b-4f52-af47-19231e265e9e">&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;6,417,500&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_f89f67e7-b2a3-4ed7-871d-f45535a9286c"
      decimals="0"
      id="F_09823732-0120-4464-a6d7-47876ce42644"
      unitRef="U_USD">6417500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
