<?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_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_82488319-a68a-40b6-b467-1e6ce7dda8b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_315b544e-96b9-4bb5-aaad-1c6f161dcd75">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_88a94e5d-504f-4c7c-8ff3-96292c527ed5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_f9de1899-a469-4332-97f2-542cebb795ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_54de5997-c9d6-4941-b761-8e448719f8e7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_93412106-56f6-4228-a3e8-b6b1677206aa">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_7b67b522-a1ea-4de2-9034-40986679666b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_b82890bf-e117-45e0-b9f6-74ae63b772c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_0afbeb36-bfba-417a-997a-def0c466e0c2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      id="F_81a163be-3ac5-4627-9392-e38e0217433c">&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;9,541,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_b0a61eec-b4fe-4562-a5a0-77bf2ed486c3"
      decimals="-3"
      id="F_be5d5e01-e504-4829-82ac-b8174e1436eb"
      unitRef="U_USD">9541000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
