<?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_99279466-751c-4fdf-8de1-d7785d490b78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_66260eba-50e5-42d6-b813-1c5130cc9bfb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_a09309b2-0365-4d17-834c-afaad3b1c969">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_c36aeb54-53f8-4d5a-a114-196d413bd808">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_079748df-7f94-444b-ba42-51ed28c13235">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_5226f7ad-83fb-4ce1-a202-30844332b4e6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_161474f1-589e-4427-bef3-c53eff9d4293">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_22485059-58ac-498a-9201-920b743c61ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_681a1f74-e42b-4bde-99d3-7a77ff375fa0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_de87fbb6-bb24-463b-80e8-061cde2b97b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_99279466-751c-4fdf-8de1-d7785d490b78"
      id="F_b42caf0d-1049-4bc5-a3d4-a20be211038c">&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;1,368,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_99279466-751c-4fdf-8de1-d7785d490b78"
      decimals="0"
      id="F_0f3bfaa7-eddf-4b96-9210-af3bb93ca6b1"
      unitRef="U_USD">1368000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
