/* ===========================================================================
   Blog "infographic" ranking articles (type: seo-ranking)
   Scoped under .reader-ranking-article so it never touches other blog posts.
   Generated by language-books/generate_seo_articles.py
   =========================================================================== */

/* These ranking articles carry no human author — hide the template's author
   chrome only on pages that contain a ranking article (uses :has). */
.blog-article-page:has(.reader-ranking-article) .article-author-bar,
.blog-article-page:has(.reader-ranking-article) .article-review-badge,
.blog-article-page:has(.reader-ranking-article) .author-bio-box {
  display: none !important;
}

.reader-ranking-article {
  --rr-accent: #ea7131;
  --rr-accent-dark: #c85a20;
  --rr-ink: #23262b;
  --rr-muted: #6b7280;
  --rr-line: #e9ebf0;
  --rr-bg-soft: #fbf8f4;
  --rr-good: #1a9e5c;
  --rr-bad: #d1495b;
  --rr-warn: #d9971e;
  color: var(--rr-ink);
  font-size: 1.03rem;
  line-height: 1.7;
  --lvl: #ea7131;
  --lvlink: #fff;
}
/* per-CEFR accent colour for the hero medallion + rails */
.reader-ranking-article.rr--a1, .reader-ranking-article .rr-hero--a1 { --lvl:#ffd766; --lvlink:#5a4409; }
.reader-ranking-article .rr-hero--a2 { --lvl:#ffba1f; --lvlink:#5a4409; }
.reader-ranking-article .rr-hero--b1 { --lvl:#f7a05e; --lvlink:#4a2a0c; }
.reader-ranking-article .rr-hero--b2 { --lvl:#ea7131; --lvlink:#fff; }
.reader-ranking-article .rr-hero--c1 { --lvl:#f28080; --lvlink:#fff; }
.reader-ranking-article .rr-hero--c2 { --lvl:#e54d54; --lvlink:#fff; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.reader-ranking-article .rr-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  margin: .25rem 0 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a2d34 0%, #1b1d22 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.reader-ranking-article .rr-hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--lvl) 0%, transparent 70%);
  opacity: .22;
}
.reader-ranking-article .rr-hero-lvl {
  flex: 0 0 auto;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lvl); color: var(--lvlink);
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.reader-ranking-article .rr-hero-info { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.reader-ranking-article .rr-kicker {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--lvl);
}
.reader-ranking-article .rr-hero-lang { font-size: 1.55rem; font-weight: 800; line-height: 1.1; text-wrap: balance; }
.reader-ranking-article .rr-hero-upd { font-size: .76rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }

/* ── Intro + section headings ─────────────────────────────────────────────── */
.reader-ranking-article .rr-intro { font-size: 1.08rem; color: #333840; }
.reader-ranking-article .rr-intro p:first-child { margin-top: 0; }
.reader-ranking-article p { line-height: 1.7; }

.reader-ranking-article .rr-h2 {
  font-size: 1.45rem; letter-spacing: -.01em;
  margin: 2.4rem 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.reader-ranking-article .rr-h2::before {
  content: ""; width: 8px; height: 26px; border-radius: 4px;
  background: linear-gradient(var(--rr-accent), #f7a05e);
}
.reader-ranking-article .rr-note {
  margin-top: 2rem; font-size: .82rem; color: var(--rr-muted);
  border-top: 1px solid var(--rr-line); padding-top: 1rem;
}

/* ── Ranking list ─────────────────────────────────────────────────────────── */
.reader-ranking-article .rr-ranking {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.reader-ranking-article .rr-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 1.1rem; align-items: start;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--rr-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 20, 40, .05);
  transition: box-shadow .18s ease, transform .18s ease;
}
.reader-ranking-article .rr-card:hover { box-shadow: 0 10px 30px rgba(20,20,40,.10); transform: translateY(-2px); }

.reader-ranking-article .rr-card--winner {
  border-color: rgba(234, 113, 49, .40);
  background: linear-gradient(180deg, #fff 0%, var(--rr-bg-soft) 100%);
  box-shadow: 0 10px 30px rgba(234, 113, 49, .14);
}
.reader-ranking-article .rr-card--winner::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--rr-accent), #f7a05e);
}

/* rank + medal */
.reader-ranking-article .rr-rank { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.reader-ranking-article .rr-medal {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: 1.25rem; color: #fff; background: #9aa1ac;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.15), 0 3px 8px rgba(0,0,0,.12);
}
.reader-ranking-article .rr-medal--1 { background: linear-gradient(145deg, #f6cf5a, #e0a72a); color: #5a4409; }
.reader-ranking-article .rr-medal--2 { background: linear-gradient(145deg, #d7dbe0, #aab1ba); color: #3a3f47; }
.reader-ranking-article .rr-medal--3 { background: linear-gradient(145deg, #e2a878, #c07f4c); color: #43260f; }
.reader-ranking-article .rr-medal--alt { background: #eef1f5; color: #7b828d; font-size: 1.05rem; width: 40px; height: 40px; box-shadow: none; }
.reader-ranking-article .rr-best {
  font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: var(--rr-accent);
  padding: .2rem .45rem; border-radius: 999px; text-align: center; line-height: 1.15;
}

/* cover */
.reader-ranking-article .rr-cover {
  width: 92px; height: 138px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,.22); display: grid; place-items: center;
}
.reader-ranking-article .rr-cover-cefr { font-weight: 800; font-size: 1.7rem; color: rgba(0,0,0,.45); }
.reader-ranking-article .rr-cover--series {
  width: 92px; height: 138px; border-radius: 10px;
  background: linear-gradient(160deg, #eef1f6, #dfe3ea);
  box-shadow: inset 3px 0 0 rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.12);
  display: flex; align-items: flex-start;
  padding: .5rem .45rem; overflow: hidden;
}
.reader-ranking-article .rr-cover-title {
  font-size: .66rem; font-weight: 700; line-height: 1.25; color: #6b7480;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

/* body */
.reader-ranking-article .rr-body { min-width: 0; }
.reader-ranking-article .rr-title { font-size: 1.22rem; margin: 0 0 .45rem; line-height: 1.25; letter-spacing: -.01em; }
.reader-ranking-article .rr-orig { display: block; font-size: .82rem; font-weight: 400; color: var(--rr-muted); }
.reader-ranking-article .rr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .55rem; }
.reader-ranking-article .rr-author { font-size: .82rem; color: var(--rr-muted); }
.reader-ranking-article .rr-blurb { margin: .3rem 0 .8rem; }

.reader-ranking-article .rr-badge {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .2rem .55rem; border-radius: 999px; white-space: nowrap;
}
.reader-ranking-article .rr-badge--brand { background: #23262b; color: #fff; }
.reader-ranking-article .rr-badge--pub { background: #eef1f5; color: #4a515b; }
.reader-ranking-article .rr-badge--level { color: #4a3300; background: #ffd766; }
.reader-ranking-article .rr-badge--a1 { background: rgb(255,215,102); color:#5a4409; }
.reader-ranking-article .rr-badge--a2 { background: rgb(255,186,31); color:#5a4409; }
.reader-ranking-article .rr-badge--b1 { background: rgb(247,160,94); color:#4a2a0c; }
.reader-ranking-article .rr-badge--b2 { background: rgb(234,113,49); color:#fff; }
.reader-ranking-article .rr-badge--c1 { background: rgb(242,128,128); color:#fff; }
.reader-ranking-article .rr-badge--c2 { background: rgb(229,77,84); color:#fff; }

/* feature chips */
.reader-ranking-article .rr-features {
  list-style: none; margin: .3rem 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.reader-ranking-article .rr-features li {
  font-size: .78rem; color: #216b45;
  background: #eafaf1; border: 1px solid #cdeedd;
  padding: .28rem .6rem .28rem .55rem; border-radius: 9px; line-height: 1.3;
}
.reader-ranking-article .rr-features li::before { content: "✓"; font-weight: 800; margin-right: .3rem; color: var(--rr-good); }

/* buy widget */
.reader-ranking-article .rr-buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  padding: .85rem 0 .1rem; border-top: 1px dashed var(--rr-line); margin-top: .3rem;
}
.reader-ranking-article .rr-price { font-weight: 800; font-size: 1.25rem; }
.reader-ranking-article .rr-price-note {
  display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--rr-muted);
}
.reader-ranking-article .rr-buy-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--rr-accent), #f2864a);
  padding: .7rem 1.35rem; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(234,113,49,.28);
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
.reader-ranking-article .rr-buy-btn:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(234,113,49,.36); }
.reader-ranking-article .rr-buy-btn:active { transform: translateY(1px); }
.reader-ranking-article .rr-buy-btn.is-added { background: var(--rr-good); box-shadow: none; }
.reader-ranking-article a.rr-buy-btn { display: inline-block; text-decoration: none; }
.reader-ranking-article .rr-buy-btn--link {
  background: #fff; color: var(--rr-accent-dark);
  box-shadow: inset 0 0 0 2px var(--rr-accent);
}
.reader-ranking-article .rr-buy-btn--link:hover { background: #fff7f1; filter: none; }
.reader-ranking-article .rr-view { font-weight: 700; color: var(--rr-accent-dark); text-decoration: none; }
.reader-ranking-article .rr-formats-note {
  flex-basis: 100%; margin: .1rem 0 0; font-size: .8rem; color: var(--rr-muted); font-weight: 600;
}
.reader-ranking-article .rr-formats-note::before { content: "\1F4D6\00A0"; }
.reader-ranking-article .rr-no-comp {
  margin: 1.1rem 0; padding: 1rem 1.15rem; border-radius: 12px;
  background: linear-gradient(160deg, #fff7f1, #ffeede);
  border: 1px dashed var(--rr-accent);
}
.reader-ranking-article .rr-no-comp .rr-h2 { margin: 0 0 .35rem; }
.reader-ranking-article .rr-no-comp-text { margin: 0; color: var(--rr-ink); line-height: 1.5; }
.reader-ranking-article .rr-no-comp-text a { color: var(--rr-accent-dark); font-weight: 700; }
.reader-ranking-article .rr-view:hover { text-decoration: underline; }

/* ── Comparison table ─────────────────────────────────────────────────────── */
.reader-ranking-article .rr-compare-wrap {
  overflow-x: auto; margin: 1rem 0 1.5rem;
  border: 1px solid var(--rr-line); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(20,20,40,.05);
}
.reader-ranking-article .rr-compare {
  width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px;
}
.reader-ranking-article .rr-compare caption {
  caption-side: top; text-align: left; font-weight: 800; font-size: 1.05rem;
  padding: 1rem 1rem .3rem;
}
.reader-ranking-article .rr-compare th,
.reader-ranking-article .rr-compare td {
  padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--rr-line);
}
.reader-ranking-article .rr-compare thead th { background: #f6f7f9; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.reader-ranking-article .rr-compare thead th.rr-ft-ours { background: #fdefe6; color: var(--rr-accent-dark); }
.reader-ranking-article .rr-compare td.rr-ft-feat,
.reader-ranking-article .rr-compare th.rr-ft-feat { text-align: left; font-weight: 600; width: 56%; }
.reader-ranking-article .rr-compare tbody tr:nth-child(even) td { background: #fafbfc; }
.reader-ranking-article .rr-compare tbody tr td.rr-ft-cell:nth-child(2) { background: #fff7f1; }
.reader-ranking-article .rr-compare tbody tr:last-child td { border-bottom: 0; }
.reader-ranking-article .rr-ft-cell { font-weight: 800; font-size: 1.15rem; }
.reader-ranking-article .rr-yes { color: var(--rr-good); }
.reader-ranking-article .rr-no { color: var(--rr-bad); }
.reader-ranking-article .rr-partial { color: var(--rr-warn); }

/* ── Verdict ──────────────────────────────────────────────────────────────── */
.reader-ranking-article .rr-verdict {
  margin: 2.2rem 0 1rem;
  padding: .2rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, #fff, var(--rr-bg-soft));
  border: 1px solid rgba(234,113,49,.3);
  border-left: 5px solid var(--rr-accent);
  border-radius: 14px;
}
.reader-ranking-article .rr-verdict .rr-h2 { margin-top: 1.1rem; }
.reader-ranking-article .rr-verdict p { margin-bottom: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.reader-ranking-article .rr-faq { display: flex; flex-direction: column; gap: .7rem; }
.reader-ranking-article .rr-faq .faq-item {
  border: 1px solid var(--rr-line); border-radius: 14px; padding: 1rem 1.2rem; background: #fff;
  box-shadow: 0 1px 6px rgba(20,20,40,.04);
}
.reader-ranking-article .rr-faq .faq-item h3 {
  margin: 0 0 .4rem; font-size: 1.02rem; display: flex; gap: .5rem; align-items: baseline;
}
.reader-ranking-article .rr-faq .faq-item h3::before {
  content: "?"; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%; background: var(--rr-accent); color: #fff;
  font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.reader-ranking-article .rr-faq .faq-item p { margin: 0; color: #3b4048; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .reader-ranking-article .rr-card { grid-template-columns: 42px 68px 1fr; gap: .8rem; padding: 1rem; }
  .reader-ranking-article .rr-cover, .reader-ranking-article .rr-cover--series { width: 68px; height: 102px; }
  .reader-ranking-article .rr-medal { width: 38px; height: 38px; font-size: 1.05rem; }
  .reader-ranking-article .rr-title { font-size: 1.08rem; }
  .reader-ranking-article .rr-hero { flex-direction: row; padding: 1.1rem 1.15rem; }
  .reader-ranking-article .rr-hero-lang { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reader-ranking-article .rr-card { transition: none; }
}
