<?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_685b7d46-99ec-4945-a11f-4c5ee352fddc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_57390df3-5843-4de5-a5b5-75f0c84759c5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_e1c89e57-96a0-4a95-8585-01dc9494789d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_720fb534-ce21-4720-a8b8-90f02715d644">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_15389895-ed5d-46fd-9afd-a12fd4d31c9a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_0ddc4d42-414c-468d-afc8-50cedba2a0fa">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_1eb23eb4-82c0-48f7-b686-32434a00b12a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_6f45477d-7f32-4fbb-a363-e684cb448bfd">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_5c034be8-21ea-49fa-a6e3-06100e73deb8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_e58aacd4-e573-422f-a8e6-39009db3b3f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      id="F_3625e1a8-a2f4-4967-a120-1cca845f8aaa">&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;6,227,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_685b7d46-99ec-4945-a11f-4c5ee352fddc"
      decimals="-3"
      id="F_b292e8c2-c9e9-48cc-a371-fb30cf50fca1"
      unitRef="U_USD">6227000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
