<?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_46f9c881-707e-4d69-9469-3082e97a4905">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_5c9f05f2-a395-4cbc-8331-d9486ba73fef">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_537948db-0033-439c-8d9d-86d518051122">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_d62a062b-031e-48f5-be1d-ec9a150e12cb">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_750e7712-6a73-4f5c-a26e-dc498abee256">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_1648478c-99fe-421a-9afd-8823b61db5af">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_1998ceb3-dd63-4969-aa28-9bd53da474d0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_3e67bb32-e2f7-4014-a155-2041657dc39f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_0a0b81d2-c0dd-4e87-ad87-705802b7b9a7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_50435b24-5ea0-4b7e-abf0-a1a296ca4011">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_46f9c881-707e-4d69-9469-3082e97a4905"
      id="F_c19e162d-8250-423c-b0b6-52855c7699c1">&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;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_46f9c881-707e-4d69-9469-3082e97a4905"
      decimals="-3"
      id="F_575bf596-ef19-41f1-9201-7d85f4929b25"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
