<?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_c3d86700-a461-4a44-8f26-ed865ee803b8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_4a050772-b21d-4313-b396-948f9c21a83d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_a3fb914e-738c-4cb9-810f-3ceb4002f9df">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_467d7064-eccd-4799-a255-0fb6bd1bb1c4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_e9323540-8eb7-4552-a050-f3c3e5d75e86">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_b5b1a0c7-3016-42f9-b686-efe54e9610c2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_c43c1a3e-c30d-49e3-9996-f185bd595ac3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_681e74eb-78fb-4a49-af56-6c770e6a77c3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_3dfaf70a-dce0-485b-9e2e-45ce2a769ccb">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_7117a2fa-84b6-47c3-add2-e9fd67c3cca9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c3d86700-a461-4a44-8f26-ed865ee803b8"
      id="F_d225e84a-8c42-4a21-9175-11e55a048fc1">&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;285,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_c3d86700-a461-4a44-8f26-ed865ee803b8"
      decimals="-3"
      id="F_d95482c6-9235-47ac-abd1-29aafa61ffae"
      unitRef="U_USD">285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
