<?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_4e01a02e-9150-415f-9f7c-564cb8f68ad9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_8898e20d-96c1-4d9a-b27f-618bdc73d939">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_55e3f8fb-091e-49c0-bac5-274fb5171551">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_f75e53b8-308e-4c49-a33e-32f93c84171c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_b4d218ef-d286-4350-a2d2-479750a46904">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_9f493901-4975-45f6-80bc-f13574a68857">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_a08874e9-d4db-4f3e-ac8a-ffd1368e084b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_57df792e-df4d-472c-8766-27d561621bd7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_dc2c2730-93db-4d35-a57b-fde2aae6760c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_088f2d19-1f9b-44c5-82d3-928f3d559572">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      id="F_b9b10307-c514-4742-9c9e-a08565f7a050">&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;15,393,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_4e01a02e-9150-415f-9f7c-564cb8f68ad9"
      decimals="-3"
      id="F_45570607-afe4-4dbc-a424-448e32c55c91"
      unitRef="U_USD">15393000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
