<?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_52fda9bc-2bc2-453c-9a0a-546abb9a6276">
        <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:FormTp
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_3f72aaca-3dff-4e21-a156-a52c6189bca7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_50ed28c0-58b3-475b-a0b7-feb62cd3ce9d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_d05280ab-d286-48cf-9f66-d186ba2580c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_45c1a3ef-602e-41ec-a1eb-5960878c0654">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_659288df-9ec6-4e88-8266-82018c6703b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_68944d07-d3e3-4dc6-80f6-b85a923e2f67">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_aa5510cc-78ec-4980-920c-c1170ae2e494">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_62111925-eedc-478e-96f9-15e753f8e8eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_a2159117-d932-4a15-9bc1-608f73b36fc3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      id="F_ad695fd3-3465-4f17-8ff0-e28ad7bf9740">&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;1,260,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_52fda9bc-2bc2-453c-9a0a-546abb9a6276"
      decimals="0"
      id="F_77cb1170-0b44-4a14-a716-b315a7cb2d1b"
      unitRef="U_USD">1260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
