<?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_b4bd324a-1eee-414d-827f-1525f61c940f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_4cda21e7-c268-46ca-980d-2484eeecf2be">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_4db63301-b905-412c-b233-446eaf6e6a72">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_d6143118-a22f-47b7-a0b2-3fa4ceeb6a64">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_1d99780e-c444-4c9e-87f3-22d5fe80209d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_d1a2c2ea-dd31-47ec-909e-033b518dc48f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_6e8d581d-2583-471f-9545-3124657267d6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_5b52e161-e810-4b63-b43f-1d83974a2862">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_707c053c-1271-4655-993b-67b915953063">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_c38e83aa-b0c5-4fba-a521-dc9b200c8b74">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b4bd324a-1eee-414d-827f-1525f61c940f"
      id="F_ced5ac62-fe32-4b71-b839-20534f75ca1a">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;1,835,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_b4bd324a-1eee-414d-827f-1525f61c940f"
      decimals="-3"
      id="F_f9695e95-af6c-4ade-999b-180216e506bf"
      unitRef="U_USD">1835000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
