<?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_9a600f25-6655-4f32-96ee-1585fdaafe20">
        <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:OffsetTableNa
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_2875d97c-0e36-4e75-a6c9-d144be36a660">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_68d9f075-494d-4469-80a0-c76711ce1a31">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_a3ecdd67-61e1-4240-b5ae-3e267fc2109e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_278ba599-2bdf-48ac-894d-bf79fdc1c06a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_57096173-9b04-4461-8473-d981961fce26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_b47e6c73-90e5-49b3-9100-cb2820087786">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_64d48a7b-8485-4f6e-9395-45f17ed0f741">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_14cf2e2d-d26d-408a-a6cb-a9e83fc46b62">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_a935b358-30df-4835-97c1-0e0c14b346ea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9a600f25-6655-4f32-96ee-1585fdaafe20"
      id="F_55803ff7-e712-4181-9cb2-90873164daf5">&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;6,382,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_9a600f25-6655-4f32-96ee-1585fdaafe20"
      decimals="-3"
      id="F_1f998918-c351-48b5-9879-567627db54ea"
      unitRef="U_USD">6382000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
