/* ═══════════════════════════════════════════════════════
   EDUBRACKET — Design System
   Visual Style: Academic editorial (cool whites, teal accent)
   Accent: Teal (#0d7377) + Gold (#d97706)
   Typography: Literata / Inter / IBM Plex Mono
   ═══════════════════════════════════════════════════════ */

/* Fonts loaded by site.engine.js — no @import needed here */

:root {
  --accent: #0d7377;
  --accent-hover: #0a5c5f;
  --accent-light: #e6f5f5;
  --accent-dim: rgba(13,115,119,0.08);
  --secondary: #d97706;
  --secondary-light: #fef3c7;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #2563eb;
  --info-light: #dbeafe;

  --bg: #f8fafb;
  --surface: #f1f5f9;
  --surface-dark: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --dim: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-w: 820px;
  --wide: 960px;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v1H0z' fill='%23e2e8f0' fill-opacity='.3'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── NETWORK BAR ── */
.network-bar {
  background: #0f172a;
  padding: 6px 1.5rem;
  font-size: .7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow-x: auto;
  white-space: nowrap;
}
.network-bar span { font-weight: 600; color: #64748b; margin-right: .25rem; }
.network-bar a { color: #94a3b8; font-family: var(--font-mono); font-size: .65rem; }
.network-bar a:hover { color: #fff; text-decoration: none; }
.network-bar a.current { color: var(--accent); font-weight: 600; }

/* ── DISCLOSURE ── */
.disclosure {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem;
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}
.disclosure a { color: var(--accent); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,251,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.nav-brand em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 1.25rem; font-size: .8125rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .35rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

/* ── HERO (homepage) ── */
.hero-home {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.hero-home h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .75rem;
}
.hero-home h1 em { color: var(--accent); font-style: italic; }
.hero-home .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.hero-home .stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-home .stat {
  text-align: center;
}
.hero-home .stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}
.hero-home .stat-label {
  font-size: .75rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── HERO (article) ── */
.hero-article {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.hero-cat {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.hero-tag-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--accent);
  color: #fff;
  padding: .15rem .5rem;
  border-radius: 3px;
}
.hero-byline { font-size: .8rem; color: var(--dim); }
.hero-byline strong { color: var(--muted); }
.hero-date { font-family: var(--font-mono); font-size: .75rem; color: var(--dim); }
.hero-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .75rem;
}
.hero-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
.hero-img {
  width: 100%;
  max-width: var(--wide);
  margin: 1.25rem auto 0;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── ARTICLE BODY ── */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  counter-reset: article-section;
}
.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}
.article h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text);
  margin: 3rem 0 1rem;
  padding: .75rem 0 .75rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-bottom: none;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 60%);
  counter-increment: article-section;
}
.article h2::before {
  content: counter(article-section, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: .15rem;
  letter-spacing: .08em;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 .5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--secondary);
}
.article > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: .85;
  margin: .05rem .5rem 0 0;
  color: var(--accent);
}
.article p { margin-bottom: 1rem; }
.article ul, .article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article li { margin-bottom: .4rem; }
.article strong { color: var(--text); }

/* ── ORNAMENTAL DIVIDER ── */
.article hr, .ornament {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
  line-height: 1;
}
.article hr::before, .ornament::before {
  content: '◆   ◇   ◆';
  font-size: .6rem;
  color: var(--dim);
  letter-spacing: .3em;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--dim);
  margin-bottom: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dotted var(--border);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* ── ARTICLE META BAR ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--dim);
  margin-bottom: 1.5rem;
  padding: .6rem .85rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── CATEGORY GRID (homepage) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem;
  max-width: var(--wide);
  margin: 0 auto 0;
  padding: 0 1.5rem;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem .75rem;
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
}
.cat-card:hover {
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 16px rgba(13,115,119,.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.cat-card .cat-emoji { font-size: 1.35rem; margin-bottom: .25rem; }
.cat-card .cat-label { font-weight: 600; font-size: .8rem; }
.cat-card .cat-desc { font-size: .65rem; color: var(--dim); margin-top: .1rem; }

/* ── ARTICLE CARD (homepage listings) ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
}
.article-card:hover { text-decoration: none; }
.article-card .ac-cat {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.article-card .ac-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--dim);
}
.article-card .ac-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  margin: .4rem 0 .5rem;
  line-height: 1.35;
}
.article-card .ac-excerpt {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.article-card .ac-meta {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--dim);
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px dotted var(--border);
}

/* ── HOMEPAGE SECTION BAND ── */
.section-band {
  padding: 2.5rem 0 3rem;
  position: relative;
}
.section-band:nth-child(even) {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-band:nth-child(even)::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
}

/* ── SECTION HEADERS (homepage) ── */
.section-header {
  max-width: var(--wide);
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: -.01em;
}
.section-header a {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   13 BLIKKY COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── 1. SCORE CARD ── */
.score-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.sc-score {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  line-height: 1;
}
.sc-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dim);
  margin-top: .25rem;
}
.sc-stars { color: var(--secondary); font-size: 1rem; margin-top: .25rem; }

/* ── 2. QUICK VERDICT ── */
.quick-verdict {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6f5f5 50%, #f0f9ff 100%);
  border: 1px solid #b2dfdb;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(13,115,119,.06);
}
.quick-verdict::before {
  content: 'VERDICT';
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  position: absolute;
  top: -.45rem;
  left: 1.5rem;
  background: var(--bg);
  padding: 0 .5rem;
}
.quick-verdict h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 .75rem;
}

/* ── 3. DATA TABLE ── */
.data-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.03);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  min-width: 580px;
}
.data-table th {
  background: #0f172a;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  padding: .7rem .85rem;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}
.data-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--surface); }
.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table .price { font-family: var(--font-mono); color: var(--success); font-weight: 500; }
.data-table .recurring { font-family: var(--font-mono); color: var(--secondary); font-weight: 600; }

/* ── 4. PRODUCT CARD ── */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 1px 4px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.03);
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-rank {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}
.product-price {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.product-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.product-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(13,115,119,.2);
}
.product-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,115,119,.3);
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.pc-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}
.pc-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.pc-tag {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 3px;
}
.pc-tag-accent { background: var(--accent); color: #fff; }
.pc-tag-secondary { background: var(--secondary); color: #fff; }
.pc-tag-success { background: var(--success); color: #fff; }
.pc-meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dim);
  margin-bottom: .75rem;
}
.pc-body { margin-bottom: 1rem; font-size: .9375rem; color: var(--text-secondary); }
.pc-body strong { color: var(--text); }

/* Prop Grid (inside product card) */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.prop {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .5rem .65rem;
}
.prop-label {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  margin-bottom: .2rem;
}
.prop-value {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
}
.prop-value.high { color: var(--success); }
.prop-value.mid { color: var(--secondary); }
.prop-value.low { color: var(--danger); }

/* Pros / Cons */
.pc-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
@media (max-width: 500px) { .pc-pros-cons { grid-template-columns: 1fr; } }
.pc-pros h4, .pc-cons h4 {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.pc-pros h4 { color: var(--success); }
.pc-cons h4 { color: var(--danger); }
.pc-pros li, .pc-cons li { font-size: .8rem; margin-bottom: .3rem; color: var(--text-secondary); }

/* CTA Button */
.pc-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: .55rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.pc-cta:hover { background: var(--accent-hover); text-decoration: none; }
.pc-cta-secondary { background: var(--success); }
.pc-cta-secondary:hover { background: #059669; }

/* ── 5. TIER LIST ── */
.tier-list { margin: 1.5rem 0; }
.tier-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.tier-badge-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}
.tier-1 { background: var(--success-light); color: #065f46; }
.tier-2 { background: var(--secondary-light); color: #92400e; }
.tier-3 { background: var(--surface); color: var(--muted); }

/* ── 6. VS GRID ── */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: start;
  margin: 1.5rem 0;
}
.vs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.vs-divider {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dim);
  padding-top: 2rem;
}
@media (max-width: 600px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { text-align: center; padding: .5rem 0; }
}

/* ── 7. WHO SHOULD / SHOULD NOT ── */
.who-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 1px 4px rgba(15,23,42,.03);
}
.who-block > h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.who-block > p {
  font-size: .85rem;
  line-height: 1.65;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.who-block > p:nth-of-type(1) {
  background: var(--success-light);
  border-left: 3px solid var(--success);
}
.who-block > p:nth-of-type(2) {
  background: var(--danger-light);
  border-left: 3px solid var(--danger);
}

/* ── 8. CALLOUTS ── */
.callout {
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0;
  font-size: .85rem;
  line-height: 1.65;
  border-left: 3px solid;
  position: relative;
  box-shadow: 0 1px 4px rgba(15,23,42,.03);
}
.callout-info { background: var(--info-light); border-color: var(--info); }
.callout-info strong { color: #1e40af; }
.callout-warning { background: var(--secondary-light); border-color: var(--secondary); }
.callout-warning strong { color: #92400e; }
.callout-tip { background: var(--success-light); border-color: var(--success); }
.callout-tip strong { color: #065f46; }
.callout-danger { background: var(--danger-light); border-color: var(--danger); }
.callout-danger strong { color: #991b1b; }

/* ── 9. CTA BLOCK ── */
.cta-block {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}
.cta-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .35rem;
}
.cta-block p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .85rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 10. INLINE IMAGE ── */
.inline-img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.inline-img img { width: 100%; }
.inline-img figcaption {
  font-size: .75rem;
  color: var(--dim);
  padding: .5rem 0;
  font-style: italic;
}

/* ── 11. EMAIL MICRO-CAPTURE ── */
.email-capture {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
  color: #f8fafc;
}
.email-capture h3, .email-headline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: #f8fafc;
  margin-bottom: .3rem;
}
.email-capture p, .email-note {
  font-size: .75rem;
  color: #64748b;
  margin-bottom: .85rem;
}
.email-capture form {
  display: flex;
  gap: .4rem;
  max-width: 380px;
  margin: 0 auto;
}
.email-capture input[type="email"] {
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: var(--font-body);
  background: #1e293b;
  color: #f8fafc;
}
.email-capture input[type="email"]::placeholder { color: #64748b; }
.email-capture button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.email-capture button:hover { background: var(--accent-hover); }

/* ── 12. FAQ ── */
.faq-section {
  margin: 2.5rem 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(15,23,42,.03);
}
.faq-section > h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.25rem 0 .5rem;
  padding: 0;
  border: none;
  background: none;
  counter-increment: none;
}
.faq-section > h2::before { display: none; }
.faq { margin: 2rem 0; }
.faq details, .faq-section details { border-bottom: 1px solid var(--border); }
.faq details:last-child, .faq-section details:last-child { border-bottom: none; }
.faq summary, .faq-section summary {
  font-weight: 600;
  font-size: .875rem;
  padding: .85rem 0;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::after, .faq-section summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after, .faq-section details[open] summary::after { content: '−'; }
.faq .faq-answer, .faq-section p {
  padding: 0 0 1rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 13. RELATED GRID ── */
.related-grid {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.related-grid h3 {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem;
  transition: all .2s;
  text-decoration: none;
  display: block;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.related-tag {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.related-title {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.35;
  display: block;
}

/* ── AD ZONE ── */
.ad-zone { margin: 1.5rem 0; min-height: 90px; }

/* ── NEWSLETTER (homepage) ── */
.newsletter-section {
  max-width: var(--wide);
  margin: 3rem auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  color: #f8fafc;
}
.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #f8fafc;
  margin-bottom: .5rem;
  border: none;
  padding: 0;
}
.newsletter-section p {
  font-size: .875rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-section form {
  display: flex;
  gap: .5rem;
  max-width: 400px;
  margin: 0 auto;
}
.newsletter-section input[type="email"] {
  flex: 1;
  padding: .6rem .85rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: var(--font-body);
}
.newsletter-section button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.footer-links { display: flex; gap: 1rem; font-size: .8rem; }
.footer-links a { color: var(--dim); }
.footer-disc {
  font-size: .7rem;
  color: var(--dim);
  max-width: 520px;
  line-height: 1.55;
  margin-top: .5rem;
}

/* ── STICKY EMAIL STRIP ── */
.sticky-email {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: .6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  z-index: 90;
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-email.visible { transform: translateY(0); }
.sticky-email p {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.sticky-email input {
  padding: .4rem .65rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  width: 200px;
}
.sticky-email button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .75rem;
  cursor: pointer;
}
.sticky-email .dismiss {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 .25rem;
}

/* ═══════════════════════════════════════════════════════
   EDUBRACKET-SPECIFIC DESIGN EXTENSIONS
   ═══════════════════════════════════════════════════════ */

/* ── CATEGORY COLOR SYSTEM ── */
:root {
  --cat-platforms: #0d7377;
  --cat-courses: #2563eb;
  --cat-certifications: #d97706;
  --cat-creators: #059669;
  --cat-career: #6366f1;
  --cat-free: #64748b;
}

/* ── CATEGORY-COLORED CARD BORDERS ── */
.article-card {
  border-top: 3px solid var(--border);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.article-card[data-cat="platforms"] { border-top-color: var(--cat-platforms); }
.article-card[data-cat="courses"] { border-top-color: var(--cat-courses); }
.article-card[data-cat="certifications"] { border-top-color: var(--cat-certifications); }
.article-card[data-cat="creators"] { border-top-color: var(--cat-creators); }
.article-card[data-cat="career"] { border-top-color: var(--cat-career); }
.article-card[data-cat="free"] { border-top-color: var(--cat-free); }

/* ── HERO PATTERN BACKGROUND ── */
.hero-home {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #0f172a 100%);
  max-width: 100%;
  padding: 4rem 1.5rem 3rem;
  margin-bottom: 2rem;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13,115,119,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(217,119,6,.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-home h1 {
  position: relative;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.hero-home h1 em { color: #5eead4; font-style: italic; }
.hero-home .tagline {
  position: relative;
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-home .stats {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  display: inline-flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.hero-home .stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #5eead4;
}
.hero-home .stat-label {
  font-size: .7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── FEATURED ARTICLE CARD ── */
.article-card-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 0 auto 1.5rem;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: var(--text);
}
.article-card-featured:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(15,23,42,.08);
  text-decoration: none;
}
.article-card-featured .ac-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.3;
  margin: .35rem 0 .5rem;
}
.article-card-featured .ac-excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
}
.article-card-featured .featured-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--secondary);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ── TESTED BADGE ── */
.tested-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: .2rem .55rem;
  border-radius: 3px;
}
.tested-badge::before {
  content: '✓';
  font-weight: 700;
}

/* ── SCORE BADGE (on cards) ── */
.ac-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PROGRESS BAR PROP GRID ── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.prop {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .6rem .75rem;
}
.prop-label {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  margin-bottom: .35rem;
  display: flex;
  justify-content: space-between;
}
.prop-score {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--text);
}
.prop-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.prop-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width .6s ease;
}
.prop-bar-fill.high { background: var(--success); }
.prop-bar-fill.mid { background: var(--secondary); }
.prop-bar-fill.low { background: var(--danger); }

/* ── STICKY TABLE OF CONTENTS ── */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  align-items: start;
}
.article-layout .article {
  max-width: none;
  padding: 0;
  margin: 0;
}
.toc {
  position: sticky;
  top: 4.5rem;
  padding-top: 1rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
  margin-bottom: .75rem;
}
.toc a {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  padding: .3rem 0 .3rem .75rem;
  border-left: 2px solid var(--border);
  text-decoration: none;
  transition: color .15s, border-color .15s;
  line-height: 1.35;
}
.toc a:hover, .toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* ── SECTION DIVIDER (extension) ── */
.section-header h2 {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-header h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc { display: none; }
  .article-card-featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-home h1 { font-size: 1.75rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .hero-home .stats { gap: 1.5rem; padding: 1rem 1.25rem; }
}
