<?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_10b03f78-e26b-493e-b9cd-fcea1a6177f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_de7f430c-e0f9-44ae-948f-45517e399728">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_caa13d38-5187-47b3-bebe-675d187298f3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_4d9fae1c-2bd2-4ccf-b964-726e9a86ed7e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_02364aa6-8250-4944-b5ad-4c973d0cdb89">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_c0cb02f0-fe2f-482d-8ebb-48bd552308f5">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_7f3cec8d-4bc8-436f-967a-c85fdb426529">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_f9ca50c5-a6aa-48fc-8501-337569165d4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_84353a9d-dae4-4d29-b394-e441d4e52e6a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_1cc7e7c1-883a-4d9f-98cb-434393306d5e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      id="F_46cdc229-0ef7-4f22-a6b4-36e31659ab96">&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;8,022,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_10b03f78-e26b-493e-b9cd-fcea1a6177f8"
      decimals="-3"
      id="F_f6a2f470-178e-4f38-b4c5-05bab3482dad"
      unitRef="U_USD">8022000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
