<?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_3aba2169-f8c5-4924-a0bf-786058f8ca5b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_e8106f04-8e83-497e-a09d-05ff641ffa16">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_d8f9fd65-27a8-4510-bcd0-274ecf997965">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_ff3ea94a-7f00-42e1-a09e-b6fe758e237e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_1f3a3f55-3603-4b5f-9d57-c97b9fdc57f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_30e26541-fb9d-495c-87c6-5e5c0cfe59fe">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_18c55db3-5ab4-4731-86e3-858861d2e7f0">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_395307f9-a5e0-46c5-b00f-eaf6eebc68fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_148c1a2d-9132-4f80-a7c3-bce3846e045d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_8733ceb2-a10a-43d3-b24c-f4da413c1975">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      id="F_db06e786-5a00-4149-9c2a-2e9394bc31ed">&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,650,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_3aba2169-f8c5-4924-a0bf-786058f8ca5b"
      decimals="-3"
      id="F_e42147a0-7c52-4f18-b63c-778106f3a92a"
      unitRef="U_USD">1650000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
