<?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_288197db-08da-4b29-a0b9-ab0ce6d53742">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_174872c8-3551-47c6-a13d-4c2c4364b7b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_10cab888-4173-4c81-9885-c1d1f3c6456a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_275a48b5-3fc7-4565-8dd8-fd15427f1fc3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_15575db6-9fd1-4d93-8a00-3e1d27d1ade2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_139e8e6c-1abe-4631-8808-5d6b9547a424">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_72c8067f-273e-40cb-95a1-4510ac90c427">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_0afd7fa3-68ca-4e0e-a158-840a1713538f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_2ce36c9f-5fc8-48e9-a62e-6d5acbcfe9db">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_abf33f33-62fe-455a-97bb-8131730af97f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_288197db-08da-4b29-a0b9-ab0ce6d53742"
      id="F_2fbd4572-69ac-4996-976a-74dfee9303f3">&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;6,940,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_288197db-08da-4b29-a0b9-ab0ce6d53742"
      decimals="-3"
      id="F_be77b3fe-9df5-4b53-a14b-ae4339f2c6c9"
      unitRef="U_USD">6940000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
