<?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_adfea6c3-c93b-4f95-84e6-85bbedf14973">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_4a41ab8e-2da8-40fe-ba77-2caae5d0ca88">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_042d8f01-30a3-498f-8285-47fb9ebc2203">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_f3891e7a-19d3-43e9-89dc-7d6fe4c8f2ad">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_49df61d6-cc9f-4951-908a-30f764f83a3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_eabae031-33c1-4040-a96f-01d0c55ff19e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_bcc49276-0f89-4802-9b7f-c75fdcc2fd7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_a74f7ec9-bf38-426f-ae34-38ad516375ac">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_acebfb24-32c2-4423-ad29-8664b24f3ee0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_165471cf-934c-4abe-b837-81ce17216f4a">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      id="F_9cd5a725-e6fe-4c76-b24b-8a11234ef2b6">&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;2,511,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_adfea6c3-c93b-4f95-84e6-85bbedf14973"
      decimals="-3"
      id="F_39cbc36f-a585-4811-b153-a21f23c1ff0c"
      unitRef="U_USD">2511000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
