<?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_f585a9ad-5341-49c4-a692-0a0e3ca0bc08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_2aa8fa9a-1e6b-4a4c-9645-05ba5ffe7283">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_cb949da7-4af6-4d2f-a355-ab3bc7efc34a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_865b9053-7585-46c4-aedc-a9e588fa8dfe">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_7e6d3dd0-e91e-4bd2-9432-2952702b3705">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_c5b5fe9c-fad4-410d-962b-2e018aeecfe8">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_e2c61dd8-5fd3-4996-8647-c3ef1697972e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_a4efc825-2a52-4a70-a2aa-af460c2f6ed1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_dabedd67-bbb3-4766-b00f-0422803e62bf">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_f0959220-36f5-4ca2-8060-13dfa2799945">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      id="F_c103fdd6-04b5-4832-a42a-2372178bdcdc">&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,626,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_f585a9ad-5341-49c4-a692-0a0e3ca0bc08"
      decimals="-3"
      id="F_540107f0-41eb-400f-b848-d59edbcf17f4"
      unitRef="U_USD">1626000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
