<?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_6282cd36-091e-469d-9e55-868dd84cd054">
        <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:SubmissnTp
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_684b35ec-50e7-4d9c-81f5-dd9a7020591d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_829c556a-f6db-48c5-999f-fe38730af649">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_868de496-0ed1-41c2-95ed-4a2849f28feb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_5262ab1c-782b-46e5-97fa-8d5f377e2bda">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_3353889d-3b62-4de8-b6b0-3efeca365c56">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_40d37d6d-fc8b-4aeb-bf30-f39559f310f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_8f0359da-4d41-4d0e-9eeb-fda62cfa3585">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_fd848566-704e-4e83-9b5d-23b3fc50f8b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_7b8a03e1-8652-449f-9ad2-60569732cbda">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6282cd36-091e-469d-9e55-868dd84cd054"
      id="F_d6157850-e986-4917-9195-b323b48162bc">&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;11,224,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_6282cd36-091e-469d-9e55-868dd84cd054"
      decimals="0"
      id="F_7467f9ed-c427-40c7-92b1-1d0e6566e866"
      unitRef="U_USD">11224000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
