<?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_2e986db9-837f-4d42-96d7-c0e6f2f90658">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_3c8f6a40-1dc2-467d-be92-b249fc54bbd6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_a9c2fcc2-8978-4b90-9d0a-a98a5c91b29e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_aabcd67a-994c-4169-a13f-f69737b0d1af">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_e2ab09ef-149b-4e09-9bbf-1172f1f5a6fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_89c0a880-af93-4197-92f0-12b81c1e2b19">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_ae169a4e-14a6-457c-ae62-8814f6723de1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_1ea61c30-b757-4d48-956f-fdd1f7c529ed">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_42a873c0-ad73-43b5-bccc-27c863731bf0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_164e548c-226c-4b31-b885-8282dd436036">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      id="F_2c027720-812e-4d4c-879d-dbcb8cdb76bb">&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,581,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_2e986db9-837f-4d42-96d7-c0e6f2f90658"
      decimals="-3"
      id="F_217982fc-b883-48e4-a87e-7f7b8e0812cd"
      unitRef="U_USD">1581000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
