<?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_d2f715d1-03f7-4051-847e-6991d5053ea3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_b893e0dc-17a0-4fff-bbcc-b1cd16baee89">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_eda07b5a-9504-4e77-a3fc-fae3cd03f825">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_64c92eb8-a388-43c5-8aa1-97fee3f48ee3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_302b1bcf-a897-4d0f-9502-9909f4a0b999">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_ac0f78d6-aab0-4a6e-aa61-789284b8ec59">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_5bd6ab22-e5ac-449a-9b2c-d230565c6aa1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_0af8ac02-c4fa-4548-8f46-b2c30a6c97fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_a17b9a13-f45b-43bb-9d3b-4b94b56a9b94">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_350b77da-cdf9-4efa-905a-4f2af5ba5267">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d2f715d1-03f7-4051-847e-6991d5053ea3"
      id="F_0601eb6e-c478-4ce0-8a39-1e4c97eedeec">&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;1,000,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_d2f715d1-03f7-4051-847e-6991d5053ea3"
      decimals="-6"
      id="F_8f62200e-8c21-4470-afce-238ab367954a"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
