<?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_dba87c4e-14bc-412e-b84e-f455ae4ddc74">
        <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:FormTp
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_47717490-bf0c-429b-8f43-69d67de7fa6b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_23861a88-ed04-4f7e-ab57-86e0abb7396e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_2d156cc4-9771-4a4f-a055-d948493946dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_50349ee8-d7f8-4e3b-b6e0-a92955eaee4c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_3d2df6e7-83b2-4c06-bb1f-4a123406201e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_5f7f01d2-3221-4885-8c9a-c20a38b86dce">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_4fc7f105-95e6-4461-9bc2-480be6ddcac4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_51a207e5-2a2b-4cfa-9aec-878d009d9b75">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_65b328db-bcfb-4d1a-9527-e8294f481db3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      id="F_87e920e6-627c-4fd3-aa10-d0e75ee68602">&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;893,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_dba87c4e-14bc-412e-b84e-f455ae4ddc74"
      decimals="0"
      id="F_aef17f97-7eee-4932-a6cc-020c7f97b58e"
      unitRef="U_USD">893000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
