<?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_d0b24a26-c586-4ea9-989d-68f3c7057572">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_2c95d7a2-f884-4987-895a-eff99a48c9f5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_2af345e3-3860-42b5-93b2-ba0b0dd1e4cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_22a32cbd-e57c-4ddd-a4e8-37e7c8e65254">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_e4fd4c9a-8cab-4558-b3b6-92b570be0c89">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_3a150c59-f9f0-4184-9350-749a330bde7b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_ba7c7785-f5ab-4eec-9d66-8fd27d3e33ff">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_20b1667c-15c6-4445-8f40-5beb74b8bcf7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_f284055e-88de-4c41-a736-faaf8fd9f429">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_e042f3b9-cf91-4e88-9fef-ca87e22c1165">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0b24a26-c586-4ea9-989d-68f3c7057572"
      id="F_7acdd157-94d7-435e-812d-ad2209b11d97">&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;1,583,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_d0b24a26-c586-4ea9-989d-68f3c7057572"
      decimals="-3"
      id="F_1b3c0b65-0106-4d7d-b66c-976eecb8f86f"
      unitRef="U_USD">1583000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
