<?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_12bb5a32-6c58-4d8d-bde4-471a37038e45">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_3cafbf5b-f644-4e4d-a60e-93013583fc46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_ef0ef255-a1cb-402a-bb8a-9fb4d3749e2f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_d180002e-7433-46a4-a3fa-1939ec13e3bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_e516ba33-0dfc-4254-94ca-f845ec3d7746">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_9dadd3e4-3eff-48e2-81da-3fea3fd86bdc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_7166ea5b-9123-44a4-9301-9c8cc589ff80">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_6476a644-592c-441a-b001-ba7333628904">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_57b8011a-7912-4fd8-b0c2-f6aac4fb5ae1">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_e232cc14-f1f2-44f8-8bc5-690ace352cbe">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      id="F_afc9b07d-51a1-45ff-855f-bf84881997de">&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;500,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_12bb5a32-6c58-4d8d-bde4-471a37038e45"
      decimals="0"
      id="F_fbc66dde-161f-40bc-8e3f-92a1674ac9e8"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
