<?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_b389e363-a839-49fe-a3c9-43de504e4ceb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_0490e7ad-bd09-448f-86c7-7d87a3869204">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_83c02b37-0b31-416e-b008-c1d7cc1c43c5">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_0978e83a-f666-44e2-94d5-d5bbc9d572e5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_ab0b016a-5d97-411e-b70e-e80643694193">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_bae22f13-1e40-40bb-8a77-abcdb4d72e97">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_e4493189-870a-4854-be64-12aafd46e5b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_f5d6af56-d78e-4647-a4db-488268c2e832">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_81957668-60fe-45c2-80cf-cae7b1f44410">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_cf342835-4006-4506-9778-658b5bbe9d26">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b389e363-a839-49fe-a3c9-43de504e4ceb"
      id="F_2a927db4-c8e7-408b-96f9-835c623ae1d6">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,633,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_b389e363-a839-49fe-a3c9-43de504e4ceb"
      decimals="-3"
      id="F_ccfcb239-e998-4d55-b82c-c08a5e4b056b"
      unitRef="U_USD">4633000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
