<?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_119f1c29-7e76-49db-b2eb-121760482ce2">
        <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>
    <ffd:FormTp
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_f5a89452-3ba6-4bf3-a18c-95ce072f617d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_79765670-113b-4bfd-9102-642aa0acf267">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_d3da8b3d-3625-4034-a465-21e0b2448388">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_f0324772-4e66-48cd-9178-49b21d1f0591">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_722573c6-0776-4e30-98b8-76943fab608b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_dd12c429-108e-4b9b-8530-f9bf20167aa3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_b6ebd9f2-c734-4df1-a895-0593c11c73a4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_a4d08eb8-5751-4ea9-86e6-309d4bb6d71e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_3ff9add4-9b1a-456f-909d-20dac8683b1d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_119f1c29-7e76-49db-b2eb-121760482ce2"
      id="F_e12e19bc-89d0-4bbe-b997-af6a66d15612">&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;2,314,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_119f1c29-7e76-49db-b2eb-121760482ce2"
      decimals="0"
      id="F_1db5a9b6-1e76-461e-bd70-0028ba2265de"
      unitRef="U_USD">2314000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
