<?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_be311cb2-4e24-417c-949b-7a5baf7c5c69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_7eafcc64-5483-46c0-a1d7-12a7dc7abfbd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_bdf2590d-e67b-4e61-a2be-f6568643e41f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_efe19abe-1e17-458e-abc9-8577ffb9e313">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_104d52a9-953f-45e9-abf3-91a5d7a64837">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_c26b0600-d8c5-431a-850b-c9c98cb46f46">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_f64c04f4-d922-4bd9-81c0-33dc0c2ffbda">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_2ae4864c-ee76-4173-9451-c3feac780ee3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_28aad89b-e8e4-41d2-ac12-309ec03852a5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_d9d6a286-4fa9-4d24-92a2-52ce983ddfd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      id="F_b2d82112-3414-424c-8fce-3291d0e68a65">&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,800,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_be311cb2-4e24-417c-949b-7a5baf7c5c69"
      decimals="-3"
      id="F_9d94d4db-dfda-4d5d-b2b0-2b14419635c7"
      unitRef="U_USD">1800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
