<?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_cdc1a895-3bbd-40aa-bad5-1db3f35d0325">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_ffa0dac2-d2f4-41c1-a52c-c502a716bb47">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_e3a9ad36-f76f-430e-9e41-95100ed0ddd7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_374a8ef3-d419-4813-ad78-bb2a3c0cef52">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_ef167f6a-99e8-46e6-a3e5-372024911b2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_c9287519-c607-4d34-892b-577b870f5215">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_2bb6fcfc-83f0-400e-91f0-c1a5f9b3c575">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_7991a12d-b38b-4af0-b490-7f32b79558e4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_385a2fdc-4b0a-42cc-aedb-fe47a364fe06">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_16865ec9-80c1-4843-885e-122b62336157">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      id="F_25170908-459b-4809-932a-afd200ed1298">&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;55,003,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_cdc1a895-3bbd-40aa-bad5-1db3f35d0325"
      decimals="-3"
      id="F_32b68a88-9dc8-4069-9d5e-dd61c5fbc824"
      unitRef="U_USD">55003000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
