<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_c58dc1ee-468a-4729-9791-5011c4c473c0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_167feebd-f770-4557-9541-01566a7ddef9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_fff8072b-6c34-4faa-8e15-6b4de95067a2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_757a2340-8d79-4f7f-b9eb-ec487688222a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_f7a8b397-7d3b-4401-aa6e-b9f710c65038">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_189e5cfb-258a-48c9-96c0-df5e3d51ad42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_fd16f1ee-7f7a-42b8-93a0-9ff294788bf9">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_6d1fea0f-8596-4ed1-87d4-dbd52e8b7f37">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_9850a9fc-4440-4789-9884-10ec215c7bcd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      id="F_444bd2ab-1e5b-416e-9db3-37a448439ca1">&lt;p style="font-size:10pt;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;500,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_e0154ee4-2c1a-4b4e-98d8-b1b5045965e0"
      decimals="0"
      id="F_2dde32f3-37e6-41b1-8ca2-4020036fe833"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
