<?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_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe">
        <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_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_26f9797c-597c-4f10-98b5-8de9d9c7710d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_fa0b4d45-0324-4c01-9c59-fa9f08ab4620">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_d32a23ad-6bab-40f5-b653-0ddacd83d44c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_149448b0-56e7-4bc5-b24f-989873afc52c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_85980c53-59a2-4a39-9e71-b73ce5512869">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_5aeef5d3-602c-4aec-951f-2ef282e75a11">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_48e30e90-c203-4d68-b5e5-d97ae848220d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_cf4d5b39-2fb2-4f90-9a32-331265c4a2df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_e8dc62ba-c0ee-4d03-bb66-3f3d4cbeab91">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      id="F_45984cc2-a47d-454b-a6a6-6b189c52307f">&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;350,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_da6e73cc-8c32-4f4d-93a0-e4bcd20e4ebe"
      decimals="-3"
      id="F_1087eb51-82c5-4e30-b3eb-472ad277509b"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
