<?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_845ddcb3-f7fd-4352-9bec-e23bb56170d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_3b2356ac-848f-4960-a0e6-f7faeb2b9b39">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_2be7f61e-bb9d-4d8f-a90b-f441558d4f34">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_bd308ca2-826c-40db-ab54-87551292f376">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_f2bfa2db-205d-4c73-9209-92bfc30b7354">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_14de24d2-cdf6-4992-ba9e-3fdbdc616483">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_d52307d6-8f1a-4cf7-955c-90a9de48d97d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_2481aaca-5fd5-4c78-8a3e-974559a67e3c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_066f1e12-ade6-4f9a-86d1-bdc5f1e41baf">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_817c625a-3851-452d-bdb7-fed2f76c30fc">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      id="F_9e071e3e-10a3-4a65-8f1e-8af9a049e52d">&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,558,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_845ddcb3-f7fd-4352-9bec-e23bb56170d0"
      decimals="-3"
      id="F_99a0c011-51d1-4851-9426-c9c1e2f218af"
      unitRef="U_USD">1558000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
