<?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_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_2899fae5-d91d-4623-a35e-d6f0fa223781">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_0527d0d2-629d-4c90-af2e-007e6ae7eecb">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_1c1e05c7-7966-42c9-a6c5-91d444e79110">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_332a6da8-784b-40fd-ae21-36267b648a05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_d671b71e-d92e-4988-8e7e-ee8b90682b39">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_f19f1133-1669-4f42-92f0-915f860c9558">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_829a69a4-699b-46b7-8668-90cd67914ebb">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_216744e1-83c6-4183-9e9b-c8f6f748e024">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_f34dfb22-4337-4a75-99a3-4bb117c6c7df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      id="F_be9038a5-5bc6-49ff-a715-6ec13d925279">&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;375,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_f9e3fd2b-821c-4af0-83d9-e4b7572cb9d0"
      decimals="-3"
      id="F_9ce09cc1-98ab-4f26-9a29-644513dbb0e1"
      unitRef="U_USD">375000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
