<?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_a22a7471-eaa1-4b90-81be-fa13426fd284">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_47f277ec-56d7-4a43-84f3-a82c4420e10c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_f2a62062-50b9-44f9-be08-82097fe5390d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_6c654819-f658-47fc-abd9-1cfcd4dc742f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_d604e259-d758-4cda-a657-c48f9b92d2b2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_e90c8c86-346b-4a92-877d-a28e88257249">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_0d38ebe4-3d30-4e42-8a61-2af069dc299f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_c6e7b7f0-1667-4870-accd-c4d55ca780f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_16dadc48-9255-437e-8305-1454d58d0c47">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_3775542e-490a-4fff-9523-3633a07639e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a22a7471-eaa1-4b90-81be-fa13426fd284"
      id="F_a899229d-11c6-4ab8-b55e-cf4b87861f14">&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;821,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_a22a7471-eaa1-4b90-81be-fa13426fd284"
      decimals="-3"
      id="F_c6ba219a-231d-452a-85f5-e582a864a943"
      unitRef="U_USD">821000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
