<?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_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_f01af1c5-c80a-4dcb-8205-6b2a48f90583">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_ddfbad37-2434-4f11-94a9-cbf6306ab5e5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_aa2c780f-214a-4856-99e3-8474d164cd43">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_f8561e72-b8b8-44fc-8fd6-ce75a7d612ea">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_bc428122-8d8b-4391-8fd4-9920a0bf8124">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_e2eaca3c-b21d-49e4-9e8d-0a9b93224610">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_fd29d34a-78e0-4ca4-bba2-926cb6cfe986">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_74ed6aa7-dc2f-4c5f-926b-d1eac790113a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_d4304ce9-ada8-451f-a3ae-d1ba5241a6b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      id="F_ca37b24c-81ba-4d7c-a840-4d2772eed1b2">&lt;p style="font-size:10pt;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,533,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_4b72778c-8aff-40ec-8c8d-493b3e4b1ae0"
      decimals="-3"
      id="F_a10caa0f-d9c0-40ea-9f78-4f089abfd772"
      unitRef="U_USD">1533000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
