<?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_d2806fc4-d076-445b-9e27-0df79a3bade2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_61981d33-5776-46ae-8513-5783863fae35">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_c576b369-3dd4-487c-a15e-0b8050ded87e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_e4126ba1-7d65-43ce-a45e-7da201867e8d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_36a937f2-16a2-4e52-ba72-66e33f44432f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_c732c85c-ea2a-414d-ac7f-c2f9ad65ccc9">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_0eeecacf-87ce-4b75-8759-d92a12413ae5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_995dd199-a67a-478e-a4c3-78f45c7a6497">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_dc5d0a74-0933-4969-ba73-82854035ae29">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_8de2a44c-a2fd-4b5f-896b-aba5a91a58fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d2806fc4-d076-445b-9e27-0df79a3bade2"
      id="F_45d9f696-4f0b-4e0a-92d1-a4ee9a73560d">&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;393,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_d2806fc4-d076-445b-9e27-0df79a3bade2"
      decimals="-3"
      id="F_27199640-ac57-4ca4-82b3-55d92f5482f2"
      unitRef="U_USD">393000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
