<?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_54df0301-7350-4235-ac28-f7acad211307">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_2052717b-b79c-430a-9684-64a58ca0bf08">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_3c8d8043-8aae-46b7-a081-082105848fbe">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_5025b560-4636-49f9-9f28-358909bb8c20">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_d9b2004c-f0a7-455a-b1a0-8219c4139c18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_9c861a74-cc51-401d-b7d4-53e0df70793a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_bf912317-f696-425b-8851-4fa1e7ef7342">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_2ace6a3f-2493-4292-919a-56e9df4b123d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_b7ff5e83-64e1-41ac-999b-7ad834a20819">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_59556e37-ac4c-44ca-8bb7-f4af81d2c5b8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_54df0301-7350-4235-ac28-f7acad211307"
      id="F_2a999963-2c59-4841-83fa-cea268d70bb5">&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,977,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_54df0301-7350-4235-ac28-f7acad211307"
      decimals="-3"
      id="F_a1c56941-fb74-433d-8e81-08e72537d7b7"
      unitRef="U_USD">2977000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
