<?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_6ede22b1-48c6-4314-831a-266c919ddbea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_f68bb3ba-59bc-405a-84a2-9f231292124c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_8e87c945-2db6-4cc6-bfd7-6b21d040970d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_3877b42e-3c4e-4d51-a241-b401f2a71e90">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_72484d02-582d-4ee8-bf10-4f96bb133aae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_c1f46993-9d0e-465e-8b27-25f749ba0f30">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_cea7dea2-5c50-4af1-afb9-d06726903909">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_a8f02800-607a-4dbf-b561-63aeb10be10d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_06b6e545-ab98-4079-a2df-6b86f4a06e08">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_a6f6e1f6-602a-4a62-ab04-c6cb66f9ba45">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6ede22b1-48c6-4314-831a-266c919ddbea"
      id="F_9a3eb57c-d3a6-4897-9b95-907705b46b58">&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,252,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_6ede22b1-48c6-4314-831a-266c919ddbea"
      decimals="-3"
      id="F_6e925727-d626-4f0a-959a-700dddafe611"
      unitRef="U_USD">1252000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
