/* operators domain pages (src/pages/operators): /operators and /operator/{gid}.
 * Class prefix: .op- */

.op-intro { margin: 2px 0 14px; max-width: 900px; line-height: 1.5; }
.op-foot { margin: 14px 0 0; line-height: 1.5; }
.op-p { margin: 10px 0 0; line-height: 1.5; }
.op-strong { color: var(--text); }
.op-nowrap { white-space: nowrap; }
.op-inline { display: inline; }
.op-tiny { font-size: 11px; }
.op-stack { display: flex; flex-direction: column; gap: 8px; }

.op-results { transition: opacity .15s; }
.op-results.op-loading { opacity: .55; pointer-events: none; }

.op-sort { display: flex; align-items: center; gap: 4px; }
.op-sort .input { width: auto; }
.op-dir { display: inline-flex; transition: transform .15s; }
.op-dir.asc { transform: rotate(180deg); }

.op-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
td .op-badges:not(.op-inline) { margin-top: 3px; display: flex; }
.op-markup { font-weight: 650; }

.op-cov .stackbar { margin: 3px 0 2px; }

.op-only-phone { display: block; }
.op-only-desk { display: none; }
@media (min-width: 720px) { .op-only-phone { display: none; } .op-only-desk { display: block; } }
.op-only-desk .dt td { vertical-align: middle; padding-left: 9px; padding-right: 9px; }

/* phone cards */
.op-cards { list-style: none; margin: 0; padding: 0; }
.op-card + .op-card { border-top: 1px solid var(--border); }
.op-card-link { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; color: var(--text); min-height: 44px; }
.op-card-link:hover { text-decoration: none; background: var(--surface-2); }
.op-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.op-card-name { font-weight: 650; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.op-card-top .op-markup { flex: none; }
.op-card-figs { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--text-2); }
.op-card-figs strong { color: var(--text); }
.op-card-cov { display: flex; align-items: center; gap: 10px; }
.op-card-cov .stackbar { flex: 0 0 96px; min-width: 96px; height: 8px; }

/* detail */
.op-head-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.op-asof { margin-left: auto; }
@media (max-width: 719.98px) { .op-asof { margin-left: 0; flex-basis: 100%; } }
.op-flat-stats .stat { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.op-ind { margin-top: 6px; }
.op-grid { margin-bottom: 14px; }
.op-grid > .card { margin-bottom: 0; }
.op-big { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.op-big-unit { font-size: 16px; font-weight: 450; }
.op-mid { font-size: 22px; font-weight: 700; }
.op-sub-block { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.op-sub-block .stackbar { margin: 2px 0; }
.op-medians { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.op-median { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; }
.op-median > div:nth-child(2) { font-weight: 650; font-size: 14px; }
@media (max-width: 479.98px) { .op-medians { grid-template-columns: 1fr; } .op-median { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; } .op-median > div:last-child { grid-column: 1 / -1; } }
.op-charts { gap: 22px; }
.op-charts > div { min-width: 0; }
.op-events { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.op-delta { font-size: 11px; margin-left: 4px; }
.op-snap .dt { font-size: 12.5px; }
.op-snap .dt td { white-space: nowrap; }
@media (max-width: 719.98px) {
  .op-snap .dt tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-snap .dt td { white-space: normal; }
}
.op-tiles .stat-hint { white-space: normal; }
.op-only-desk .dt { font-size: 13px; }
.op-only-desk .dt th { padding-left: 9px; padding-right: 9px; }
.op-prefs { max-width: 150px; }
.op-inds { max-width: 210px; }
.op-inds .op-badges { display: flex; }
.op-only-desk .dt td.num .cell-sub { max-width: 130px; margin-left: auto; }
.op-only-desk .op-cov { min-width: 120px; max-width: 170px; }
.op-cov .stackbar { min-width: 0; height: 10px; }
.op-intro { margin-top: 12px; }
.op-grid > .card { margin: 0; }
.op-flat-stats .stat-hint { white-space: normal; }
@media (max-width: 719.98px) { .op-flat-stats .stat:last-child { grid-column: 1 / -1; } }
.op-more { margin-top: 12px; }
.op-more > summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; color: var(--accent-text); font-weight: 550; font-size: 13px; }
.op-more > p:first-of-type { margin-top: 4px; }
.op-snap:not(.op-snap-all) tr.op-more-row { display: none; }
.op-snap-foot { display: flex; justify-content: center; }
.op-card-inds .badge { font-size: 11px; }
.op-only-desk .op-inds { max-width: none; margin-top: 4px; }
.op-only-desk .op-inds .badge { font-size: 11px; font-weight: 500; }
.op-only-desk .dt td.num .cell-sub { max-width: 150px; }
