<?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_c272f8e9-ae7b-478b-a8d4-33613dc52f31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_2e3b3144-8eed-45bf-b076-f51ec8234e25">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_6591f222-084d-4bfb-925a-3f51f6063e1e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_64354a3e-6391-4134-bced-928b72c48701">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_22e27764-2804-47b1-84a0-64051aa7cadc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_d2a72b1e-4a76-41ec-9052-026558bb19d1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_1930e46a-2834-4a29-8d1e-93619ece68be">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_0cde71bd-10e6-4ba9-8c57-5069f8c42a21">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_2b484797-4ba0-46c3-860c-016c37c081f8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_ba998c05-4de7-44e1-8f97-65c928058d22">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      id="F_d64008f3-be20-427d-b9c5-77680854f74c">&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;4,444,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_c272f8e9-ae7b-478b-a8d4-33613dc52f31"
      decimals="-3"
      id="F_7d8b258d-9f4b-46c7-bf86-cb0917251a33"
      unitRef="U_USD">4444000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
