/* Final blog brand layer. Loaded after specialty post styles. */
:root {
  --navy: #16324F;
  --glacier: #2E6F95;
  --ice: #E9F2F7;
  --ice2: #F5F9FB;
  --gold: #D9982F;
  --text: #22313F;
  --muted: #5B6B7A;
  --line: #D8E4EC;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(22,50,79,.08);
}

.blog-body,
.blog-hub-page {
  background:
    radial-gradient(circle at top right, rgba(46,111,149,.12), transparent 30%),
    linear-gradient(180deg, var(--ice) 0%, var(--ice2) 42%, #fff 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-body .header-snowball,
.blog-hub-page .header-snowball {
  filter: none;
  box-shadow: none;
}

.blog-body a,
.blog-hub-page a {
  color: var(--glacier);
}

.blog-body a:focus-visible,
.blog-hub-page a:focus-visible,
.blog-body button:focus-visible,
.blog-hub-page button:focus-visible {
  outline: 3px solid rgba(217,152,47,.55);
  outline-offset: 3px;
}

.blog-hero,
.blog-hub-hero,
.premium-blog-hub {
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 88% 12%, rgba(46,111,149,.12), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(217,152,47,.11), transparent 26%),
    linear-gradient(135deg, var(--ice) 0%, var(--ice2) 64%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.blog-body h1,
.blog-hub-page h1,
.blog-article-content h1,
.paycheck-article h1,
.student-article h1,
.debt-guide-article h1,
.cashback-article h1,
.practical-article h1 {
  max-width: 720px;
  color: var(--navy) !important;
  font-size: clamp(1.9rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

.blog-body h2,
.blog-hub-page h2,
.guide-heading h2,
.blog-article-content h2,
.paycheck-article h2,
.student-article h2,
.debt-guide-article h2,
.cashback-article h2,
.practical-article h2 {
  color: var(--navy) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.blog-lead {
  color: var(--muted) !important;
  font-size: 1.2rem !important;
  line-height: 1.75 !important;
  background: var(--ice2) !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 12px !important;
}

.blog-kicker,
.blog-pill,
.blog-tag,
.blog-tag.green,
.blog-pill.green {
  background: var(--ice) !important;
  color: var(--glacier) !important;
  border: 1px solid var(--line) !important;
}

.blog-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}

.blog-card,
.blog-card-green,
.blog-card-blue,
.blog-card-purple,
.blog-card-gold,
.blog-card-red,
.blog-feature-card,
.blog-principle-card,
.blog-glass-card,
.blog-feature-panel,
.blog-cta-box,
.blog-sidebar-card,
.blog-article-content,
.blog-footer-cta,
.blog-panel,
.blog-highlight,
.blog-warning,
.blog-insight,
.blog-example,
.blog-source-box,
.guide-callout,
.guide-caution,
.guide-faq,
.article-contents,
.method-box,
.source-card,
.paycheck-example,
.dashboard-example,
.comparison-card {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow) !important;
}

.blog-card,
.blog-card-premium {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.blog-card-premium::before {
  display: none !important;
}

.blog-card:hover,
.blog-card-premium:hover {
  transform: translateY(-2px);
  border-color: var(--glacier) !important;
  box-shadow: 0 8px 24px rgba(22,50,79,.12) !important;
}

.blog-card h3 {
  display: -webkit-box;
  min-height: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.22;
}

.blog-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-primary-btn,
.blog-primary-link,
.blog-feature-card a,
.blog-workbook-cta a {
  border-radius: 8px !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 18px rgba(217,152,47,.18) !important;
}

.blog-secondary-btn,
.blog-secondary-link,
.blog-card a,
.blog-sidebar-card a {
  border: 1px solid var(--glacier) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--glacier) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.blog-body main[class*="layout"] > article,
.blog-body article.paycheck-article,
.blog-body article.student-article,
.blog-body article.debt-guide-article,
.blog-body article.cashback-article,
.blog-body article.practical-article,
.blog-body .practical-article,
.blog-body .student-article,
.blog-body .debt-guide-article,
.blog-body .paycheck-article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.blog-article-layout {
  grid-template-columns: minmax(0, 720px) minmax(240px, 295px) !important;
  justify-content: center;
}

.article-byline {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted) !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase;
}

.article-byline span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: var(--gold);
}

.section-number,
.guide-heading span {
  display: inline-grid !important;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px !important;
  background: var(--glacier) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.blog-highlight,
.blog-warning,
.blog-insight,
.blog-example,
blockquote,
.guide-callout,
.guide-caution {
  border-left: 3px solid var(--gold) !important;
  background: var(--ice2) !important;
}

.date-window-grid,
.assignment-table,
.money-calculation,
.sinking-example,
.week-split {
  max-width: 860px;
  margin: 24px auto;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--ice2) !important;
  box-shadow: var(--shadow) !important;
}

.money-calculation strong,
.assignment-table strong,
.date-window-grid strong,
.sinking-example strong,
.week-split strong {
  color: var(--navy) !important;
}

.money-calculation tr:last-child,
.assignment-table tr:last-child,
.week-split tr:last-child {
  background: rgba(217,152,47,.14) !important;
  color: var(--navy) !important;
  font-weight: 800;
}

.blog-footer {
  border-top: 1px solid var(--line) !important;
  background: var(--card) !important;
  color: var(--muted) !important;
}

.blog-footer::after {
  content: " One paycheck at a time.";
}

@media (max-width: 980px) {
  .blog-article-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .blog-card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .blog-body main[class*="layout"] > article,
  .blog-body article.paycheck-article,
  .blog-body article.student-article,
  .blog-body article.debt-guide-article,
  .blog-body article.cashback-article,
  .blog-body article.practical-article,
  .blog-body .practical-article,
  .blog-body .student-article,
  .blog-body .debt-guide-article,
  .blog-body .paycheck-article {
    max-width: none;
    padding: 20px;
  }
}
