<?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_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62">
        <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:OffsetTableNa
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_6d3a070c-3cdc-40af-9ae1-30b26539738b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_575bd214-2325-4428-ae26-0e750a130160">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_e36e3df2-1c61-4931-84c9-208a7143d959">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_2c1a9077-4f32-4690-8e89-e29b97bf4b3e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_2912715a-e1a7-4845-a431-205c118f1eb2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_81bf8d2d-851f-418a-b3c6-dbb67c799ba0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_a2e55356-ea04-4abf-a7df-b88f4d397bcd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_6bea51b6-55dd-4611-8e44-a0d2a1d5f3e9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_b55a5f43-62ab-4a59-8a42-eeaf2ac6708d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      id="F_a317d531-34f1-4237-b1f5-60f41ea97ecd">&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;5,796,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_22cb2076-d1cc-42aa-ae78-f68fe3b7fa62"
      decimals="-3"
      id="F_5bd2d0ad-ad0f-407f-bbbd-c2bacded62d6"
      unitRef="U_USD">5796000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
