<?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_e1c91c8e-b5d6-4de0-89ee-d126f7111726">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_5be497d3-5f45-4166-a66b-4bb8a1ad39a0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_b42d0d28-efd4-4cd2-915d-756c95a3d4a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_111a050c-3196-40d3-9727-01beee466973">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_bec15826-3b41-4957-b3b2-d1026e56b86e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_b564cf09-8659-4cf5-a4e3-3677115455a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_7f5b8993-456a-475f-ac84-f735f9971224">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_75c5b30c-d281-4b83-878d-982e19a13866">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_84b87db1-e60f-4ace-834e-1c5fbf062d5c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_70aeb3f3-a3ac-4175-b1e8-bd558e868ffc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      id="F_a8b952dd-225f-4fbf-9573-684bf0a5a7f4">&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 $&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;1,569,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_e1c91c8e-b5d6-4de0-89ee-d126f7111726"
      decimals="-3"
      id="F_83390f48-04ae-4151-bd96-4e08eeefb561"
      unitRef="U_USD">1569000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
