<?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_315a55b1-6107-4464-877f-6583faa1c772">
        <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:FeeExhibitTp
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_2d94095a-f711-46e3-99b3-cba5b4d720fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_aa9b2611-f006-4fad-905a-ec5d0d6364aa">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_732893f7-4f53-412a-a3ac-fe694b19cb2d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_4490991b-473e-4b1b-82a2-d486fd508261">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_9f91a38e-bc71-4ab9-81a4-f3b0687c5af1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_ebb33ea3-110a-4e52-9443-64604ae89a1d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_151af9f6-339d-47bd-a582-9b17fca98211">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_82f0ca89-4378-4f39-91e4-df3a8090c2ae">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_d043e517-ddc5-4116-9fb2-32741d2bbaed">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_315a55b1-6107-4464-877f-6583faa1c772"
      id="F_f717c811-1f4c-488d-bc92-d8b75c0ed32e">&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;3,045,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_315a55b1-6107-4464-877f-6583faa1c772"
      decimals="0"
      id="F_de604e59-9aa7-4700-a334-47e9caee91b7"
      unitRef="U_USD">3045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
