:root {
  --brand: #0f2f4f;
  --brand-soft: #e8f0f9;
  --accent: #1c7ed6;
  --ink: #1f2937;
  --muted: #5b6675;
  --surface: #f6f8fb;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 30%);
}

h1,
h2,
h3,
h4 {
  font-family: "Merriweather", serif;
  color: #12263a;
}

a {
  color: #0f4d8c;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  color: #10253a;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.hero-wrap {
  background: radial-gradient(circle at top right, #edf6ff, #f7fbff 45%, #ffffff 100%);
  border: 1px solid #d6e3f2;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #35567a;
}

.best-for-list {
  padding-left: 1.1rem;
}

.review-table td,
.review-table th {
  vertical-align: middle;
  font-size: 0.87rem;
  padding: 0.42rem 0.5rem;
  white-space: normal;
  line-height: 1.2;
}

.review-table td:last-child,
.review-table th:last-child {
  min-width: 180px;
}

.review-table th:nth-child(1),
.review-table td:nth-child(1),
.review-table th:nth-child(3),
.review-table td:nth-child(3),
.review-table th:nth-child(4),
.review-table td:nth-child(4),
.review-table th:nth-child(5),
.review-table td:nth-child(5),
.review-table th:nth-child(6),
.review-table td:nth-child(6),
.review-table th:nth-child(7),
.review-table td:nth-child(7),
.review-table th:nth-child(8),
.review-table td:nth-child(8),
.review-table th:nth-child(9),
.review-table td:nth-child(9) {
  text-align: center;
}

.top-row {
  background: #f1f9f4;
}

.top-card {
  border-left: 4px solid #2f9e44;
}

.top-pick-tag {
  line-height: 1;
  margin-bottom: 0.3rem;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: #12395c;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
}

.top-feature-card {
  border: 1px solid #cde0d0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
}

.verification-card ul {
  font-size: 0.93rem;
}

.cta-strong {
  border: 1px solid #b9d5bd;
}

.toc-box {
  max-height: 85vh;
  overflow: auto;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #284866;
}

.toc a:hover {
  text-decoration: underline;
}

.internal-widget .card {
  border-color: #dde6f1;
}

.site-footer {
  background: #fafbfc;
}

.footer-rebuild-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.footer-rebuild-status {
  color: var(--muted);
}

.footer-rebuild-status.is-running {
  color: #9a6700;
}

.footer-rebuild-status.is-success {
  color: #1f9d52;
}

.footer-rebuild-status.is-error {
  color: #d63333;
}

.quiz-result {
  background: #f4f7fb;
  border: 1px solid #d7e1ee;
  border-radius: 0.6rem;
  padding: 0.75rem;
}

.home-province-select {
  width: min(340px, 100%);
}

.mark {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.mark-yes {
  color: #1f9d52;
}

.mark-no {
  color: #d63333;
}

.mark-unknown {
  color: #6c757d;
}

@media (max-width: 991px) {
  .site-header {
    position: static;
  }

  .review-table td,
  .review-table th {
    font-size: 0.86rem;
  }
}
