<?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_a6a4e32a-0848-4c10-974a-3ed174e6118a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_d29580b1-193f-4c86-bcd8-790a03994be9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_f0536952-e6c7-4e33-bff0-4c7dca4046ce">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_f6a194c9-8fb8-45d2-92c8-fa79819fbd22">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_2d188996-e572-4605-9d5a-fb350b6e43d4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_23848fad-61e8-445c-974b-010a6de53639">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_b992f201-88fc-4c1d-b873-49971ae2e5e9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_2214bcef-0068-4c0e-b639-8a7b97a6fc28">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_a306dcea-3928-4ab1-b10f-0f61fa168283">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_1af1de92-42ba-4a10-8980-68fb416b97ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      id="F_9cf60713-adbf-4287-90e6-bc69ad4c1fd7">&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;318,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_a6a4e32a-0848-4c10-974a-3ed174e6118a"
      decimals="-3"
      id="F_3a1a61a3-9958-477c-97d6-eb7de12d45b4"
      unitRef="U_USD">318000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
