<?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_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_8d239f64-1459-41c4-a660-ecca72fb9bcd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_0ec335a7-8dd4-4cb1-a9c7-61e660f3e4c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_bdd060c5-7ed6-403b-afe4-225f64fb4eea">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_6d788e80-a6d8-4d0c-ad69-64856af912a3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_57c92999-ef24-423e-b8e3-fe74d8a9bcb4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_7b3fe759-313c-425f-abd1-e67e49a9b939">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_3f5035a5-22c7-4798-a77a-94239ca6d889">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_1df40d34-fc27-43d6-a9ef-7131a0ef2f68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_f58ac730-50ca-4adb-b652-d083fe2570d6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      id="F_84d4924b-be7c-408a-b980-1f86d799b935">&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;14,023,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_16c5cbc4-ebdb-48c6-9cdf-696ec68fe8d3"
      decimals="0"
      id="F_e3eb78c6-ae60-4dc0-a10c-d36c00e20f68"
      unitRef="U_USD">14023000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
