/* ── Warm-white theme overrides (dark CSS vars → light text on warm bg) ── */
:root { --ink: #1a2332; --ink-soft: #4a5a6a; }
body { color: #1a2332; }
.topic-score-card {
  background: #fffdf7;
  border: 1px solid rgba(15,23,42,0.1);
  box-shadow: 0 2px 16px rgba(15,23,42,0.07);
}
/* ── Country Scores Section ─────────────────────────── */
.country-scores { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.topic-score-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 16px rgba(15,23,42,0.07);
}
.tsc-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.tsc-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.tsc-title { font-weight: 700; font-size: 1rem; margin: 0 0 2px; }
.tsc-title a { color: inherit; text-decoration: none; }
.tsc-title a:hover { text-decoration: underline; }
.tsc-subtitle { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.tsc-score-wrap { margin-left: auto; text-align: right; flex-shrink: 0; }
.tsc-overall {
  font-weight: 800; font-size: 1.5rem; line-height: 1;
}
.tsc-overall-label { font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.tsc-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tsc-bar-bg { flex: 1; height: 10px; background: rgba(15,23,42,0.08); border-radius: 5px; overflow: hidden; }
.tsc-bar-fill { height: 100%; border-radius: 5px; }
.ind-list { display: flex; flex-direction: column; gap: 8px; }
.ind-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.83rem;
}
.ind-name { width: 160px; flex-shrink: 0; color: var(--ink-soft); }
a.ind-name { text-decoration: none; }
a.ind-name:hover { text-decoration: underline; }
.ind-bar-bg { flex: 1; height: 6px; background: rgba(15,23,42,0.08); border-radius: 3px; overflow: hidden; }
.ind-bar-fill { height: 100%; border-radius: 3px; }
.ind-score-val { min-width: 34px; text-align: right; font-weight: 700; font-size: 0.8rem; }
.ind-weight { font-size: 0.72rem; color: var(--ink-soft); min-width: 34px; text-align: right; }
/* color scale */
.score-green  { color: #16a34a; }
.score-yellow { color: #ca8a04; }
.score-orange { color: #ea580c; }
.score-red    { color: #dc2626; }
.bar-green  { background: #22c55e; }
.bar-yellow { background: #eab308; }
.bar-orange { background: #f97316; }
.bar-red    { background: #ef4444; }
.topic-category-block { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.topic-category-block:last-child { margin-bottom: 0; }
.topic-category-heading { font-family: "Fraunces", "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid rgba(15,23,42,0.08); }
.scores-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 700px) { .ind-name { width: 120px; } }
/* ── Highlights / Strengths Section ────────────────── */
.highlights-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.hl-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hl-card { background: rgba(255,255,255,0.92); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; border: 1px solid rgba(15,23,42,0.09); box-shadow: 0 2px 10px rgba(15,23,42,0.06); }
.hl-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 20px; width: fit-content; white-space: nowrap; }
.hl-badge-gold     { background: #fef9c3; color: #78350f; border: 1px solid #fde68a; }
.hl-badge-silver   { background: #f1f5f9; color: #334155; border: 1px solid #94a3b8; }
.hl-badge-bronze   { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }
.hl-badge-continent{ background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.hl-body { display: flex; align-items: center; gap: 8px; }
.hl-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.hl-name { font-size: 0.82rem; font-weight: 600; color: var(--ink); text-decoration: none; flex: 1; line-height: 1.3; }
.hl-name:hover { text-decoration: underline; color: #2563eb; }
.hl-score { font-size: 1rem; font-weight: 800; color: #16a34a; flex-shrink: 0; }
.hl-score-red { color: #dc2626; }
.hl-badge-weak      { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.hl-badge-weak-cont { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }

