<?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_a79e800c-9479-4588-a2f9-a49d98eb0879">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_000c6918-91b5-41b6-a65a-141e367dc400">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_1eef9a28-fd19-416d-a13f-fb7c45eb0bcd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_9f6f5a92-c3cc-4b69-941a-9606c396ff0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_14e15c72-92e1-488b-bf50-18cefc88c872">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_c43b321c-9d43-4787-a99d-7dc1f9c966e6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_afd0f421-88fc-4581-a808-c1e8d6275cd9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_70f9ce28-b8d0-4dd3-8105-730f8a10856a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_f4bc99b1-492a-41c0-99ca-7202468762c8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_a42a733d-9489-463d-84d3-0c05a10be3fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a79e800c-9479-4588-a2f9-a49d98eb0879"
      id="F_7336d004-78ca-41c8-802f-219b84f7db6c">&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;390,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_a79e800c-9479-4588-a2f9-a49d98eb0879"
      decimals="-3"
      id="F_8b83411b-7d1b-40df-a59c-7b5bdd86b4e0"
      unitRef="U_USD">390000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
