<?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_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_8e761bd8-c142-4d13-857e-0a45a4076994">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_8e03dc7c-e1cd-464c-93c2-d554459c611f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_c32bf5bf-ccbf-48fb-b68d-844163b1d924">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_8eccb706-9a85-4c28-beca-5457ab68414c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_2709d44f-76b9-4039-9e7c-22b4cb084c77">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_48c0c44d-04ff-4b9a-84ae-f3d82bf44fe8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_75b9355b-92aa-4f5a-b818-e7c919653beb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_51e55d75-439f-4dc9-b2c2-02f08b9ad3de">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_897c74a9-6340-4900-8c7d-80fbc070ef3a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      id="F_fbc89164-9ce8-4195-b9fe-36a65a851955">&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;1,975,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_cf8690e3-3d61-426c-8aa3-0bcc8ff75a7b"
      decimals="-3"
      id="F_e6244a1e-5f14-4957-903c-cd68df7c61c8"
      unitRef="U_USD">1975000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
