<?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_05b42c22-d527-453f-9698-7434b2800083">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_e14d6b39-6b84-41c8-8263-b40376c73f57">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_d0b8cfbe-3282-4a6a-88c3-ca43b0f98847">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_3d58ffef-84f3-4e3c-a828-90b4ab001b5d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_2648589d-dda9-4e39-a2da-e76d3d483fa9">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_b4a34057-361a-46e5-8b0d-9f9222be895a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_4105ee65-549c-48bd-9e2f-e56fb5bfdf46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_facb3779-240c-40a2-bb61-7fcecac30438">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_9d85f067-2b8a-45c7-b6d4-bc2eed6a227e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_bb9ff379-361b-4f68-ae8f-0bd76777b63f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_05b42c22-d527-453f-9698-7434b2800083"
      id="F_cc0f8560-3152-44f8-9f08-c0a30d112295">&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;3,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_05b42c22-d527-453f-9698-7434b2800083"
      decimals="-3"
      id="F_d7d69b87-8edb-4eea-b750-34339e323164"
      unitRef="U_USD">3467000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
