<?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_97fe3866-184a-4588-a7de-d0bd180e1cc0">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_e12d8dd6-4042-481c-a243-6be8691e1b88">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_278910b5-f819-4160-bd1e-181feb3b03c5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_46343af5-6383-47eb-89c2-505a6327f3ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_4c3822c3-ac08-43b1-b343-fa96c7cc0e84">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_8f5bb989-e647-4644-9425-3e2e334c1e8e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_e7fce81f-cc28-423a-bbc5-d1440f2f60d3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_0fdf4dd4-80be-4ead-8d02-da320933e654">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_795059dc-a9d8-44fe-b49e-8089a8b45739">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_bad485af-1840-4e00-8ff3-4774bf86af53">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      id="F_6e0f4db2-b452-44ba-9c9a-e67eefde3358">&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;587,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_97fe3866-184a-4588-a7de-d0bd180e1cc0"
      decimals="-3"
      id="F_dc4a891f-c438-480a-84a4-40f18303aca5"
      unitRef="U_USD">587000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
