<?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_176e45a4-d070-4fae-89e9-3b2291402ca7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-03</startDate>
            <endDate>2026-09-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_fb6d6d25-0aea-47fe-9059-7a8e74556ff8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_0004f3f1-6217-4105-83ff-e0d83b9dbe89">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_ca746efd-9899-48b1-b735-37ce46b5d868">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_0658398f-6701-4c00-a17b-dbbbd81da804">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_5ac5a2e7-33ca-49c0-80f6-2dede3466961">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_1545a080-bd35-49d6-80ae-89b62961e977">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_4fae22c2-cdcf-4b16-a337-493d7967c8f7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_372bb6f0-3aeb-443c-9a61-7bf727c83c2f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_b9f6ce0c-57f4-4766-ba5d-3f0ab7a8253c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_176e45a4-d070-4fae-89e9-3b2291402ca7"
      id="F_7d78a983-e220-45f8-a80e-6c096fb0957a">&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;3,406,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_176e45a4-d070-4fae-89e9-3b2291402ca7"
      decimals="-3"
      id="F_7aa73480-889e-45ef-99d5-2c24af0e1350"
      unitRef="U_USD">3406000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
