<?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_d652055c-1913-40f2-8df7-022b39e6f57a">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_6341396d-d2a8-4475-89fa-4a3cacf6b568">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_a239e0ed-e62b-4fb2-b7d8-2e537b90b5be">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_c078e0d1-8ebf-4216-8d65-129ed69e94e8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_b18d59e0-b9b4-4a20-9704-6df28ba18075">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_26064991-acf5-44c6-8331-4a063ae82d3c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_b9a469bf-ab4b-46ba-88b4-fc0307d69f89">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_ab7fdd82-3e1a-44ab-bcba-712a334551ab">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_ada986bf-404b-4efb-8263-d105515ed14b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_f30e04bf-9a79-49ab-9a9f-0ad85f2138b2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d652055c-1913-40f2-8df7-022b39e6f57a"
      id="F_b5e864d4-a485-4a1f-b4e6-27c498f004bd">&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;143,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_d652055c-1913-40f2-8df7-022b39e6f57a"
      decimals="-3"
      id="F_ff617ec2-1825-4eee-ade4-3727b8682cf3"
      unitRef="U_USD">143000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
