<?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_587bd8ff-be25-4fc7-a780-20b3f2c0ca40">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_b50d21ac-0199-4231-8829-8ae5ad15e04d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_3dfe06c9-7c52-455f-872e-1bf29217acf7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_98bade32-a4eb-42b6-ad9d-cba6aa8adec8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_af717ef0-d81b-4f2f-b7a4-60d0168c9272">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_6d70d1b2-0c2a-4332-a69c-14b96a42586f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_e4a2a55d-6028-49f1-909b-e713eb212df8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_a21ff48d-2b31-4d55-89cf-62af738b3762">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_00aacdc6-773a-4b88-86a4-9aa887a08303">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_86a2a328-331c-465e-bb16-a1be7445d14e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      id="F_3fe37738-5f20-43c0-9658-4bd7fa6f2687">&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;4,513,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_587bd8ff-be25-4fc7-a780-20b3f2c0ca40"
      decimals="0"
      id="F_cd154b12-5e49-4157-8a6e-bfce57fd808a"
      unitRef="U_USD">4513000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
