<?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_1dc69517-1bc6-482b-9072-636684775cc6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_b012418f-5b40-4fc6-9b81-a8ae74337d46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_9bd7756b-228c-43fc-aae4-83f949f3e8ec">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_7a3ae704-3d14-45c9-bad3-1c5691f52cf2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_37210034-c1a1-4e54-a18d-5ab4e641db7e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_a20bb275-d0f8-4e2c-9774-edaf4129ccd9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_8d0da94e-b631-4779-b6fa-4a7068abb384">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_b7dca6cf-54ca-4d25-b8ec-44759dea794c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_e9e23028-31bf-454a-87ed-ee60e35bb7b1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_d5210d6b-29e7-4a14-a56d-fd4990e1ea41">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1dc69517-1bc6-482b-9072-636684775cc6"
      id="F_e5cacfc5-2a5e-4cba-9832-0f99418bd0c1">&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;4,015,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_1dc69517-1bc6-482b-9072-636684775cc6"
      decimals="-3"
      id="F_1bf1f5a7-4cf8-467e-86bc-cc3b148e1320"
      unitRef="U_USD">4015000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
