<?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_66868bdd-39fc-428b-ab02-7764d79616af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_5170f48e-e733-4088-8c0a-10b50828c4f4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_9b38f71f-03ff-43c3-a5f5-54eb9d3edaed">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_c140243b-a025-47a3-abc7-8aec9ad8ecce">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_ead65ff5-7af6-4058-914c-d0b36a43b5ea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_2f3660c3-2010-42c3-840a-041807684d67">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_af068ca6-2061-40fd-a3f6-7166a4df4e93">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_40b93409-1892-4518-a7e1-afc6f0dac9c1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_44a85fab-aba1-475a-ada5-8669d15a8eeb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_c1ab98aa-9669-4fac-afbd-a27946ddc4c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_66868bdd-39fc-428b-ab02-7764d79616af"
      id="F_6f5c774c-4c2d-4657-86a6-77a4cc10de0a">&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,890,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_66868bdd-39fc-428b-ab02-7764d79616af"
      decimals="-3"
      id="F_68724ad0-cc64-41c2-9243-4502659a041d"
      unitRef="U_USD">5890000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
