<?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_c6bb7c66-c39f-4809-b474-d05aed8716b6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_26664d8d-8383-40e8-bf0f-679508d1cb5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_fd7288ed-debe-4cc6-980a-4a4f1e34aa28">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_482d5b64-6331-4a5e-933c-946cf584f238">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_cf22cf79-c457-4a2a-a86b-14bf0e6b49c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_7a0e934f-4a6e-44cc-99e4-419bd0046c6c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_85fe1568-93f0-40d9-9f40-65dd3b0a32d4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_17af1131-cfcd-4311-aa6f-7227c9fcd176">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_674dd6ad-4e17-452f-a9f0-6f1eb56ea85a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_bb39b362-e1b8-4196-9769-b5531b90768c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      id="F_2034b01b-46b9-42b4-8bf1-f1e0a8601226">&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;2,001,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_c6bb7c66-c39f-4809-b474-d05aed8716b6"
      decimals="-3"
      id="F_3525b8fb-e8ac-4014-aa41-92d87622a8be"
      unitRef="U_USD">2001000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
