<?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_944e4b48-1ea3-442f-87ee-54b8539f81c4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_93bf8a83-d713-4236-9123-853cdbda8ab7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_1c092ed8-c072-4ac3-832e-41a7d0761955">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_13b108d6-4312-4ded-8021-6b0ed99f7d86">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_3a52b654-1333-4c1a-9eea-15c49a36b682">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_e25d8c92-b991-4074-8137-49632c9981ee">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_d48b9f3a-b8e3-490b-857d-55cf4b6ffae9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_a96901b1-fd5b-46a3-927b-bf2559235e81">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_c8e873d2-995e-4ef6-b0a9-923302315636">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_4f7c5d0c-c638-430c-b4ad-c592d289a125">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      id="F_b74281b0-8017-4f01-9ebb-aa1fc715bb01">&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;5,615,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_944e4b48-1ea3-442f-87ee-54b8539f81c4"
      decimals="-3"
      id="F_bd3f6731-089c-46af-9f93-109d08cb24f5"
      unitRef="U_USD">5615000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
