<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_45cfb339-1702-479d-baa3-0a817c433f79">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_c2066f07-8e88-45d1-8153-3b8305e3910c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_1c1e988c-1324-42d9-9976-7bafbcaa6327">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_6811ffa4-0eba-48b3-9ffc-ee21f0bfe5b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_82b77bdb-398a-4f54-afae-20df75139291">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_8d74c64c-8a15-4235-9889-2227366cff57">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_a07388ff-38d0-4e19-81cd-32e84b2bd178">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_4e317375-7447-4d4a-99bb-36ab0e134e0a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_8c7761e4-3a7b-4ac3-809d-38e77219d9d3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      id="F_7b9f2443-4d59-4152-b4d5-4f97801c6379">&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;16,963,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_308e0c6a-f21e-4eac-b157-b3af8562c1a0"
      decimals="-3"
      id="F_783e5d30-bb3a-4b65-81cc-b1c59406f805"
      unitRef="U_USD">16963000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
