<?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_a1f43e8b-56ad-4b6b-aa80-480316f62601">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_6b8c80e7-d333-46b6-a999-d7ab352906c9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_c095ad5e-b28a-4294-9ec7-3f78d12da18f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_11925eb7-1f88-42e1-9cc4-7d2cff33990b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_44806f28-15e2-4be0-a329-36a3eeaa9b9d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_af857fd1-5884-4db4-bcb4-89b1d8829a90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_c1d5b1f0-2166-4acb-9fc2-07333d81fb24">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_7d600005-7106-44d2-81a3-572e31d28933">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_94676069-bda5-4951-bc70-91d10529df41">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_3bdbf2f8-23dc-4200-a229-db2f82023409">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      id="F_d2feef3f-2264-4215-bd61-ea105d06ccd8">&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;380,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_a1f43e8b-56ad-4b6b-aa80-480316f62601"
      decimals="0"
      id="F_2e9d2b83-b701-4537-94eb-a4310d4f7be9"
      unitRef="U_USD">380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
