<?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_d044af0c-296a-4468-9d24-13f9c57e77d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_134814a9-1a0c-4ab4-8acc-4fccc0200af1">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_dc46bc9f-dbc7-4c65-abeb-00eec0396a95">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_af0e1ce6-5792-44fc-936e-01c1c1e15344">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_569fc9f4-9176-4ce1-97a9-53675993fe6c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_86788b40-e8ac-4bdf-ad65-9df3a613f5c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_dff78a74-329e-420d-a0ab-6e3c0771aa7e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_64180808-b8a4-48ef-a43c-16511c7363fc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_f0b288ed-d7ad-4d37-9ec7-123950bb98e7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_740be26a-0287-4030-b55a-25e23ceee99f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d044af0c-296a-4468-9d24-13f9c57e77d3"
      id="F_7a635470-a78a-4577-9041-10823dd58b51">&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,047,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_d044af0c-296a-4468-9d24-13f9c57e77d3"
      decimals="-3"
      id="F_225b2965-d6bb-45c2-b7ec-92e98a8b88ff"
      unitRef="U_USD">1047000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
