/* Themis · Town governments. A dense analyst workspace: cities and towns listed on the left, the
   selected town as a graph in the middle, and the selected object's properties, links and sources
   on the right. Dark by default; the Light button switches themes.

   The seat colors (--elected, --chosen, --appointed) were checked with the dataviz palette
   validator against both canvases: they pass for color blindness in both themes, and since the
   light theme's green is under 3:1 against white, every seat also carries its label in text. */

:root {
  color-scheme: dark;
  --bg: #111418;
  --panel: #1a1e24;
  --canvas: #15191e;
  --card: #20252c;
  --card-raised: #282e36;
  --border: #353b44;
  --border-soft: #262c34;
  --group-fill: rgba(255, 255, 255, 0.025);
  --text: #f3f5f7;
  --text-2: #b5bdc8;
  --muted: #8a94a3;
  --accent: #4c90f0;
  --accent-ink: #8abbff;
  --accent-soft: rgba(76, 144, 240, 0.15);
  --focus: rgba(76, 144, 240, 0.65);
  --edge: #4a525e;
  --edge-strong: #6b7584;
  --elected: #3987e5;
  --chosen: #d95926;
  --appointed: #199e70;
  --track: #184f95;
  --person: #abb3bf;
  --warn: #fab219;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f3;
  --panel: #ffffff;
  --canvas: #fafbfc;
  --card: #ffffff;
  --card-raised: #f4f5f7;
  --border: #d3d8de;
  --border-soft: #e5e8eb;
  --group-fill: rgba(17, 20, 24, 0.025);
  --text: #1c2127;
  --text-2: #404854;
  --muted: #5f6b7c;
  --accent: #2d72d2;
  --accent-ink: #215db0;
  --accent-soft: rgba(45, 114, 210, 0.1);
  --focus: rgba(45, 114, 210, 0.55);
  --edge: #b9c0c9;
  --edge-strong: #8f99a8;
  --elected: #2a78d6;
  --chosen: #eb6834;
  --appointed: #1baf7a;
  --track: #cde2fb;
  --person: #5f6b7c;
  --shadow: 0 12px 32px rgba(17, 20, 24, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--text); line-height: 1.4; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.loading, .explorer-loading { color: var(--muted); padding: 24px; margin: 0; }
.error { color: #ff7373; }

/* --- Navbar ------------------------------------------------------------------------------- */

.navbar {
  position: relative;
  z-index: 20;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 10px 0 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.navbar-divider { width: 1px; height: 20px; background: var(--border); }
.navbar-app { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.navbar-actions { display: flex; gap: 4px; margin-left: auto; }

.omnibar { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.omnibar input {
  width: 100%;
  height: 30px;
  padding: 0 34px 0 30px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  font: inherit;
}
.omnibar input::placeholder { color: var(--muted); }
.omnibar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.omnibar-icon { position: absolute; left: 9px; top: 8px; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.omnibar input:not(:placeholder-shown) ~ kbd { display: none; }
.omnibar kbd {
  position: absolute;
  right: 8px;
  top: 6px;
  padding: 0 5px;
  font: 11px var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.omnibar-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 70vh;
  overflow: auto;
  padding: 4px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.omnibar-results .group-label { padding: 8px 12px 4px; }
.omnibar-results .option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  cursor: pointer;
}
.omnibar-results .option.active, .omnibar-results .option:hover { background: var(--accent-soft); }
.omnibar-results .option .meta { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omnibar-results .note { padding: 6px 12px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--card-raised); text-decoration: none; }
.button.minimal { background: transparent; border-color: transparent; color: var(--text-2); }
.button.minimal:hover { background: var(--accent-soft); color: var(--text); }
.button.small { height: 24px; padding: 0 8px; font-size: 12px; }

/* --- Workspace: explorer | stage | inspector ------------------------------------------------ */

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; }

.explorer { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--border); }
.explorer-head { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.explorer-head .eyebrow { display: flex; justify-content: space-between; }
.input, .select {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  font: inherit;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.segmented { display: flex; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.segmented button {
  flex: 1;
  height: 26px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: var(--accent-soft); }
.segmented button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.segmented .count { font-family: var(--mono); color: var(--muted); margin-left: 4px; }

.object-list { flex: 1; overflow: auto; margin: 0; padding: 4px 0; list-style: none; }
.object-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  color: var(--text);
  border-left: 2px solid transparent;
}
.object-row:hover { background: var(--accent-soft); text-decoration: none; }
.object-row.is-active { background: var(--accent-soft); border-left-color: var(--accent); }
.row-title, .row-sub { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-title { font-weight: 500; }
.row-sub { color: var(--muted); font-size: 11.5px; }
.row-stat { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.row-stat .none { color: var(--muted); }
.meter { display: block; width: 44px; height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--elected); border-radius: 2px; }
.explorer-foot { padding: 8px 12px; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--border); }

.stage { min-width: 0; overflow: auto; }
.page { max-width: 1320px; padding: 18px 24px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.crumbs a { color: var(--text-2); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 4px; }
.page-head .actions { display: flex; gap: 6px; }
.lead { max-width: 76ch; margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--card-raised);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  white-space: nowrap;
}
.tag strong { color: var(--text); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* --- Cards, figures and the town-type chart ------------------------------------------------ */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 16px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.kpi { padding: 12px 14px; background: var(--card); }
.kpi .value { margin-top: 4px; font-size: 26px; font-weight: 600; line-height: 1.15; }
.kpi .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 3px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.card-body { padding: 12px 14px; }
.card-foot { padding: 8px 14px 12px; color: var(--muted); font-size: 12px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.key-person { border-radius: 50%; background: var(--card-raised); box-shadow: inset 0 0 0 1.5px var(--person); }
.key-vacant { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--muted); background: transparent; }
.key-staff { background: transparent; box-shadow: inset 0 0 0 1px var(--edge-strong); }

.bars { display: grid; gap: 2px; }
.bar-row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.bar-row:hover, .bar-row:focus-visible { background: var(--accent-soft); }
.bar-row[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.bar-plot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar { display: flex; gap: 2px; height: 14px; flex: none; }
.bar > span { display: block; height: 100%; }
.bar > span:last-child { border-radius: 0 4px 4px 0; }
.bar .built { background: var(--elected); }
.bar .rest { background: var(--track); }
.bar-value { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.bar-value strong { color: var(--text); font-weight: 600; }

.explain { display: grid; gap: 12px; }
.explain h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.explain p { margin: 0; color: var(--text-2); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.callout {
  margin: 14px 0;
  padding: 10px 12px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: 3px;
}
.callout strong { color: var(--text); }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

/* --- Tabs and tables ------------------------------------------------------------------------ */

.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 16px 0 12px; border-bottom: 1px solid var(--border); }
.tab {
  margin-bottom: -1px;
  padding: 8px 10px;
  color: var(--text-2);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab .count { margin-left: 5px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.table-wrap { overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 3px; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  position: sticky;
  top: 0;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-raised);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 7px 10px; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.table tr:last-child td { border-bottom: 0; }
.table tr[data-person], .table tr[data-node] { cursor: pointer; }
.table tr[data-person]:hover td, .table tr[data-node]:hover td { background: var(--accent-soft); }
.table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .wide { min-width: 220px; color: var(--text-2); }
.filter-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.filter-row .input { max-width: 320px; }

/* --- The graph ------------------------------------------------------------------------------ */

.graph-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.canvas {
  position: relative;
  overflow: auto;
  background-color: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.graph { display: block; margin: 0 auto; height: auto; }
.graph text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--text); }
.graph .node { cursor: pointer; }
.graph .node:focus { outline: none; }
.graph .node:focus-visible .box, .graph .node:focus-visible .disc { stroke: var(--accent); stroke-width: 2; }
.graph .box { fill: var(--card); stroke: var(--border); stroke-width: 1; }
.graph .node:hover .box { fill: var(--card-raised); }
.graph .stripe-elected { fill: var(--elected); }
.graph .stripe-chosen_by_body { fill: var(--chosen); }
.graph .stripe-appointed { fill: var(--appointed); }
.graph .title { font-size: 12px; font-weight: 600; }
.graph .sub { font-size: 10.5px; fill: var(--muted); }
.graph .staff .box { fill: transparent; stroke: var(--edge-strong); }
.graph .voters .box { fill: var(--card-raised); stroke: var(--edge-strong); }
.graph .voters-icon { fill: none; stroke: var(--text-2); stroke-width: 1.4; stroke-linejoin: round; }
.graph .district .box { fill: var(--card-raised); stroke: var(--edge-strong); }
.graph .district text { text-anchor: middle; }
.graph .district.unplaced .box { stroke-dasharray: 4 3; }
.graph .disc { fill: var(--card-raised); stroke: var(--person); stroke-width: 1.5; }
.graph .initials { font-size: 11px; font-weight: 600; text-anchor: middle; fill: var(--text-2); }
.graph .name { font-size: 11px; text-anchor: middle; }
.graph .vacant .disc { fill: transparent; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.graph .vacant .name { fill: var(--muted); font-style: italic; }
.graph .group-box { fill: var(--group-fill); stroke: var(--border); stroke-width: 1; }
.graph .group:hover .group-box { stroke: var(--edge-strong); }
.graph .group-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; fill: var(--muted); }
.graph .group-sub { font-size: 10.5px; fill: var(--muted); }
.graph .edge { fill: none; stroke: var(--edge); stroke-width: 1.25; }
.graph .edge.holds { stroke: var(--edge-strong); }
.graph .edge.staff { stroke-dasharray: 3 3; }
.graph .edge-label rect { fill: var(--canvas); stroke: var(--border); }
.graph .edge-label text { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; fill: var(--text-2); text-anchor: middle; }
.graph .node, .graph .edge, .graph .group, .graph .edge-label { transition: opacity 120ms ease; }
.graph.has-focus .node, .graph.has-focus .edge, .graph.has-focus .group-box, .graph.has-focus .edge-label { opacity: 0.3; }
.graph.has-focus .is-lit, .graph.has-focus .group.is-lit .group-box { opacity: 1; }
.graph .edge.is-lit { stroke: var(--accent); stroke-width: 1.75; }
.graph .is-selected .box, .graph .is-selected .disc, .graph .group.is-selected .group-box { stroke: var(--accent); stroke-width: 2; }

/* --- Inspector: the selected object --------------------------------------------------------- */

.inspector { position: relative; width: 372px; min-height: 0; overflow: auto; background: var(--panel); border-left: 1px solid var(--border); }
.object-head { position: sticky; top: 0; z-index: 1; padding: 12px 44px 12px 14px; background: var(--panel); border-bottom: 1px solid var(--border); }
.object-type { display: flex; align-items: center; gap: 6px; }
.object-title { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.object-head h2 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.object-sub { margin: 4px 0 0; color: var(--text-2); }
.object-close { position: absolute; top: 8px; right: 8px; }
.object-section { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.object-section h3 { margin-bottom: 8px; }
.object-section p { margin: 0; color: var(--text-2); }
.object-section p + p { margin-top: 6px; }
.props { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 6px 10px; margin: 0; }
.quote { margin: 0; padding: 6px 10px; border-left: 2px solid var(--appointed); background: var(--group-fill); color: var(--text-2); }
.quote + .quote { margin-top: 8px; }
.quote footer { margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.props dt { color: var(--muted); overflow-wrap: anywhere; }
.props dd { margin: 0; overflow-wrap: anywhere; }
.links { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.link-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 5px 6px;
  color: var(--text);
  border-radius: 3px;
}
a.link-row:hover, button.link-row:hover { background: var(--accent-soft); text-decoration: none; }
button.link-row { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.link-type { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.link-meta { color: var(--muted); font-size: 12px; text-align: right; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  font-weight: 600;
  color: var(--text-2);
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.prov { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prov li { display: grid; gap: 3px; }
.prov-head { display: flex; justify-content: space-between; gap: 8px; }
.prov-head strong { font-weight: 600; }
.prov-meta { color: var(--muted); font-size: 12px; }
.confidence { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.confidence .meter { width: 80px; }
.object-foot { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.tooltip {
  position: fixed;
  z-index: 50;
  max-width: 300px;
  padding: 6px 9px;
  font-size: 12px;
  pointer-events: none;
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.tooltip .t-title { display: block; font-weight: 600; margin-top: 2px; }
.tooltip .t-sub { display: block; color: var(--text-2); }

/* --- Smaller screens ------------------------------------------------------------------------ */

@media (max-width: 1500px) {
  .inspector { position: fixed; top: 48px; right: 0; bottom: 0; z-index: 25; width: min(380px, 100vw); box-shadow: var(--shadow); }
}

@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { height: auto; min-height: 100%; }
  .navbar { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 8px; }
  .navbar-divider, .navbar-app, .omnibar kbd { display: none; }
  .omnibar { order: 3; flex-basis: 100%; max-width: none; }
  .workspace { display: flex; flex-direction: column; }
  .stage { overflow: visible; }
  .page { padding: 14px 16px 28px; }
  .explorer { order: 2; border-right: 0; border-top: 1px solid var(--border); }
  .explorer .object-list { max-height: 60vh; }
  body:not([data-route="home"]) .explorer { display: none; }
  .inspector { top: 0; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 112px minmax(0, 1fr); }
  .tag { height: auto; min-height: 22px; padding: 3px 8px; white-space: normal; }
}

/* Graph details: label halos so links passing behind text don't hide it, grab-to-pan, and labels
   that fade with everything else when a node is lit. */
.graph { cursor: grab; touch-action: none; }
.graph.is-panning { cursor: grabbing; }
.graph .edge { pointer-events: none; }
.graph .halo { paint-order: stroke; stroke: var(--canvas); stroke-width: 3px; stroke-linejoin: round; }
.graph .group { cursor: pointer; }
.graph.has-focus .group-label { opacity: 0.3; }
.graph.has-focus .group-label.is-lit { opacity: 1; }
.graph-toolbar .zoom { display: flex; gap: 4px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.inline-link { padding: 0; color: var(--accent-ink); background: none; border: 0; cursor: pointer; text-align: left; }
.inline-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .graph { touch-action: pan-y; }
}

/* Touch screens can't hover, and a tap already opens the same facts in the inspector. */
@media (hover: none) {
  .tooltip { display: none; }
}
