<?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_8e089c15-6708-440e-b7c5-3ce1e8aa2885">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_eb4dd243-281e-404c-93e6-380cac14083f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_b82655bf-f617-4008-9f5d-f2cc42ad624d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_0fb2c321-5367-4772-8bd9-ba99e5200565">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_7f146047-0ac3-4e56-b11f-a40b5689ab73">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_ceaad1d9-5d7c-48a6-9f38-435fbe6614e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_9b51b33c-7997-441b-8684-3a54e5571dce">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_1306cffe-1e71-4be8-8f60-2a50b549f9ce">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_cf225aef-e670-448b-b829-6f6bd8520ee4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_e5a3a21a-a053-4bb9-a00a-003e80d8dcaa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      id="F_919c877b-f7f6-4a4f-9076-59271b7fa097">&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;6,979,250&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_8e089c15-6708-440e-b7c5-3ce1e8aa2885"
      decimals="0"
      id="F_f747c102-ec18-4873-a24b-f0cc40811c45"
      unitRef="U_USD">6979250</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
