/* OS-Watchtower dashboard: page-specific rules only.
   Layout, controls, tables, charts, matrix and panel come from the design system's
   data-pages layer (./ds/data.css, ds- classes). Values here use tokens only. */

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.25em; }
a:hover { color: var(--ink); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface-card); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-control); z-index: 2; }

/* Page header */
header.top { padding: var(--space-7) 0 0; }
.top-rule { margin: var(--space-5) 0 0; } /* ds-divider-accent closes the masthead */
header.top .ds-eyebrow { margin: 0 0 var(--space-2); }
header.top h1 { font: var(--text-display); margin: 0 0 var(--space-3); }
header.top p { color: var(--text-secondary); margin: 0 0 var(--space-3); }
.meta { font: var(--text-caption); color: var(--text-muted); margin: 0; }

/* Section text */
h2 { font: var(--text-h2); margin: var(--space-7) 0 var(--space-3); }
h3 { font: var(--text-h3); margin: var(--space-5) 0 var(--space-2); }
.ds-eyebrow { margin: 0 0 var(--space-1); }
.lede { color: var(--text-secondary); max-width: var(--measure); margin: 0 0 var(--space-4); }
.caption { font: var(--text-caption); color: var(--text-muted); max-width: var(--measure); }
.note { border-top: 1px solid var(--border-strong); padding-top: var(--space-2); font: var(--text-body-sm); color: var(--text-secondary); max-width: var(--measure); }
.nowrap { white-space: nowrap; }

/* Project cards: content inside the design-system card */
.ds-card .name { font: var(--text-h3); margin: 0; }
.ds-card .status { color: var(--text-secondary); margin: 0; }
.ds-card .live { color: var(--text-muted); font: var(--text-caption); margin: 0; }

/* Link that looks like running text but is a button (project picker) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--ink); }

/* Network graph: project nodes */
svg .node, svg .ev { cursor: pointer; }
svg .node .ring { fill: none; stroke: transparent; }
svg .node.sel .ring { stroke: var(--ink); stroke-width: 2.5; }
svg .node.watch .flag { fill: var(--accent); }
svg .node:focus-visible { outline: none; }
svg .node:focus-visible .ring { stroke: var(--focus-ring); stroke-width: 3; }

/* Timeline event numbers: a halo in the chart ground keeps them legible over grid and today lines */
svg .tl-label { paint-order: stroke; stroke: var(--surface-card); stroke-width: 3px; stroke-linejoin: round; }

/* Drill-down panel content (the box is .ds-panel) */
.detail h2 { margin-top: 0; }
.detail .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-6); }
.detail ul { padding-left: var(--space-5); margin: var(--space-2) 0; }
.detail li { margin: var(--space-1) 0; }

/* Sub-project chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: var(--space-2) 0; list-style: none; }
.chips li { max-width: none; margin: 0; }
.chips .linklike, .chip { border: 1px solid var(--border-control); padding: var(--space-1) var(--space-3); background: var(--surface-card); display: inline-block; font: var(--text-body-sm); }

footer { margin: var(--space-8) 0 var(--space-7); }
footer .ds-divider { margin: 0 0 var(--space-4); }
