<?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_e3ce05ff-98fb-4879-9de9-dba99bc41b9b">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_6b74e33e-0c56-4af8-8b50-dfb639c4e3aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_13777a6c-6d12-4bf9-b26a-4bf9e74d2c42">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_717aa5e5-df9a-445c-940d-0c1b935fa1b5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_a999db57-3fc4-40ca-9207-07034144fda2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_135f6316-e448-414d-8c0f-7dfa5c9b4b52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_f95fbceb-cd5a-498d-b5d1-059ab3d7b04d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_909c953a-1117-4109-85b2-cd6c1493748a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_b45d25fd-8308-48cd-a20b-d47554895b53">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_99dd7908-6867-4b9a-a959-30360d0ec2ee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      id="F_8d2e552c-e99d-45e7-bf57-c1610bd1658a">&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;848,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_e3ce05ff-98fb-4879-9de9-dba99bc41b9b"
      decimals="-3"
      id="F_bf0cff94-2ec3-4974-850d-37f7eda81f53"
      unitRef="U_USD">848000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
