<?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_78e0ab4b-b1cd-46cf-b380-5357523bd7aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_f114ae0e-625a-4e7f-bdde-5a2838d2d03c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_7421ff23-e9e4-45bc-bfcb-c094764ef466">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_263172a2-5975-4d71-b2c5-c0a963ef8458">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_35c06f71-7a57-4ce8-abb1-9bca51de48f2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_7b3fb1ad-57c1-4371-88bd-92a387792816">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_27b9c8e8-5afd-4063-bab6-8881fcfd68a3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_14b52746-d8e1-4c44-8a6c-674812a9e8c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_d6de1fc0-3dac-4bc8-9376-5380eff6b08a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_8ea9f06e-8cca-4c1b-bdc0-8e9ad930e96a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      id="F_048a3eec-176b-447c-8dd1-b0091b5e8021">&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,825,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_78e0ab4b-b1cd-46cf-b380-5357523bd7aa"
      decimals="-3"
      id="F_91bdbc36-96b6-4399-8d69-896f9ea6ae54"
      unitRef="U_USD">1825000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
