<?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_cbe34eba-1f5f-4601-b4db-4d9cd90bd483">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_fb64ec16-ede2-4e67-9017-9cd24e88b1fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_c5445976-20f7-4579-8fd3-1de009077914">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_2c1a854d-0685-4186-a7cc-d23c42de8719">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_b985e973-d37e-44e8-8ac8-09efd6ff8a63">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_7490c5dc-c5d9-4a27-ba45-4dd1b948caed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_b2178281-b183-4319-bbed-03b66d4af026">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_bf421ef7-95ae-4744-9cb5-4ef57a21b717">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_c72b7039-0a3c-48cf-9851-f58e118bccba">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_74d22ca6-dffc-4cf5-8bbb-fa129209b70a">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      id="F_a15f0adf-2107-43d7-a512-4a00706a59a3">&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;10,202,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_cbe34eba-1f5f-4601-b4db-4d9cd90bd483"
      decimals="-3"
      id="F_fab3dd0e-0cd4-41d5-a290-9124aeab5d7a"
      unitRef="U_USD">10202000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
