<?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_3ea0cfb8-61f0-458b-baa7-195b17249109">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_8f9a512e-86ef-4247-a617-8df14d53efc6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_65bf394f-9446-482a-953b-9de7a6bfe5f6">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_f9144f46-9523-4fe9-9d75-6bbc79929d00">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_788e2100-81fd-4297-acda-d6a92ea5820c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_6ab70b9b-4d1a-4afe-9df9-e76a0ed7e5dd">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_7571aa93-b954-4de7-8251-ac1b73fd9cf9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_26ab9d12-c0b4-4060-9025-e06357d54246">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_06f6cc2a-cbbc-4178-ae37-8a9734d397ea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_fcb8a9c9-f4b2-4ee0-836c-5731439eb35d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3ea0cfb8-61f0-458b-baa7-195b17249109"
      id="F_4af46275-62d2-44a7-83fe-a13cb56c01dd">&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;318,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_3ea0cfb8-61f0-458b-baa7-195b17249109"
      decimals="0"
      id="F_26e5e0ac-34e5-4c53-82f9-75138cbd85c6"
      unitRef="U_USD">318000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
