/* ============================================================
   Luna Labs — Centro de Soporte
   Premium editorial design. No dependencies, no frameworks.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --blue: #2970FF;
  --blue-dark: #004EEB;
  --blue-tint: #F4F8FF;
  --blue-glow: rgba(41, 112, 255, 0.12);
  --ink: #111113;
  --ink-2: #37373C;
  --ink-3: #6E6E73;
  --ink-4: #86868B;
  --line: #D2D2D7;
  --line-2: #E8E8ED;
  --bg: #FAFAFE;
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;
  --green: #16B364;
  --amber: #B45309;
  --red: #C73E3E;
  --code-bg: #F5F5F7;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.04);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.03), 0 2px 4px rgba(0,0,0,.02), 0 8px 24px rgba(0,0,0,.04);
  --shadow-card-hover: 0 0 0 1px rgba(41,112,255,.12), 0 4px 12px rgba(0,0,0,.06), 0 20px 48px rgba(0,0,0,.08);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --max: 1200px;
  --reading: 720px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 254, 0.72);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #2970FF 0%, #6366F1 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(41,112,255,.3);
}
.brand-sub { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.topnav-actions { display: flex; gap: 8px; align-items: center; }
.topnav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.topnav-link:hover { background: rgba(0,0,0,0.04); color: var(--ink); text-decoration: none; }
.topnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  transition: background .15s, transform .15s;
}
.topnav-cta:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
@media (max-width: 640px) {
  .topnav-link.hide-mobile { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 13px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 32px 0 12px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-4); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 500; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin: 0 0 20px;
  color: var(--ink);
}
.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 680px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
  display: inline-block;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--ink);
  margin: 56px 0 16px;
  scroll-margin-top: 80px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 32px 0 12px;
  scroll-margin-top: 80px;
}
h4 {
  font-weight: 600;
  font-size: 1.0625rem;
  margin: 24px 0 8px;
  color: var(--ink);
}

/* ---------- Article meta ---------- */
.meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin: 24px 0 0;
  font-size: 14px; color: var(--ink-3);
}
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.meta time { color: var(--ink-3); }
.meta .author { color: var(--ink-2); font-weight: 500; }
.meta .role-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.meta .role-tag.manager { background: #FEF3C7; color: #92400E; }
.meta .role-tag.analyst { background: #ECFDF5; color: #065F46; }
.meta .role-tag.both { background: #F5F3FF; color: #5B21B6; }

/* ---------- Article layout ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 32px 0 64px;
}
@media (min-width: 1024px) {
  .article-wrap {
    grid-template-columns: 240px 1fr;
    gap: 56px;
  }
}

.toc {
  position: sticky; top: 80px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.toc-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc a {
  display: block;
  color: var(--ink-3);
  padding: 6px 12px;
  border-left: 2px solid transparent;
  border-radius: 0;
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }
@media (max-width: 1023px) { .toc { display: none; } }

.article {
  max-width: var(--reading);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article > p,
.article > ul,
.article > ol,
.article > blockquote,
.article > figure,
.article > .callout,
.article > .steps,
.article > .table-wrap,
.article > pre,
.article > .faq {
  margin: 16px 0;
}
.article p { color: var(--ink-2); }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--ink-4); }

.article > .tldr {
  margin: 24px 0 32px;
}

.article hr {
  border: none;
  border-top: 1px solid var(--line-2);
  margin: 48px 0;
}

/* ---------- Code ---------- */
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}
pre {
  background: #0F1117;
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}
pre code { background: transparent; color: inherit; padding: 0; }

/* ---------- TL;DR / Callouts ---------- */
.tldr {
  background: linear-gradient(135deg, var(--blue-tint) 0%, #F0ECFF 100%);
  border: 1px solid rgba(41,112,255,.1);
  border-radius: var(--radius);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.tldr::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #6366F1);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tldr-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  margin: 0 0 8px;
}
.tldr p { margin: 0; color: var(--ink-2); }

.callout {
  display: flex; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: border-color .2s;
}
.callout-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.callout-body { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.callout-body strong { color: var(--ink); }
.callout.info { background: var(--blue-tint); border-color: rgba(41,112,255,.15); }
.callout.info .callout-icon { color: var(--blue); }
.callout.warn { background: #FFFBEB; border-color: #FDE68A; }
.callout.warn .callout-icon { color: var(--amber); }
.callout.compliance { background: #FEF2F2; border-color: #FECACA; }
.callout.compliance .callout-icon { color: var(--red); }
.callout.tip { background: #ECFDF5; border-color: #A7F3D0; }
.callout.tip .callout-icon { color: #047857; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.steps > li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .3s;
}
.steps > li:hover {
  border-color: rgba(41,112,255,.15);
  box-shadow: 0 2px 12px rgba(41,112,255,.06);
}
.steps .step-n {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--ink) 0%, #37373C 100%);
  color: #fff;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.steps .step-title { font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.steps .step-desc { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
thead th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
  padding: 20px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-size: contain; background-repeat: no-repeat;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > p,
.faq details > div { margin: 12px 0 0; color: var(--ink-2); }

/* ============================================================
   HUB PAGE — Hero & Cards
   ============================================================ */

/* ---------- Hero (hub) ---------- */
.hub-hero {
  text-align: center;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Gradient mesh background */
.hub-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%; right: -20%;
  height: 160%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(41,112,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(99,102,241,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 80%, rgba(16,179,100,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hub-hero > * { position: relative; z-index: 1; }
.hub-hero .eyebrow {
  background: linear-gradient(135deg, var(--blue), #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.hub-hero .display { margin-left: auto; margin-right: auto; max-width: 780px; }
.hub-hero .lede { margin: 20px auto 0; }

/* ---------- Search bar ---------- */
.hub-search-wrap { max-width: 580px; margin: 0 auto; }
.hub-search {
  position: relative;
}
.hub-search input {
  width: 100%;
  font: inherit; font-size: 16px;
  padding: 18px 22px 18px 52px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s, box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.hub-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-card-hover), 0 0 0 4px var(--blue-glow);
  transform: translateY(-1px);
}
.hub-search input::placeholder {
  color: var(--ink-4);
}
.hub-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); width: 20px; height: 20px;
  pointer-events: none;
  transition: color .2s;
}
.hub-search input:focus ~ .hub-search-icon,
.hub-search input:focus + .sr-only + .hub-search-icon { /* handle DOM order */ }

/* Keyboard hint */
.hub-search::after {
  content: '⌘K';
  position: absolute;
  right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s;
}
.hub-search:focus-within::after { opacity: 0; }

/* ---------- Search results ---------- */
.search-results {
  margin-top: 8px;
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: searchFade .2s var(--ease-out);
}
@keyframes searchFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-results[hidden] { display: none; }
.search-result-item {
  display: block;
  padding: 16px 22px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
  border-bottom: 1px solid var(--line-2);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.search-result-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.search-result-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.45;
}
.search-no-results {
  padding: 20px 22px;
  color: var(--ink-3);
  font-size: 15px;
}

/* ---------- Topic cards (hub) ---------- */
.topics-section { padding: 24px 0 96px; }
.topics-section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 56px 0 24px;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 12px;
}
.topics-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Premium card design */
.topic-card {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 28px;
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    border-color .2s;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(41,112,255,.03) 0%, rgba(99,102,241,.02) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41,112,255,.15);
  box-shadow: var(--shadow-card-hover);
  color: inherit; text-decoration: none;
}
.topic-card:hover::before { opacity: 1; }

.topic-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.topic-card-icon svg { width: 22px; height: 22px; }
.topic-card-title {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.topic-card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.topic-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--blue);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: gap .25s var(--ease-out);
}
.topic-card:hover .topic-card-link { gap: 10px; }

/* Color variants for topic icons — enhanced with subtle gradients */
.ic-blue { background: linear-gradient(135deg, #EBF2FF, #D6E4FF); color: var(--blue); }
.ic-green { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #047857; }
.ic-purple { background: linear-gradient(135deg, #F5F3FF, #E9E5FF); color: #6D28D9; }
.ic-amber { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: #B45309; }
.ic-rose { background: linear-gradient(135deg, #FFF1F2, #FFE4E6); color: #BE123C; }
.ic-indigo { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #4338CA; }
.ic-teal { background: linear-gradient(135deg, #F0FDFA, #CCFBF1); color: #0F766E; }
.ic-slate { background: linear-gradient(135deg, #F1F5F9, #E2E8F0); color: #475569; }

/* ---------- Glossary list ---------- */
.glossary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.glossary dt {
  font-weight: 600; color: var(--ink);
  font-size: 17px;
  margin-top: 24px;
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd {
  margin: 6px 0 0;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}

/* ---------- "Was this helpful" / next steps ---------- */
.next-block {
  margin: 56px 0 24px;
  padding: 28px 32px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.next-block h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.next-list {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 720px) {
  .next-list { grid-template-columns: 1fr 1fr; }
}
.next-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: border-color .2s, background .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.next-list a:hover {
  border-color: rgba(41,112,255,.2);
  background: var(--blue-tint);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(41,112,255,.08);
}
.next-list a::after {
  content: '→'; color: var(--ink-3); font-weight: 400;
  transition: transform .25s var(--ease-out), color .2s;
}
.next-list a:hover::after { transform: translateX(3px); color: var(--blue); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 0;
  padding: 56px 0 36px;
  border-top: 1px solid var(--line-2);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-4);
  margin: 0 0 14px;
}
.footer a {
  display: block;
  color: var(--ink-2); font-size: 14.5px;
  padding: 4px 0;
  transition: color .15s;
}
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer-brand { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-top: 12px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-4);
}
.footer-bottom a { color: var(--ink-3); display: inline; padding: 0; }

/* ---------- Tiny helpers ---------- */
.icon { width: 1em; height: 1em; vertical-align: -0.15em; }
.muted { color: var(--ink-3); }
.kbd {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--ink);
  line-height: 1.4;
}

/* ---------- Entrance animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hub-hero .eyebrow,
  .hub-hero .display,
  .hub-hero .lede,
  .hub-search-wrap {
    animation: heroFadeUp .6s var(--ease-out) both;
  }
  .hub-hero .eyebrow { animation-delay: 0ms; }
  .hub-hero .display { animation-delay: 60ms; }
  .hub-hero .lede { animation-delay: 120ms; }
  .hub-search-wrap { animation-delay: 180ms; }

  .topic-card {
    animation: cardFadeUp .5s var(--ease-out) both;
  }
  .topics-grid .topic-card:nth-child(1) { animation-delay: 100ms; }
  .topics-grid .topic-card:nth-child(2) { animation-delay: 160ms; }
  .topics-grid .topic-card:nth-child(3) { animation-delay: 220ms; }
  .topics-grid .topic-card:nth-child(4) { animation-delay: 280ms; }
  .topics-grid .topic-card:nth-child(5) { animation-delay: 340ms; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Print ---------- */
@media print {
  .topnav, .toc, .next-block, .footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .article { max-width: 100%; }
}
