<?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_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_c782f559-233a-45dd-addc-6ff8f2244782">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_03a0ca0d-bf2a-4d65-90e4-b50cce86d824">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_0c4d3822-e9e3-402e-8890-ad3af852fe2d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_8cc68503-deb5-4d97-829f-acaee5689ca7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_4e881a9d-a081-40ed-a896-236fa7cada14">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_98168a6d-e593-4b07-bd03-78adcfa70410">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_87fba168-68f8-48f5-97b6-3b21ede53169">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_503e2112-307d-47ff-8b92-221b9300f9cf">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_69602473-cead-41ba-9d4d-06522a68d381">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      id="F_ccd8c963-68a8-48d0-aec0-29dae0a36ee2">&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;17,055,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_1c8e8058-1fbb-42b3-a2fc-3bd3d555f80f"
      decimals="-3"
      id="F_914b3a35-a47e-4cf8-b838-942be4858add"
      unitRef="U_USD">17055000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
