<?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_929d71bb-2e57-47bb-a948-144f50f10139">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_8bbc6cbb-144d-479d-b9d2-3bb68c591c27">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_ac1c6c45-511e-4568-ad11-04bbc16cd7d1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_e5ecc01c-4573-4e8e-9b2a-1fd89cdb6c03">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_f7c9f661-b2bb-4eef-9b4b-9694a0388c6d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_6612c428-c4a4-44f4-887a-520d0c8341d2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_7ca9651d-15dc-497a-8d66-94e21078832e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_6ba04051-9637-4de9-9baf-773cf84b325f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_4ad54476-8339-4d2a-bb1f-420cd1456f4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_57d99f0f-0d72-4b6f-9f22-8ae070f6ce44">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_929d71bb-2e57-47bb-a948-144f50f10139"
      id="F_a1a30bdf-511f-4aca-af1a-dcac8e1cd5fb">&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,056,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_929d71bb-2e57-47bb-a948-144f50f10139"
      decimals="-3"
      id="F_ad8f416c-8894-4820-8ed1-debafd8db30a"
      unitRef="U_USD">4056000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
