<?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_5db62d35-8e45-41c5-8404-6fc99a05cb49">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_1d437c75-41c0-4b6c-81e4-2cf1589ea4a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_ea954793-5744-4b58-924a-d4eb6fb0c9ca">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_ec1d27ef-63e6-46dd-a39e-5d9ba0b15ec0">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_5d8430d0-e4d6-4212-b92a-a3163bd7196f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_5d194fe6-dd5e-4b89-ad4e-4482d440ec4d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_da636904-74f2-4312-bfe3-071c46af16f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_1a13fa51-57ac-4571-965b-7024ee753a27">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_8e4ff703-ea34-4ec8-b698-d2af742ce28b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_8c844aca-348d-4cdf-aee1-3e7273fb1b04">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      id="F_86b7714c-3034-4888-b48a-79dd763381b9">&lt;p style="font-size:10pt;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;12,896,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_5db62d35-8e45-41c5-8404-6fc99a05cb49"
      decimals="-3"
      id="F_f902dd52-422b-4445-8ae0-d8122bed3c8c"
      unitRef="U_USD">12896000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
