<?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_24644fb0-bc59-4634-80c1-27175332bedf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_3ac84cd8-be58-4651-b1af-ce948e556bea">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_295e7862-3a56-4a7c-81cb-6b6df1ea0116">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_c3a9a135-29c7-4b4d-96a6-55c3f8873d21">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_4fe4d358-0ba8-4611-b621-73d3efe1a721">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_a1b20f64-87a2-4552-9ca0-09188ce4643b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_86208487-c7d0-48e9-bc48-5ca08bb9fd2f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_e0a8aad6-c345-4cc5-9da2-8e6ca0e03643">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_6ddf43d8-c96e-406a-84eb-90431f5d31f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_d9ac5391-0d7d-488c-90d2-fe147d3e2847">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_24644fb0-bc59-4634-80c1-27175332bedf"
      id="F_46aaeb05-7f42-439e-9088-14e243006f6f">&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;3,819,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_24644fb0-bc59-4634-80c1-27175332bedf"
      decimals="-3"
      id="F_151c1db3-e19f-4707-914b-91f832ed0dbf"
      unitRef="U_USD">3819000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
