/* =============================================================
   TheCostOfLiving.com.au — Stylesheet
   Design: Clean editorial, Australian green/gold accent palette
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ============================================================= */

/* ---- Reset & Variables ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1a6b3a;
  --green-dark:  #104727;
  --green-light: #e8f5ee;
  --gold:        #c8922a;
  --gold-light:  #fdf3e3;
  --text:        #1c1c1e;
  --text-light:  #5a5a6a;
  --border:      #e0e0e8;
  --bg:          #fafaf8;
  --white:       #ffffff;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.10);
  --max-w:       1180px;
  --transition:  0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* ---- Utility ---------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,107,58,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}
.btn-cta {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  font-size: 1rem;
  padding: 14px 32px;
}
.btn-cta:hover {
  background: #a87420;
  border-color: #a87420;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,0.32);
}
.btn--full { width: 100%; display: block; }

/* ---- Category Badges -------------------------------------- */
.cat-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid rgba(26,107,58,0.18);
  transition: all var(--transition);
}
.cat-badge:hover {
  background: var(--green);
  color: var(--white);
}
.cat-badge--large {
  font-size: 0.85rem;
  padding: 5px 16px;
}

/* ---- Header ----------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Logo */
.site-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.1;
}
.logo-text strong { font-weight: 700; color: var(--green-dark); }
.logo-au { font-size: 0.78rem; color: var(--text-light); }

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
}
.site-nav a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--green);
  z-index: 99;
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  transition: transform 0.22s ease;
}
.nav-open .mobile-nav {
  display: block;
  transform: translateY(0);
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.mobile-nav nav a {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.mobile-nav nav a:hover {
  border-left-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

/* ---- Hero ------------------------------------------------- */
.hero {
  background-color: var(--green-dark);
  background-image: linear-gradient(135deg, rgba(16,71,39,0.92) 0%, rgba(26,107,58,0.88) 100%), url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 72px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 440px;
}
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* Hero card */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}
.hero-card-title a { color: var(--text); }
.hero-card-title a:hover { color: var(--green); }
.hero-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ---- Category Strip --------------------------------------- */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ---- Section Guides --------------------------------------- */
.section-guides, .section-all {
  padding: 60px 0;
}
.section-header {
  margin-bottom: 36px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 6px;
}
.section-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- Article Grid ----------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.article-grid--category {
  grid-template-columns: 1fr;
  gap: 20px;
}
.article-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Article Card ----------------------------------------- */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card--compact {
  padding: 16px 20px;
  gap: 6px;
  border-radius: var(--radius);
}
.article-card--full {
  padding: 28px 32px;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-card-meta time {
  font-size: 0.78rem;
  color: var(--text-light);
}
.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}
.article-card-title a { color: var(--text); }
.article-card-title a:hover { color: var(--green); }
.article-card-title--sm { font-size: 0.95rem; }
.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}
.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
}
.read-more:hover { color: var(--green-dark); }

/* ---- CTA Banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-light) 0%, #fef9ef 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 48px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 10px;
}
.cta-text p {
  color: var(--text-light);
  max-width: 560px;
  font-size: 0.95rem;
}

/* ---- Article Hero ----------------------------------------- */
.article-hero {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.article-hero-inner { max-width: 760px; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--text-light); }
.article-breadcrumb a:hover { color: var(--green); }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--text);
  margin: 14px 0 16px;
}
.article-excerpt {
  font-size: 1.08rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.meta-dot { color: var(--border); }

/* ---- Article Layout --------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 60px;
  align-items: start;
}

/* Article Body */
.article-body { min-width: 0; }

.inline-cta {
  background: var(--green-light);
  border: 1px solid rgba(26,107,58,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.inline-cta-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.inline-cta-icon { font-size: 1.4rem; flex-shrink: 0; }
.inline-cta strong { font-size: 0.95rem; display: block; margin-bottom: 3px; color: var(--green-dark); }
.inline-cta p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* Article Content Typography */
.article-content { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--green-dark);
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li { margin-bottom: 7px; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(26,107,58,0.3);
  text-underline-offset: 3px;
  transition: all var(--transition);
}
.article-content a:hover {
  color: var(--green-dark);
  text-decoration-color: var(--green-dark);
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.article-content thead th {
  background: var(--green);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.article-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) td { background: var(--bg); }
.article-content tbody tr:last-child td { border-bottom: none; }
.article-content tbody td:last-child { font-weight: 500; }

/* Blockquote */
.article-content blockquote {
  margin: 24px 0;
  padding: 16px 20px 16px 24px;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Article bottom CTA */
.article-cta-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0 24px;
}
.article-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.article-cta-box p {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 20px;
}
.article-cta-box .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.article-cta-box .btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--green-dark);
  box-shadow: none;
}

.article-footer-row {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---- Sidebar ---------------------------------------------- */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* TOC */
.toc-list ul { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block;
  padding: 7px 0;
  font-size: 0.86rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.toc-list a:hover { color: var(--green); }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--green-light);
  border-color: rgba(26,107,58,0.2);
  text-align: center;
}
.sidebar-cta-icon { font-size: 2rem; margin-bottom: 8px; }
.sidebar-cta h4 {
  font-size: 1rem;
  color: var(--green-dark);
  border: none;
  padding: 0;
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Sidebar links */
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: 8px 0;
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-links a:hover { color: var(--green); }

/* ---- Related Section -------------------------------------- */
.related-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.related-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 28px;
}

/* ---- Category Hero ---------------------------------------- */
.category-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.category-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin: 12px 0 14px;
}
.category-description {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 16px;
}
.category-count {
  font-size: 0.82rem;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
}

/* ---- Other Categories Section ----------------------------- */
.other-categories {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.other-categories h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* ---- Empty / Error States --------------------------------- */
.empty-state, .error-page {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-state p, .error-page p { margin-bottom: 20px; }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo { margin-bottom: 12px; }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand .logo-text, .footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-au { color: rgba(255,255,255,0.55); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 240px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-disclaimer { max-width: 780px; line-height: 1.5; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 520px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .article-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; transform: translateY(-100%); }
  .nav-open .mobile-nav { transform: translateY(0); }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-grid--3 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 40px; }
  .article-content table { font-size: 0.82rem; }
  .article-content table td, .article-content table th { padding: 8px 10px; }
}

/* Context card shown after selecting a category */
.calc-context-card {
  background: var(--green-light);
  border: 1px solid rgba(26,107,58,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.calc-context-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.calc-context-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.calc-context-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* "What to enter" instruction box */
.calc-what-to-enter {
  background: #fffbf0;
  border: 1px solid #e8d88a;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}
.calc-what-label {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: #8a6a00;
}

/* ---- Savings Calculator ----------------------------------- */
.calc-card {
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.calc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.calc-icon { font-size: 1.8rem; flex-shrink: 0; }
.calc-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}
.calc-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.calc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.calc-opt {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.calc-opt:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-1px);
}
.calc-back {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  display: block;
}
.calc-back:hover { color: var(--green); }
.calc-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.calc-input-row:focus-within { border-color: var(--green); }
.calc-dollar, .calc-unit {
  background: var(--bg);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  border: none;
}
.calc-dollar { border-right: 1px solid var(--border); }
.calc-unit   { border-left: 1px solid var(--border); }
.calc-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-sans);
  background: var(--white);
  min-width: 0;
}
.calc-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-style: italic;
}
.calc-go {
  width: 100%;
  display: block;
  text-align: center;
}
.calc-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Result */
.calc-result-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--white);
}
.calc-result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 8px;
}
.calc-result-amount {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}
.calc-result-how {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.5;
}
.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ---- Static Pages (About, Disclaimer) --------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 48px 0 40px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 48px;
  padding-bottom: 60px;
}
.page-body {
  max-width: 780px;
}
.page-body h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}
.page-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 24px 0 8px;
}
.page-body p {
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text);
}
.page-body ul, .page-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.page-body li {
  margin-bottom: 7px;
  line-height: 1.65;
}
.page-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-body a:hover { color: var(--green-dark); }
.page-body em {
  color: var(--text-light);
  font-size: 0.88rem;
}
.page-body code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
}
.about-cta-box {
  background: var(--green-light);
  border: 1px solid rgba(26,107,58,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 36px;
}
.about-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.about-cta-box ul {
  list-style: none;
  padding: 0;
}
.about-cta-box li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(26,107,58,0.12);
}
.about-cta-box li:last-child { border-bottom: none; }

/* ---- Article Hero Image ----------------------------------- */
.article-hero-image {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ---- Article Card Image ----------------------------------- */
.article-card-image {
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: -24px -24px 16px -24px;
}
.article-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.article-card:hover .article-card-image img {
  transform: scale(1.03);
}
.article-card-image--wide img {
  height: 260px;
}

/* ---- Hero Card Image -------------------------------------- */
.hero-card-image {
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: -32px -32px 20px -32px;
}
.hero-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.hero-card:hover .hero-card-image img {
  transform: scale(1.02);
}

/* ---- Print ------------------------------------------------- */
@media print {
  .site-header, .site-footer, .article-sidebar, .inline-cta, .article-cta-box, .cta-banner { display: none; }
  .article-layout { grid-template-columns: 1fr; }
}
