<?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_4868373a-a906-4be8-b34d-5312bc1ca496">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_9a82edbd-efb6-48d7-819a-1f2b1b6c78b5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_91ac9fd1-96aa-4161-8e62-17565b56f2b9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_0f86a8da-2414-4d3e-a8bf-5dbec6a11416">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_c592c581-e3aa-43f3-96b4-85ffd6374857">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_62e41612-a7ff-4afa-bb69-1639ba4a92b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_d143d023-2d42-447c-b07c-377fbbb3e036">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_6cca073b-c0b9-40d8-bbed-7c8d050c52ff">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_4da2fa7a-62aa-460a-816b-636ebf987b47">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_470689b7-b6df-427e-bf5b-88cc3f465804">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4868373a-a906-4be8-b34d-5312bc1ca496"
      id="F_8a78806e-6576-4cc5-8f33-3ded026bd762">&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;8,713,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_4868373a-a906-4be8-b34d-5312bc1ca496"
      decimals="-3"
      id="F_745e6104-d22d-4382-8400-e8ef78c719b5"
      unitRef="U_USD">8713000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
