:root {
  --primary: #4572A7;
  --secondary: #DB843D;
  --accent: #3D96AE;
  --danger: #AA4643;
  --text: #1e1e1e;
  --muted: #6b7280;
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
html { font-family: 'Abel', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); }
body { margin: 0; line-height: 1.55; }
@font-face {
  font-family: 'Abel';
  src: url('/fonts/abel-latin.woff2') format('woff2');
  font-display: swap;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f3f5; padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
.site-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 600; font-size: 1.15rem; }
.brand img { display: block; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--text); font-size: 0.95rem; }
.cta-btn {
  background: var(--secondary); color: white !important; padding: 0.5rem 1rem; border-radius: 4px;
  font-weight: 600; transition: opacity 0.15s;
}
.cta-btn:hover { opacity: 0.9; text-decoration: none; }
.cta-btn-large { display: inline-block; padding: 0.75rem 1.5rem; font-size: 1.05rem; margin-top: 1rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.container.has-side { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
@media (max-width: 768px) {
  .container.has-side { grid-template-columns: 1fr; }
  .side-nav { display: none; }
}
h1 { font-size: 2rem; margin: 0 0 0.5rem; color: var(--primary); }
h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 70ch; }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 3rem; font-style: italic; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.fw-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin: 1.5rem 0;
}
.fw-card {
  background: var(--surface); padding: 1.5rem; border: 1px solid var(--border); border-radius: 8px;
  border-left: 4px solid var(--secondary);
}
.fw-card h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.fw-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.fw-stats { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.ctrl-list { display: grid; gap: 0.5rem; margin: 1.5rem 0; }
.ctrl-row {
  display: grid; grid-template-columns: 8rem 1fr 8rem; gap: 1rem; align-items: center;
  padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text);
}
.ctrl-row:hover { background: #fff; border-color: var(--primary); text-decoration: none; }
.ctrl-ref { font-weight: 600; color: var(--primary); font-family: ui-monospace, monospace; font-size: 0.9rem; }
.ctrl-title { font-size: 0.95rem; }
.ctrl-n { text-align: right; color: var(--muted); font-size: 0.85rem; }
.side-nav {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem; font-size: 0.85rem; max-height: 80vh; overflow-y: auto; position: sticky; top: 5rem;
}
.side-nav h4 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--primary); }
.side-nav ol { list-style: none; padding: 0; margin: 0; }
.side-nav li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav li.active { font-weight: 600; color: var(--secondary); }
.side-nav a { color: var(--text); }
.ctrl-title-h2 { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; }
.findings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem; margin: 1rem 0 2rem;
}
.finding-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem; border-left: 3px solid var(--accent);
}
.finding-card header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.finding-card .slug { font-size: 0.78rem; color: var(--muted); background: transparent; padding: 0; }
.finding-card .effort { color: var(--secondary); font-weight: 600; }
.finding-card h3 { font-size: 1rem; margin: 0.25rem 0 0.5rem; color: var(--text); }
.finding-card .risk { font-size: 0.9rem; color: var(--text); margin: 0.5rem 0; }
.risk-cats { margin: 0.5rem 0 0; }
.cat-chip {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 3px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
  background: #f1f3f5; color: var(--muted); margin-right: 0.25rem;
}
.cat-security { background: rgba(170, 70, 67, 0.12); color: var(--danger); }
.cat-legal { background: rgba(69, 114, 167, 0.12); color: var(--primary); }
.cat-privacy { background: rgba(61, 150, 174, 0.15); color: var(--accent); }
.cat-financial { background: rgba(219, 132, 61, 0.15); color: var(--secondary); }
.cat-reputational { background: rgba(128, 105, 155, 0.15); color: #80699B; }
.cat-operational { background: rgba(137, 165, 78, 0.15); color: #89A54E; }
.other-controls { margin-top: 0.75rem; font-size: 0.85rem; }
.other-controls summary { color: var(--muted); cursor: pointer; }
.other-controls ul { padding-left: 1.2rem; margin: 0.5rem 0; color: var(--muted); }
.other-controls a { color: var(--primary); }
.cta-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--secondary);
  border-radius: 6px; padding: 1.5rem; margin: 2rem 0;
}
.cta-card h3 { margin-top: 0; color: var(--primary); font-size: 1.15rem; }
.cta-card ol { padding-left: 1.5rem; }
.site-foot {
  margin-top: 4rem; padding: 2rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); text-align: center;
}
.site-foot a { color: var(--primary); }
.foot-links { margin-top: 0.75rem; }
.foot-links a { margin: 0 0.5rem; }
.ctrl-page { min-width: 0; }
@media (max-width: 600px) {
  .site-head { flex-direction: column; gap: 0.75rem; padding: 0.75rem; }
  .site-nav { flex-wrap: wrap; gap: 0.75rem; }
  .ctrl-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .ctrl-n { text-align: left; }
}
