<?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_d5bb24ef-4899-4520-b1c3-eb02754bf166">
        <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>
    <ffd:FormTp
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_b7ce87d4-804b-4920-b199-09d01b1243ef">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_ec8e6ca0-ea55-408c-82d4-696eb0a14804">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_a2e7e658-a285-463d-9563-3402d9cad8b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_ad9546f5-6263-4227-be15-72e90ca472c4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_4027e978-4d71-4026-9eec-265223e80f9d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_a8020123-b582-4d76-bb5b-e5a74a2f1eb6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_190b977c-ebd3-4f50-b1b3-b5b2ed7a9426">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_57380764-6b1a-4575-a6e5-ce893e0164f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_966042ae-d6e0-467f-b6a6-83348a3527e2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      id="F_675910c0-6cf6-4708-9613-d62d40715af5">&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,428,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_d5bb24ef-4899-4520-b1c3-eb02754bf166"
      decimals="-3"
      id="F_c3c1ff73-a3cb-414b-9af0-b6075d5c1d77"
      unitRef="U_USD">5428000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
