<?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_0d003d24-9225-44dc-b026-cfed11fd9768">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_964715e9-0c21-4e8b-8382-ef3ce5b76e4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_d04f7480-9394-4f10-8e42-49dd70dd8134">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_5d85018d-080b-496f-baae-f85021c65194">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_0daa1cc3-5d4c-4961-9ed3-2e74035a3eee">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_949fd162-9716-4a0e-9bc8-5f5f601f3a01">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_aadb060a-54a4-4124-9b12-e8a8b0d815f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_e0f6cb2c-29ad-483a-8d5d-6f6484a61f67">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_7e3c213d-f2fc-4a8d-a7b8-17c3e8450a4b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_c2e56bdd-da2e-4fa3-85e9-0c9aa14c1f03">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0d003d24-9225-44dc-b026-cfed11fd9768"
      id="F_834c8f9c-fcc6-482b-a213-89ee29ae8fef">&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;3,259,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_0d003d24-9225-44dc-b026-cfed11fd9768"
      decimals="-3"
      id="F_38ec453a-2107-4d26-9301-9c1a7c42764d"
      unitRef="U_USD">3259000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
