/* El Internet — cosmic educational fun (brighter + high contrast) */
:root {
  /* Lifted backgrounds */
  --bg: #121a32;
  --bg-elev: #1a2444;
  --bg-card: #222e52;
  /* Punchier accents */
  --teal: #3ef5e4;
  --purple: #c084fc; /* borders / glows / accents — not low-contrast fills */
  --coral: #ff7858;
  --lime: #d4ff3a;
  --cream: #faf6ee;
  --cream-dim: #d8d2c4; /* readable muted gray, not purple-gray */
  --ink: #0a0f1c; /* dark text on bright buttons/chips */
  --navy: #0d1528;
  --charcoal: #1a1520;
  --border: rgba(62, 245, 228, 0.28);
  --glow-teal: rgba(62, 245, 228, 0.45);
  --glow-lime: rgba(212, 255, 58, 0.4);
  --glow-coral: rgba(255, 120, 88, 0.4);
  --glow-purple: rgba(192, 132, 252, 0.45);
  --shadow: 0 12px 40px rgba(0,0,0,.5);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(192,132,252,.28), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(62,245,228,.2), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255,120,88,.12), transparent);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .5rem 1rem; z-index: 1000;
  font-weight: 800;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(18,26,50,.9);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--cream);
}
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 16px var(--glow-teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-tag { font-size: .7rem; color: var(--cream-dim); max-width: 220px; }

.nav-toggle {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--cream); border-radius: 10px; padding: .5rem .75rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--cream-dim); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .35rem .5rem; border-radius: 8px; transition: .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--teal); background: rgba(62,245,228,.12);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--bg-elev); padding: 1rem;
    border-bottom: 1px solid var(--border); align-items: stretch;
  }
  .nav-links.open { display: flex; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hero {
  display: grid; gap: 2rem; align-items: center;
  padding: 2rem 0 3rem;
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.2fr .8fr; }
}
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual img {
  width: min(280px, 70vw); filter: drop-shadow(0 0 28px var(--glow-teal));
  animation: float 5s ease-in-out infinite;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
}
h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .75rem;
  color: var(--cream);
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
.lede { font-size: 1.15rem; color: var(--cream-dim); max-width: 38ch; }

/* ——— High-contrast buttons ——— */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .75rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: .2s;
}
/* Bright fill + dark ink */
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-primary:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); transform: translateY(-2px); }
/* Dark solid + cream text */
.btn-dark {
  background: var(--navy); color: var(--cream); border-color: var(--teal);
}
.btn-dark:hover { background: var(--charcoal); color: #fff; border-color: var(--lime); }
.btn-ghost {
  background: transparent; color: var(--cream); border-color: rgba(250,246,238,.35);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(62,245,228,.08); }
.btn-coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-coral:hover { filter: brightness(1.08); color: #fff; }
.btn-teal { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn-teal:hover { background: var(--lime); color: var(--ink); }

/* Cards & grids */
.section { margin: 3rem 0; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 1.25rem;
}
.section-head > a { font-weight: 700; color: var(--teal); text-decoration: none; }
.section-head > a:hover { color: var(--lime); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); transition: .25s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(62,245,228,.55); transform: translateY(-3px); }
.card a.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.card h3 { margin-bottom: .4rem; color: var(--cream); }
.card p { color: var(--cream-dim); margin: 0; font-size: .95rem; }
.card .chip-row { margin-top: .85rem; }

/* ——— Chips / badges: dark text on bright OR white on deep solids ——— */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--lime); color: var(--ink);
  border: 2px solid rgba(10,15,28,.25);
  font-size: .75rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px;
}
.chip-teal { background: var(--teal); color: var(--ink); border-color: rgba(10,15,28,.2); }
.chip-coral { background: var(--coral); color: #fff; border-color: rgba(10,15,28,.2); }
.chip-lime { background: var(--lime); color: var(--ink); border-color: rgba(10,15,28,.2); }
.chip-purple {
  background: #5b21b6; color: #fff; border-color: rgba(192,132,252,.5);
  box-shadow: 0 0 12px var(--glow-purple);
}
.chip-navy { background: var(--navy); color: var(--cream); border-color: var(--teal); }

/* Character strip */
.char-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  padding: 1.5rem; background: var(--bg-elev); border-radius: var(--radius); border: 1px solid var(--border);
}
.char-chip {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  text-decoration: none; color: var(--cream); width: 100px; text-align: center;
  transition: .2s;
}
.char-chip img {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg); transition: .25s;
}
.char-chip:hover img { border-color: var(--teal); box-shadow: 0 0 20px var(--glow-teal); transform: scale(1.06); }
.char-chip span { font-size: .8rem; font-weight: 700; font-family: var(--font-display); color: var(--cream); }
.char-chip small { font-size: .7rem; color: var(--cream-dim); font-weight: 400; }

/* Tip of day — bright banner with character portrait */
.tip-banner {
  background:
    radial-gradient(circle at 8% 40%, rgba(212,255,58,.28), transparent 42%),
    radial-gradient(circle at 92% 60%, rgba(62,245,228,.28), transparent 45%),
    linear-gradient(135deg, #1a2a52 0%, #2a1a48 48%, #143a3a 100%);
  border: 3px solid var(--cream);
  border-radius: 22px;
  padding: 1.15rem 1.35rem;
  display: flex; gap: 1rem; align-items: center; margin: 2rem 0;
  box-shadow:
    0 0 0 4px rgba(62,245,228,.28),
    5px 7px 0 rgba(0,0,0,.35),
    0 0 28px rgba(192,132,252,.22);
  position: relative;
  overflow: hidden;
}
.tip-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,.04) 10px,
      rgba(255,255,255,.04) 12px
    );
  pointer-events: none;
}
.tip-banner > * { position: relative; z-index: 1; }
.tip-banner .sparkle { font-size: 1.35rem; animation: sparkle 2s ease-in-out infinite; flex-shrink: 0; }
.tip-banner-portrait {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--navy);
  object-fit: cover;
  box-shadow: 0 0 20px var(--glow-teal);
}
.tip-banner-body { flex: 1; min-width: 0; }
.tip-banner-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem;
  margin-bottom: .35rem;
}
.tip-banner-kicker strong { color: var(--lime); font-family: var(--font-display); font-size: .95rem; }
.tip-char-name {
  display: inline-flex; align-items: center;
  font-weight: 800; font-size: .8rem; font-family: var(--font-display);
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  border: 2px solid rgba(10,15,28,.25);
}
.tip-banner-text {
  margin: .2rem 0 .55rem;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}
.tip-banner-link {
  font-weight: 800; font-size: .9rem; color: var(--lime);
  text-decoration: none;
  background: rgba(10,15,28,.45);
  padding: .3rem .7rem; border-radius: 999px;
  border: 2px solid var(--lime);
  display: inline-flex;
}
.tip-banner-link:hover { color: var(--ink); background: var(--lime); }

.tip-char-candado .tip-banner-portrait,
.tip-char-candado.tip-card .tip-card-avatar img { box-shadow: 0 0 22px var(--glow-lime); border-color: var(--lime); }
.tip-char-estela .tip-banner-portrait,
.tip-char-estela.tip-card .tip-card-avatar img { box-shadow: 0 0 22px var(--glow-coral); border-color: var(--coral); }
.tip-char-nube .tip-banner-portrait,
.tip-char-nube.tip-card .tip-card-avatar img { box-shadow: 0 0 22px var(--glow-teal); border-color: var(--teal); }
.tip-char-chispa .tip-banner-portrait,
.tip-char-chispa.tip-card .tip-card-avatar img { box-shadow: 0 0 22px var(--glow-lime); border-color: var(--lime); }
.tip-char-bit .tip-banner-portrait,
.tip-char-bit.tip-card .tip-card-avatar img { box-shadow: 0 0 22px var(--glow-teal); border-color: var(--teal); }

.tip-char-candado .tip-char-name { background: var(--lime); color: var(--ink); }
.tip-char-estela .tip-char-name { background: var(--coral); color: #fff; }
.tip-char-nube .tip-char-name { background: var(--teal); color: var(--ink); }
.tip-char-chispa .tip-char-name { background: var(--lime); color: var(--ink); }
.tip-char-bit .tip-char-name { background: var(--teal); color: var(--ink); }

/* Tip archive */
.tips-intro { color: var(--cream-dim); max-width: 62ch; margin: 0 0 1.25rem; }
.tips-toolbar {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem;
}
.tips-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tips-filters .filter-label {
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--cream-dim); margin-right: .25rem;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  padding: .4rem .75rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); color: var(--cream);
  border: 2px solid var(--border);
  transition: .2s;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.is-active, .filter-chip[aria-pressed="true"] {
  background: var(--lime); color: var(--ink); border-color: var(--lime);
}
.tips-search {
  width: 100%; max-width: 420px; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--cream);
  font-family: var(--font-body); font-size: 1rem;
}
.tips-count { font-weight: 700; color: var(--teal); margin: 0 0 1rem; }
.tips-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tip-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: .2s;
}
.tip-card:hover { border-color: rgba(62,245,228,.55); transform: translateY(-2px); }
.tip-card-avatar img {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--cream); background: var(--navy); object-fit: cover;
}
.tip-card-meta {
  display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center;
  margin-bottom: .45rem;
}
.tip-card-num { font-weight: 800; font-family: var(--font-display); color: var(--lime); font-size: .85rem; }
.tip-card-topic {
  font-size: .75rem; font-weight: 700; color: var(--cream-dim);
  text-transform: uppercase; letter-spacing: .03em;
}
.tip-card-body p { margin: 0; color: var(--cream); font-weight: 600; line-height: 1.45; }
.tip-chip-candado { background: var(--lime); color: var(--ink); }
.tip-chip-estela { background: var(--coral); color: #fff; }
.tip-chip-nube { background: var(--teal); color: var(--ink); }
.tip-chip-chispa { background: var(--lime); color: var(--ink); }
.tip-chip-bit { background: var(--teal); color: var(--ink); }
.tips-empty {
  padding: 2rem; text-align: center; color: var(--cream-dim);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.tips-how {
  margin-top: 2.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.tips-how h2 { margin-bottom: .5rem; }
.tips-how p { margin: 0; color: var(--cream-dim); }

@media (max-width: 560px) {
  .tip-banner { flex-wrap: wrap; }
  .tip-banner-portrait { width: 64px; height: 64px; }
}

/* ——— Page / section title banners (sticker vibe) ——— */
.page-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem;
  margin: 0 0 1.35rem;
  border-radius: 22px;
  border: 3px solid var(--cream);
  background:
    radial-gradient(circle at 12% 30%, rgba(212,255,58,.25), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(62,245,228,.3), transparent 42%),
    linear-gradient(135deg, #1e3a5f 0%, #2d1b4e 48%, #163a3a 100%);
  box-shadow:
    0 0 0 4px rgba(62,245,228,.28),
    5px 7px 0 rgba(0,0,0,.35),
    0 0 32px rgba(192,132,252,.2);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,.04) 10px,
      rgba(255,255,255,.04) 12px
    );
  pointer-events: none;
}
.page-banner > * { position: relative; z-index: 1; }
.page-banner-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--navy);
  object-fit: cover;
  box-shadow: 0 0 16px var(--glow-teal);
}
.page-banner-icon.emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; width: 52px; height: 52px;
  background: var(--lime); color: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--glow-lime);
}
.page-banner h1,
.page-banner h2,
.page-banner .page-title {
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 18px rgba(62,245,228,.25);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.15;
}
.page-banner .banner-sub {
  display: block; margin-top: .35rem;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: var(--cream-dim); text-shadow: none; letter-spacing: 0;
}

/* Variants */
.page-banner--teal {
  background:
    radial-gradient(circle at 20% 40%, rgba(212,255,58,.2), transparent 45%),
    linear-gradient(135deg, #0f3d3a 0%, #145c56 50%, #1a4a6e 100%);
  box-shadow: 0 0 0 4px rgba(62,245,228,.4), 5px 7px 0 rgba(0,0,0,.35);
  border-color: var(--teal);
}
.page-banner--coral {
  background:
    radial-gradient(circle at 80% 30%, rgba(255,120,88,.35), transparent 45%),
    linear-gradient(135deg, #4a1a22 0%, #6b2a1e 45%, #3a2048 100%);
  box-shadow: 0 0 0 4px rgba(255,120,88,.35), 5px 7px 0 rgba(0,0,0,.35);
  border-color: var(--coral);
}
.page-banner--lime {
  background:
    radial-gradient(circle at 15% 60%, rgba(212,255,58,.35), transparent 40%),
    linear-gradient(135deg, #1a3a18 0%, #2a4a20 50%, #1a3840 100%);
  box-shadow: 0 0 0 4px rgba(212,255,58,.35), 5px 7px 0 rgba(0,0,0,.35);
  border-color: var(--lime);
}
.page-banner--purple {
  /* Purple for border/glow; fill stays dark navy for readable cream text */
  background:
    radial-gradient(circle at 70% 40%, rgba(192,132,252,.28), transparent 50%),
    linear-gradient(135deg, #16122e 0%, #1e1638 55%, #122838 100%);
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(192,132,252,.4), 5px 7px 0 rgba(0,0,0,.35), 0 0 28px var(--glow-purple);
}

/* Section-head as compact banner strip */
.section-head.page-banner,
.section-head.is-banner {
  align-items: center;
  margin-bottom: 1.5rem;
  padding: .9rem 1.2rem;
}
.section-head.page-banner h2,
.section-head.is-banner h2 {
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
}
.section-head.page-banner > a,
.section-head.is-banner > a {
  color: var(--lime);
  background: rgba(10,15,28,.45);
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 2px solid var(--lime);
  font-size: .85rem;
}
.section-head.page-banner > a:hover,
.section-head.is-banner > a:hover {
  color: var(--ink);
  background: var(--lime);
}

/* Guide hero title sits inside banner when wrapped */
.guide-hero .page-banner { margin-bottom: .85rem; }
.guide-hero {
  display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .guide-hero { grid-template-columns: 1fr auto; }
}
.guide-hero img {
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid var(--teal); animation: float 4.5s ease-in-out infinite;
  margin: 0 auto;
  box-shadow: 0 0 24px var(--glow-teal);
}
.tldr {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 2rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4rem; margin-bottom: .85rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-family: var(--font-display);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.steps li h3 { margin-bottom: .35rem; color: var(--cream); }
.steps li p { margin: 0; color: var(--cream-dim); }

.myth-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .myth-grid { grid-template-columns: 1fr 1fr; } }
.myth, .reality {
  padding: 1.15rem; border-radius: var(--radius); border: 1px solid var(--border);
}
.myth { background: rgba(255,120,88,.12); border-color: rgba(255,120,88,.4); }
.reality { background: rgba(62,245,228,.12); border-color: rgba(62,245,228,.4); }
.myth h4 { color: var(--coral); }
.reality h4 { color: var(--teal); }

.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem 1rem; margin-bottom: .5rem;
  background: var(--bg-elev); border-radius: 12px; border: 1px solid var(--border);
}
.checklist li::before {
  content: "✓"; flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 6px;
  background: var(--lime); color: var(--ink); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: .85rem;
}

.callout {
  background: var(--bg-elev); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: inset 0 0 0 1px rgba(62,245,228,.12);
}
.callout img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
/* Accent label — teal/lime on dark, never light-on-purple fill */
.callout .who { font-weight: 800; color: var(--lime); font-family: var(--font-display); font-size: .85rem; }
.callout p { margin: .25rem 0 0; color: var(--cream-dim); }

/* Glossary */
.glossary-search {
  width: 100%; max-width: 420px; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--cream);
  font-family: var(--font-body); font-size: 1rem; margin-bottom: 1.5rem;
}
.glossary-entry {
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.glossary-entry h3 { color: var(--teal); font-size: 1.1rem; margin-bottom: .35rem; }
.glossary-entry p { margin: 0; color: var(--cream-dim); }
.letter-jump { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.letter-jump a {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border-radius: 8px; text-decoration: none; font-weight: 700;
  border: 1px solid var(--border); color: var(--cream);
}
.letter-jump a:hover { border-color: var(--teal); color: var(--teal); background: rgba(62,245,228,.1); }

/* Notebook drop */
.dropzone {
  border: 2px dashed rgba(62,245,228,.5); border-radius: var(--radius);
  padding: 3rem 1.5rem; text-align: center; background: rgba(62,245,228,.07);
  transition: .2s;
}
.dropzone.dragover { border-color: var(--lime); background: rgba(212,255,58,.1); }
.dropzone h3 { margin-bottom: .5rem; color: var(--cream); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: rgba(0,0,0,.3);
  padding: 2.5rem 1.25rem; margin-top: 2rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--teal); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-note { grid-column: 1 / -1; font-size: .85rem; color: var(--cream-dim); border-top: 1px solid var(--border); padding-top: 1.25rem; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.15); }
}
.sparkle-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); animation: sparkle 2.5s ease-in-out infinite;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Book cards */
.book-card .price { color: var(--lime); font-weight: 800; font-family: var(--font-display); margin-top: .75rem; }
.book-cover {
  aspect-ratio: 3/4; background: linear-gradient(145deg, #5b21b6, var(--teal));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; text-align: center; padding: 1rem;
  margin-bottom: 1rem; color: #fff; font-size: .95rem;
  border: 2px solid rgba(250,246,238,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Resource links */
.resource-list { list-style: none; padding: 0; }
.resource-list li {
  margin-bottom: .75rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.15rem;
}
.resource-list a { font-weight: 700; font-family: var(--font-display); text-decoration: none; color: var(--teal); }
.resource-list a:hover { color: var(--lime); }
.resource-list p { margin: .35rem 0 0; color: var(--cream-dim); font-size: .9rem; }

.prose p { color: var(--cream-dim); }
.prose ul { color: var(--cream-dim); }
.muted { color: var(--cream-dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Book cover variants + home strip */
.book-cover {
  flex-direction: column; gap: .35rem;
}
.book-cover-kicker {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; font-weight: 700;
}
.book-cover-title { font-size: 1.05rem; line-height: 1.25; }
.book-cover-sub { font-size: .8rem; opacity: .85; font-weight: 600; }
.book-cover--hecm {
  background: linear-gradient(155deg, #1e3a5f 0%, #0d9488 55%, #d4ff3a 140%);
}
.book-cover--adono {
  background: linear-gradient(155deg, #4c1d95 0%, #db2777 50%, #f59e0b 120%);
}
.book-cover--soon-pc {
  background: linear-gradient(145deg, #0f766e, #1e293b);
}
.book-cover--soon-net {
  background: linear-gradient(145deg, #1d4ed8, #312e81);
}
.book-cover--soon-mort {
  background: linear-gradient(145deg, #9a3412, #422006);
}
.book-cover--soon-alert {
  background: linear-gradient(145deg, #b91c1c, #1e1b4b);
}
.books-strip {
  display: grid; gap: 1rem;
}
@media (min-width: 700px) {
  .books-strip { grid-template-columns: 1fr 1fr; }
}
.books-strip .book-mini {
  display: flex; gap: 1rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.15rem;
}
.books-strip .book-mini-cover {
  width: 64px; height: 86px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; text-align: center; padding: .35rem;
  color: #fff; border: 1px solid rgba(250,246,238,.25);
  font-family: var(--font-display);
}
.soft-cta {
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  background: var(--bg-elev); border: 1px dashed var(--border);
  border-radius: 12px;
}
.soft-cta p { margin: 0 0 .65rem; color: var(--cream-dim); font-size: .95rem; }
