<?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_582ff096-e854-4df3-b655-8c289ef405cb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_69da485c-091b-42dd-866b-bae82e012ebf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_ae7201e0-6f61-45cf-bb7b-4b05473e6235">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_9a084a1e-0573-4d38-89ba-535b0ec97f85">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_8d575f49-8c79-42bf-9ca3-30acef405d60">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_da185cb8-86cb-491b-aa50-388721de6098">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_fa66ad7a-1fab-4769-a9e5-d35bb7c2ae49">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_c60563f6-5790-4b62-8702-8e98a5a61710">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_c3b097cc-f3f0-43f7-93ce-66cfbde78b1b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_bcb8aef7-0857-4ad7-ab5f-f2e77c969655">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_582ff096-e854-4df3-b655-8c289ef405cb"
      id="F_d53c70ab-40b2-4dce-8d62-a1c4e81a9f14">&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;796,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_582ff096-e854-4df3-b655-8c289ef405cb"
      decimals="0"
      id="F_a80e8a8e-d50b-403b-8e23-203446c4af4d"
      unitRef="U_USD">796000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
