<?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_d82310f9-4140-45eb-8a1a-c00686207471">
        <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:FormTp
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_46061a6a-4e59-4ce5-9dcf-ade6a5ddb6b4">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_7a94c4ec-8f72-4868-bd7e-b8fa9f382adb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_220779d7-0f13-48d8-9f5f-570f7b970173">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_d276036a-0a58-42dd-93f1-bb4d4978eaa1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_ed9ea1f7-4be3-49b2-8182-5980c10a0082">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_fb5efb70-73ea-4e2c-8856-505c6fc3dde2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_f60ec8ae-1227-491f-81b9-0600fe494687">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_52e3e879-42d5-4ea2-897c-f6c8285681b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_1cb3fdbc-532b-4d8d-8992-6df290c229b9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d82310f9-4140-45eb-8a1a-c00686207471"
      id="F_e15bfcc6-f371-4191-b218-a7c94a6cc58e">&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;1,973,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_d82310f9-4140-45eb-8a1a-c00686207471"
      decimals="-3"
      id="F_7e414ebe-8f7b-4408-a3bd-17d911cda321"
      unitRef="U_USD">1973000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
