<?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_25eae6f9-f0ef-472a-929a-f125f8b6cec4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_1b76486d-052e-45f2-8ae1-832a7210b0f7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_78a88362-f3b6-4e4c-bece-f1781614e8a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_6b19881c-dd7d-4758-b6e1-7bf8383b4fb6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_7d5a014b-5b65-46da-b169-68cb31e83195">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_4111c485-c52a-43db-bb05-8f44dbfcaa27">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_0f8789c4-c4ce-4423-8d22-5089df96f523">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_78c8380e-07b6-447a-9501-2db76498862a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_bc433eb6-7868-48a3-abd4-dd4a6ccfdc10">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_d2400655-bf7b-4e89-85a0-71c29b18a08f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      id="F_4a92ae9a-31dc-4e83-ac46-5a0c5da56de6">&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;800,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_25eae6f9-f0ef-472a-929a-f125f8b6cec4"
      decimals="-3"
      id="F_047e3bed-8f81-49f8-b11c-c2668906b807"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
