<?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_460c1450-279b-4603-9332-c1aa129f7603">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_d35f2446-3038-4c54-8b1d-5e636b7b51be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_e1bbbad4-b86d-49dc-afd6-b6b2d945e4bc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_b36748d4-7380-4b9d-81ff-35b142bcd150">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_40642806-cc04-419c-bc92-d7a5f80575ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_9d7a5fd2-6d76-4fc3-a2a0-60378a887568">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_a25e17c0-2d8f-42ce-a509-1a2335a379bb">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_9dc0a6ff-ffa3-485e-8d04-9669957e137e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_d96d6451-494b-4274-baab-1492d8e2d64f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_a0492c81-c983-44e3-bd21-c31dcdb1e17d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_460c1450-279b-4603-9332-c1aa129f7603"
      id="F_e3095fa8-ad4b-49b7-aabe-59c7cd2ba534">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,129,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_460c1450-279b-4603-9332-c1aa129f7603"
      decimals="-3"
      id="F_b508835f-0373-4a85-880b-d7bf2895d4d4"
      unitRef="U_USD">1129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
