/* ── Layout ───────────────────────────────────────────────────────────────── */

.pt-navbar {
    padding-top: 72px; /* clear fixed navbar */
}

/* ── MIB description <pre> ───────────────────────────────────────────────── */

.mib-description,
.notif-description {
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #555;
    max-height: 220px;
    overflow-y: auto;
}

.mib-description.expanded,
.notif-description.expanded {
    max-height: none;
}

.mib-info-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: .7rem 1rem;
    padding-top: .85rem;
    border-top: 1px solid #e8ecee;
}

.mib-info-facts > div {
    min-width: 0;
}

.mib-info-facts dt {
    margin-bottom: .15rem;
    color: #778187;
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.mib-info-facts dd {
    margin: 0;
    color: #38484e;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

/* ── OID table ───────────────────────────────────────────────────────────── */

.oid-table td {
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.oid-table td:last-child {
    width: 1%;          /* shrink OID number column */
}

.oid-table td:nth-child(2) {
    white-space: normal;
    min-width: 120px;
    overflow-wrap: anywhere;
}

:is(.oid-deprecated,.G) {
    opacity: 0.65;
}

:is(.oid-link,.a) {
    text-decoration: none;
    color: inherit;
}
:is(.oid-link,.a):hover {
    text-decoration: underline;
}

/* Subtle permalink anchor — dotted underline, no link colour */
.subtle-link {
    color:           inherit;
    text-decoration: none;
    border-bottom:   1px dotted #aaa;
}
.subtle-link:hover {
    color:            #0a5f7f;
    border-bottom-color: #0a5f7f;
}

/* Permalink highlight (animated) */
.permalink-highlight {
    background-color: #fff3cd !important;
    outline: 2px solid #ffc107;
    transition: background-color 0.3s ease, outline 0.3s ease;
}

/* ── Search results ──────────────────────────────────────────────────────── */

mark {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
}

/* ── Badge base overrides ─────────────────────────────────────────────────────
   Smaller, lighter weight, less rounded — closer to Bootstrap 2 labels       */

:is(.badge,.H,.I,.J,.K,.L,.M,.N) {
    font-size:     11px;
    font-weight:   400;
    padding:       2px 6px;
    border-radius: 3px;
}

/* Links inside badges must inherit the badge text colour, not go link-blue   */
:is(.badge,.H,.I,.J,.K,.L,.M,.N) a,
:is(.badge,.H,.I,.J,.K,.L,.M,.N) a:hover,
:is(.badge,.H,.I,.J,.K,.L,.M,.N) a:focus {
    color:           inherit !important;
    text-decoration: none    !important;
}

/* ── Observium badge colour palette (overrides Bootstrap 5 defaults) ────────
   Matched exactly to the Bootstrap 2 label colours in observium.css          */

:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-primary,.I)   { background-color: #0a5f7f !important; }
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-info,.J)      { background-color: #4bb1cf !important; color: #fff !important; }
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-secondary,.K) { background-color: #777777 !important; color: #fff !important; }
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-success,.L)   { background-color: #4d9221 !important; }
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-warning,.M)   { background-color: #f0ad4e !important; color: #333 !important; }
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-danger,.N)    { background-color: #d9534f !important; }

/* ── Access badge (readwrite indicator) ─────────────────────────────────────
   Keep the shared badge geometry so access/status/syntax labels line up.      */
:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.access-rw,.d) {
    background-color: #4d9221 !important;
    opacity:     0.85;
}

/* Keep the object name and its status/access labels on the same visual axis. */
:is(.oid-cell,.f) {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             0.5rem;
}

:is(.oid-main,.c),
:is(.oid-labels,.g) {
    display:     inline-flex;
    align-items: center;
}

:is(.oid-labels,.g) {
    flex: 0 0 auto;
    gap:  0.25rem;
}

:is(.oid-syntax,.b) {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         0.25rem;
}

:is(.oid-syntax,.b) :is(.badge-group,.e) {
  margin-bottom: 0;
}

#mib-object-table td:first-child,
#mib-object-table td:last-child {
    white-space: nowrap;
}

#mib-object-table td:last-child {
    color: var(--bs-secondary-color);
    font-size: .875em;
}

#mib-object-table :is(.oid-main,.c) {
    gap: .25rem;
    padding-inline-start: var(--oid-indent, 0px);
}

/* Each depth adds 16px of indentation in the OID tree. */
#mib-object-table .i1  { --oid-indent: 16px; }
#mib-object-table .i2  { --oid-indent: 32px; }
#mib-object-table .i3  { --oid-indent: 48px; }
#mib-object-table .i4  { --oid-indent: 64px; }
#mib-object-table .i5  { --oid-indent: 80px; }
#mib-object-table .i6  { --oid-indent: 96px; }
#mib-object-table .i7  { --oid-indent: 112px; }
#mib-object-table .i8  { --oid-indent: 128px; }
#mib-object-table .i9  { --oid-indent: 144px; }
#mib-object-table .i10 { --oid-indent: 160px; }
#mib-object-table .i11 { --oid-indent: 176px; }
#mib-object-table .i12 { --oid-indent: 192px; }
#mib-object-table .i13 { --oid-indent: 208px; }
#mib-object-table .i14 { --oid-indent: 224px; }
#mib-object-table .i15 { --oid-indent: 240px; }
#mib-object-table .i16 { --oid-indent: 256px; }

#mib-object-table tr[data-a="t"] { --oid-icon: url('/images/games-config-board.svg'); }
#mib-object-table tr[data-a="c"] { --oid-icon: url('/images/edit-table-delete-column.svg'); }
#mib-object-table tr[data-a="r"] { --oid-icon: url('/images/edit-table-delete-row.svg'); }
#mib-object-table tr[data-a="n"] { --oid-icon: url('/images/draw-line.svg'); }
#mib-object-table tr[data-a="s"] { --oid-icon: url('/images/code-variable.svg'); }

#mib-object-table tr:is(
    [data-a="t"], [data-a="c"], [data-a="r"],
    [data-a="n"], [data-a="s"]
) :is(.oid-main,.c)::before {
    content: "";
    background: var(--oid-icon) center / contain no-repeat;
    inline-size: 16px;
    block-size: 16px;
    flex: none;
}

#mib-object-table :is(.oid-deprecated,.G) :is(.oid-main,.c)::before {
    opacity: .5;
}

/* ── In-MIB object filter ──────────────────────────────────────────────────
   All object rows remain server-rendered; these controls only hide/show the
   existing rows and therefore add no database or network work. */
.mib-object-filter-panel {
    padding: .75rem 1rem;
    background: #f8fafb;
}

.mib-object-filter-panel .form-label {
    margin-bottom: .2rem;
    color: #53646a;
    font-size: .72rem;
    font-weight: 650;
}

.mib-object-filter-panel .form-control,
.mib-object-filter-panel .form-select {
    border-color: #c5d2d6;
}

.mib-object-support-filter {
    padding-bottom: .15rem;
}

.mib-object-filter-status {
    min-height: 1.25em;
}

.mib-object-legend {
    margin-top: .45rem;
    padding-top: .45rem;
    border-top: 1px solid #e2e8ea;
}

.mib-object-legend > summary {
    width: max-content;
    color: #53646a;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 650;
}

.mib-object-legend > summary:hover,
.mib-object-legend > summary:focus-visible {
    color: #0a5f7f;
}

.mib-object-legend-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
    padding-top: .7rem;
}

.mib-object-legend-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    min-width: 0;
}

.mib-object-legend-item strong,
.mib-object-legend-item > div:last-child > span {
    display: block;
}

.mib-object-legend-item strong {
    color: #43545a;
    font-size: .76rem;
}

.mib-object-legend-item > div:last-child > span {
    margin-top: .08rem;
    color: #67767b;
    font-size: .72rem;
    line-height: 1.35;
}

.mib-object-legend-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    min-height: 1.65rem;
    font-size: .72rem;
}

.mib-object-legend-types span {
    display: inline-flex;
    align-items: center;
    gap: .18rem;
}

@media (max-width: 1199.98px) {
    .mib-object-legend-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .mib-object-legend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .mib-object-legend-grid {
        grid-template-columns: 1fr;
    }
}

/* ── MIB dependency tree and compile order ─────────────────────────────── */
.mib-dependencies {
    overflow: hidden;
}

.mib-dependency-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.mib-dependency-summary::-webkit-details-marker {
    display: none;
}

.mib-dependency-summary::before {
    content: "›";
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .15s ease;
}

.mib-dependencies[open] > .mib-dependency-summary::before {
    transform: rotate(90deg);
}

.mib-dependency-summary > span:first-of-type {
    flex: 1 1 auto;
}

.mib-dependency-summary-action .when-open {
    display: none;
}

.mib-dependencies[open] .mib-dependency-summary-action .when-closed {
    display: none;
}

.mib-dependencies[open] .mib-dependency-summary-action .when-open {
    display: inline;
}

.mib-dependency-tree,
.mib-dependency-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mib-dependency-tree ul {
    margin: .25rem 0 .25rem .8rem;
    padding-left: .9rem;
    border-left: 1px solid #d8e0e3;
}

.mib-dependency-tree li + li {
    margin-top: .25rem;
}

:is(.mib-dependency-node,.v) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    min-width: 0;
    padding: .3rem .45rem;
    border: 1px solid #e0e6e8;
    border-radius: .3rem;
    background: #f8fafb;
    font-size: .78rem;
}

:is(.mib-dependency-node,.v).is-root {
    border-color: #9ccbd9;
    background: #edf7fa;
}

:is(.mib-dependency-node,.v).is-missing {
    border-style: dashed;
    border-color: #d8a9a9;
    background: #fff8f8;
}

:is(.mib-dependency-name,.y) {
    min-width: 0;
    color: inherit;
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: none;
}

:is(.mib-dependency-name,.y):hover,
:is(.mib-dependency-name,.y):focus-visible {
    color: #0a5f7f;
    text-decoration: underline;
}

:is(.mib-dependency-dir,.r) {
    flex: 0 0 auto;
    padding: .05rem .3rem;
    border: 1px solid #d7dfe2;
    border-radius: 999px;
    background: #fff;
    color: #69767b;
    font-size: .66rem;
}

:is(.mib-dependency-symbols,.z) {
    flex: 0 0 auto;
    margin-left: auto;
    color: #78858a;
    font-size: .7rem;
}

.mib-compile-order {
    padding-left: 2rem;
}

.mib-compile-order li {
    padding: .28rem 0 .28rem .15rem;
    border-bottom: 1px solid #edf0f1;
    font-size: .78rem;
}

.mib-compile-order li:last-child {
    border-bottom: 0;
}

.mib-compile-order a {
    margin-right: .4rem;
    color: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.mib-compile-order a:hover,
.mib-compile-order a:focus-visible {
    color: #0a5f7f;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .mib-dependency-summary-action {
        display: none;
    }

    :is(.mib-dependency-symbols,.z) {
        width: 100%;
        margin-left: 0;
    }
}

/* Related-object tables use the same object/reference language as MIB rows.
   Type and syntax share the compact definition column; the numeric OID keeps
   its own scan-friendly column. */
.object-related-table {
    min-width: 760px;
    table-layout: fixed;
    width: 100%;
}

.object-related-table th,
.object-related-table td {
    vertical-align: middle;
}

.object-related-table th:first-child,
.object-related-table td:first-child {
    width: auto;
}

.object-related-table th:nth-child(2),
.object-related-table td:nth-child(2) {
    width: 280px;
}

.object-related-table th:last-child,
.object-related-table td:last-child {
    width: 240px;
}

.object-related-table :is(.oid-cell,.f) {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.object-related-syntax :is(.oid-syntax,.b) {
    align-items: flex-start;
    flex-wrap: wrap;
}

.object-related-table :is(.mib-object-reference,.k) {
    font-size: 12px;
}

.mib-numeric-oid {
    overflow-wrap: normal;
    word-break: normal;
}

/* ── Observium support ──────────────────────────────────────────────────── */
.observium-support-badge {
  letter-spacing: .01em;
}

.observium-support-badge:is(.is-monitored,.n) {
  background: #0a5f7f;
  color: #fff;
}

.observium-support-badge:is(.is-recognized,.p) {
  background: #e8f3f7;
  border: 1px solid #9fc7d6;
  color: #0a5f7f;
}

:is(.observium-support-compact,.o) {
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  padding: .28em .45em;
  vertical-align: .08em;
}

:is(.observium-support-compact,.o):is(.is-monitored,.n) {
  background: #0a5f7f;
  color: #fff;
}

:is(.observium-support-compact,.o):is(.is-recognized,.p) {
  background: #e8f3f7;
  border: 1px solid #9fc7d6;
  color: #0a5f7f;
}

.observium-support-panel {
  background: #f1f7f9;
  border: 1px solid #c6dce4;
  border-radius: .375rem;
  padding: .875rem;
}

.observium-support-mark {
  align-items: center;
  background: #0a5f7f;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 1.75rem;
  font-size: .8rem;
  font-weight: 700;
  height: 1.75rem;
  justify-content: center;
}

/* ── Observium support catalogue ────────────────────────────────────────── */

.observium-catalog-filter-panel {
    background: #f8fafb;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.observium-catalog-table th,
.observium-catalog-table td {
    padding: .65rem .75rem;
    vertical-align: top;
}

.observium-catalog-table th:first-child,
.observium-catalog-table td:first-child {
    width: 48%;
}

.observium-catalog-table th:nth-child(2),
.observium-catalog-table td:nth-child(2) {
    min-width: 210px;
    width: 23%;
}

.observium-catalog-table th:last-child,
.observium-catalog-table td:last-child {
    min-width: 220px;
    width: 29%;
}

.observium-catalog-row[hidden] {
    display: none !important;
}

/* ── Badge group — connected two-part badge (e.g. MIB::Object) ─────────────
   Wrap sibling :is(.badge,.H,.I,.J,.K,.L,.M,.N) elements in a :is(.badge-group,.e) span to connect them.       */

:is(.badge-group,.e) {
    display:        inline-flex;
    flex-wrap:      nowrap;
    vertical-align: middle;
    margin-bottom:  2px;
    max-width:      100%;
}

:is(.badge-group,.e) :is(.badge,.H,.I,.J,.K,.L,.M,.N) {
    max-width:      100%;
    white-space:    normal;
    overflow-wrap:  anywhere;
    word-break:     break-word;
}

:is(.badge-group,.e) :is(.badge,.H,.I,.J,.K,.L,.M,.N):first-child {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    border-top-right-radius:    0;
    border-bottom-right-radius: 0;
}

:is(.badge-group,.e) :is(.badge,.H,.I,.J,.K,.L,.M,.N):last-child {
    border-top-left-radius:    0;
    border-bottom-left-radius: 0;
}

:is(.badge-group,.e) :is(.badge,.H,.I,.J,.K,.L,.M,.N):not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* ── Bootstrap 5 popover overrides ──────────────────────────────────────── */

.popover {
    max-width: 420px;
    font-size: 13px;
}

.popover table td:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Imports table ───────────────────────────────────────────────────────── */

.import-module-cell {
    width:        1%;         /* shrink to content */
    padding-right: 16px;
}

.import-module-link {
    font-size:  12px;
    color:      #0a5f7f;
    font-weight: 500;
}
.import-module-link:hover {
    color:      #063c50;
    text-decoration: underline !important;
}

.import-names-cell {
    font-size:  12px;
    line-height: 1.6;
}

/* Each imported name — dotted underline signals tooltip availability */
:is(.import-name,.w) {
    color:          #444;
    border-bottom:  1px dotted #aaa;
    cursor:         default;
    margin-right:   6px;
    white-space:    nowrap;
    display:        inline-block;
}
:is(.import-name,.w):hover {
    border-bottom-color: #0a5f7f;
    color:               #0a5f7f;
}

:is(.import-name-link,.x) {
    cursor: pointer;
    text-decoration: none;
}

:is(.reference-unresolved,.F):not(:is(.badge,.H,.I,.J,.K,.L,.M,.N)) {
    color: #6c757d;
    cursor: help;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: #adb5bd;
    text-underline-offset: .16em;
}

:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.reference-unresolved,.F) {
    border: 1px dashed rgba(255, 255, 255, .65);
    color: #fff !important;
    cursor: help;
    opacity: 1;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: currentColor;
    text-underline-offset: .16em;
}

:is(.badge,.H,.I,.J,.K,.L,.M,.N):is(.bg-warning,.M):is(.reference-unresolved,.F) {
    border-color: rgba(0, 0, 0, .4);
    color: #212529 !important;
}

/* ── MIB reference sections ─────────────────────────────────────────────── */

.mib-reference-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}

.mib-reference-table > tbody > tr > td:first-child,
.mib-reference-table > thead > tr > th:first-child {
    padding-left: .75rem;
}

.mib-groups-table td:last-child {
    width: 1%;
}

.mib-typedef-table td {
    vertical-align: top;
}

.mib-groups-table td:first-child {
    width: 1%;
    min-width: 190px;
}

.mib-groups-table td:nth-child(2) {
    min-width: 320px;
}

:is(.mib-object-references,.m) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .6rem;
    font-size: 12px;
    line-height: 1.45;
}

:is(.mib-object-reference,.k) {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

:is(.mib-object-reference,.k) img {
    flex: 0 0 auto;
}

:is(.mib-qualified-link,.q) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

:is(.mib-qualified-link,.q):hover,
.compliance-refinement-table td:first-child a:hover {
    color: #0a5f7f;
    text-decoration: underline;
}

:is(.mib-reference-description,.l) {
    color: #555;
    font-size: 12px;
    line-height: 1.45;
}

.mib-compliance-accordion .accordion-button {
    padding: .55rem .75rem;
    color: inherit;
    font-size: 1rem;
}

.mib-compliance-accordion .accordion-button,
.mib-compliance-accordion .accordion-button:not(.collapsed) {
    color: inherit;
    background: transparent;
}

.mib-compliance-accordion .accordion-item:nth-child(odd) {
    background: rgba(0, 0, 0, .05);
}

.mib-compliance-accordion .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.mib-compliance-accordion .accordion-body {
    padding: .75rem;
}

.compliance-refinement-table th,
.compliance-refinement-table td {
    vertical-align: top;
}

.compliance-requirement-table td {
    vertical-align: top;
}

.compliance-requirement-table td:first-child,
.compliance-requirement-table td:nth-child(2) {
    width: 1%;
    white-space: nowrap;
}

.compliance-requirement-table td:last-child {
    width: auto;
    min-width: 360px;
}

.compliance-refinement-table th:first-child,
.compliance-refinement-table td:first-child {
    width: 1%;
    min-width: 180px;
}

.compliance-refinement-table td:first-child a {
    color: inherit;
    text-decoration: none;
}

.compliance-refinement-table th:nth-child(2),
.compliance-refinement-table td:nth-child(2) {
    width: 1%;
}

.compliance-refinement-table th:nth-child(3),
.compliance-refinement-table td:nth-child(3) {
    min-width: 180px;
}

.compliance-refinement-table th:last-child,
.compliance-refinement-table td:last-child {
    width: auto;
    min-width: 360px;
}

.mib-notifications-table th,
.mib-notifications-table td {
    vertical-align: top;
}

.mib-notifications-table th:first-child,
.mib-notifications-table td:first-child {
    min-width: 280px;
}

.mib-notifications-table th:nth-child(2),
.mib-notifications-table td:nth-child(2) {
    width: 1%;
}

.mib-notifications-table th:last-child,
.mib-notifications-table td:last-child {
    min-width: 360px;
}

@media (max-width: 767.98px) {
    .mib-groups-table td:first-child {
        min-width: 160px;
    }

    .mib-groups-table td:nth-child(2),
    .compliance-requirement-table td:last-child,
    .compliance-refinement-table th:last-child,
    .compliance-refinement-table td:last-child,
    .mib-notifications-table th:last-child,
    .mib-notifications-table td:last-child {
        min-width: 260px;
    }
}

/* ── Unlisted popularity report ─────────────────────────────────────────── */

.analytics-ranking-card .card-header {
    min-height: 52px;
}

.analytics-ranking-table th,
.analytics-ranking-table td {
    padding-top: .4rem;
    padding-bottom: .4rem;
    vertical-align: middle;
}

.analytics-ranking-table th:first-child,
.analytics-ranking-table td:first-child {
    width: 1%;
    padding-left: .75rem;
    text-align: right;
}

.analytics-ranking-table th:last-child,
.analytics-ranking-table td:last-child {
    width: 1%;
    padding-right: .75rem;
    white-space: nowrap;
}

/* ── Numeric OID resolver and ancestry ──────────────────────────────────── */

.oid-resolver-table th,
.oid-resolver-table td {
    padding-top: .45rem;
    padding-bottom: .45rem;
    vertical-align: top;
}

.oid-resolver-table th:first-child,
.oid-resolver-table td:first-child {
    min-width: 320px;
    padding-left: .75rem;
}

.oid-resolver-table th:last-child,
.oid-resolver-table td:last-child {
    width: 1%;
    padding-right: .75rem;
}

.oid-ancestry {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .65rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    background: #f8f9fa;
    font-size: 12px;
}

.oid-ancestry-separator {
    color: #9aa2a6;
}

.oid-ancestry a {
    color: inherit;
    text-decoration: none;
}

.oid-ancestry a:hover {
    color: #0a5f7f;
    text-decoration: underline;
}

.oid-command {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .65rem;
    border: 1px solid #e2e7e9;
    border-radius: .3rem;
    background: #f8f9fa;
}

.oid-command > div {
    min-width: 0;
}

.oid-command code {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.snmp-command-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.snmp-more-examples {
    margin-top: .15rem;
}

.snmp-more-examples > summary {
    width: fit-content;
    color: #0a5f7f;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
}

.snmp-examples-panel {
    overflow: hidden;
}

.snmp-examples-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.snmp-examples-summary::-webkit-details-marker {
    display: none;
}

.snmp-examples-summary::before {
    content: "›";
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1;
    transform: rotate(0);
    transition: transform .15s ease;
}

.snmp-examples-panel[open] > .snmp-examples-summary::before {
    transform: rotate(90deg);
}

.snmp-examples-summary > span:first-of-type {
    flex: 1 1 auto;
}

.table-snmp-example {
    padding: .75rem;
    border: 1px solid #dce4e7;
    border-radius: .375rem;
    background: #f8fafb;
}

.snmp-guide-definitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.snmp-guide-definitions dt {
    margin-bottom: .2rem;
}

.snmp-guide-definitions dd {
    margin-bottom: 0;
    color: #495057;
}

.snmp-path-example {
    padding: .75rem;
    border: 1px solid #e2e7e9;
    border-radius: .3rem;
    background: #f8f9fa;
}

.snmp-command-purpose-table th:first-child,
.snmp-command-purpose-table td:first-child {
    width: 1%;
    padding-left: .75rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .oid-command {
        flex-direction: column;
    }

    .oid-command .btn {
        align-self: flex-start;
    }

    .snmp-guide-definitions {
        grid-template-columns: 1fr;
    }

    .snmp-summary-action {
        display: none;
    }
}

/* ── Home page ───────────────────────────────────────────────────────────── */

.home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e4e8;
    border-radius: .6rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(75, 177, 207, .16), transparent 27%),
        linear-gradient(135deg, #f7fbfc 0%, #eef6f8 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 3px solid #0a5f7f;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 3rem;
}

.home-eyebrow,
.home-guide-kicker {
    color: #0a5f7f;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-eyebrow {
    margin-bottom: .55rem;
}

.home-hero-copy {
    color: #5d6b70;
}

.home-search {
    max-width: 650px;
}

.home-search .form-control {
    border-color: #b9cbd1;
}

.home-search-examples {
    color: #65747a;
    font-size: .78rem;
}

.home-search-examples > * + * {
    margin-left: .18rem;
}

.search-filter-panel {
    padding: .9rem;
    border: 1px solid #cbdadd;
    border-radius: .4rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 .25rem .7rem rgba(33, 62, 72, .06);
}

.search-filter-panel .form-label {
    margin-bottom: .2rem;
    color: #53646a;
    font-size: .72rem;
    font-weight: 650;
}

.search-filter-panel .form-select,
.search-filter-panel .form-control {
    border-color: #b9cbd1;
}

.search-object-filter.is-disabled {
    opacity: .55;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-mib-card {
    border-color: #dfe5e7;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.home-mib-card:hover,
.home-mib-card:focus-visible {
    border-color: #4bb1cf;
    box-shadow: 0 .25rem .75rem rgba(29, 67, 79, .09);
    color: inherit;
    transform: translateY(-1px);
}

.home-mib-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.home-mib-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: #0a5f7f;
    font-size: .84rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.home-mib-card-description {
    margin: .45rem 0 .5rem;
    color: #667278;
    font-size: .76rem;
    line-height: 1.45;
}

.home-mib-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    margin-top: .1rem;
    color: #7a8589;
    font-size: .7rem;
}

.home-mib-card-meta span + span {
    position: relative;
}

.home-mib-card-meta span + span::before {
    content: "·";
    position: absolute;
    left: -.42rem;
    color: #a2aaad;
}

.home-popular-label {
    color: #0a5f7f;
    font-weight: 600;
}

.home-overview-card,
.home-guide-card {
    border-color: #dfe5e7;
}

.home-overview-card .card-header {
    border-bottom-color: #e7ecee;
    background: #f8fafb;
}

.home-stat-row > div + div .home-stat {
    border-left: 1px solid #e2e7e9;
}

.home-stat {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
}

.home-stat strong {
    color: #27383e;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
}

.home-stat span {
    margin-top: .25rem;
    color: #748087;
    font-size: .75rem;
}

.home-guide-card .card-body {
    padding: 1.1rem 1.15rem;
}

.home-guide-kicker {
    margin-bottom: .35rem;
}

@media (max-width: 767.98px) {
    .home-hero-content {
        padding: 2.5rem 1rem 2.25rem;
    }

    .home-hero .display-6 {
        font-size: 1.8rem;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-stat-row > div:nth-child(odd) .home-stat {
        border-left: 0;
    }
}

/* ── Enum / named-number grid (typedef values) ───────────────────────────── */

:is(.enum-grid,.t) {
    column-count: 4;
    column-gap:  1.2rem;
}

:is(.enum-grid,.t) > * {
    break-inside: avoid;
    margin-bottom: 0.15rem;
}

:is(.enum-grid,.t) :is(.text-nowrap,.Q),
:is(.enum-grid,.t) code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:is(.enum-value,.s) {
    color: #000;
}

/* ── Browse-all filter ───────────────────────────────────────────────────── */

.mib-category {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    margin-bottom: 1rem;
}

.mib-category > h2 {
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    font-size: 1rem;
    margin: 0;
    padding: .75rem 1rem;
}

.mib-category > h2 span {
    font-size: .875em;
    font-weight: normal;
    color: var(--bs-secondary-color);
}

.mib-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: .75rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.mib-category[hidden] {
    display: none;
}

.mib-catalogue a {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.mib-catalogue a:hover {
    text-decoration: underline;
}

.mib-catalogue small {
    display: block;
    color: var(--bs-secondary-color);
    font-weight: normal;
}

.mib-catalogue [data-support] {
    font-size: .75em;
    color: var(--bs-secondary-color);
}

.mib-catalogue [data-support="monitored"] {
    color: var(--bs-success-text-emphasis);
}

/* ── Table view prototype ─────────────────────────────────────────────────── */

.table-card {
    scroll-margin-top: 88px;
}

.table-card-deprecated {
    border-color: #d9d9d9;
}

.table-description {
    max-height: none;
    margin-bottom: 1rem;
}

:is(.table-entry-block,.B) + :is(.table-entry-block,.B) {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

:is(.table-entry-header,.C) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

:is(.table-indexes,.D) {
    min-width: 220px;
    max-width: 320px;
}

:is(.table-columns,.A) td {
    vertical-align: top;
}

:is(.table-columns,.A) > tbody > tr > td:first-child > small {
    display: block;
    margin-top: .25rem;
    color: var(--bs-secondary-color);
}

:is(.table-columns,.A) > tbody > tr > td:first-child :is(.oid-link,.a)::before {
    content: "";
    background: url('/images/edit-table-delete-column.svg') center / contain no-repeat;
    display: inline-block;
    inline-size: 16px;
    block-size: 16px;
    margin-inline-end: .25rem;
    vertical-align: middle;
}

:is(.table-columns,.A) > tbody > tr > td:last-child {
    color: var(--bs-secondary-color);
    font-size: .875em;
    white-space: nowrap;
}

:is(.table-columns,.A) td:nth-child(2) {
    min-width: 180px;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
    overflow-wrap: anywhere;
}

:is(.table-columns,.A) td:nth-child(2) code {
    font-size: 11px;
}

:is(.table-columns,.A) td:nth-child(2) :is(.badge,.H,.I,.J,.K,.L,.M,.N),
:is(.table-columns,.A) td:nth-child(2) :is(.badge-group,.e) {
    vertical-align: middle;
}

:is(.syntax-detail-block,.i) {
    margin-top: 0.45rem;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
}

:is(.syntax-section,.h) + :is(.syntax-section,.h) {
    margin-top: 0.2rem;
}

:is(.syntax-section,.h) strong {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

:is(.syntax-enum-table,.E) {
    margin-top: 0.2rem;
    border-collapse: collapse;
}

:is(.syntax-enum-table,.E) td {
    padding: 0 0.45rem 0.05rem 0;
    vertical-align: top;
}

:is(.syntax-enum-table,.E) td:first-child {
    white-space: nowrap;
    color: #555;
}

:is(.syntax-enum-table,.E) td:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
}

:is(.syntax-description,.j) {
    margin-top: 0.2rem;
    color: #555;
}

/* ── Search result source variants ─────────────────────────────────────── */

.search-variant-group {
    font-size: 12px;
}

.search-variant-header {
    align-items: center;
    color: #6c757d;
    display: inline-flex;
    gap: .4rem;
}

.search-variant-summary {
    color: #6c757d;
}

.search-variant-list {
    border-left: 2px solid #d8e2e7;
    margin: .45rem 0 0 .35rem;
    padding-left: .65rem;
}

.search-variant-item {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .55rem;
    padding: .25rem 0;
}

.search-variant-heading {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.search-variant-link {
    font-weight: 600;
}

.search-variant-facts {
    color: #6c757d;
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    :is(.table-entry-header,.C) {
        flex-direction: column;
    }

    :is(.table-indexes,.D) {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
