<?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_4ca1ac22-cdec-40ac-b7a4-36b56585d50f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_800adf1c-ac02-4896-82b4-88416eb07f5f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_668257b0-897a-4819-a15a-21ef590c259e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_9ab30ec9-0eaa-42c8-b730-b500cc52425e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_744971d2-4bcf-4c50-95b2-d127a794f937">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_7df68305-0d70-4b89-91b3-14deeed6e6c0">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_053e8a2a-954a-4366-be3c-88e864585e11">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_1c7c7b14-4fda-4cdb-a467-9bd6a94a5fed">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_b1aee051-84ff-4a45-96a6-ed170378a39d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_65c118cf-e546-4c00-a4b8-c7de6f67d260">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      id="F_cc742643-bea2-4d39-91c4-385255adb46c">&lt;p style="font-size:10pt;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;4,497,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_4ca1ac22-cdec-40ac-b7a4-36b56585d50f"
      decimals="-3"
      id="F_2056891c-5ac6-4f01-93e4-7bd39d74588c"
      unitRef="U_USD">4497000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
