/* =============================================================
   Glossaire Cyber — design bento moderne
   ============================================================= */

:root {
  /* Palette */
  --bg: #fafaf7;
  --bg-alt: #f4f3ee;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #4a4a48;
  --muted: #8a8985;
  --line: #e8e6df;
  --line-strong: #d9d6cc;

  /* Accents bento (par catégorie) */
  --accent-red: #ff6b5b;
  --accent-red-bg: #ffe8e4;
  --accent-blue: #4a6cf7;
  --accent-blue-bg: #e4eafc;
  --accent-green: #18a957;
  --accent-green-bg: #e1f5ea;
  --accent-yellow: #f5c842;
  --accent-yellow-bg: #fef6dc;
  --accent-purple: #8b5cf6;
  --accent-purple-bg: #efe6fe;
  --accent-orange: #ff8a3d;
  --accent-orange-bg: #ffecd9;
  --accent-dark: #0a0a0a;

  /* Typographie */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px -6px rgba(10, 10, 10, 0.08), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(10, 10, 10, 0.12), 0 8px 16px -8px rgba(10, 10, 10, 0.08);
  --shadow-glow: 0 0 0 1px rgba(10, 10, 10, 0.06);

  /* Container */
  --container: 1240px;
  --container-narrow: 780px;

  /* Easing */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Aurora mesh background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 30% at 10% 10%, rgba(74, 108, 247, 0.08), transparent 70%),
    radial-gradient(ellipse 35% 25% at 90% 15%, rgba(255, 107, 91, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 90%, rgba(245, 200, 66, 0.05), transparent 70%),
    radial-gradient(ellipse 35% 25% at 15% 85%, rgba(139, 92, 246, 0.05), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw + 0.5rem, 5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.8rem, 2.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p { color: var(--ink-soft); }

.lede {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  font-weight: 400;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-bg);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.container--narrow { max-width: var(--container-narrow); }

/* ---------- Header ---------- */
.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 1rem;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.65rem 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.logo__mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
}

.site-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 0.5rem 0.9rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }

.site-nav a.is-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 1.1rem;
}

.site-nav a.is-cta:hover { background: #2a2a2a; color: white; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.hero__kicker {
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s var(--ease) both;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 17ch;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero .lede {
  margin-bottom: 2.25rem;
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

.hero__search-wrap { animation: fadeUp 0.7s var(--ease) 0.24s both; }

/* ---------- Search ---------- */
.search {
  position: relative;
  max-width: 580px;
  margin-bottom: 1.25rem;
}

.search__input {
  width: 100%;
  padding: 1.1rem 1.35rem 1.1rem 3.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-md);
}

.search__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.06), var(--shadow-lg);
}

.search__input::placeholder { color: var(--muted); font-weight: 400; }

.search__icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  align-items: center;
  padding-left: 0.5rem;
}

.search__suggestions span { margin-right: 0.3rem; font-family: var(--font-mono); font-size: 0.78rem; }

.search__suggestions a {
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: all 0.18s var(--ease);
}

.search__suggestions a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =============================================================
   BENTO GRID
   ============================================================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
  margin: clamp(2rem, 5vw, 4rem) 0;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.box--link:hover { cursor: pointer; }

/* Tailles bento */
.box--2x1 { grid-column: span 2; }
.box--3x1 { grid-column: span 3; }
.box--4x1 { grid-column: span 4; }
.box--6x1 { grid-column: span 6; }
.box--2x2 { grid-column: span 2; grid-row: span 2; }
.box--3x2 { grid-column: span 3; grid-row: span 2; }

/* Variantes colorées */
.box--red    { background: var(--accent-red-bg); border-color: transparent; }
.box--blue   { background: var(--accent-blue-bg); border-color: transparent; }
.box--green  { background: var(--accent-green-bg); border-color: transparent; }
.box--yellow { background: var(--accent-yellow-bg); border-color: transparent; }
.box--purple { background: var(--accent-purple-bg); border-color: transparent; }
.box--orange { background: var(--accent-orange-bg); border-color: transparent; }
.box--dark   { background: var(--ink); color: white; border-color: transparent; }
.box--dark p, .box--dark h3 { color: white; }
.box--dark p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Box : stat ---------- */
.box-stat__num {
  font-size: clamp(2.5rem, 3.5vw + 0.5rem, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.box-stat__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.box--dark .box-stat__label { color: rgba(255, 255, 255, 0.6); }

/* ---------- Box : terme featured ---------- */
.box-term {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
}

.box-term__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: rgba(10, 10, 10, 0.06);
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: auto;
}

.box--red .box-term__tag    { background: rgba(255, 107, 91, 0.15); color: #c33020; }
.box--blue .box-term__tag   { background: rgba(74, 108, 247, 0.15); color: #2846d4; }
.box--green .box-term__tag  { background: rgba(24, 169, 87, 0.15); color: #0e6d38; }
.box--yellow .box-term__tag { background: rgba(194, 150, 0, 0.15); color: #8a6a00; }
.box--purple .box-term__tag { background: rgba(139, 92, 246, 0.15); color: #6938d4; }
.box--orange .box-term__tag { background: rgba(255, 138, 61, 0.15); color: #c65c12; }

.box-term__title {
  font-size: clamp(1.6rem, 1.5vw + 0.8rem, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem 0 0.75rem;
}

.box-term__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.box-term__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: gap 0.2s var(--ease);
}

.box-term:hover .box-term__arrow { gap: 0.7rem; }

/* Décoration flottante dans les box colorées */
.box-term__decor {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(24px);
}

.box--red .box-term__decor    { background: var(--accent-red); }
.box--blue .box-term__decor   { background: var(--accent-blue); }
.box--green .box-term__decor  { background: var(--accent-green); }
.box--yellow .box-term__decor { background: var(--accent-yellow); }
.box--purple .box-term__decor { background: var(--accent-purple); }
.box--orange .box-term__decor { background: var(--accent-orange); }

/* ---------- Box : catégorie ---------- */
.box-cat {
  text-decoration: none;
  color: inherit;
  min-height: 140px;
  justify-content: space-between;
}

.box-cat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.box-cat__name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.box-cat__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Box : manifeste / CTA ---------- */
.box-manifest { min-height: 240px; justify-content: space-between; }

.box-manifest h3 {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.box-manifest p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.box-manifest__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  align-self: flex-start;
  transition: all 0.2s var(--ease);
}

.box-manifest__cta:hover { gap: 0.7rem; background: var(--accent-yellow); }

/* ---------- Alphabet box ---------- */
.box-alphabet {
  min-height: 180px;
}

.box-alphabet h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 0.25rem;
}

.alphabet-grid a, .alphabet-grid span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s var(--ease);
  background: var(--bg-alt);
  color: var(--ink);
}

.alphabet-grid a:hover {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.08);
}

.alphabet-grid span.is-empty { color: var(--line-strong); background: transparent; }

/* ---------- Section ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section__head h2 { margin: 0.5rem 0 0.25rem; }

.section__head .kicker { margin-bottom: 0.5rem; }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.link-arrow:hover {
  gap: 0.6rem;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
}

.site-footer__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.site-footer__tagline {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.55rem; font-size: 0.92rem; }

.site-footer li a { color: var(--ink-soft); transition: color 0.18s var(--ease); }
.site-footer li a:hover { color: var(--ink); }

.site-footer__legal {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* =============================================================
   PAGE TERME (FICHE)
   ============================================================= */

.breadcrumb {
  padding: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a { color: var(--muted); transition: color 0.18s var(--ease); font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { opacity: 0.5; }

.term-hero {
  padding: 2.5rem 0 2rem;
}

.term-hero__meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.tag--danger {
  background: var(--accent-red-bg);
  border-color: transparent;
  color: #c33020;
}

.tag--accent {
  background: var(--accent-blue-bg);
  border-color: transparent;
  color: #2846d4;
}

.tag--warning {
  background: var(--accent-yellow-bg);
  border-color: transparent;
  color: #8a6a00;
}

.term-hero h1 {
  font-size: clamp(2.75rem, 5vw + 1rem, 5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.045em;
}

.term-hero__synonyms {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.term-hero__synonyms strong { color: var(--ink-soft); font-weight: 600; margin-right: 0.35rem; }

.term-hero__tldr {
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 72ch;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.term-hero__tldr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
}

.term-hero__tldr strong {
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

/* ---------- Body ---------- */
.term-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  padding: 2.5rem 0;
  align-items: flex-start;
}

.toc {
  position: sticky;
  top: 5.5rem;
  font-size: 0.9rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.toc ol { list-style: none; counter-reset: toc; }

.toc li {
  counter-increment: toc;
  margin-bottom: 0.55rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.4;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  top: 3px;
  font-weight: 500;
}

.toc a {
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
  font-weight: 500;
}

.toc a:hover { color: var(--ink); }

/* ---------- Content ---------- */
.content {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.content > section + section { margin-top: 3rem; }

.content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 6rem;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.content h2 .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-blue);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.content p { margin-bottom: 1.1rem; }
.content p strong { color: var(--ink); font-weight: 600; }
.content p em { font-style: italic; color: var(--ink); }

.content ul, .content ol {
  margin: 0 0 1.4rem 0;
  padding-left: 1.4rem;
}

.content li { margin-bottom: 0.6rem; }
.content li::marker { color: var(--accent-blue); }

.content a {
  color: var(--accent-blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(74, 108, 247, 0.25);
  transition: all 0.18s var(--ease);
}

.content a:hover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-bg);
}

.content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--accent-yellow-bg);
  border-radius: var(--r-md);
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.55;
  position: relative;
}

.content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-yellow);
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.18em 0.4em;
  background: var(--bg-alt);
  border-radius: 5px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Keyfacts ---------- */
.keyfacts {
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  margin: 1.5rem 0 2rem;
}

.keyfacts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.7rem 1.5rem;
  font-size: 0.92rem;
}

.keyfacts dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 2px;
  font-weight: 500;
}

.keyfacts dd { color: var(--ink); font-weight: 500; }

/* ---------- Example ---------- */
.example {
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.example__head {
  padding: 0.8rem 1.3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.example__head::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-red-bg);
}

.example__body { padding: 1.3rem 1.5rem; font-size: 0.98rem; line-height: 1.6; }
.example__body p { margin-bottom: 0.8rem; }
.example__body p:last-child { margin-bottom: 0; }

/* ---------- Protection ---------- */
.protection {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: var(--accent-green-bg);
  border-radius: var(--r-md);
  position: relative;
}

.protection__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0e6d38;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.protection__title::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.protection ul { padding-left: 0; list-style: none; margin-bottom: 0; }

.protection li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.protection li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0e6d38;
  font-weight: 600;
}

/* ---------- Related ---------- */
.related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.related h2 { font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: -0.035em; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.related-card {
  padding: 1.15rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease);
  display: block;
}

.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card__term {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.025em;
}

.related-card__desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Sponsor ---------- */
.sponsor {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: var(--ink);
  color: white;
  border-radius: var(--r-lg);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.sponsor::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 200, 66, 0.15), transparent 60%);
  pointer-events: none;
}

.sponsor__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.sponsor__text {
  flex: 1;
  min-width: 220px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  line-height: 1.5;
}

.sponsor__text strong { color: white; font-weight: 600; }

.sponsor__cta {
  padding: 0.7rem 1.35rem;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
}

.sponsor__cta:hover { background: var(--accent-yellow); transform: translateY(-1px); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .box--4x1 { grid-column: span 4; }
  .box--3x2, .box--3x1 { grid-column: span 4; }
  .box--6x1 { grid-column: span 4; }
}

@media (max-width: 768px) {
  .term-body { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__inner { padding: 2rem 1.5rem; }
  .bento { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .box, .box--2x1, .box--3x1, .box--4x1, .box--6x1, .box--2x2, .box--3x2 {
    grid-column: span 2;
    grid-row: auto;
  }
  .site-header__inner { padding: 0.5rem 0.5rem 0.5rem 1rem; }
  .site-nav { gap: 0.2rem; }
  .site-nav a:not(.is-cta) { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .box, .box--2x1, .box--3x1, .box--4x1, .box--6x1, .box--2x2, .box--3x2 {
    grid-column: span 1;
    grid-row: auto;
  }
  .alphabet-grid { grid-template-columns: repeat(7, 1fr); }
  .site-footer__legal { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media print {
  body::before { display: none; }
  .site-header, .site-footer, .toc, .sponsor { display: none; }
  .term-body { grid-template-columns: 1fr; }
  .content { max-width: 100%; }
}
