:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --max: 1000px;
  --wide: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e0e7ff 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, #fce7f3 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 252, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; flex-wrap: wrap;
  max-width: var(--wide); margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}
.brand .logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
  font-size: 0.88rem;
}
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-bottom-color: var(--brand);
}

.hero, section.card, main.wrap > section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); margin: 18px 0;
}
.hero { margin-top: 24px; border-radius: calc(var(--radius) + 4px); }
h1 {
  margin: 0 0 12px; font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.2; letter-spacing: -0.03em;
}
h2 { margin: 0 0 10px; font-size: 1.28rem; letter-spacing: -0.02em; }
h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; }
p, li { color: var(--muted); }
p strong, li strong, td strong { color: var(--ink); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.2rem; }
li { margin-bottom: 8px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip, .pill, .eyebrow {
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: var(--brand-soft); color: #3730a3; display: inline-block;
}
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.pill {
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
}

.callout, .status {
  border-radius: 12px; padding: 14px 16px; margin: 14px 0;
  border: 1px solid var(--line); background: #f8fafc; color: var(--ink); font-size: 0.95rem;
}
.callout.ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.callout.warn, .status {
  background: var(--warn-bg); border-color: #fde68a; color: #92400e;
}
.callout.danger { background: var(--danger-bg); border-color: #fecaca; color: #7f1d1d; }
.callout.neutral { background: var(--brand-soft); border-color: #c7d2fe; color: #312e81; }
.status strong { color: #78350f; }

.table-wrap { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  background: #fff; min-width: 640px;
}
th, td {
  border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top;
  white-space: normal; word-break: normal;
}
th { background: #f8fafc; color: var(--ink); font-weight: 700; white-space: nowrap; }
td { color: var(--muted); line-height: 1.45; }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

.grid-2, .grid-3 { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.mini, .card-mini, .pick-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mini h3, .pick-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.mini p, .pick-card p { margin: 0; font-size: 0.92rem; }
a.pick-card {
  display: block; text-decoration: none; color: inherit; background: #fff;
}
a.pick-card:hover {
  border-color: #c7d2fe; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}
a.pick-card .pick-kicker {
  display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--brand); margin-bottom: 6px;
}
.card-mini strong { display: block; margin-bottom: 0.35rem; color: var(--ink); }
.card-mini.pro { border-color: #a7f3d0; background: var(--ok-bg); }
.card-mini.con { border-color: #fecaca; background: var(--danger-bg); }

.note {
  font-size: 0.92rem; color: var(--muted); background: #f8fafc;
  border-left: 3px solid var(--brand); padding: 0.75rem 0.9rem; margin: 0.75rem 0;
}
.verdict {
  background: linear-gradient(135deg, #eef2ff, #f8fafc) !important;
  border-color: #c7d2fe !important;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative; padding: 14px 14px 14px 54px; margin-bottom: 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; background: #f8fafc;
}
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #4338ca; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d2fe; color: #3730a3; }

.related { display: grid; gap: 8px; margin-top: 8px; }
.related a {
  display: block; padding: 10px 12px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600;
}
.related a:hover { border-color: #c7d2fe; color: var(--brand-dark); }
.related a span { display: block; font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.site-footer {
  margin-top: 28px; padding: 24px 20px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.site-footer .footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-grid { display: grid; gap: 18px; margin-bottom: 16px; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 0.92rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.disclaimer {
  font-size: 0.85rem; color: #64748b; background: #fff; border: 1px dashed var(--line);
  border-radius: 12px; padding: 12px 14px; margin-top: 12px;
}

.page-role {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.85rem;
  margin: 0 0 0.85rem;
}
.page-role-job { color: var(--muted); font-size: 0.95rem; }

.dir-grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .dir-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
