/* ==========================================================================
   Editorial theme — warm paper, serif typography (matches the reference layout)
   Loaded last: it re-skins the existing components without touching them.
   ========================================================================== */

:root {
  --ink: #271d18;
  --muted: #6f6158;
  --paper: #f7f1e8;
  --surface: #fffdf9;
  --accent: #7a3f2b;
  --line: #d7c9bb;
  --dark: #2f211b;
  --radius: 12px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--dark);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -.025em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

a {
  color: var(--accent);
}

p, li {
  font-family: inherit;
}

/* UI text stays sans, like the reference */
.eyebrow,
.section-kicker,
.breadcrumbs,
.crumbs,
.page-updated,
.tl-label,
.tl-rate-label,
.tl-btn,
.tl-visit,
.nav-menu a,
.main-menu a,
.footer-col,
.footer-bottom,
.faq summary,
details summary {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 253, 249, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-nav {
  min-height: 76px;
  padding-block: 10px;
}

.nav-menu a,
.main-menu a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-menu a:hover,
.main-menu a:hover {
  color: var(--dark);
}

.nav-menu .menu-chevron {
  opacity: .55;
}

/* Wordmark */
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--dark);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.site-word {
  display: flex;
  flex-direction: column;
  color: var(--dark);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
}

.site-word small {
  margin-top: 5px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .site-word {
    font-size: 1.15rem;
  }
}

/* Mobile slide-out menu */
@media (max-width: 1100px) {
  .main-navigation,
  .main-navigation.active {
    background: var(--surface);
  }

  .main-navigation .nav-menu a {
    color: var(--dark);
  }
}

/* --------------------------------------------------------------------------
   Surfaces and boxes
   -------------------------------------------------------------------------- */
.key-box,
.tl-card,
.related a,
.offer,
.page-figure,
.faq details,
.table-scroll {
  background: var(--surface);
  border-color: var(--line);
}

.tl-card,
.related a,
.page-figure,
.offer {
  border-radius: 10px;
}

.key-box {
  border-radius: 10px;
  box-shadow: none;
}

.page-figure figcaption,
figcaption {
  color: var(--muted);
}

/* FAQ: bordered rows with a plus marker */
.faq details {
  border: 1px solid var(--line);
  border-radius: 0;
}

.faq summary {
  color: var(--dark);
  font-weight: 800;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  border-top: 1px solid var(--line);
  padding-top: 1em;
}

/* Tables */
.table-scroll {
  border-radius: 8px;
}

th {
  background: #f3ece1;
  color: var(--dark);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .02em;
}

td {
  border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Panels: verdict / closing CTA
   -------------------------------------------------------------------------- */
.verdict,
.offer-close,
.key-box--cta {
  background: var(--dark);
  color: #f5eee8;
}

.verdict h2,
.offer-close h2,
.key-box--cta h3 {
  color: #fffdf9;
}

.verdict p,
.offer-close p,
.key-box--cta p {
  color: #e6dcd2;
}

.offer-close small {
  color: #c9bcae;
}

.verdict-score strong {
  color: #e9c46a;
}

.verdict-score span {
  color: #c9bcae;
}

/* Buttons */
.offer-cta,
.tl-btn,
.tl-maincta {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.offer-close .offer-cta--invert,
.key-box--cta .offer-cta {
  background: #fffdf9;
  color: var(--dark) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #f0e6dc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer h3 {
  color: #fffdf9;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .95rem;
  letter-spacing: .02em;
}

.footer-col h3 {
  border-bottom: 1px solid rgba(255, 253, 249, .18);
  padding-bottom: 8px;
}

.footer-col a,
.footer-bottom a {
  color: #e7c9a8;
}

/* --------------------------------------------------------------------------
   Top list tuned to the warm palette
   -------------------------------------------------------------------------- */
.tl-card {
  box-shadow: none;
}

.tl-rank {
  background: #16794a;
}

.tl-label--gold {
  background: #b8892f;
}

.tl-label--green {
  background: #2f6b46;
}

.tl-label--blue {
  background: #2f5d8a;
}

.tl-bonus,
.tl-score {
  color: var(--dark);
}

.tl-score {
  color: #2f6b46;
}

.tl-btn {
  background: #1f7a44;
}

.tl-btn:hover {
  background: #186336;
}

.tl-terms-text {
  color: var(--muted);
}

.tl-info {
  background: #2f5d8a;
}

/* --------------------------------------------------------------------------
   Page-level blocks
   -------------------------------------------------------------------------- */
.page-updated {
  color: var(--muted);
}

.crumbs a {
  color: var(--accent);
}

.checklist li::before {
  background: #f0e7db;
  border-color: var(--accent);
}

.checklist li::after {
  border-color: var(--accent);
}

.callout {
  background: var(--surface);
  border-left-color: var(--accent);
}

.callout strong {
  color: var(--dark);
}

.crumbs {
  color: var(--muted);
}

/* The offer cards in the reference use a grotesque for the offer and terms,
   with the serif reserved for the display number. */
.tl-bonus,
.tl-terms-text,
.tl-visit,
.tl-rate-label,
.tl-label,
.tl-rank,
.offer-note,
.top-list .key-box {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tl-bonus {
  font-weight: 800;
}

.tl-terms-text {
  font-size: 10.5px;
}

/* Headline wrapping: avoid a lone tail word on the last line. */
h1 {
  text-wrap: balance;
}

/* The reference hero is left-aligned inside a narrow measure. */
.page-home .eyebrow.--one,
.page-home h1 {
  text-align: left;
}

.page-home h1 {
  margin-left: 0;
  margin-right: auto;
  max-width: 24ch;
}

/* Burger icon on the light header */
.burger-line {
  background-color: var(--dark);
}

.js-burger {
  color: var(--dark);
}
