<?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_35d9f289-e42e-4aaf-a93f-88c81838cb47">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_84fbc8f6-3770-4a7a-9feb-fae165fe346d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_fc6ce2b7-a9d2-41c6-8297-78ebdb69e563">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_d4c5e2f7-223e-4fc2-9d33-ec525810e1c8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_9f42b3a4-edeb-4cbe-afd3-371654758099">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_5ec54044-2caa-4c47-b75f-850e9fd49fbb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_ffbb40d2-0fdd-441a-ac7d-850cd6c3b74b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_1589220d-16bc-4295-9e37-6e939150be79">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_8cbee568-1328-4227-8850-d7406ec607f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_3bac6681-5ac6-4433-b4d2-c51661f79593">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      id="F_0e6a4abc-d4f2-4e01-8b9c-8250ad694cfb">&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;2,872,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_35d9f289-e42e-4aaf-a93f-88c81838cb47"
      decimals="-3"
      id="F_29c06829-2691-4d49-988f-78dc88d8d4c0"
      unitRef="U_USD">2872000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
