<?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_ec0b347c-2347-4a43-bcec-869c08d4720e">
        <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:FormTp
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_c6a9dc4d-7e9a-4ebc-9837-7aa3058e0955">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_7ed5ab62-3274-45d8-8683-4be132e2b4e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_02a685b4-c7a8-433f-822b-c3e93a3a5f53">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_0a82fe44-5a8a-469a-813d-178fa50285ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_5c0292e2-ce9e-40a3-9869-0858f0abd3b9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_089f5693-3c1b-4ed4-81bd-375a1671de91">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_ffba431c-b72f-43cc-8874-973d06c5ab55">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_44b0b99f-48fc-4f67-808e-b08992a0d372">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_638e4373-bf87-4d14-9499-517fd78a84fe">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec0b347c-2347-4a43-bcec-869c08d4720e"
      id="F_eb363df6-0a52-4c76-98f0-7e18c103072b">&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;705,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_ec0b347c-2347-4a43-bcec-869c08d4720e"
      decimals="-3"
      id="F_59a4e457-7baf-4f1e-885c-ca3dbfcad3b5"
      unitRef="U_USD">705000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
