<?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_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_0d665d58-99f1-4160-8515-7e70ce4088b9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_180dd97a-d8ae-4b14-b090-f3aae9a9d2e5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_69065a08-4d4d-4eb1-88f5-d9532c5ee2d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_b7e24137-91d1-4527-803e-dbc912f63d5b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_edd9f55d-856a-44df-9e69-ee4916a558c0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_b26eef29-4d4d-4047-a94f-e5742dcea74e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_98ce893c-4ba3-47a2-88fc-b2768c16cce1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_8ec2bc82-3d07-46cc-818f-7535abee453e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_bbe8298b-68d0-4838-8a81-ed63b3bbf0fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      id="F_5e39df61-8198-467d-933c-e81020c62949">&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;22,089,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_a4e45734-7e7c-427a-b3e1-6aa01c1cdf17"
      decimals="-3"
      id="F_bcb7408b-6b6a-4fab-a298-e6a87c9a6a0f"
      unitRef="U_USD">22089000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
