<?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_a2e4e5fb-96d7-4108-93eb-9336b233c36e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_019f7328-69cd-4a73-95d4-dc85d22d70a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_79ac369c-0962-41d0-8f38-e8910a5db6d7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_6f2418ee-fd13-4c28-ac7c-09f543843f73">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_89534864-e002-487c-9395-d5e9227318c3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_e0f58373-1c6d-4818-86c3-9409739efdac">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_d7dad2fe-8f80-4998-8f53-6808f0181981">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_4d7ab39c-ea8d-4d28-8128-7a8bb3cc8fca">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_efde24ab-fc02-4c72-a073-ec44429c65ef">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_d092ee0a-218a-4ba1-823c-b3738efd8819">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      id="F_c3683aac-333e-4672-b54e-6750657a67fb">&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,379,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_a2e4e5fb-96d7-4108-93eb-9336b233c36e"
      decimals="-3"
      id="F_49125802-f9a2-430c-92eb-254c4cb4e3ce"
      unitRef="U_USD">2379000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
