<?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_a645624d-c4fb-44ed-b145-8c5638f94980">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_7a3f03e3-33b5-4c00-a286-d746344ee4b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_f2888f50-9dc3-4a75-b82b-0e7551b34cd2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_d6bd19bc-6169-462d-b249-05f6fd33ac40">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_1b2b9f4e-cd9f-48e5-b92c-d2f747faf990">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_e229f5ad-8eda-48de-a2f5-fd99f1ce7e92">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_4647367e-4ce0-46c1-85d8-6ff549a83d3f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_ff1db8dd-c0c0-42ce-8920-88fb2d96c72b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_769ba8f9-8ad2-4f4e-b22d-108e71dee661">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_e80a0d61-1191-498c-818a-b2f68401e1b4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a645624d-c4fb-44ed-b145-8c5638f94980"
      id="F_cf4f28c6-0403-4582-9b14-3fb64eeea346">&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;6,000,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_a645624d-c4fb-44ed-b145-8c5638f94980"
      decimals="-6"
      id="F_26e366d6-5b45-4674-9097-756ab90c8be5"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
