<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b797a0aa-12b2-4854-b885-c6e3b732bd21">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_eae78ec1-0442-4fbf-90c1-34eb6c3642a4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_71c4198a-fc56-439a-83f2-d23b4fe904c2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_e89631ea-0b81-4eff-b6a3-125dda02bc11">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_ecbb718c-fa24-463e-9ff8-37d6fa249ba2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_f11356bc-ef98-4d2c-a95c-948483dc41cc">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_668aa3aa-41db-40f1-9a46-d4452f0a5325">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_dd352422-7203-41fa-8bec-a83d4fbdca2e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_42152fce-efca-4090-8c08-2f5972423262">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_57e6d757-17cf-443d-85b5-5220e0cb3435">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      id="F_11292dfe-f44a-413f-bbe5-a12b782a8986">&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,760,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_b797a0aa-12b2-4854-b885-c6e3b732bd21"
      decimals="0"
      id="F_bf0e8b37-9afd-46e4-9253-291b7e859fc9"
      unitRef="U_USD">2760000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
