<?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_e79df088-321c-4ca3-9a30-0a0a15b71420">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_64d17eeb-ea64-4711-a527-d36f395ee26c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_27dd7279-967b-445f-aa28-950c29b1b731">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_e2e89f8f-e683-4d62-98f9-905d10a3eb91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_0a82930c-c6e5-4790-9a9a-4f57b3457f82">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_df9a7e88-8a67-44ea-8912-974f8779897b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_f0e01564-4bbb-4e8c-9113-15973363ddd5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_cbef7637-5934-4cb6-8948-8f26bd6c54d0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_7a9c5397-9f51-406c-92f7-c20379604484">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_ee129f99-07ca-40c8-90af-6c5b06de8a73">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e79df088-321c-4ca3-9a30-0a0a15b71420"
      id="F_3b91627c-4972-4728-ba2e-0a5006ccfd31">&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;22,467,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_e79df088-321c-4ca3-9a30-0a0a15b71420"
      decimals="-3"
      id="F_0c5b74f0-840a-40dd-ae88-c2c37270e20d"
      unitRef="U_USD">22467000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
