<?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_54ac388d-b077-42ea-9548-9a531e54d7b7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_3eb04b56-7f97-4540-a17e-abde90737703">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_7ce288ce-9949-428b-8778-0d3d7cb8fd64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_110da1d4-919a-41da-8dc0-3b00d1171960">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_8a88d98e-3832-4b7a-80c1-968e6de123e2">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_c47949b1-48e6-4c61-bd4c-91b1a2ebc6f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_9297efbf-a2e5-442d-97cf-e58616e78f52">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_e6d51905-c170-4a84-8152-efd9e7ebcf4e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_0722216b-7f75-4754-8d27-985afa3ba24b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_668dd62f-9fcc-4d33-b441-16da8d41105d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_54ac388d-b077-42ea-9548-9a531e54d7b7"
      id="F_073e76e8-4d17-4e33-91f5-00af9aea4a05">&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;2,236,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_54ac388d-b077-42ea-9548-9a531e54d7b7"
      decimals="-3"
      id="F_b073e834-5bf7-4be5-8b12-31d4dcf62534"
      unitRef="U_USD">2236000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
