<?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_1196c442-cca4-44dc-9453-7db8ebd236c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_2eb444c0-2819-430b-af5c-887214698a50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_f0e3eef6-fe99-486d-ac36-67e9f6c9c673">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_79b8321c-edc3-45cc-9fc2-34056467eba3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_bc1b4c8c-a8e4-422b-9ed7-cf160dc68134">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_0f6db9af-fb2a-4e75-b8a8-fd57e05f64c8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_662ce2d1-f46c-421f-b2b5-d0e659c47856">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_63160eab-bedf-41c0-9b59-1c03c0ca2ad8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_ac0cae74-b640-4409-8f34-c706538f639b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_565ff1be-a908-45d1-b108-1c26631893e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1196c442-cca4-44dc-9453-7db8ebd236c5"
      id="F_72b0fb45-cc79-4baf-8cab-e758e981950b">&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;250,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_1196c442-cca4-44dc-9453-7db8ebd236c5"
      decimals="-3"
      id="F_dd55d8e6-769b-4f2d-b19f-5799ac1f0821"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
