<?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_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_61339d9a-9f38-4661-aa38-ee5d330a24a5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_1fc972de-b650-491d-80f0-58eb34ae95af">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_1643c75c-2cd1-4552-bc46-aaf7be6e59c6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_947b8b77-024d-4a75-91f3-f4540393dcd6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_4dc6b762-1f60-4957-93df-45ea303765d3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_7a66df90-da01-4c29-afb7-b53af2b0ffcc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_1e5e0034-f609-46ff-b44d-5ea0bf822184">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_781f788c-ca4c-440f-ab30-81e9bf48c0c8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_48b8ff9a-5cc0-4d0f-97e1-20f5005f2f33">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      id="F_e945ffb1-a5b0-4067-9f27-59baa337de9e">&lt;p style="tab-size:26.66px;font-size:12pt;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;658,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_59a9f839-ae6a-42a4-9ba5-4a17d1c73bab"
      decimals="-3"
      id="F_817e8b1c-42c4-4b10-b1f2-b03e683f4864"
      unitRef="U_USD">658000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
