/* Shared shell styling. Owned by the scaffold — feature areas add their own
   stylesheet rather than editing this one, so concurrent work does not collide. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14181d;
  --ink-soft: #566173;
  --line: #dfe3ea;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171b22;
    --ink: #e8ecf1;
    --ink-soft: #9aa6b8;
    --line: #2a313c;
    --accent: #4f92ff;
    --accent-ink: #0f1115;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171b22;
  --ink: #e8ecf1;
  --ink-soft: #9aa6b8;
  --line: #2a313c;
  --accent: #4f92ff;
  --accent-ink: #0f1115;
}

/* `hidden` must actually hide. The browser's default `[hidden] { display: none }`
   is the lowest-specificity rule there is, so ANY author rule setting `display`
   on the same element beats it and the attribute silently does nothing. This has
   bitten this app twice, both times on a flex container, and both times a
   passing assertion said the element was hidden while it was on screen.
   `!important` is deliberate: `hidden` means "not present", and nothing in a
   stylesheet should be able to overrule that. Pinned by test/hidden-guard.js. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shell {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.masthead h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.foot {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

table { width: 100%; border-collapse: collapse; }
.scroll-x { overflow-x: auto; }
