<?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_c8293374-7eb8-4984-8eed-7d90b045f796">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_fc0a368b-cefb-44ef-ab01-011f67116f1c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_36e9793a-8e01-4074-9076-37c124acac69">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_6e04c691-dd07-4f98-951a-c8011232044c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_19b398c4-d4a0-49c0-ad66-27b0938fba0b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_63c98889-1722-4013-82bf-6472f078a850">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_21ff412a-d6e8-4ecf-b6d9-feb91d15f485">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_62224121-c38b-49d2-a043-f9e5c343225c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_ac9d384b-6f10-4542-9f42-6ba69242202e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_0a4ededb-c95f-4998-a922-fcabc690910b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c8293374-7eb8-4984-8eed-7d90b045f796"
      id="F_0e59e5c3-ea8c-4b1b-ab18-da61aa451c9c">&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;7,608,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_c8293374-7eb8-4984-8eed-7d90b045f796"
      decimals="-3"
      id="F_db8a627f-d5fa-4c42-b190-12972967fe6a"
      unitRef="U_USD">7608000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
