<?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_aee64e64-472f-4ef1-ae2f-e5be48857a92">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_08ae8c62-af25-473f-bb4a-19d0545b62e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_8f2e54f9-4d21-4c1a-b247-e6c137d0b240">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_aed59612-35b9-4d34-9fd3-bb5f32bac3f2">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_4998300b-900c-4ef1-8e9e-99355288c460">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_f1e48fdc-666e-4e62-9778-e45dd50e2e64">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_22069c07-ef42-4bdd-b6ce-c75eda23ff5d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_98fb9545-27d9-4e28-b5ec-15c557de78ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_aa6369a0-dcc8-412f-a0a2-8452272f9d5f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_2f9a5303-de27-4f7b-8ae7-7f56856e87bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      id="F_fbdb2c3d-6d64-4067-9d99-3b986c60471c">&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,166,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_aee64e64-472f-4ef1-ae2f-e5be48857a92"
      decimals="-3"
      id="F_512f5612-a9ab-418e-8ebb-f92da3047cdb"
      unitRef="U_USD">1166000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
