<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_5499afa6-057e-4181-877b-abc49fa2127b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_bbde1f5d-b542-40fb-ae47-c706b22fbf03">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_e056ff98-d2b1-4575-a425-81bade2c2b28">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_a408f4b7-c54f-48b3-936e-497974f023b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_bd16a0d7-925b-41fd-b7c7-3fabe42f16f9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_54eda2f0-afb5-4c5c-b546-6f36b93e9e1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_c41291b1-27b8-4562-98bf-bd18222427eb">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_6e5c7d65-b76c-4c12-b1fa-abc7386be19c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_830350bd-19bf-4a10-918e-09355fda6fc8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_61f3ad54-2634-437c-9c0b-89fc1950e5d4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5499afa6-057e-4181-877b-abc49fa2127b"
      id="F_ecf86695-2f09-4711-988c-e536f3d9e7fd">&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;285,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_5499afa6-057e-4181-877b-abc49fa2127b"
      decimals="-3"
      id="F_98c7942e-013c-42e8-b2d9-f98a514d07bb"
      unitRef="U_USD">285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
