/* A yard's Health tab (design standard, 27 Nov 2026). Loaded after overview.css and
   reuses its strip, sections and pill bars. One glass panel per section, hairline
   rows inside, nothing boxed. Type steps: 12 · 15 · 19 · 38 · verdict 24–30. */

.hl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Content sits above the light that follows the pointer. */
.hl > .gl > *, .hl-pair > .gl > * { position: relative; z-index: 1; }

/* ---- Verdict ------------------------------------------------------------------------ */

.hl-verdict { padding: 26px 30px 24px; }
.hl-verdict h2 {
  margin-top: 14px; max-width: 32ch; font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance;
}
.hl-calm { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.hl-rows.hl-alerts { margin-top: 20px; border-top: 1px solid var(--line); }

/* ---- Hairline rows ------------------------------------------------------------------ */

.hl-rows { list-style: none; margin: 0; padding: 0; }
.hl-row { display: grid; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hl-rows > li:last-child { border-bottom: 0; }
.hl-row .dot { align-self: center; }
.hl-row--alert { grid-template-columns: 8px minmax(0, 1fr) auto; }
.hl-row--act { grid-template-columns: 8px minmax(0, 1fr) auto auto; }
.hl-row--act .dot { align-self: start; margin-top: 8px; }
.hl-row--v { grid-template-columns: minmax(0, 1fr) auto; min-height: 44px; }
.hl-row--v .hl-row__main { display: block; }
.hl-row__msg { font-size: 15px; color: var(--text-2); min-width: 0; }
.hl-row__main { display: grid; gap: 3px; min-width: 0; }
.hl-row__main b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.hl-row__main .issue-text { margin: 0; }
.hl-meta { font-size: 12px; color: var(--muted); }
.hl-when { font-size: 12px; color: var(--faint); white-space: nowrap; text-align: right; }
.hl-n { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hl-count { font-size: 12px; color: var(--muted); }
.hl-ok, .hl-bad { font-size: 12px; font-weight: 500; margin-left: 6px; }
.hl-ok { color: var(--ok); }
.hl-bad { color: var(--bad); }
.hl .btn:active { transform: scale(.97); }

/* Cleared, fixed and closed rows fold away under one line. */
.hl-more { margin-top: 6px; border-top: 1px solid var(--line); }
.hl-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none;
  font-size: 12px; color: var(--muted); border-radius: 4px; transition: color .15s var(--ease-out);
}
.hl-more summary::-webkit-details-marker { display: none; }
.hl-more summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease-out); }
.hl-more[open] summary::before { transform: rotate(45deg); }
.hl-more summary:hover { color: var(--text); }
.hl-more summary:active { opacity: .7; }
.hl-more summary:focus-visible { outline-offset: 2px; }
.hl-more .hl-row { opacity: .72; }

/* ---- Numbers strip: storage bar under its note ----------------------------------------- */

.hl-store { margin-top: 2px; }
.hl-store .ov-store__bar { flex: 1; }

/* ---- Pairs ---------------------------------------------------------------------------- */

.hl-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hl-activity { display: flex; flex-direction: column; }
.hl-vbar { display: flex; gap: 2px; height: 8px; margin-bottom: 8px; border-radius: 999px; overflow: hidden; }
.hl-vbar span { min-width: 4px; }

@media (max-width: 1180px) {
  .hl-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hl { gap: 12px; }
  .hl-verdict { padding: 20px 18px 20px; }
  .hl-verdict h2 { font-size: 24px; }
  .hl-row--alert { grid-template-columns: 8px minmax(0, 1fr); row-gap: 2px; }
  .hl-row--alert .hl-when { grid-column: 2; text-align: left; }
  .hl-row--act { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 6px; column-gap: 12px; }
  .hl-row--act .hl-row__main { grid-column: 2; grid-row: 1 / 3; }
  .hl-row--act .hl-n { grid-column: 3; grid-row: 1; }
  .hl-row--act > :last-child { grid-column: 3; grid-row: 2; justify-self: end; }
  .hl-row--act .btn { min-height: 44px; }
  .hl-more summary { min-height: 44px; }
}
