/* ============================================================
   Canada Capital Gains Tax Calculator — Global Stylesheet
   Clean, trustworthy, government-finance aesthetic
   Palette: Deep navy, maple-leaf red, clean white, warm grey
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --navy:       #0a1628;
  --navy-mid:   #132340;
  --maple:      #c8102e;
  --maple-dark: #a00d24;
  --gold:       #d4a843;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --grey-light: #e8ecf0;
  --grey-mid:   #9aa5b4;
  --grey-dark:  #4a5568;
  --text:       #1a2332;
  --success:    #0d7a4e;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg:  0 8px 48px rgba(10,22,40,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

a { color: var(--maple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--maple);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--gold); }

.logo-leaf {
  width: 36px; height: 36px;
  background: var(--maple);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }
.site-nav a.active { color: var(--gold); }

.nav-cta {
  background: var(--maple);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--maple-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a6e 100%);
  padding: 72px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '🍁';
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.04;
  pointer-events: none;
}

.hero-inner { max-width: 1160px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.2);
  border: 1px solid rgba(200,16,46,0.4);
  color: #ff8fa3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 16px;
  max-width: 720px;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat { color: var(--white); }
.hero-stat .num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CALCULATOR CARD ── */
.calc-section {
  padding: 0 24px 64px;
  margin-top: -2px;
  background: var(--off-white);
}

.calc-card {
  max-width: 1100px;
  margin: -40px auto 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-header {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-header h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin: 0;
}
.calc-year-badge {
  background: var(--maple);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.calc-body { padding: 36px; }

/* Asset type tabs */
.asset-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.asset-tab {
  background: var(--off-white);
  border: 2px solid var(--grey-light);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey-dark);
}
.asset-tab .tab-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.asset-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(10,22,40,0.04);
}
.asset-tab.active {
  border-color: var(--maple);
  background: rgba(200,16,46,0.06);
  color: var(--maple);
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
label .required { color: var(--maple); }

.input-wrap { position: relative; }
.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-mid);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}
.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-mid);
  font-size: 0.85rem;
  pointer-events: none;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input[type="number"].has-prefix,
input[type="text"].has-prefix { padding-left: 30px; }
input[type="number"].has-suffix { padding-right: 42px; }

input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}

/* Tooltip */
.tooltip-wrap { position: relative; display: inline-block; margin-left: 6px; }
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grey-light);
  color: var(--grey-dark);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
}
.tooltip-box {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  width: 220px;
  z-index: 10;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.tooltip-wrap:hover .tooltip-box { display: block; }

/* Principal Residence fields */
.pr-fields { display: none; }
.pr-fields.visible { display: contents; }

/* Calculate button */
.btn-calc {
  width: 100%;
  background: var(--maple);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
  margin-top: 8px;
}
.btn-calc:hover {
  background: var(--maple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,16,46,0.4);
}
.btn-calc:active { transform: translateY(0); }

/* Reset link */
.reset-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--grey-mid);
  cursor: pointer;
}
.reset-link:hover { color: var(--maple); text-decoration: underline; }

/* ── RESULTS PANEL ── */
.results-panel {
  border-top: 1px solid var(--grey-light);
  padding: 36px;
  display: none;
  background: linear-gradient(180deg, #f0f4f8 0%, var(--white) 100%);
}
.results-panel.visible { display: block; }

.results-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 24px;
  background: var(--maple);
  border-radius: 2px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.result-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.result-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-mid);
  margin-bottom: 6px;
}
.result-card.highlight .label { color: rgba(255,255,255,0.6); }
.result-card .value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 700;
}
.result-card.highlight .value { color: var(--gold); }
.result-card .sub {
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-top: 4px;
}
.result-card.highlight .sub { color: rgba(255,255,255,0.5); }

/* Breakdown table */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.breakdown-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-dark);
  background: var(--grey-light);
  border-bottom: 2px solid var(--grey-light);
}
.breakdown-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--text);
}
.breakdown-table tr:last-child td { border-bottom: none; }
.breakdown-table .total-row td {
  font-weight: 700;
  color: var(--navy);
  background: rgba(10,22,40,0.03);
  font-size: 1rem;
}
.breakdown-table td.amount { text-align: right; font-weight: 600; }

/* Disclaimer */
.calc-disclaimer {
  background: rgba(212,168,67,0.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--grey-dark);
  margin-top: 8px;
}

/* ── INFO SECTIONS ── */
.section { padding: 72px 24px; }
.section--dark { background: var(--navy); }
.section--alt { background: var(--white); }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--maple);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-intro {
  color: var(--grey-dark);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

/* Three-col feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

/* How It Works steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  height: 2px;
  background: var(--grey-light);
  z-index: 0;
}
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid var(--off-white);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--grey-dark); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-q .arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--grey-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--maple);
  color: var(--white);
}
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--grey-dark);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* Tax Rate Table */
.rates-table-wrap { overflow-x: auto; }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.rates-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rates-table td { padding: 12px 16px; border-bottom: 1px solid var(--grey-light); }
.rates-table tr:nth-child(even) td { background: var(--off-white); }
.rates-table tr:hover td { background: rgba(200,16,46,0.04); }
.rates-table .rate-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}
.rates-table .rate-low { background: #dcfce7; color: #166534; }
.rates-table .rate-mid { background: #fef9c3; color: #854d0e; }
.rates-table .rate-high { background: #fee2e2; color: #991b1b; }

/* ── BLOG SECTION ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
}
.blog-category {
  background: rgba(200,16,46,0.1);
  color: var(--maple);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 0.9rem; color: var(--grey-dark); flex: 1; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--maple);
}
.blog-link::after { content: '→'; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--maple) 0%, var(--maple-dark) 100%);
  padding: 64px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.btn-white {
  background: var(--white);
  color: var(--maple);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--off-white); text-decoration: none; color: var(--maple); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── BLOG POST PAGE ── */
.post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 24px 48px;
}
.post-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.post-breadcrumb a { color: rgba(255,255,255,0.55); }
.post-breadcrumb a:hover { color: var(--gold); }
.post-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; max-width: 820px; }
.post-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  align-items: start;
}

.post-body { font-size: 1.02rem; line-height: 1.8; }
.post-body h2 {
  font-size: 1.6rem;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 3px solid var(--maple);
  display: inline-block;
}
.post-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.post-body p { margin-bottom: 18px; color: var(--grey-dark); }
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--grey-dark);
}
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 4px solid var(--maple);
  padding: 14px 20px;
  background: rgba(200,16,46,0.05);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--grey-dark);
  font-style: italic;
}
.post-body .info-box {
  background: rgba(10,22,40,0.05);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.post-body .info-box h4 { margin-bottom: 10px; font-size: 1rem; }
.placeholder-block {
  background: repeating-linear-gradient(
    90deg,
    var(--grey-light) 0px,
    var(--grey-light) 8px,
    transparent 8px,
    transparent 12px
  );
  height: 18px;
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.5;
}
.placeholder-block.short { width: 65%; }
.placeholder-block.med { width: 80%; }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--grey-light);
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 0.88rem;
  color: var(--grey-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.toc-list a:hover { color: var(--maple); }
.toc-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grey-light);
  color: var(--grey-dark);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sidebar-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.sidebar-cta h4 { color: var(--white); margin-bottom: 10px; }
.sidebar-cta p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 16px; }
.btn-maple {
  display: inline-block;
  background: var(--maple);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-maple:hover { background: var(--maple-dark); text-decoration: none; color: var(--white); }

/* ── BLOG INDEX PAGE ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto; }

/* ── UTILS ── */
.text-maple { color: var(--maple); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .asset-tabs { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .asset-tabs { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .calc-body { padding: 20px; }
  .results-panel { padding: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-banner, .faq-list { display: none; }
  .results-panel { display: block !important; }
}
