<?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_aaa0ea0a-a8de-4d63-851a-479389279e7a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_b5ea4035-5203-41b9-b18a-93b217d7429f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_5b247b42-ff3e-4c43-bb74-8612157c3c2c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_a3a882d2-9a3a-48ef-8e7c-1db79b348d75">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_cf6628e3-e1df-4bb4-b59c-7ae227e6d293">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_231339cc-f571-4fee-8f45-52c383c71284">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_23e82a7b-1378-4ebf-b3f3-c3445342c03c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_8c70dc3f-b6f2-4fec-9f80-136f7b6386ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_5c89285b-2d94-44eb-9dca-6e3e154d3f6f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_b731d52f-9f02-42db-aa8a-0c27ddd98710">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      id="F_3d0b2ff6-2e65-4489-bbe7-f4dc99c1e4c4">&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;9,160,900&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_aaa0ea0a-a8de-4d63-851a-479389279e7a"
      decimals="0"
      id="F_c200bc83-0ae3-450a-908b-1dd5db3247e8"
      unitRef="U_USD">9160900</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
