<?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_8aa54221-8863-48c5-8a02-523c6bcf76f1">
        <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_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_ddcc37d4-fc36-4201-b343-10e4dc9f5fd6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_b567f9c7-1bab-4271-8c95-69c876df13f0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_74fd6456-fbea-4563-829f-e8fdc17d78e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_95781623-8da3-4aee-b0f2-b85dc4a8adcd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_dead6c0d-9607-4483-96fb-52e3c0db272d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_c07287dc-b15f-4fa4-9f35-17b8910ffe61">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_7b3206c8-b04e-4f59-86ba-786c65e4d05a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_ac458c95-afdb-46e6-a096-3c9fcd38ae7f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_20fb0fe6-e465-4b4a-9e14-e7a6b293ef72">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      id="F_1db115d3-b0dd-4eba-8fef-dba9ddaf4e4b">&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;5,924,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_8aa54221-8863-48c5-8a02-523c6bcf76f1"
      decimals="0"
      id="F_920c8f96-5569-412a-8ddc-36df90abc4b6"
      unitRef="U_USD">5924000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
