<?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_d0b8ed55-ddcb-403c-8020-37d3d8bd9417">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_f2086d47-4175-4ea2-a439-648a0b65c516">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_05486060-40f9-40e6-85b2-b723f591e2c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_79b1c8d6-c4aa-4bfd-95cc-beef70b7027a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_4c662bbb-f7d3-4043-b07b-6a247c4d0712">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_7cbf2cf6-1fda-4c36-a86b-63b46e46e954">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_88b0dd44-b79c-4813-9e5d-70efdc0c6b69">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_1caf3e58-546c-418a-b151-c88f68937337">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_1ebdfc7d-dd9a-4e9d-b02a-8f08619a3b3d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_a0a59144-e187-407b-889e-bb1188785e66">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      id="F_8484a9f8-85cd-4d14-99c3-61890bcbb94c">&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,700,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_d0b8ed55-ddcb-403c-8020-37d3d8bd9417"
      decimals="-3"
      id="F_6a4108cf-9242-49de-9fae-a15ad0d366af"
      unitRef="U_USD">2700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
