<?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_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_c60b1e3e-1458-47a7-ac9b-42c3594d86b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_041d4a79-f874-4f27-81da-10c37d95a943">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_510a445d-0c51-439e-a6c1-22baef931db5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_62453d57-af43-4b53-b99b-e0c4db5192c0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_a43f6cf4-dc2c-4685-9e7a-556e5bdef18d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_7a78c42f-af28-4090-ad93-dd1bde64fabd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_19b4e794-73a9-4159-91c5-8ef9fd384bc4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_caa715f8-5b44-4478-b5eb-561b1b626f0b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_0c94f49a-389d-4d00-97eb-469a85665783">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      id="F_2c96e6a6-15d5-4eae-8d32-ddaea861babd">&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,187,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_cf0d6bfa-2ec9-4c9a-ac36-5bf291e941dc"
      decimals="-3"
      id="F_84ad91e8-68a2-4c61-b109-d0c2b3679b23"
      unitRef="U_USD">2187000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
