/* dhlmnn — in the style of apple.com: black ground (white in the light appearance), #1d1d1f tiles, Inter set to
   Apple's SF scale, pill buttons, a translucent global nav and a ribbon for whatever is broken.
   Green, orange and red only for state, always beside a word.
   Shared system for every page; page arrangements live in start.css, status.css, news.css, tools.css. */
@font-face {
  font-family: 'Inter'; src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Roboto Mono'; src: url('fonts/roboto-mono-latin.woff2') format('woff2');
  font-weight: 400 500; font-display: swap;
}

/* dark is the default appearance; app.js sets html.light when chosen (stored as dh-appearance) */
:root {
  --paper: #000;
  --surf: #1d1d1f;
  --surf-2: #1d1d1f;
  --surf-h: #2a2a2c;
  --card: rgba(255, 255, 255, .1);
  --card-h: rgba(255, 255, 255, .17);
  --field: rgba(255, 255, 255, .06);
  --raised: #2c2c2e;
  --div: #424245;
  --div-2: #6e6e73;
  --ink: #f5f5f7;
  --body: #d2d2d7;
  --mut: #98989d;
  --mut-2: #86868b;
  --acc: #2997ff;
  --acc-ink: #2997ff;
  --acc-bg: rgba(41, 151, 255, .22);
  --acc-fill: #0071e3;
  --acc-fill-h: #0066cc;
  --select: rgba(41, 151, 255, .42);
  --sel: #f5f5f7;
  --sel-ink: #1d1d1f;
  --ok: #30d158;
  --ok-dot: #30d158;
  --ok-bg: rgba(48, 209, 88, .16);
  --warn: #ff9f0a;
  --warn-dot: #ff9f0a;
  --warn-bg: rgba(255, 159, 10, .16);
  --down: #ff453a;
  --down-bg: rgba(255, 69, 58, .17);
  --down-fill: #d70015;
  --night: #000;
  --glass: rgba(22, 22, 23, .8);
  --nav-ink: rgba(255, 255, 255, .8);
  --spot: rgba(38, 38, 40, .8);
  --spot-line: rgba(255, 255, 255, .12);
  --spot-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --r: 18px;
  --r-l: 18px;
  --r-m: 12px;
  --r-s: 6px;
  --pill: 980px;
  --wrap: 1024px;
  --s-xs: 12px;
  --s-sm: 14px;
  --s-md: 15px;
  --gap: 24px;
  --pad: clamp(16px, 4vw, 22px);
  --bar-h: 44px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* names the page stylesheets already use */
  --void: var(--paper);
  --ink-2: var(--mut);
  --hair: 1px solid var(--div);
  --rule-strong: var(--div);
  --red: var(--down);
  --err: var(--down);
  color-scheme: dark;
}
html.light {
  --paper: #fff;
  --surf: #f5f5f7;
  --surf-2: #f5f5f7;
  --surf-h: #ebebf0;
  --card: #fff;
  --card-h: #e8e8ed;
  --field: #fff;
  --raised: #fff;
  --div: #d2d2d7;
  --div-2: #86868b;
  --ink: #1d1d1f;
  --body: #424245;
  --mut: #6e6e73;
  --mut-2: #86868b;
  --acc: #0066cc;
  --acc-ink: #0066cc;
  --acc-bg: rgba(0, 113, 227, .13);
  --select: rgba(0, 113, 227, .22);
  --sel: #1d1d1f;
  --sel-ink: #fff;
  --ok: #248a3d;
  --ok-dot: #34c759;
  --ok-bg: rgba(52, 199, 89, .14);
  --warn: #c93400;
  --warn-dot: #ff9500;
  --warn-bg: rgba(255, 149, 0, .14);
  --down: #d70015;
  --down-bg: rgba(255, 59, 48, .1);
  --glass: rgba(251, 251, 253, .8);
  --nav-ink: rgba(0, 0, 0, .8);
  --spot: rgba(246, 246, 248, .92);
  --spot-line: rgba(0, 0, 0, .1);
  --spot-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--body); height: 100%; }
body {
  margin: 0; height: 100%;
  display: flex; flex-direction: column;
  font: 400 var(--s-md)/1.47 var(--font); letter-spacing: -.01em;
  font-optical-sizing: auto;
  background: var(--paper); color: var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: var(--select); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--div) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--div); border-radius: 5px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }
a { color: var(--acc); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--acc-ink); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
code, kbd, samp, pre { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.aurora, .cursor-glow, #cursorGlow { display: none !important; }
.reveal, .reveal-in { opacity: 1 !important; transform: none !important; }

.lbl { font-size: var(--s-xs); color: var(--mut); }
.dim { color: var(--mut); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Apple's text link: blue, a drawn chevron, underline on hover */
.more { display: inline-flex; align-items: baseline; gap: .28em; color: var(--acc); white-space: nowrap; }
.more::after {
  content: ''; flex: none; align-self: center; width: .38em; height: .66em; margin-top: .08em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.more:hover, .page-sub a:hover { color: var(--acc-ink); text-decoration: underline; }

/* ---------- skip link, scroll progress, back to top (app.js) ---------- */
.skip-link { position: absolute; left: -9999px; top: 6px; z-index: 200; padding: 8px 16px; border-radius: var(--pill); background: var(--acc-fill); color: #fff; font-size: 14px; }
.skip-link:focus, .skip-link:focus-visible { left: 8px; color: #fff; }
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 40; pointer-events: none; }
.scroll-progress > span { display: block; height: 100%; width: 0; background: var(--acc); }
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 40px; height: 40px; display: none; place-items: center;
  border: 0; border-radius: 50%; background: var(--glass); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3), inset 0 0 0 1px var(--div);
}
.back-to-top.visible { display: grid; }
.back-to-top:hover { color: var(--acc); }

/* ---------- global nav: 44px of glass the page slides under (it sits inside .page, the scroller) ---------- */
.dm-bar {
  position: sticky; top: 0; z-index: 20; flex: none;
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 0 20px;
  padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2));
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  font-size: 12px; line-height: 1; color: var(--nav-ink);
}
.dm-mark { cursor: pointer; user-select: none; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.03em; line-height: var(--bar-h); }
.dm-today { display: none; }
.dm-nav { display: flex; align-self: stretch; margin: 0 -10px; }
.dm-nav a { display: flex; align-items: center; padding: 0 10px; color: var(--nav-ink); transition: color .2s var(--ease); }
.dm-nav a:hover { color: var(--ink); }
.dm-nav a[aria-current="page"], .dm-nav a.active { color: var(--ink); font-weight: 600; }
.dm-readouts { display: flex; gap: 20px; }
.dm-readout { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); white-space: nowrap; }
.dm-readout::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--div-2); }
.dm-readout.ok::before { box-shadow: none; background: var(--ok-dot); }
.dm-readout.warn::before { box-shadow: none; background: var(--warn-dot); }
.dm-readout.alert::before { box-shadow: none; background: var(--down); }
.dm-readout .lbl { font-size: inherit; color: inherit; }
.dm-readout b { font-weight: 600; color: var(--ink); }
.dm-readout.alert b { color: var(--down); }
a.dm-readout:hover b { color: var(--acc); }
.dm-clock { font-weight: 400; color: var(--nav-ink); font-variant-numeric: tabular-nums; min-width: 7ch; text-align: right; }
.dm-theme {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none; margin-right: -7px;
  border: 0; border-radius: 50%; background: none; color: var(--nav-ink); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.dm-theme:hover { background: var(--card); color: var(--ink); }
.nav-status-dot { display: none !important; }

/* ---------- ribbon: what is broken, one centred line under the nav on every page (app.js) ---------- */
.ribbon { padding: 13px var(--pad) 14px; background: var(--surf); text-align: center; }
.ribbon p { max-width: 980px; margin: 0 auto; font-size: 14px; line-height: 1.43; color: var(--ink); text-wrap: balance; }
.ribbon-state { margin-right: .15em; font-weight: 600; color: var(--down); }
.ribbon .more { margin-left: .25em; }

/* ---------- page frame: .page is the scroller app.js watches; the nav sticks inside it ---------- */
.page { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-padding-top: calc(var(--bar-h) + 20px); }
.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 40px; }
main { outline: none; }
main > * + * { margin-top: 48px; }
footer {
  display: flex; gap: 6px 24px; flex-wrap: wrap;
  margin-top: 80px; padding-top: 16px;
  border-top: 1px solid var(--div);
  font-size: 12px; line-height: 1.33; color: var(--mut);
}
footer > :last-child { margin-left: auto; }
/* shortcut and mouse hints mean nothing on a phone */
@media (max-width: 760px), (hover: none) { .keys { display: none; } }

/* page head like the Store: the subject, a full stop, its context in grey */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; }
.page-eyebrow { display: none; }
.page-title { max-width: 21ch; font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; letter-spacing: -.022em; line-height: 1.08; text-wrap: balance; }
.page-title span { color: var(--mut-2); }
.page-sub { margin-top: 14px; max-width: 60ch; font-size: 17px; line-height: 1.47; color: var(--mut); }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.section-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.section-label { font-size: clamp(21px, 2.2vw, 24px); font-weight: 600; color: var(--ink); letter-spacing: -.018em; line-height: 1.17; }
.section-label span { color: var(--mut-2); }
.section-label::before, .section-label::after { content: none !important; }
.section-note, .section-meta { font-size: 13px; color: var(--mut); }
.section-head > :last-child:not(:first-child) { margin-left: auto; }
.panel { border-radius: var(--r); background: var(--surf); }
.ui-card { border-radius: var(--r); background: var(--surf); padding: 28px; }

/* rows like Settings: a filled rounded-square icon, a bold line and a grey note, separators inset past the icon */
.srows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.srow { display: flex; align-items: flex-start; gap: 12px; }
.sico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 10px; border-radius: 7px; background: var(--mut-2); color: #fff; }
.sico svg { width: 18px; height: 18px; stroke-width: 2.6; }
.srow.ok .sico { background: var(--ok-dot); }
.srow.warn .sico { background: var(--warn-dot); }
.srow.bad .sico { background: var(--down); }
.stext { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding: 10px 0 11px; }
.srow + .srow > .stext { border-top: 1px solid var(--div); }
.stext b { font-size: 15px; font-weight: 600; line-height: 1.33; color: var(--ink); }
.srow.bad .stext b { color: var(--down); }
.stext small { margin-top: 1px; font-size: 13px; line-height: 1.38; color: var(--mut); overflow-wrap: anywhere; }

/* ---------- controls: pills; blue fill for the one action, blue outline for the second ---------- */
.dm-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 18px;
  border: 0; border-radius: var(--pill); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 400; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.dm-btn:hover, .btn:hover { background: var(--card-h); color: var(--ink); }
.dm-btn.primary, .btn-primary { background: var(--acc-fill); color: #fff; }
.dm-btn.primary:hover, .btn-primary:hover { background: var(--acc-fill-h); color: #fff; }
.btn-line { background: transparent; color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.btn-line:hover { background: var(--acc-fill); color: #fff; box-shadow: inset 0 0 0 1px var(--acc-fill); }
.btn-lg { min-height: 44px; padding: 0 22px; font-size: 17px; }
.dm-btn:disabled, .btn:disabled, [aria-busy="true"] > .dm-btn { opacity: .42; cursor: not-allowed; }

main input[type="text"], main input[type="search"], main input[type="number"], main input[type="url"], main input[type="email"], main input:not([type]), main textarea, main select {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--div-2); border-radius: var(--r-m); background: var(--field); color: var(--ink);
  font-size: 15px; caret-color: var(--acc); box-shadow: none; min-width: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
main textarea { padding: 10px 14px; line-height: 1.5; }
main input:focus, main textarea:focus, main select:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-bg); outline: none; }
main select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; }
main select option { background: var(--raised); color: var(--ink); }
::placeholder { color: var(--mut); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
main input[type="checkbox"], main input[type="radio"], main input[type="range"] { accent-color: var(--acc-fill); }
main input[type="checkbox"], main input[type="radio"] { width: 16px; height: 16px; }

/* a search field that sits on the page: a filled pill */
.search-pill {
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 12px 0 14px;
  border-radius: var(--pill); background: var(--surf); box-shadow: inset 0 0 0 1px var(--div); color: var(--mut);
  transition: box-shadow .2s var(--ease);
}
.search-pill:focus-within { box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 4px var(--acc-bg); }
.search-pill input { flex: 1; height: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink); }
.search-pill kbd { padding: 1px 7px; border-radius: 6px; background: var(--card); font-family: var(--font); font-size: 12px; color: var(--mut); }

/* segmented control: a pill track, the chosen segment inverted (start categories, news sources, status filter) */
.tab-bar, .seg {
  display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; padding: 4px;
  border: 0; border-radius: var(--pill); background: var(--surf);
}
.tab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 16px;
  border: 0; border-radius: var(--pill); background: none; color: var(--ink);
  font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tab-btn:hover { background: var(--card); }
.tab-btn.active, .tab-btn[aria-selected="true"] { background: var(--sel); color: var(--sel-ink); }
.tab-btn:focus-visible { outline-offset: 1px; }
.tab-count { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.tab-btn.active .tab-count, .tab-btn[aria-selected="true"] .tab-count { color: color-mix(in srgb, var(--sel-ink) 58%, transparent); }

/* tags and state marks */
.dm-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--pill); background: var(--card); color: var(--body); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dm-tag.inv { background: var(--down-bg); color: var(--down); }
.dm-tag.warn { background: var(--warn-bg); color: var(--warn); }
.dm-tag.ok { background: var(--ok-bg); color: var(--ok); }
.dm-tag.quiet { background: none; box-shadow: inset 0 0 0 1px var(--div); color: var(--mut); font-weight: 400; }
.dm-state { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; background: var(--div-2); flex: none; }
.dm-state.live { background: var(--ok-dot); }
.dm-state.degraded { background: var(--warn-dot); }
.dm-state.down { background: var(--down); }
.dm-state.unknown { background: none; box-shadow: inset 0 0 0 2px var(--div-2); }
.dm-invert { background: var(--down-bg); color: var(--ink); }
.dm-invert a { color: var(--down); }

/* ---------- easter egg ---------- */
#logoOverlay {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #000; color: #f5f5f7;
}
#logoOverlay.visible { display: flex; }
#logoOverlay.hiding { display: none; }
#logoOverlay .overlay-sub { font-size: 21px; color: #86868b; }
#logoOverlay .overlay-text { font-size: clamp(64px, 12vw, 180px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
html.strobe body { box-shadow: inset 0 0 0 4px var(--down); }

/* ---------- command palette (palette.js): a Spotlight panel ---------- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; background: rgba(0, 0, 0, .4); }
html.light .cmdk-overlay { background: rgba(0, 0, 0, .18); }
.cmdk-overlay.visible { display: flex; }
.cmdk-modal {
  width: min(680px, 100%); overflow: hidden;
  border-radius: var(--r); background: var(--spot);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--spot-shadow), inset 0 0 0 1px var(--spot-line);
}
.cmdk-input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--spot-line); color: var(--mut); }
.cmdk-search-icon { width: 20px; height: 20px; }
.cmdk-input { flex: 1; height: 60px; border: 0; background: none; color: var(--ink); font-size: 22px; letter-spacing: -.02em; outline: none; caret-color: var(--acc); }
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.ck-section { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--mut); }
.ck-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ink); }
.ck-row.active { background: var(--acc-fill); color: #fff; }
.ck-row.active :is(.ck-hint, .ck-kbd, .ck-ext, .ck-label mark) { color: #fff; }
.ck-ico { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ck-ico.invert { filter: none; }
html:not(.light) .ck-ico.invert { filter: invert(1); }
.ck-ico-text { display: grid; place-items: center; border-radius: 6px; background: var(--card); font-size: 11px; font-weight: 600; }
.ck-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-label mark { background: none; color: var(--acc); font-weight: 600; }
.ck-hint, .ck-kbd, .ck-ext { font-size: 12.5px; color: var(--mut); }
.ck-empty { padding: 18px 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.ck-empty-sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--mut); }
.cmdk-foot { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--spot-line); font-size: 12px; color: var(--mut); }
.cmdk-foot kbd { margin-right: 4px; padding: 1px 6px; border-radius: 5px; background: var(--card); font-family: var(--font); }

/* ---------- 404 (notfound.js writes the trace) ---------- */
.err-path { padding: 1px 6px; border-radius: var(--r-s); background: var(--surf); color: var(--ink); }
.err-links { display: flex; flex-wrap: wrap; gap: 10px; }
.err-trace { max-width: 680px; padding: 4px 24px; border-radius: var(--r); background: var(--surf); overflow: hidden; }
.err-hop { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--div); font-size: 14px; color: var(--ink); }
.err-hop:first-child { border-top: 0; }
.err-hop-n { color: var(--mut); font-variant-numeric: tabular-nums; }
.err-hop-name { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.err-hop-state { font-size: 13px; color: var(--ok); }
.err-hop.bad { color: var(--down); }
.err-hop.bad .err-hop-state { font-weight: 600; color: var(--down); }
.err-hop.bad ~ .err-hop.bad { color: var(--mut); text-decoration: line-through; }
.err-hop.bad ~ .err-hop.bad .err-hop-state { font-weight: 400; color: var(--mut); }

/* ---------- responsive ---------- */
@media (max-width: 833px) {
  /* the nav wraps into rows and scrolls away with the page */
  .dm-bar { position: relative; flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; padding-bottom: 4px; }
  .dm-mark { margin-right: auto; }
  .dm-nav { order: 5; flex: 1 0 100%; justify-content: space-between; height: 40px; margin: 0 -10px; }
  .dm-readouts { order: 6; flex: 1 0 100%; align-items: center; gap: 16px; height: 34px; overflow-x: auto; scrollbar-width: none; }
  .dm-readouts::-webkit-scrollbar { display: none; }
  .dm-nav a { font-size: 14px; }
}
@media (max-width: 760px) {
  :root { --gap: 16px; }
  .container { padding-top: 36px; }
  .page-sub { font-size: 15px; }
  .ui-card { padding: 22px; }
  .ribbon { padding: 11px var(--pad) 12px; }
  .ribbon p { font-size: 13px; }
  .back-to-top, .back-to-top.visible { display: none; }
  main input, main select, main textarea { font-size: 16px; }
  footer > :last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
