<?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_422bde47-4573-42b2-84a0-ff895a9e88aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_e0f7dc5e-5807-48fd-984b-ede1bbe74ae4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_e3e902fa-95fa-41d2-8e80-f058b66bca9e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_06d2c443-8e7b-42c1-9264-41901e338b92">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_c6f8dc4d-6fc6-4c8a-baed-13b6e38e378a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_e7095cfd-ea5e-4569-99e2-25fb96789c21">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_9e4626ac-4835-4dc1-a6eb-63bcbf675579">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_36a786eb-f277-4f29-b6c4-29233589e6cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_eb92c454-fb6c-4d63-bd1b-4c342a8028e4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_4599766e-97ca-4514-9616-31cdac2fd290">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_422bde47-4573-42b2-84a0-ff895a9e88aa"
      id="F_8ceab73a-3da5-4bef-bd9d-829a90ad9a08">&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;18,026,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_422bde47-4573-42b2-84a0-ff895a9e88aa"
      decimals="0"
      id="F_57d9076c-a63b-4682-b0b8-5d1c4e41f2e3"
      unitRef="U_USD">18026000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
