<?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_903bb89a-e258-48cd-97b7-df83ca28e628">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_0c761df0-6b19-47d9-88b9-d319a024617f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_04287edc-4934-4465-98e0-c6505f31ddc7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_706ae72f-49c9-4ad7-9915-ee2e36316a86">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_b6e515da-72fb-482f-a46a-16ba7527df03">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_539558f5-cff7-4061-816e-519ae664a11f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_3a18feb0-f370-4419-bdbd-fd06437ac828">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_be27a6d5-d15d-4b7b-b159-128b3837210f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_2f10505a-76b3-4211-b7e1-02592ac87c91">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_84216f10-8687-446d-b796-82b9f863239b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_903bb89a-e258-48cd-97b7-df83ca28e628"
      id="F_14046bea-2abc-45aa-a6d8-17666ac20e5a">&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;1,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_903bb89a-e258-48cd-97b7-df83ca28e628"
      decimals="-6"
      id="F_9f6561a4-9c52-4f82-a221-bed59ff4a5e4"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
