<?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_a3b612c4-7f44-493a-a6ea-a4e3de8c3034">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_82e16101-b526-4a71-b215-4dd76ff0e02f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_a557ffae-84ec-4980-9ab4-c8dfaef8dacf">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_ea677fec-2144-4c8e-9166-45aa394876d3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_6bc85b64-2c2a-4135-ae87-afc8bc41d0dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_578e5e09-8688-4459-be45-871745a3af0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_38b49c73-eb80-4da6-9c47-07f63526e9ea">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_ab8d63b8-d88a-491f-b9af-23a1cbd493ed">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_a39bb48a-0b43-42d3-8943-307983fc30b6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_095ab95d-232c-47bd-a1f0-e7ee0e04d69c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      id="F_1ee455e2-35c1-4bfa-9317-1b85d13bf92d">&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;2,303,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_a3b612c4-7f44-493a-a6ea-a4e3de8c3034"
      decimals="-3"
      id="F_691216aa-0f29-46bf-bdea-1888027b032b"
      unitRef="U_USD">2303000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
