<?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_f0896a48-26c9-49c4-bd28-f7b8206adbdc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_f7c237d4-fefc-40e6-9413-c3878fe83a85">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_b4866da9-2bce-4c5f-835c-712de24f18e5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_687347f1-6b2e-4ac7-9ae8-000f9e4e8238">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_6542dd92-9686-4f27-9b2e-db019053f640">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_cf47299f-5474-4eda-b122-af426efb14ca">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_69347c48-bf64-47ed-bf8d-cde305b12fef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_fcc14ba7-4efc-478f-83c5-eecaa6c237ee">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_74b1eefc-0180-4c35-bac8-087dae5ab296">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_5c24966f-1b75-4563-930b-4dbcac86e3be">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      id="F_7c37fbfb-5993-4373-aa8a-e1feeaf32df6">&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;3,978,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_f0896a48-26c9-49c4-bd28-f7b8206adbdc"
      decimals="-3"
      id="F_e4fd7b2c-371f-4bc9-86d1-67a97e57dbbc"
      unitRef="U_USD">3978000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
