<?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_9cff9971-03b4-47be-8608-79ecc62e9aba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_ed70dbcd-f13c-4b62-a7d2-ec6f1b2210b4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_39584750-bb5e-41bc-af67-ca0f107d1324">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_7634c3e0-1c5d-4d40-8b8e-de648ad667c3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_49f17477-43c2-44ed-b811-ed085eb9b220">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_8f8a3a51-02a1-40f1-9b7c-3d9234fb44af">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_1af245a0-36b1-4536-9cca-2f1e440db75c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_289d9a1f-00d6-4faf-8e27-4189a3f8ae9f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_f0a5b2af-9bf1-48c3-823d-734308a1b900">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_5e8be863-f1c1-443e-854a-e72b2d1689d6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9cff9971-03b4-47be-8608-79ecc62e9aba"
      id="F_d0ce32c9-7e39-429e-bd41-e2ab1e981781">&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,502,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_9cff9971-03b4-47be-8608-79ecc62e9aba"
      decimals="0"
      id="F_67ce62a2-4c64-4397-ac6d-1ee39628ac8f"
      unitRef="U_USD">2502000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
