<?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_7677af75-da06-4750-890c-fa4022e54893">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_e1af3a94-21b3-496f-9665-88cdf0408012">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_070e09a1-0fdd-457e-b18f-41682fc975ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_09cd52b8-2e65-4f02-b691-757ef174dc0d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_57d19e10-a494-4313-a899-688e47317df6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_6a35fa09-8920-4194-a5af-f10a401c4d9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_fd8ab2f7-c6fe-496b-a8b4-ed380bfc9ec9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_ae0be00c-a50a-45be-a122-b401f923ffad">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_268a2584-1f73-4692-923f-b062856ab8e2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_78a7d76e-1ca9-4419-9aba-5acd8de7aa40">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7677af75-da06-4750-890c-fa4022e54893"
      id="F_130f3911-e0eb-42af-9e75-c169e864ea3c">&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;2,015,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_7677af75-da06-4750-890c-fa4022e54893"
      decimals="-3"
      id="F_ce917d21-9b72-4244-a35f-5c17eccdd8c7"
      unitRef="U_USD">2015000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
