<?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_9873f01c-01f6-49c8-8d50-97d81650d17d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_7d8b789b-57da-45b0-a20f-dcc29046ba7f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_dff3fd46-ca2d-4bab-9fa8-d1c689f24a90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_1fe0fed5-2311-4901-98d2-bbed68310596">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_ee4d0e90-d230-4114-8f93-c0f6372d4405">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_6822dd15-a896-4f29-a9d1-d6519321eb54">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_ee4c2847-fc34-4547-aee2-08f2f0815bfe">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_64055fdd-c100-468b-9342-7e9a818da0c8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_14375106-0936-4e2c-8459-49f1f961eaeb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_41b3b088-86e4-4f3c-9bfa-bab6798154eb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9873f01c-01f6-49c8-8d50-97d81650d17d"
      id="F_4e98040e-5fe4-494a-a747-dcf5dbdb932d">&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;2,394,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_9873f01c-01f6-49c8-8d50-97d81650d17d"
      decimals="-3"
      id="F_c0555c4a-d929-480c-a398-66c217409184"
      unitRef="U_USD">2394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
