/* Light or dark with the viewer's setting, like the house bar's panel (tic-nav.css). --ink, --line and --alarm
   are the names tic-time.css reads for its dialog. */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --panel: #ffffff;
  --border: #d8d3c8;
  --text: #14202e;
  --muted: #555f6d;
  --warn: #8a5a00;
  --warn-bg: rgba(138, 90, 0, 0.12);
  --accent: #a84d08;
  --link: #1f4fa3;
  --badge: #ebe8e1;
  --ink: var(--text);
  --line: var(--border);
  --alarm: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c0f14;
    --panel: #131822;
    --border: #242d3c;
    --text: #e6edf3;
    --muted: #8b949e;
    --warn: #f0b72f;
    --warn-bg: rgba(210, 153, 34, 0.2);
    --accent: #f0883e;
    --link: #79b8ff;
    --badge: #1e293b;
    --alarm: #ff8a80;
  }
  .tic-time-dialog .tic-time-actions .tic-time-done { color: #14110d; } /* white on the dark theme's orange reads 2.4:1 */
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.top { border-bottom: 1px solid var(--border); background: var(--panel); padding: 12px 0; }
.top-row { display: flex; justify-content: space-between; align-items: center; }
.brand strong { font-size: 1.05rem; margin-right: 10px; }
.top-nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 0.88rem; }
.top-nav a:hover { color: var(--text); }
.hero { padding: 28px 0 18px; }
.hero h1 { margin: 0 0 8px; font-size: 1.65rem; }
.lede { color: var(--muted); max-width: 780px; margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.tile .k { display: block; font-size: 0.78rem; color: var(--muted); }
.tile .v { font-size: 1.25rem; font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.card-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.row-title { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.badge { background: var(--badge); padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.foot { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.scroll { overflow-x: auto; }
.scroll.tall { max-height: 560px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
#screening-table td:first-child { white-space: normal; min-width: 180px; }
#minerals-table td:last-child { white-space: normal; min-width: 240px; }
th { color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.row-title { gap: 12px; }
.two > *, .card { min-width: 0; }
.top-row { flex-wrap: wrap; gap: 6px 12px; }
.top-nav a:first-child { margin-left: 0; }
main a { color: var(--link); text-decoration: none; }
main a:hover, main a:focus { text-decoration: underline; }
details.more > summary { cursor: pointer; padding: 10px 0; color: var(--link); font-size: 0.88rem; }
details.more[open] > summary { border-bottom: 1px solid var(--border); }
.row-title > span:first-child { min-width: 0; overflow-wrap: anywhere; }
