<?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_19eb6cac-10a0-4b44-9bb0-233075e1983f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_0e4e78f6-bf24-4ef0-b40f-07390962e9e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_26ff5eaa-061d-4edc-a64f-ea37a7bfb04c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_b613fffb-1711-4e46-9cd1-9f468426496a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_6670c1d8-d348-461c-97d2-2b3e01f0ad06">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_59de558e-2797-4471-82b1-9b7d18f1061d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_d4d87949-b8d8-43f9-8dec-8e07a548675b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_970e1b3f-9b59-4484-9e42-7c36ce3a3b1b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_b523128a-b753-4c42-a46d-f1a94bf35ba8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_6c3e0080-13eb-4f3c-8fe9-995900a6a7cd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      id="F_efcbc3a5-f279-43a4-9389-bd0123592ea2">&lt;p style="font-size:10pt;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;10,690,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_19eb6cac-10a0-4b44-9bb0-233075e1983f"
      decimals="-3"
      id="F_7173a991-78da-4eb2-8515-a596478af56d"
      unitRef="U_USD">10690000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
