<?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_114e0ee4-56d1-4169-8de5-51c4fbd442b7">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_2733a893-e870-42aa-8b7e-94b49578c952">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_c178da0a-fdd2-4e05-8db7-fcc0c362bacc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_b574618a-ff34-41d8-a8af-76aeed7a2794">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_a5117275-d7bb-4227-aa48-4f4384eda2b8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_1073e8bc-4f76-4f5a-82f1-9479c45b1a9e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_f703ffbe-cc9d-4f75-813f-227d6e11a6df">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_e7cf1251-dd02-4bf4-a515-349be1b7f962">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_b61a9e81-278e-4ab2-810f-78404b5ef94c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_ae6712f8-786a-4b80-a9cf-18b2b9f763b8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      id="F_ecaef764-a420-4797-9f91-3eb096b2412b">&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;2,591,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_114e0ee4-56d1-4169-8de5-51c4fbd442b7"
      decimals="-3"
      id="F_7b26494d-0f15-4e7c-883d-9359378f9dc3"
      unitRef="U_USD">2591000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
