/* Shared styles for the /learn pages.
   These are plain static pages in public/ (like /terms and /security), not Vite
   entries — there is no bundler here, so one stylesheet beats copy-pasting the
   same 60 declarations into nine files. Tokens match the app and the existing
   static pages exactly; do not fork them. */

:root {
  --ink:#101222; --ink-soft:#181B30; --ink-lift:#1B1E36; --line:#2A2D3E;
  --brass:#C07F2A; --brass-dim:#8A5C1E; --cream:#F6F2E8;
  --muted:#9298B8; --faint:#6B7090;
  --moss:#5E9A6B; --rust:#C96A50; --amber:#D9A85C;
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  background:var(--ink); color:var(--cream);
  font-family:Inter,system-ui,-apple-system,sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

.wrap { max-width:820px; margin:0 auto; padding:40px 24px 80px; }
.wrap.wide { max-width:960px; }

a { color:var(--brass); }
a:hover { color:var(--amber); }

/* ── masthead ─────────────────────────────────────────────────────────── */
.logo { display:flex; align-items:center; gap:8px; margin-bottom:8px; font-weight:700; font-size:18px; }
.logo a { color:var(--cream); text-decoration:none; display:flex; align-items:center; gap:8px; }
.logo-mark {
  width:26px; height:26px; background:var(--brass); border-radius:3px 9px 9px 3px;
  display:inline-flex; align-items:center; justify-content:center;
}
.logo-mark span { width:6px; height:6px; border-radius:50%; background:var(--ink); }

.crumb { font-size:0.8rem; color:var(--faint); margin-bottom:30px; }
.crumb a { color:var(--faint); text-decoration:none; }
.crumb a:hover { color:var(--brass); }

/* ── type ─────────────────────────────────────────────────────────────── */
h1 { font-size:2.1rem; line-height:1.15; margin-bottom:14px; letter-spacing:-0.025em; }
.lede { color:var(--muted); font-size:1.05rem; margin-bottom:10px; max-width:660px; }
h2 { font-size:1.2rem; margin:44px 0 10px; letter-spacing:-0.01em; }
h3 { font-size:1rem; margin:26px 0 6px; color:var(--cream); }
p, li { color:var(--muted); font-size:0.95rem; }
p { margin-bottom:10px; }
ol, ul { padding-left:22px; margin:10px 0; }
li { margin-bottom:8px; }
strong { color:var(--cream); font-weight:600; }
code {
  background:var(--ink-soft); border:1px solid var(--line); border-radius:5px;
  padding:1px 6px; font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:0.85em; color:var(--cream);
}

/* ── blocks ───────────────────────────────────────────────────────────── */
.pill {
  display:inline-flex; align-items:center; gap:6px; background:var(--ink-soft);
  border:1px solid var(--line); border-radius:99px; padding:4px 12px;
  font-size:0.8rem; color:var(--moss); margin-bottom:26px;
}
.card {
  background:var(--ink-soft); border:1px solid var(--line); border-radius:12px;
  padding:20px 22px; margin:16px 0;
}
.card h3 { margin-top:0; }
.note {
  background:#241E12; border:1px solid #4A3A1A; color:var(--amber);
  border-radius:10px; padding:12px 16px; font-size:0.88rem; margin:16px 0;
}
.note strong { color:var(--amber); }
.free { border-left:3px solid var(--moss); padding-left:14px; margin:16px 0; }
.free .tag { color:var(--moss); font-weight:700; font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; }
.pro { border-left:3px solid var(--brass); padding-left:14px; margin:16px 0; }
.pro .tag { color:var(--brass); font-weight:700; font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; }

/* ── tables ───────────────────────────────────────────────────────────── */
.tablewrap { overflow-x:auto; margin:16px 0; }
table { width:100%; border-collapse:collapse; font-size:0.88rem; min-width:520px; }
th {
  text-align:left; color:var(--faint); font-weight:600; font-size:0.78rem;
  letter-spacing:0.05em; text-transform:uppercase;
  padding:8px 12px 8px 0; border-bottom:1px solid var(--line); white-space:nowrap;
}
td { padding:10px 12px 10px 0; border-bottom:1px solid #1E2136; color:var(--muted); vertical-align:top; }
td strong { color:var(--cream); }
.sev { font-weight:700; font-size:0.78rem; letter-spacing:0.04em; text-transform:uppercase; white-space:nowrap; }
.sev.high { color:var(--rust); }
.sev.medium { color:var(--amber); }
.sev.low { color:var(--faint); }

/* ── hub index grid ───────────────────────────────────────────────────── */
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin:18px 0 8px; }
.tile {
  display:block; background:var(--ink-soft); border:1px solid var(--line);
  border-radius:12px; padding:18px 20px; text-decoration:none;
  transition:border-color .15s, background .15s;
}
.tile:hover { border-color:var(--brass); background:var(--ink-lift); }
.tile .t { color:var(--cream); font-weight:700; font-size:0.98rem; margin-bottom:4px; }
.tile .d { color:var(--muted); font-size:0.86rem; line-height:1.5; }

/* ── cta + footer ─────────────────────────────────────────────────────── */
.cta {
  background:linear-gradient(135deg,var(--ink-lift),var(--ink-soft));
  border:1px solid var(--line); border-radius:14px; padding:24px;
  margin-top:36px; text-align:center;
}
.cta p { margin-bottom:14px; }
.cta a.button {
  display:inline-block; background:var(--brass); color:#fff; border-radius:9px;
  padding:11px 24px; font-weight:700; text-decoration:none;
}
.cta a.button:hover { color:#fff; background:var(--brass-dim); }

.next { display:flex; flex-wrap:wrap; gap:16px; margin-top:44px; padding-top:20px; border-top:1px solid var(--line); }
.next a { font-size:0.88rem; text-decoration:none; font-weight:600; }

.foot { margin-top:40px; padding-top:20px; border-top:1px solid var(--line); font-size:0.82rem; color:var(--faint); }
.foot a { color:var(--faint); text-decoration:none; margin-right:16px; }
.foot a:hover { color:var(--brass); }

@media (max-width:560px) {
  h1 { font-size:1.7rem; }
  .wrap { padding:28px 18px 60px; }
}

/* Printing matters here: the IT-approval page exists to be handed to someone
   else, and a dark-background page wastes a cartridge and reads badly on
   paper. Print it as a plain document. */
@media print {
  body { background:#fff; color:#111; }
  .wrap { max-width:100%; padding:0; }
  h1, h2, h3, strong, td strong, .tile .t { color:#111; }
  p, li, td, .lede { color:#333; }
  a { color:#111; text-decoration:underline; }
  .card, .note, .cta, .tile { background:#fff; border:1px solid #bbb; }
  .note { color:#5a4412; }
  .cta, .next, .foot, .crumb { display:none; }
  .free, .pro { border-left:3px solid #999; }
}
