<?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_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_597ee987-9e43-4df8-8f38-0e5306d28ff3">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_c4dab825-6e6f-4b7d-9f97-6e417430d866">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_23833dd8-b252-4a70-a5c9-66e60bff65dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_a8f474b6-c135-4e5e-b0f0-18dcd4a71e87">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_ccfacfe0-cdb1-4e17-8ca4-3be8cc0d7fa9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_b8c2f91d-f1f8-4e2a-9534-151e2ea38f6f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_b3251c63-3965-4b89-b74f-87454c9f2542">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_728e0881-c53a-4666-b3a8-4b2e19bfe332">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_e595a8ab-e426-49a6-85d5-c368352c2e20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      id="F_d1121e09-28ac-4c9e-bbee-393f0b9d420c">&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;695,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_4cd5d365-1727-48d1-8d99-1cd11fc1d4ca"
      decimals="-3"
      id="F_56f05c2f-8d5f-4286-85fb-69054495b22e"
      unitRef="U_USD">695000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
