<?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_b24038c3-ce9c-4382-bd9d-0e1e6503c677">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_f33df396-0573-4253-8ac2-dd3f35badb35">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_851c7459-d60d-4fff-bf05-a4014d7160f4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_716437ed-18d7-4ec2-9b50-5d404cc26319">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_0a4f135c-66ee-4d62-b816-626f5bed66df">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_81c764b0-cf03-439c-9307-dc49be0ca748">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_8c9d4871-fa47-40c9-a34f-c24371752530">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_5a62c336-30be-4c9a-87d5-d3862c0cb8df">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_b68500d8-cde6-4919-b428-1b773c0652ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_38b4dc9a-321c-48eb-8860-f2d70fee8de4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      id="F_6e72e3b2-795a-4a3b-92d1-d7406cd3a593">&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;55,324,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_b24038c3-ce9c-4382-bd9d-0e1e6503c677"
      decimals="-3"
      id="F_251281cd-2e59-4708-8c8e-16c9f47df297"
      unitRef="U_USD">55324000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
