<?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_b417e6b0-3991-4af8-8d94-408d4538a278">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_08a49e3c-3e95-4052-8b8d-99867a56f283">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_6bb7bbbe-2e9b-4e2b-9980-a480120d55e2">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_71238f93-3cac-4a84-a53b-9f9dac5e3939">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_e3ae5fc0-7154-4611-bdcd-cf5dc556d060">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_b299841d-7032-4d54-a908-9d381e6edbc5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_f694bf66-9360-4e74-bfd5-85a2ffa28d4d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_82d1f7c0-a86a-4b84-86fe-060e982d1f1b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_bc30c6ed-5ffc-41f9-a11a-c281841c3ba3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_d6cb5d37-b7bd-4c27-a17a-ef294bbd8a84">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b417e6b0-3991-4af8-8d94-408d4538a278"
      id="F_7752a602-86c5-4d11-bad0-2942b72ca151">&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;730,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_b417e6b0-3991-4af8-8d94-408d4538a278"
      decimals="0"
      id="F_7a545d2e-5ecf-4c34-9e17-4387957b8e42"
      unitRef="U_USD">730000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
