/*
 * Public-surface design tokens: the single source of truth for the landing,
 * startup loader and auth dialogs. Public pages are always dark, so these
 * values never change with the app theme (see the light-mode input guard below).
 * pageLoadingPlugin also inlines this file so the first paint uses the same values.
 */
/* Self-hosted Plus Jakarta Sans (SIL OFL 1.1, see public/fonts/OFL.txt): one variable latin file covers 400-800. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --fs-4xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-display: clamp(2.5rem, 1.7rem + 3.8vw, 4.25rem);
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --tracking-tight: -0.025em;
  --tracking-caps: 0.12em;

  /* Surfaces */
  --pub-bg: #0f172a;
  --pub-bg-deep: #0b1220;
  --pub-surface: #1a2438;
  --pub-surface-raised: #223049;
  --pub-border: rgba(255, 255, 255, 0.1);
  --pub-border-strong: rgba(255, 255, 255, 0.2);
  --pub-overlay: rgba(6, 10, 20, 0.8);

  /* Text (all >= 4.5:1 on every surface above) */
  --pub-text: #f8fafc;
  --pub-text-2: #cbd5e1;
  --pub-text-3: #94a3b8;
  --pub-placeholder: #8391a7;

  /* Violet accent */
  --pub-accent: #8b5cf6;
  --pub-accent-strong: #7c3aed;
  --pub-accent-deep: #6d28d9;
  --pub-accent-soft: #c4b5fd;
  --pub-accent-tint: rgba(139, 92, 246, 0.12);
  --pub-accent-ring: rgba(167, 139, 250, 0.45);

  /* States */
  --pub-success: #34d399;
  --pub-success-tint: rgba(16, 185, 129, 0.12);
  --pub-danger: #fca5a5;
  --pub-danger-border: rgba(248, 113, 113, 0.4);
  --pub-danger-tint: rgba(239, 68, 68, 0.12);
  --pub-warning: #fcd34d;
  --pub-warning-tint: rgba(245, 158, 11, 0.12);

  /* Spacing rhythm (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  --container: 72rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  /* Elevation */
  --pub-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --pub-shadow-modal: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  --pub-shadow-glow: 0 10px 28px -8px rgba(124, 58, 237, 0.55);
  --pub-shadow-glow-strong: 0 10px 40px -4px rgba(124, 58, 237, 0.75);

  --pub-gradient-accent: linear-gradient(135deg, var(--pub-accent-strong), var(--pub-accent-deep));
  --pub-gradient-text: linear-gradient(90deg, #ddd6fe, var(--pub-accent-soft) 45%, #a78bfa);
}

/* ---- Base for public roots ------------------------------------------------ */
.pub {
  font-family: var(--font-sans);
  background: var(--pub-bg);
  color: var(--pub-text);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
.pub-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.pub-section { padding-block: var(--space-section); }
.pub-section--band { background: var(--pub-bg-deep); border-block: 1px solid var(--pub-border); }
.pub-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }

@media (min-width: 1800px) {
  .pub-container { max-width: 88rem; }
}
@media (min-width: 3200px) {
  .pub-container { max-width: 104rem; }
}

/* Keep the report control clear of the final row on touch viewports. */
@media (max-width: 1024px) {
  .landing-report-button {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Type ----------------------------------------------------------------- */
.pub-display { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 800; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.pub-h2 { font-size: var(--fs-4xl); line-height: var(--lh-tight); font-weight: 800; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.pub-h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); font-weight: 700; letter-spacing: -0.01em; }
.pub-lead { font-size: var(--fs-lg); line-height: var(--lh-body); color: var(--pub-text-2); text-wrap: pretty; }
.pub-body { font-size: var(--fs-base); color: var(--pub-text-2); }
.pub-small { font-size: var(--fs-sm); color: var(--pub-text-3); }
.pub-eyebrow { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--pub-accent-soft); }
.pub-gradient-text { background: var(--pub-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 640px) { .pub-lead { font-size: 1.25rem; } }

/* ---- Cards ---------------------------------------------------------------- */
.pub-card {
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--pub-shadow-card);
}
.pub-card--interactive { transition: border-color .2s ease, transform .2s ease; }
.pub-card--interactive:hover { border-color: var(--pub-border-strong); transform: translateY(-2px); }
.pub-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2rem; padding: 0 var(--space-3);
  border: 1px solid var(--pub-border); border-radius: var(--radius-pill);
  background: var(--pub-accent-tint); color: var(--pub-accent-soft);
  font-size: var(--fs-xs); font-weight: 600;
}
.pub-icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  background: var(--pub-accent-tint); border: 1px solid rgba(167, 139, 250, 0.25); color: var(--pub-accent-soft);
}

/* ---- Buttons -------------------------------------------------------------- */
.pub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: inherit; font-size: var(--fs-base); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  color: var(--pub-text); background: transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pub-btn:focus-visible, .pub-link:focus-visible, .pub-input:focus-visible { outline: 2px solid var(--pub-accent-soft); outline-offset: 2px; }
.pub-btn:disabled { opacity: .6; cursor: not-allowed; }
.pub-btn--lg { min-height: 3.25rem; padding: 0 var(--space-6); font-size: var(--fs-lg); border-radius: var(--radius-lg); }
.pub-btn--block { width: 100%; }
.pub-btn--primary { background: var(--pub-gradient-accent); color: #fff; box-shadow: var(--pub-shadow-glow); }
.pub-btn--primary:hover:not(:disabled) { filter: brightness(1.12); }
.pub-btn--secondary { border-color: var(--pub-border-strong); background: rgba(255, 255, 255, 0.03); }
.pub-btn--secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.pub-btn--ghost { color: var(--pub-text-2); }
.pub-btn--ghost:hover:not(:disabled) { color: var(--pub-text); background: rgba(255, 255, 255, 0.06); }
.pub-link { color: var(--pub-accent-soft); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); }
.pub-link:hover { text-decoration: underline; }
.pub-spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: pub-spin .7s linear infinite; }
@keyframes pub-spin { to { transform: rotate(360deg); } }

/* ---- Form fields ---------------------------------------------------------- */
.pub-label { display: block; margin-bottom: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--pub-text-2); }
.pub-input {
  width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0 var(--space-4);
  background: var(--pub-bg); color: var(--pub-text);
  border: 1px solid var(--pub-border-strong); border-radius: var(--radius-md);
  font: inherit; font-size: var(--fs-base); transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-input::placeholder { color: var(--pub-placeholder); }
.pub-input:focus { outline: none; border-color: var(--pub-accent); box-shadow: 0 0 0 3px var(--pub-accent-ring); }
.pub-input[aria-invalid='true'] { border-color: var(--pub-danger-border); }
.pub-input[aria-invalid='true']:focus { box-shadow: 0 0 0 3px var(--pub-danger-tint); }
.pub-input--icon { padding-left: 2.75rem; }
.pub-input--toggle { padding-right: 3.25rem; }
.pub-field-error { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--pub-danger); }
.pub-field-hint { margin: var(--space-2) 0 0; font-size: var(--fs-xs); color: var(--pub-text-3); }
.pub-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid; font-size: var(--fs-sm); }
.pub-alert--danger { color: var(--pub-danger); border-color: var(--pub-danger-border); background: var(--pub-danger-tint); }
.pub-alert--success { color: var(--pub-success); border-color: rgba(52, 211, 153, 0.35); background: var(--pub-success-tint); }
.pub-alert--warning { color: var(--pub-warning); border-color: rgba(252, 211, 77, 0.35); background: var(--pub-warning-tint); }

/*
 * The app's light mode paints every input white with !important. Public dialogs
 * stay dark, so match its declarations with a more specific selector.
 */
[data-theme-mode='light'] input.pub-input[type] {
  background-color: var(--pub-bg) !important;
  color: var(--pub-text) !important;
  border-color: var(--pub-border-strong) !important;
}
[data-theme-mode='light'] input.pub-input[type][aria-invalid='true'] { border-color: var(--pub-danger-border) !important; }
[data-theme-mode='light'] input.pub-input::placeholder { color: var(--pub-placeholder) !important; opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  .pub-card--interactive, .pub-btn, .pub-input { transition: none; }
  .pub-card--interactive:hover { transform: none; }
  .pub-spinner { animation-duration: 1.6s; }
}

/* ---- Dialog shell (auth) ---------------------------------------------------- */
.pub-dialog-backdrop {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: var(--space-4); background: var(--pub-overlay); backdrop-filter: blur(6px);
}
.pub-dialog {
  position: relative; box-sizing: border-box; width: 100%; max-width: 26rem; max-height: calc(100dvh - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--pub-surface); color: var(--pub-text);
  border: 1px solid var(--pub-border); border-radius: var(--radius-xl); box-shadow: var(--pub-shadow-modal);
  animation: pub-dialog-in .2s ease-out;
}
.pub-dialog::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 8rem; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0, var(--pub-accent-tint), transparent);
}
.pub-dialog > * { position: relative; }
.pub-dialog__close {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--pub-text-3); cursor: pointer;
}
.pub-dialog__close:hover { color: var(--pub-text); background: rgba(255, 255, 255, 0.08); }
.pub-dialog__close:focus-visible { outline: 2px solid var(--pub-accent-soft); outline-offset: 2px; }
.pub-dialog__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); padding-right: 2.75rem; }
.pub-dialog__title { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-snug); font-weight: 800; letter-spacing: var(--tracking-tight); color: var(--pub-text); }
.pub-dialog__subtitle { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--pub-text-3); }
.pub-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; font-size: var(--fs-xs); color: var(--pub-text-3); }
.pub-divider::before, .pub-divider::after { content: ''; flex: 1; height: 1px; background: var(--pub-border); }
@keyframes pub-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 481px) { .pub-dialog { padding: var(--space-7) var(--space-6) var(--space-6); } }
/* <= 480px: full-screen sheet */
@media (max-width: 480px) {
  .pub-dialog-backdrop { padding: 0; align-items: stretch; background: var(--pub-surface); backdrop-filter: none; }
  .pub-dialog {
    max-width: none; max-height: none; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; animation-name: pub-sheet-in;
    padding: calc(var(--space-5) + env(safe-area-inset-top, 0px)) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  }
  .pub-dialog__close { top: calc(var(--space-3) + env(safe-area-inset-top, 0px)); }
}
@keyframes pub-sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pub-dialog { animation: none; } }
/* Shared app widgets (e.g. AppFooter) read themed variables; keep them dark inside public dialogs. */
.pub-dialog footer {
  --text-secondary: var(--pub-text-2);
  --text-tertiary: var(--pub-text-3);
  --text-muted: var(--pub-text-3);
  --divider-color: var(--pub-border);
}

/* ---- Landing helpers -------------------------------------------------------- */
.pub-hero {
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 50% at 95% 30%, rgba(109, 40, 217, 0.18), transparent 70%),
    var(--pub-bg);
}
.pub-cta {
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(196, 181, 253, 0.28), transparent 70%),
    var(--pub-gradient-accent);
  box-shadow: var(--pub-shadow-glow);
}
.pub-cta .pub-h2 { color: #fff; }
.pub-btn--light { background: #fff; color: var(--pub-accent-deep); }
.pub-btn--light:hover:not(:disabled) { background: #f5f3ff; }
.pub-btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); }
.pub-btn--outline-light:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.pub-btn--light:focus-visible, .pub-btn--outline-light:focus-visible { outline-color: #fff; }

/* 44px target for the shared ownership link inside the landing footer. */
.pub-footer-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--space-1); }
.pub-footer-meta a:focus-visible { outline: 2px solid var(--pub-accent-soft); outline-offset: 2px; text-decoration: underline; }

/* Blog chrome: dark brand header/footer around a light reading surface. Uses tokens.css variables. */
*, *::before, *::after { box-sizing: border-box; }
body.blog { margin: 0; }
.blog { min-height: 100vh; display: flex; flex-direction: column; }
.blog main { flex: 1; }
.blog-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; color: #0f172a; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.blog-skip:focus { left: var(--space-4); top: var(--space-4); }
.blog-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, .92); border-bottom: 1px solid var(--pub-border); backdrop-filter: blur(12px); }
.blog-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); }
.blog-brand { color: var(--pub-text); display: inline-flex; align-items: center; gap: .625rem; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; text-decoration: none; min-height: 2.75rem; }
.blog-brand img { border-radius: .5rem; }
.blog-nav { display: flex; align-items: center; gap: var(--space-1); }
.blog-nav a[aria-current="page"] { color: var(--pub-text); background: rgba(255, 255, 255, .08); }
.blog-nav .pub-btn { padding-inline: var(--space-3); font-size: var(--fs-sm); }
@media (max-width: 520px) { .blog-nav .pub-btn--ghost:first-child { display: none; } .blog-brand span { display: none; } }
.blog a:focus-visible { outline: 2px solid var(--pub-accent-soft); outline-offset: 2px; border-radius: 4px; }

.blog-hero { padding-bottom: var(--space-6); }
.blog-hero h1 { margin: var(--space-3) 0 var(--space-4); max-width: 22ch; }
.blog-hero .pub-lead { max-width: 40rem; }
.blog-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.blog-chips .pub-chip { min-height: 2.75rem; text-decoration: none; padding-inline: var(--space-4); font-size: var(--fs-sm); }
.blog-chips .pub-chip:hover { border-color: var(--pub-border-strong); }
.blog-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--pub-text-3); margin-bottom: var(--space-4); }
.blog-crumbs a { text-decoration: none; color: inherit; } .blog-crumbs a:hover { text-decoration: underline; }
.blog-section-title { margin-bottom: var(--space-5); }
.blog-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.blog-card { color: var(--pub-text); display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); text-decoration: none; }
.blog-card h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.blog-card p { margin: 0; color: var(--pub-text-2); font-size: var(--fs-sm); flex: 1; }
.blog-more { margin-block: var(--space-7); }
.blog-more h2 { margin-bottom: var(--space-4); }

.blog-wrap { padding-block: var(--space-6) var(--space-section); }
.blog-paper { background: #fff; color: #1e293b; border-radius: var(--radius-xl); padding: clamp(1.25rem, .5rem + 3.5vw, 3.5rem); max-width: 48rem; margin-inline: auto; box-shadow: var(--pub-shadow-card); }
.blog-more { max-width: 48rem; margin-inline: auto; }
.blog-crumbs--light { color: #475569; }
.blog-kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--pub-accent-deep); margin: 0 0 var(--space-2); }
.blog-paper h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: var(--tracking-tight); color: #0f172a; margin: 0 0 var(--space-3); text-wrap: balance; }
.blog-meta { font-size: var(--fs-sm); color: #475569; margin: 0 0 var(--space-5); }
.blog-toc { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.blog-toc p { margin: 0 0 var(--space-2); font-weight: 700; color: #0f172a; font-size: var(--fs-sm); }
.blog-toc ol { margin: 0; padding-left: 1.25rem; } .blog-toc li { margin: 0; } .blog-toc a { display: inline-block; padding-block: .3rem; color: #5b21b6; font-size: var(--fs-sm); }
.blog-prose { font-size: 1.0625rem; line-height: 1.75; color: #1e293b; overflow-wrap: anywhere; }
.blog-prose > :first-child { font-size: 1.1875rem; color: #0f172a; }
.blog-prose p { margin: 0 0 1.1em; }
.blog-prose h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; color: #0f172a; margin: 2em 0 .6em; scroll-margin-top: 5rem; }
.blog-prose h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 700; color: #0f172a; margin: 1.6em 0 .5em; scroll-margin-top: 5rem; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.2em; padding-left: 1.4rem; } .blog-prose li { margin-bottom: .45em; }
.blog-prose a, .blog-sources a { color: #5b21b6; text-decoration: underline; text-underline-offset: 2px; }
.blog-prose a:hover, .blog-sources a:hover { color: #4c1d95; }
.blog-prose strong { color: #0f172a; }
.blog-prose code { background: #f1f5f9; padding: .1em .35em; border-radius: .3em; font-size: .92em; }
.blog-prose blockquote { margin: 1.4em 0; padding: .9rem 1.2rem; border-left: 4px solid var(--pub-accent); background: #f8fafc; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.blog-prose blockquote p { margin: 0; }
.blog-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2em 0; }
.blog-table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid #e2e8f0; border-radius: var(--radius-md); }
.blog-table table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); line-height: 1.5; }
.blog-table th, .blog-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; overflow-wrap: normal; }
.blog-table th { background: #f1f5f9; color: #0f172a; font-weight: 700; white-space: nowrap; }
.blog-table tr:last-child td { border-bottom: 0; }
.blog-cta { margin: 2.5rem 0 2rem; padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: var(--pub-gradient-accent); color: #fff; text-align: center; }
.blog-cta h2 { margin: 0 0 var(--space-2); font-size: 1.5rem; font-weight: 800; color: #fff; }
.blog-cta p { margin: 0 auto var(--space-5); max-width: 32rem; color: #fff; }
.blog-cta .pub-btn { text-decoration: none; }
.blog-sources { border-top: 1px solid #e2e8f0; padding-top: var(--space-5); font-size: var(--fs-sm); }
.blog-sources h2 { font-size: 1rem; margin: 0 0 var(--space-2); color: #0f172a; }
.blog-sources ul { margin: 0; padding-left: 1.2rem; } .blog-sources li { padding-block: .25rem; }
.blog-sources__note { color: #475569; margin: var(--space-3) 0 0; }

.blog-footer { background: var(--pub-bg-deep); border-top: 1px solid var(--pub-border); padding-block: var(--space-6); }
.blog-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: center; }
.blog-footer__row p { margin: 0; max-width: 34rem; }
.blog-footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.blog-footer__nav a { color: var(--pub-text-2); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; font-size: var(--fs-sm); }
.blog-footer__nav a:hover { color: var(--pub-text); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .blog * { transition: none !important; } }

/* 44px touch targets for navigation-style links (inline prose links are exempt). */
.blog-crumbs a, .blog-crumbs span { display: inline-flex; align-items: center; min-height: 2.75rem; }
.blog-toc a, .blog-sources a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0; }
.blog-toc li, .blog-sources li { margin: 0; padding: 0; }
.blog-card { min-height: 2.75rem; }

/* Legal pages: pending facts are visible on purpose until the owner confirms them. */
.legal-todo { background: #fef3c7; color: #78350f; padding: .05em .35em; border-radius: .3em; font-weight: 600; }
.legal-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--radius-md); background: #5b21b6; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.legal-cta:hover { background: #4c1d95; }
.legal-more { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); border-top: 1px solid #e2e8f0; margin-top: var(--space-6); padding-top: var(--space-4); }
.legal-more a { color: #5b21b6; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; }
.blog-meta a { color: #5b21b6; }

/* "Nueva versión" modal and the illustrated changelog previews (also inlined into the static /changelog page,
   so the .wn-mock part must not depend on Tailwind or app tokens beyond optional fallbacks).
   Entrance animations use `animation-fill-mode: backwards`, never `both`: a kept transform would break
   the centering of fixed popups. Stagger with the `--d` custom property (index). */

.wn-mock {
  --wn-accent: var(--accent-primary, #8b5cf6);
  --wn-accent-2: #f59e0b;
  --wn-bg: #0b1220;
  --wn-surface: #172033;
  --wn-surface-2: #222d44;
  --wn-text: #e2e8f0;
  --wn-muted: #94a3b8;
  --wn-line: rgb(148 163 184 / .18);
  --wn-ok: #34d399;
  --wn-step: 90ms;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 176px;
  border-radius: 18px;
  border: 1px solid var(--wn-line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--wn-accent) 26%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--wn-accent-2) 14%, transparent), transparent 60%),
    var(--wn-bg);
  color: var(--wn-text);
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
[data-theme-mode="light"] .wn-mock {
  --wn-bg: #f6f4ff;
  --wn-surface: #ffffff;
  --wn-surface-2: #eef0f6;
  --wn-text: #0f172a;
  --wn-muted: #5b6475;
  --wn-line: rgb(15 23 42 / .1);
  --wn-ok: #059669;
}
.wn-mock *, .wn-mock *::before, .wn-mock *::after { box-sizing: border-box; }
.wn-mock svg { width: 14px; height: 14px; flex-shrink: 0; }
.wn-mock__glow {
  position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--wn-accent) 35%, transparent), transparent 70%);
  animation: wn-float 6s ease-in-out infinite alternate;
}
.wn-mock__screen { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 176px; padding: 14px 16px; }

/* Entrances */
.wn-in, .wn-bar, .wn-tag--pop, .wn-toast, .wn-drop { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .9, .25, 1); animation-fill-mode: backwards; animation-delay: calc(var(--d, 0) * var(--wn-step) + 120ms); }
.wn-in { animation-name: wn-rise; }
.wn-drop { animation-name: wn-drop; animation-duration: .6s; }
.wn-tag--pop, .wn-toast { animation-name: wn-pop; }

/* Shared blocks */
.wn-card { background: var(--wn-surface); border: 1px solid var(--wn-line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px -18px rgb(0 0 0 / .6); }
.wn-kicker { margin: 0 0 2px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wn-accent); }
.wn-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wn-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wn-muted); }
.wn-row strong { font-weight: 800; white-space: nowrap; }
.wn-row strong small { font-weight: 600; color: var(--wn-muted); margin-left: 4px; }
.wn-row--total { border-top: 1px dashed var(--wn-line); padding-top: 6px; }
.wn-row--total > span { color: var(--wn-text); font-weight: 700; }
.wn-tag { display: inline-flex; align-items: center; width: fit-content; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; background: color-mix(in srgb, var(--wn-accent) 20%, transparent); color: var(--wn-text); border: 1px solid color-mix(in srgb, var(--wn-accent) 45%, transparent); }
.wn-lines { display: block; flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--wn-surface-2) 70%, transparent 70%); }
.wn-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--wn-ok) 20%, transparent); color: var(--wn-ok); }
.wn-list .wn-row > span:first-child { color: var(--wn-text); font-weight: 600; }

/* Movimientos */
.wn-periods { display: flex; justify-content: center; gap: 6px; }
.wn-periods span { padding: 3px 10px; border-radius: 999px; color: var(--wn-muted); background: var(--wn-surface); border: 1px solid var(--wn-line); font-weight: 700; }
.wn-periods .is-on { color: #fff; background: var(--wn-accent); border-color: transparent; animation: wn-slide .6s cubic-bezier(.2, .9, .25, 1) backwards .1s; }
.wn-bars { display: flex; flex-direction: column; gap: 6px; }
.wn-bar { display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 1fr); align-items: center; gap: 8px; animation-name: wn-rise; }
.wn-bar__label { display: inline-flex; gap: 6px; align-items: center; color: var(--wn-text); font-weight: 600; overflow: hidden; white-space: nowrap; }
.wn-bar__track { display: block; height: 8px; border-radius: 99px; background: var(--wn-surface-2); overflow: hidden; }
.wn-bar__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wn-accent), color-mix(in srgb, var(--wn-accent) 50%, var(--wn-accent-2))); transform-origin: left; animation: wn-grow .9s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(var(--d, 0) * var(--wn-step) + 260ms); }
.wn-bar .wn-bar__fill { animation-delay: inherit; }
.wn-toast { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--wn-ok) 18%, var(--wn-surface)); color: var(--wn-ok); font-weight: 800; font-size: 11px; border: 1px solid color-mix(in srgb, var(--wn-ok) 35%, transparent); }

/* Atajos / Apple Pay */
.wn-mock[data-kind="atajos"] .wn-mock__screen { padding-top: 66px; }
.wn-paycard { position: relative; align-self: center; width: min(170px, 62%); aspect-ratio: 1.6; border-radius: 12px; background: linear-gradient(135deg, #111827, #374151); box-shadow: 0 16px 30px -16px rgb(0 0 0 / .7); }
.wn-paycard__chip { position: absolute; left: 14px; top: 16px; width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #fde68a, #d97706); }
.wn-paycard__brand { position: absolute; right: 12px; bottom: 10px; color: #fff; font-weight: 800; font-size: 12px; }
.wn-paycard__pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--wn-ok) 60%, transparent); animation: wn-ring 2.4s ease-out infinite 1s; }
.wn-notif { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--wn-surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--wn-line); box-shadow: 0 12px 28px -14px rgb(0 0 0 / .6); }
.wn-notif__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--wn-accent); font-size: 14px; flex-shrink: 0; }
.wn-notif__text { display: flex; flex-direction: column; min-width: 0; }
.wn-notif__text span { color: var(--wn-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile */
.wn-phone { position: relative; align-self: center; width: 96px; height: 150px; border-radius: 20px; border: 3px solid color-mix(in srgb, var(--wn-text) 70%, transparent); background: var(--wn-surface); padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.wn-phone__notch { position: absolute; top: 5px; left: 50%; width: 30px; height: 6px; margin-left: -15px; border-radius: 99px; background: color-mix(in srgb, var(--wn-text) 70%, transparent); }
.wn-phone__card { display: flex; flex-direction: column; gap: 4px; padding: 7px; border-radius: 8px; background: var(--wn-surface-2); }
.wn-phone__card span { display: block; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--wn-text) 22%, transparent); }
.wn-phone__card span:last-child { width: 60%; background: var(--wn-accent); }
.wn-tap { position: absolute; right: -10px; bottom: 26px; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--wn-accent) 45%, transparent); border: 2px solid var(--wn-accent); animation: wn-tap 2s ease-in-out infinite .8s; }

/* Blog */
.wn-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wn-article { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 110px; border-radius: 12px; background: var(--wn-surface); border: 1px solid var(--wn-line); font-weight: 700; font-size: 11px; overflow: hidden; }
.wn-article .wn-lines { flex: none; margin-top: auto; }

/* Tarjetas */
.wn-credit { position: relative; align-self: center; width: min(220px, 80%); aspect-ratio: 1.6; border-radius: 14px; padding: 10px 12px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #7c3aed, #be123c 70%, #f59e0b); box-shadow: 0 18px 32px -18px rgb(0 0 0 / .7); }
.wn-credit__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.wn-pill { padding: 1px 7px; border-radius: 99px; background: rgb(255 255 255 / .2); font-size: 10px; }
.wn-credit__chip { width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #fde68a, #d97706); }
.wn-credit__num { font-weight: 700; letter-spacing: .08em; }
.wn-credit .wn-tag { position: absolute; right: 10px; bottom: 10px; color: #fff; background: rgb(15 23 42 / .45); border-color: rgb(255 255 255 / .35); }
.wn-line { display: flex; flex-direction: column; gap: 4px; align-self: center; width: min(220px, 80%); }
.wn-line > span:first-child { display: flex; justify-content: space-between; color: var(--wn-muted); }
.wn-line strong { color: var(--wn-text); }

/* MCP */
.wn-chat { display: flex; flex-direction: column; gap: 6px; }
.wn-bubble { display: inline-flex; gap: 6px; align-items: flex-start; max-width: 85%; padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: var(--wn-surface); border: 1px solid var(--wn-line); }
.wn-bubble--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--wn-accent); border-color: transparent; color: #fff; }
.wn-confirm { display: inline-flex; gap: 4px; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; color: var(--wn-ok); background: color-mix(in srgb, var(--wn-ok) 15%, transparent); }

/* Donaciones */
.wn-center { align-items: center; text-align: center; }
.wn-heart { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, #f43f5e 22%, transparent); color: #f43f5e; }
.wn-heart svg { width: 18px; height: 18px; fill: currentColor; animation: wn-beat 1.6s ease-in-out infinite 1s; }
.wn-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wn-chipbtn { padding: 4px 9px; border-radius: 10px; border: 1px solid var(--wn-line); background: var(--wn-surface-2); font-weight: 700; font-size: 11px; }
.wn-chipbtn.is-on { border-color: var(--wn-accent); background: color-mix(in srgb, var(--wn-accent) 20%, transparent); }
.wn-cta { padding: 5px 22px; border-radius: 10px; color: #fff; font-weight: 800; background: linear-gradient(90deg, var(--wn-accent), #f43f5e); }

/* Espacios */
.wn-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: var(--wn-surface-2); font-weight: 700; text-align: center; }
.wn-switch > span:not(.wn-switch__thumb) { position: relative; z-index: 1; padding: 5px 0; }
.wn-switch__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 9px; background: var(--wn-accent); box-shadow: 0 6px 14px -6px var(--wn-accent); animation: wn-switch 4.5s cubic-bezier(.65, 0, .35, 1) infinite .6s; }

/* Interés */
.wn-up { color: var(--wn-ok); }
.wn-spark-line { height: 34px; }
.wn-spark-line svg { width: 100%; height: 100%; overflow: visible; }
.wn-spark-line__path { fill: none; stroke: var(--wn-ok); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160; animation: wn-draw 1.2s ease-out backwards .45s; }

/* Novedades / Tutorial */
.wn-heart--accent { color: var(--wn-accent); background: color-mix(in srgb, var(--wn-accent) 22%, transparent); }
.wn-heart--accent svg { fill: none; }
.wn-dots { display: flex; gap: 5px; }
.wn-dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--wn-surface-2); }
.wn-dots .is-on { width: 18px; background: var(--wn-accent); }

/* Popups */
.wn-screen { position: relative; height: 140px; border-radius: 12px; border: 1px solid var(--wn-line); background: var(--wn-surface); overflow: hidden; display: grid; place-items: center; }
.wn-screen__side { position: absolute; inset: 0 auto 0 0; width: 22%; background: var(--wn-surface-2); }
.wn-screen::after { content: ''; position: absolute; inset: 0; background: rgb(2 6 23 / .45); }
.wn-dialog { position: relative; z-index: 1; width: min(200px, 70%); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--wn-bg); border: 1px solid var(--wn-line); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .8); }

/* Correos */
.wn-mail { align-self: center; width: min(250px, 88%); border-radius: 12px; overflow: hidden; background: var(--wn-surface); border: 1px solid var(--wn-line); }
.wn-mail__band { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: #fff; background: linear-gradient(90deg, var(--wn-accent), #db2777); }
.wn-mail__band strong span { color: #fde68a; }
.wn-mail__body { display: flex; flex-direction: column; gap: 6px; padding: 10px; }

@keyframes wn-draw { from { stroke-dashoffset: 160; } }

@keyframes wn-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes wn-drop { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes wn-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } }
@keyframes wn-grow { from { transform: scaleX(0); } }
@keyframes wn-slide { from { opacity: 0; transform: translateX(30px); } }
@keyframes wn-float { to { transform: translate(-14px, 12px) scale(1.08); } }
@keyframes wn-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wn-ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes wn-tap { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.75); opacity: .5; } }
@keyframes wn-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
@keyframes wn-switch { 0%, 22% { transform: translateX(0); } 33%, 55% { transform: translateX(100%); } 66%, 88% { transform: translateX(200%); } 100% { transform: translateX(0); } }

/* ---------- The modal (app only) ---------- */
.wn-root { max-width: 520px; display: flex; flex-direction: column; }
.wn-spark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; color: var(--accent-primary, #8b5cf6); background: color-mix(in srgb, var(--accent-primary, #8b5cf6) 16%, transparent); }
.wn-spark svg { animation: wn-twinkle 2.8s ease-in-out infinite; }
.wn-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(90deg, var(--accent-primary, #8b5cf6), #db2777); white-space: nowrap; animation: wn-pop .5s cubic-bezier(.2, .9, .25, 1) backwards .25s; }
.wn-hero { animation: wn-rise .45s cubic-bezier(.2, .9, .25, 1) backwards; }
.wn-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-bullets li { display: flex; gap: 8px; align-items: flex-start; animation: wn-rise .45s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(var(--d, 0) * 70ms + 200ms); }
.wn-bullets li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: var(--accent-primary, #8b5cf6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary, #8b5cf6) 20%, transparent); }
.wn-others { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-others li { animation: wn-rise .45s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(var(--d, 0) * 80ms + 420ms); }
.wn-other { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-align: left; border: 1px solid var(--wm-line, rgb(148 163 184 / .2)); background: color-mix(in srgb, var(--bg-card, #1e293b) 70%, transparent); transition: border-color .15s ease, background-color .15s ease; }
.wn-other:hover { border-color: color-mix(in srgb, var(--accent-primary, #8b5cf6) 50%, transparent); }
.wn-other[aria-current="true"] { border-color: var(--accent-primary, #8b5cf6); background: color-mix(in srgb, var(--accent-primary, #8b5cf6) 12%, transparent); }
.wn-other__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; color: var(--accent-primary, #8b5cf6); background: color-mix(in srgb, var(--accent-primary, #8b5cf6) 14%, transparent); }
.wn-other__icon svg { width: 16px; height: 16px; }
@keyframes wn-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(14deg) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .wn-mock *, .wn-mock *::before, .wn-mock *::after,
  .wn-root, .wn-root *, .wn-root *::before, .wn-root *::after { animation: none !important; transition: none !important; }
}

/* /changelog: a timeline on the site's dark background (no white sheet, same look as #390).
   Uses tokens.css + blog.css + whatsNew.css. The newest entries carry their preview; older ones are compact, by month. */
.blog-paper.cl-paper { background: transparent; box-shadow: none; color: #cbd5e1; padding-inline: 0; max-width: 56rem; }
.cl-paper h1 { color: var(--pub-text, #f8fafc); }
.cl-paper .blog-kicker { color: var(--pub-accent-soft, #c4b5fd); }
.cl-lead { color: #94a3b8; font-size: var(--fs-lg, 1.125rem); margin: 0 0 var(--space-6, 2rem); }
.cl-lead strong { color: var(--pub-text, #f8fafc); }
.cl-list { display: flex; flex-direction: column; gap: var(--space-6, 2rem); position: relative; }
.cl-entry { display: grid; scroll-margin-top: 5rem; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-5, 1.5rem); padding-top: var(--space-5, 1.5rem); border-top: 1px solid var(--pub-border, rgba(255, 255, 255, .1)); animation: cl-rise .5s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(min(var(--d, 0), 4) * 80ms); }
.cl-entry:first-child { border-top: 0; padding-top: 0; }
.cl-entry__meta { display: flex; flex-direction: column; gap: .35rem; position: sticky; top: 5rem; align-self: start; }
.cl-entry__meta time, .cl-mini__meta time { color: #94a3b8; font-size: var(--fs-sm, .875rem); }
.cl-version { display: inline-flex; width: fit-content; padding: .15rem .65rem; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm, .875rem); color: #fff; text-decoration: none; background: linear-gradient(90deg, #7c3aed, #db2777); }
.cl-version--soft { background: rgba(139, 92, 246, .18); color: var(--pub-accent-soft, #c4b5fd); border: 1px solid rgba(139, 92, 246, .35); font-size: .75rem; }
.cl-entry__body { min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.cl-entry__body h2 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; color: var(--pub-text, #f8fafc); }
.cl-summary { margin: 0; color: #94a3b8; }
.cl-entry__body ul, .cl-mini ul { margin: 0; padding-left: 1.2rem; color: #e2e8f0; display: flex; flex-direction: column; gap: .3rem; }
.cl-entry__body li::marker, .cl-mini li::marker { color: var(--pub-accent, #8b5cf6); }
.cl-guide { color: var(--pub-accent-soft, #c4b5fd); font-weight: 700; display: inline-flex; align-items: center; min-height: 2.75rem; width: fit-content; text-underline-offset: 2px; }
.cl-paper .wn-mock { max-width: 34rem; }

.cl-earlier { margin: var(--space-7, 3rem) 0 0; padding-top: var(--space-5, 1.5rem); border-top: 1px solid var(--pub-border, rgba(255, 255, 255, .1)); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); color: var(--pub-text, #f8fafc); letter-spacing: -.02em; }
.cl-month { margin-top: var(--space-5, 1.5rem); }
.cl-month__title { margin: 0 0 var(--space-3, .75rem); font-size: var(--fs-sm, .875rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-accent-soft, #c4b5fd); }
.cl-mini-grid { display: grid; gap: var(--space-3, .75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.cl-mini { scroll-margin-top: 5rem; min-width: 0; display: flex; flex-direction: column; gap: .4rem; padding: var(--space-4, 1rem); border-radius: var(--radius-lg, 16px); border: 1px solid var(--pub-border, rgba(255, 255, 255, .1)); background: rgba(255, 255, 255, .03); font-size: var(--fs-sm, .875rem); }
.cl-mini__meta { margin: 0; display: flex; align-items: center; gap: .6rem; }
.cl-mini h3 { margin: 0; font-size: 1rem; line-height: 1.3; color: var(--pub-text, #f8fafc); }

.cl-cta { margin-top: var(--space-7, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: #94a3b8; }
@media (max-width: 640px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .cl-entry__meta { position: static; flex-direction: row; align-items: center; gap: .75rem; }
}
@keyframes cl-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .cl-entry { animation: none; } }
/* Mismo fondo oscuro que el resto del sitio: sin la hoja blanca en el medio. */
.blog-paper.cl-paper { background: transparent; box-shadow: none; color: #cbd5e1; padding-inline: 0; max-width: 56rem; }
.cl-paper h1 { color: var(--pub-text, #f8fafc); }
.cl-paper .cl-lead, .cl-paper .cl-summary, .cl-paper .cl-cta { color: #94a3b8; }
.cl-paper .cl-entry { border-top-color: var(--pub-border, rgba(255, 255, 255, .1)); }
.cl-paper .cl-entry__meta time { color: #94a3b8; }
.cl-paper .cl-entry__body h2 { color: var(--pub-text, #f8fafc); }
.cl-paper .cl-entry__body ul { color: #e2e8f0; }
.cl-paper .cl-entry__body li::marker { color: var(--pub-accent, #8b5cf6); }
.cl-paper .cl-guide { color: var(--pub-accent-soft, #c4b5fd); }
.cl-paper .blog-kicker { color: var(--pub-accent-soft, #c4b5fd); }
.cl-paper .cl-lead strong { color: var(--pub-text, #f8fafc); }
