/* Ledger & Latte — Kadence-style WordPress finance theme
   Palette: navy + mint. Generous, legible comparison tables. */

:root {
  --navy-950: #071a30;
  --navy-900: #0b2545;
  --navy-800: #123a63;
  --navy-700: #1b4d7e;
  --mint-600: #0f9d79;
  --mint-500: #1cb894;
  --mint-400: #4fd3b3;
  --mint-100: #e7f8f1;
  --mint-050: #f3fbf7;
  --ink: #1c2630;
  --ink-soft: #4a5a6b;
  --paper: #fbfbf8;
  --paper-card: #ffffff;
  --line: #e1e7ee;
  --amber: #b4740e;
  --amber-bg: #fdf3e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px -12px rgba(11, 37, 69, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, .site-logo, .kicker, .pick-badge {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
}

a { color: var(--navy-800); text-decoration-color: rgba(18, 58, 99, 0.35); }
a:hover { color: var(--mint-600); }

img { max-width: 100%; display: block; }

.wrap, .site-header .wrap, .site-footer .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Ad units ---------- */
.ad-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f3f7;
  border: 1px dashed #c7d2de;
  color: #8694a3;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  margin: 28px auto;
}
.ad-unit::before { content: "Advertisement"; }
#ad-top { max-width: 970px; height: 90px; margin: 0 auto 0; }
#ad-sidebar-300 { width: 300px; height: 250px; margin: 0 0 28px; }
.ad-unit[data-ad="incontent"] { max-width: 100%; height: 100px; }

/* ---------- Header ---------- */
.site-topbar {
  background: var(--navy-950);
  color: #cfe3ef;
  font-size: 12.5px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--mint-500);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.site-branding { display: flex; flex-direction: column; }
.site-logo {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-logo span { color: var(--mint-400); }
.site-description {
  margin: 2px 0 0;
  color: #9fb6cb;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: #d8e6f0;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--mint-400); }

.breadcrumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.breadcrumbs a { color: var(--navy-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.site-main.narrow { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

@media (max-width: 880px) {
  .site-main { grid-template-columns: 1fr; }
}

/* ---------- Article ---------- */
.post { min-width: 0; }

.entry-header { margin-bottom: 18px; }
.kicker {
  display: inline-block;
  background: var(--mint-100);
  color: var(--mint-600);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.entry-header h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  color: var(--navy-950);
  margin: 0 0 12px;
}
.entry-excerpt { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 14px; }
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* Advertiser disclosure box, required at the top of every money post */
.disclosure-box {
  background: var(--amber-bg);
  border: 1px solid #ecd9ae;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #6b4d12;
  margin: 0 0 24px;
}
.disclosure-box strong { color: #553b0b; }
.disclosure-box a { color: #6b4d12; text-decoration: underline; }

.hero-figure { margin: 0 0 28px; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.hero-figure figcaption, figure.inline-figure figcaption {
  font-size: 12.5px;
  color: #90a0b0;
  margin-top: 6px;
}

.entry-content { font-size: 1.05rem; color: var(--ink); }
.entry-content > p { margin: 0 0 18px; }
.entry-content h2 {
  color: var(--navy-950);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.entry-content h2:first-child { border-top: none; padding-top: 0; }
.entry-content h3 { color: var(--navy-800); font-size: 1.2rem; margin: 28px 0 12px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--mint-500);
  background: var(--mint-050);
  color: var(--navy-900);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

figure.inline-figure { margin: 28px 0; }
figure.inline-figure img { border-radius: var(--radius); width: 100%; height: auto; }

/* ---------- Comparison tables ---------- */
.table-scroll { overflow-x: auto; margin: 10px 0 28px; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper-card);
}
table.compare-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 12px 16px 0;
}
table.compare-table thead th {
  background: var(--navy-900);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 14px 18px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
table.compare-table tbody td, table.compare-table tbody th {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table tbody tr:nth-child(odd) { background: var(--mint-050); }
table.compare-table tbody th { text-align: left; font-weight: 700; color: var(--navy-900); }
table.compare-table .is-best { position: relative; }
table.compare-table .is-best::after {
  content: "Our pick";
  display: inline-block;
  margin-left: 8px;
  background: var(--mint-500);
  color: #04281f;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
}
.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }

/* ---------- Product box ("Our pick") ---------- */
.product-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 20px 0;
}
.product-box.is-featured { border-color: var(--mint-500); border-width: 2px; }
.pick-badge {
  background: var(--navy-900);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  justify-self: start;
}
.product-box.is-featured .pick-badge { background: var(--mint-600); }
.product-box .product-meta h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy-950); }
.product-box .product-meta p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.product-box .product-rates {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.product-box .product-rates b { color: var(--navy-900); display: block; font-size: 14px; }
.product-cta {
  display: inline-block;
  background: var(--mint-600);
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  padding: 11px 20px;
  border-radius: 7px;
  white-space: nowrap;
  text-align: center;
}
.product-cta:hover { background: var(--mint-500); }
.product-fineprint { grid-column: 1 / -1; font-size: 12px; color: #93a1ad; margin-top: 2px; }

@media (max-width: 560px) {
  .product-box { grid-template-columns: 1fr; text-align: left; }
  .pick-badge { justify-self: start; }
}

/* ---------- Callout ---------- */
.callout {
  background: var(--navy-900);
  color: #e7f0f7;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout h4 { margin: 0 0 6px; color: var(--mint-400); font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }
.callout p { margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-section { margin-top: 36px; }
.faq-list details {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 4px 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-950);
  padding: 14px 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 22px;
  color: var(--mint-600);
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Entry footer / author ---------- */
.entry-footer { margin-top: 44px; }
.post-tags { margin-bottom: 28px; }
.post-tags a {
  display: inline-block;
  background: var(--mint-100);
  color: var(--mint-600);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  margin: 0 6px 6px 0;
  text-decoration: none;
}

.author-box {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  background: var(--mint-050);
  border: 1px solid var(--mint-100);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.author-box h3 { margin: 0 0 2px; color: var(--navy-950); font-size: 1.05rem; }
.author-box .credential { display: block; font-size: 12.5px; color: var(--mint-600); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.author-box a { color: var(--navy-800); }

.related-posts h2 { font-size: 1.2rem; color: var(--navy-950); margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}
.related-card img { width: 100%; height: 110px; object-fit: cover; }
.related-card span { display: block; padding: 10px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.related-card .rp-kicker { color: var(--mint-600); font-size: 11px; font-weight: 700; text-transform: uppercase; display: block; padding: 10px 12px 0; }
.related-card .rp-kicker + span { padding-top: 2px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Sidebar / rail ---------- */
.widget-area { display: flex; flex-direction: column; gap: 26px; }
.widget {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-900);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mint-500);
}
.widget-about img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.widget-about p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.widget-bestof ol { margin: 0; padding-left: 20px; }
.widget-bestof li { margin-bottom: 10px; font-size: 14px; }
.widget-bestof li a { color: var(--navy-800); text-decoration: none; font-weight: 600; }
.widget-bestof li a:hover { text-decoration: underline; }
.widget-bestof .mini-rate { display: block; font-size: 12px; color: var(--mint-600); font-weight: 700; }
.widget-newsletter p { font-size: 13.5px; color: var(--ink-soft); }
.widget-newsletter form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.widget-newsletter input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.widget-newsletter button {
  background: var(--navy-900);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.widget-newsletter .fine-print { font-size: 11.5px; color: #9aa7b2; margin: 6px 0 0; }
.widget-trust ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.widget-trust li { margin-bottom: 8px; }

/* ---------- Home page ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  color: #fff;
  padding: 56px 0 64px;
}
.home-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.home-hero h1 { font-size: 2.5rem; margin: 0 0 14px; line-height: 1.15; }
.home-hero p { color: #c9dbe9; font-size: 1.1rem; margin: 0 0 20px; max-width: 46ch; }
.home-hero img { border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5); }
.home-trust-badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.home-trust-badges span { font-size: 12.5px; color: #9fb6cb; border: 1px solid #294a6b; padding: 6px 12px; border-radius: 20px; }
@media (max-width: 800px) { .home-hero .wrap { grid-template-columns: 1fr; } }

.post-list-section { min-width: 0; padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { color: var(--navy-950); font-size: 1.6rem; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card .post-card-body { padding: 18px 20px 20px; }
.post-card .kicker { margin-bottom: 10px; }
.post-card h3 { margin: 0 0 8px; color: var(--navy-950); font-size: 1.15rem; line-height: 1.3; }
.post-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.post-card .card-meta { font-size: 12.5px; color: #93a1ad; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #a9bfd1;
  padding: 44px 0 26px;
  margin-top: 40px;
}
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-cols .site-logo { color: #fff; }
.footer-cols p { font-size: 13.5px; color: #8ba2b7; }
.footer-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: #a9bfd1; text-decoration: none; font-size: 13.5px; }
.footer-cols a:hover { color: #fff; }
.footer-fine { font-size: 12px; color: #71889d; border-top: 1px solid #16304b; padding-top: 20px; margin: 0; line-height: 1.7; }
.footer-fine a { color: #a9bfd1; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.about-hero img { border-radius: var(--radius); }
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.credential-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.credential-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy-950); }
.credential-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } .credentials-grid { grid-template-columns: 1fr; } }
