<?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_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_efc55c0c-84c9-4813-a7d4-2bc91fedd7b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_678d93a6-0e5a-46a9-8462-2e6fa7743529">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_78fcaa46-304b-4c6c-8edc-ceaf7c8ec7fd">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_1c49f07f-15ce-4007-bea9-e8fda6563798">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_30201835-730b-48e5-8067-33b757ce13a9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_81673b43-00f0-4f87-8a43-905eee172a2d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_a452f7ad-d598-4089-90fb-4ccfeb69f795">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_98fc3807-52fc-4196-8b91-49373c7829c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_8f631828-7b24-4864-a739-41f53f1cee19">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      id="F_bd528751-e582-49ed-8acd-b3a8752137ca">&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,898,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_4c0623c6-720e-4b03-aed3-bbdb1dedf3ce"
      decimals="-3"
      id="F_847dcc7b-41e6-4c54-942e-18a870a6f437"
      unitRef="U_USD">1898000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
