<?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_c09192bf-f562-4ab6-ac62-c7309afe0821">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_5d73da33-c89c-43d3-b72e-bb3346fdcfed">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_a22fc9f8-aa2b-4fb2-a424-afced936b4e4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_bd0ec8a9-a66f-4ac9-ac84-b0fd6cb38494">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_7002dbbe-be05-41a3-9cd4-28e9bb393ee6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_8fcafc06-99f9-4858-889f-b9ed911df825">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_38014bd9-76c9-468d-b32e-de1025c957a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_5698a004-0cb3-4cc8-abca-0771d8314738">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_6047a26e-de5a-4d5f-83ed-df2722bec794">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_5039f895-2880-44a8-8f09-e7dd2b680a33">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c09192bf-f562-4ab6-ac62-c7309afe0821"
      id="F_e761e5b6-4b2b-4416-a4e8-164408cef4d4">&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;2,500,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_c09192bf-f562-4ab6-ac62-c7309afe0821"
      decimals="-3"
      id="F_b90d4813-80c3-499b-8cc6-8cc37f1c389d"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
