<?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_6fbe6544-dd7b-42e4-9077-a245708f9599">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_bca6fef8-fe27-4b3c-a451-b374e771d232">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_5f095f5d-b3dc-4a68-99e8-f144b59577f7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_a2fbb4d8-95aa-433d-9aa7-de2d9cd4a2dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_7c104bcd-900a-44cb-a165-61bc041e8f4c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_fceb4427-365a-41a2-8466-6b64b6d8315c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_9fdc0be8-fef1-4d6c-bd7f-de48f27676f6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_59c78686-3122-45c9-95fa-b48a862f5bcd">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_bf68d1aa-5216-4750-bf6b-3e63b13ba324">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_216258ec-3112-4fdb-8510-a173a2a36985">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6fbe6544-dd7b-42e4-9077-a245708f9599"
      id="F_c313c73c-dc1c-472f-b077-181b50286362">&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;4,078,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_6fbe6544-dd7b-42e4-9077-a245708f9599"
      decimals="0"
      id="F_8d9292a6-1ec4-4f03-a3d7-cd6aa3e7649a"
      unitRef="U_USD">4078000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
