/* ================================================================
   pages.css — Styles for root/index/author pages
   Extracted from inline <style> blocks to improve content-to-code ratio
   ================================================================ */

/* ===== Shared: Skip Navigation ===== */
.skip-nav{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;z-index:9999}
.skip-nav:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;padding:10px 20px;background:#081124;color:#fff;border-radius:8px;font-size:14px;text-decoration:none;z-index:9999}

/* ===== Shared: Print Styles ===== */
@media print {
  header, footer, .cookie-consent, #cookie-consent, .share-buttons, .sidebar,
  .breadcrumb-nav, .skip-nav, .freshness-badge, .author-byline, nav,
  .toc-container, .financial-disclaimer, button, .ad-container, .cat-nav,
  .filter-bar, .sort-bar, .search-wrap, .search-results-count, .no-results,
  .blog-index-hero { display: none !important; }
  body { padding: 0; background: #fff; color: #000; font-size: 12pt; }
  .wrap, main, .content-box { max-width: 100%; margin: 0; padding: 0; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  h1, h2, h3 { page-break-after: avoid; }
  .faq-a { max-height: none !important; overflow: visible !important; padding-bottom: 12px !important; }
  .faq-q .icon { display: none !important; }
  .calc-card, .blog-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .blog-grid { display: block; }
  .blog-card { margin-bottom: 16px; border: 1px solid #ccc; }
  .life-stage { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ===== Shared: Base Layout (faq, blog index, calc index, author pages) ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(161,139,250,0.07), transparent 80%),
    radial-gradient(700px 300px at 90% 90%, rgba(102,217,255,0.06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  padding: 28px;
}
.wrap { max-width: 1200px; margin: 0 auto; }

/* ===== Shared: Header & Navigation ===== */
header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 26px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: white; font-weight: 700; font-size: 18px; box-shadow: var(--shadow-1); flex: 0 0 56px; }
.brand h1 { font-size: 18px; margin: 0; }
.brand .tag { font-size: 13px; color: var(--muted); margin-top: 2px; }
nav.top-nav { display: flex; gap: 12px; align-items: center; }
nav.top-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 600; transition: color 0.2s, background 0.2s; }
nav.top-nav a:hover { color: var(--text); background: var(--glass); }
.btn-primary { background: var(--accent); background-image: var(--rainbow-grad); color: white; padding: 10px 14px; border-radius: 12px; border: 0; font-weight: 700; box-shadow: 0 8px 30px rgba(12,18,32,0.12); text-decoration: none; display: inline-block; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(161,139,250,0.35); }
.btn-primary:active { transform: translateY(1px); }

/* ===== Shared: Footer ===== */
footer.site-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .footer-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ================================================================
   CALCULATOR INDEX — calculators/index.html
   ================================================================ */
.hero-index {
  text-align: center;
  padding: 48px 20px 40px;
  margin-bottom: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  border-top: 4px solid transparent;
  border-image: var(--rainbow-grad) 1;
}
.hero-index h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 12px;
  background: var(--rainbow-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-index p { margin: 0 auto 24px; max-width: 640px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.hero-index .calc-count {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.search-wrap { max-width: 520px; margin: 0 auto; position: relative; }
.search-wrap input {
  width: 100%; padding: 14px 20px 14px 48px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: 1rem; background: var(--bg); color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus { border-color: #a18bfa; box-shadow: 0 0 0 3px rgba(161,139,250,0.15); }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results-count { text-align: center; margin-top: 10px; font-size: 0.88rem; color: var(--muted); display: none; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 36px; }
.cat-nav a {
  padding: 7px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  text-decoration: none; color: var(--muted); background: var(--glass);
  border: 1px solid var(--border); transition: all 0.2s; white-space: nowrap;
}
.cat-nav a:hover, .cat-nav a:focus {
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1); border-color: rgba(161,139,250,0.3);
}

.cat-section { margin-bottom: 40px; }
.cat-section h3 { font-size: 1.25rem; margin: 0 0 6px; scroll-margin-top: 20px; }
.cat-section .cat-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; line-height: 1.5; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.calc-card {
  display: block; background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-1); text-decoration: none;
  color: var(--text); transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid transparent; border-image: var(--rainbow-grad) 1;
}
.calc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.calc-card h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.calc-card p {
  margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.calc-card .card-arrow { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: #a18bfa; }

.no-results { display: none; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 1.05rem; }

/* ================================================================
   BLOG INDEX — blog/index.html
   ================================================================ */
.blog-index-hero {
  background: var(--accent); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center; color: #fff;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.blog-index-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--rainbow-grad); opacity: 0.15; pointer-events: none;
}
.blog-index-hero h2 { font-size: 2.4rem; margin: 0 0 12px; position: relative; z-index: 1; }
.blog-index-hero p {
  font-size: 1.1rem; margin: 0 auto; opacity: 0.92;
  max-width: 640px; position: relative; z-index: 1;
}

.breadcrumb-nav { font-size: 0.85rem; margin-bottom: 20px; padding: 8px 0; }
.breadcrumb-nav a { color: var(--muted); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .sep { color: var(--muted); margin: 0 6px; }
.breadcrumb-nav .current { color: var(--text); font-weight: 500; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.filter-btn {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); color: var(--text); font-size: 0.88rem;
  font-weight: 500; cursor: pointer; transition: all 0.25s;
}
.filter-btn:hover { border-color: #a18bfa; color: #a18bfa; }
.filter-btn.active { background: var(--accent); color: #fff; border-color: transparent; }
.sort-bar { display: flex; align-items: center; gap: 6px; }
.sort-btn {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--muted); font-size: 0.82rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.sort-btn:hover { border-color: #a18bfa; color: #a18bfa; }
.sort-btn.active { background: var(--accent); color: #fff; border-color: transparent; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media(max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rainbow-grad); opacity: 0; transition: opacity 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.blog-card:hover::before { opacity: 1; }

.card-category {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  font-size: 0.78rem; font-weight: 600;
  background: linear-gradient(135deg, rgba(123,228,149,0.15), rgba(102,217,255,0.15));
  color: #1a8a5a; width: fit-content;
}
.card-category[data-cat="Investing"] { background: linear-gradient(135deg, rgba(102,217,255,0.15), rgba(161,139,250,0.15)); color: #3b6fc2; }
.card-category[data-cat="Retirement"] { background: linear-gradient(135deg, rgba(161,139,250,0.15), rgba(255,95,109,0.15)); color: #7c5cbf; }
.card-category[data-cat="Tax"] { background: linear-gradient(135deg, rgba(255,195,113,0.15), rgba(255,214,107,0.15)); color: #b8860b; }
.card-category[data-cat="Credit"] { background: linear-gradient(135deg, rgba(255,95,109,0.15), rgba(255,195,113,0.15)); color: #c0392b; }
.card-category[data-cat="Debt"] { background: linear-gradient(135deg, rgba(255,95,109,0.2), rgba(161,139,250,0.1)); color: #a93226; }
.card-category[data-cat="Insurance"] { background: linear-gradient(135deg, rgba(102,217,255,0.15), rgba(123,228,149,0.15)); color: #1a7a8a; }
.card-category[data-cat="Savings"] { background: linear-gradient(135deg, rgba(123,228,149,0.2), rgba(255,214,107,0.1)); color: #1a7a3a; }
.card-category[data-cat="Mortgage"] { background: linear-gradient(135deg, rgba(161,139,250,0.15), rgba(102,217,255,0.15)); color: #5b4fc2; }
.card-category[data-cat="Other"] { background: var(--glass); color: var(--muted); }

.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.35; color: var(--text); }
.card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.card-date { font-size: 0.8rem; color: var(--muted); }
.card-link {
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  background: var(--rainbow-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.card-link:hover { opacity: 0.8; }

.results-count { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }

/* ================================================================
   FAQ — faq.html
   ================================================================ */
.content-box {
  background: #ffffff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-2); padding: 40px; max-width: 900px; margin: 0 auto;
}
.content-box h1 { margin-top: 0; font-size: 32px; letter-spacing: -0.5px; }

/* FAQ also uses .cat-nav — shared with calc index but with slight variation */
.faq-category { margin-bottom: 36px; }
.faq-category h2 {
  font-size: 22px; margin: 0 0 6px; padding-bottom: 10px;
  border-bottom: 2px solid; border-image: var(--rainbow-grad) 1;
}
.faq-category .cat-desc { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; }

.cat-about { background: rgba(161,139,250,0.04); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.cat-calculators { background: rgba(102,217,255,0.04); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.cat-planning { background: rgba(123,228,149,0.04); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.cat-privacy { background: rgba(255,95,109,0.04); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.cat-content { background: rgba(255,195,113,0.04); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  color: var(--text); background: none; border: none; width: 100%;
  text-align: left; line-height: 1.5; gap: 12px;
}
.faq-q:hover { color: #2563eb; }
.faq-q .icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--glass); display: grid; place-items: center;
  font-size: 1.1rem; transition: transform 0.25s ease; color: var(--muted);
}
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--text); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0;
}
.faq-a.open { max-height: 600px; padding: 0 0 18px 0; }
.faq-a p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: #2563eb; text-decoration: none; font-weight: 500; }
.faq-a a:hover { text-decoration: underline; }

/* ================================================================
   RESOURCES — resources.html (uses own design system)
   ================================================================ */
/* Resources page has its own layout/colors — scoped to body.resources-page
   or can just coexist since selectors are unique */

/* Resources: Header */
.site-header {
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.site-logo { font-size: 1.6rem; font-weight: 800; text-decoration: none; color: #fff; letter-spacing: -0.5px; }
.site-logo span { opacity: 0.85; font-weight: 400; }
.main-nav ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.9); text-decoration: none; padding: 8px 16px;
  border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.2); color: #fff; }

/* Resources: Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; font-size: 0.9rem; }
.breadcrumb a { color: #667eea; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #718096; }

/* Resources: Hero */
.page-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #fff; padding: 60px 24px; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; opacity: 0.92; }

/* Resources: Main Content */
.main-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; }

/* Resources: Life Stage Cards */
.life-stage {
  background: #fff; border-radius: 16px; padding: 40px; margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); border-left: 6px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.life-stage:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.stage-starting { border-left-color: #48bb78; }
.stage-building { border-left-color: #667eea; }
.stage-purchases { border-left-color: #f5576c; }
.stage-retirement { border-left-color: #fda085; }

.life-stage .stage-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.stage-starting .stage-badge { background: #c6f6d5; color: #276749; }
.stage-building .stage-badge { background: #e2e8f0; color: #434190; }
.stage-purchases .stage-badge { background: #fed7d7; color: #9b2c2c; }
.stage-retirement .stage-badge { background: #feebc8; color: #9c4221; }

.life-stage h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 16px; color: #1a202c; }
.life-stage .stage-intro { font-size: 1.05rem; color: #4a5568; margin-bottom: 28px; line-height: 1.8; }

.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resource-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: #2d3748; display: flex; align-items: center; gap: 8px; }
.resource-section h3 .icon { font-size: 1.3rem; }
.resource-section ul { list-style: none; padding: 0; }
.resource-section ul li { margin-bottom: 8px; }
.resource-section ul li a {
  color: #667eea; text-decoration: none; font-weight: 500;
  padding: 6px 0; display: inline-block; transition: color 0.2s;
}
.resource-section ul li a:hover { color: #764ba2; text-decoration: underline; }
.resource-section ul li a::before { content: "\2192\00a0"; opacity: 0.5; }

/* Resources: Roadmap / Checklist */
.roadmap-section {
  background: linear-gradient(135deg, rgba(102,126,234,0.03), rgba(118,75,162,0.06));
  border: 2px solid rgba(102,126,234,0.13); border-radius: 16px; padding: 40px; margin-top: 20px;
}
.roadmap-section h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; color: #1a202c; }
.roadmap-section > p { color: #4a5568; margin-bottom: 28px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checklist-group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #2d3748; }
.checklist-group ul { list-style: none; padding: 0; }
.checklist-group ul li { padding: 6px 0 6px 28px; position: relative; font-size: 0.95rem; color: #4a5568; }
.checklist-group ul li::before { content: "\2610"; position: absolute; left: 0; font-size: 1.1rem; color: #667eea; }

/* Resources: Footer */
.site-footer {
  background: #1a202c; color: #a0aec0; padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #a0aec0; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid #2d3748; text-align: center; font-size: 0.85rem; color: #718096;
}

/* Resources: Cookie Consent */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; background: #1a202c;
  color: #e2e8f0; padding: 16px 24px; display: flex; align-items: center;
  justify-content: center; gap: 20px; z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2); font-size: 0.9rem;
}
.cookie-consent.hidden { display: none; }
.cookie-consent a { color: #90cdf4; }
.cookie-btn {
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff;
  border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.9; }

/* ================================================================
   AUTHOR PROFILES — about/sarah-mitchell, david-chen, michael-torres
   ================================================================ */
.author-hero {
  border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
  margin-bottom: 32px; border: 1px solid var(--border); position: relative; overflow: hidden;
}
.author-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--rainbow-grad);
}
.author-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 36px; margin: 0 auto 20px;
}
.author-name { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.5px; }
.author-title { font-size: 16px; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.author-credentials {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}

.profile-content {
  background: #ffffff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-2);
  padding: 40px; max-width: 900px; margin: 0 auto 32px;
}
.profile-content h2 { font-size: 22px; margin: 32px 0 16px; color: var(--text); letter-spacing: -0.3px; }
.profile-content h2:first-child { margin-top: 0; }
.profile-content p { color: var(--muted); line-height: 1.7; font-size: 16px; margin-bottom: 16px; }
.profile-content ul, .profile-content ol { margin: 0 0 16px; padding-left: 28px; }
.profile-content li { margin-bottom: 8px; line-height: 1.7; color: var(--muted); }
.profile-content a { color: #2563eb; text-decoration: none; font-weight: 500; }
.profile-content a:hover { text-decoration: underline; }

.expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.expertise-tag {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: var(--text); border: 1px solid var(--border);
}

.articles-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.article-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, #f8faff);
  text-decoration: none; color: inherit; transition: all 0.24s ease;
}
.article-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12,18,32,0.08); }
.article-link .article-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--rainbow-6); }
.article-link .article-title { font-size: 15px; font-weight: 600; color: var(--text); margin: 2px 0 0; }

.verify-section {
  padding: 20px; border-radius: 8px; margin: 24px 0;
}
.verify-section a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2563eb; font-weight: 600; text-decoration: none;
}
.verify-section a:hover { text-decoration: underline; }

/* Per-author color overrides — use body class or page-specific data attributes */
/* Sarah Mitchell (CFP) — warm pink/purple */
body[data-author="sarah-mitchell"] .author-hero { background: linear-gradient(135deg, rgba(255,95,109,0.08), rgba(161,139,250,0.08)); }
body[data-author="sarah-mitchell"] .author-avatar { background: linear-gradient(135deg, #ff5f6d, #a18bfa); box-shadow: 0 8px 30px rgba(255,95,109,0.25); }
body[data-author="sarah-mitchell"] .author-credentials { background: linear-gradient(135deg, #7be495, #66d9ff); color: #081124; }
body[data-author="sarah-mitchell"] .expertise-tag { background: linear-gradient(135deg, rgba(255,95,109,0.08), rgba(161,139,250,0.08)); }
body[data-author="sarah-mitchell"] .verify-section { background: linear-gradient(135deg, rgba(123,228,149,0.1), rgba(102,217,255,0.1)); border-left: 4px solid var(--rainbow-4); }

/* David Chen (CPA) — cool cyan/green */
body[data-author="david-chen"] .author-hero { background: linear-gradient(135deg, rgba(102,217,255,0.08), rgba(123,228,149,0.08)); }
body[data-author="david-chen"] .author-avatar { background: linear-gradient(135deg, #66d9ff, #7be495); box-shadow: 0 8px 30px rgba(102,217,255,0.25); }
body[data-author="david-chen"] .author-credentials { background: linear-gradient(135deg, #66d9ff, #a18bfa); }
body[data-author="david-chen"] .expertise-tag { background: linear-gradient(135deg, rgba(102,217,255,0.1), rgba(123,228,149,0.1)); }
body[data-author="david-chen"] .verify-section { background: linear-gradient(135deg, rgba(123,228,149,0.1), rgba(102,217,255,0.1)); border-left: 4px solid var(--rainbow-5); }

/* Michael Torres (CFA) — warm orange/red */
body[data-author="michael-torres"] .author-hero { background: linear-gradient(135deg, rgba(255,195,113,0.08), rgba(255,95,109,0.08)); }
body[data-author="michael-torres"] .author-avatar { background: linear-gradient(135deg, #ffc371, #ff5f6d); box-shadow: 0 8px 30px rgba(255,195,113,0.25); }
body[data-author="michael-torres"] .author-credentials { background: linear-gradient(135deg, #ffc371, #ff5f6d); }
body[data-author="michael-torres"] .expertise-tag { background: linear-gradient(135deg, rgba(255,195,113,0.1), rgba(255,95,109,0.1)); }
body[data-author="michael-torres"] .verify-section { background: linear-gradient(135deg, rgba(255,195,113,0.1), rgba(255,95,109,0.1)); border-left: 4px solid var(--rainbow-2); }

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media(max-width: 768px) {
  body { padding: 16px; }
  header.site-header { flex-direction: column; align-items: flex-start; }
  nav.top-nav { flex-wrap: wrap; gap: 6px; }
  .calc-grid { grid-template-columns: 1fr; }
  .hero-index { padding: 32px 16px 28px; }
  .blog-index-hero { padding: 36px 20px; }
  .blog-index-hero h2 { font-size: 1.6rem; }
  .author-hero { padding: 32px 20px; }
  .author-name { font-size: 26px; }
  .profile-content { padding: 24px; }
  .content-box { padding: 20px; }
  .cat-about, .cat-calculators, .cat-planning, .cat-privacy, .cat-content { padding: 16px; }
  .logo { width: 48px; height: 48px; }
  .header-inner { flex-direction: column; gap: 12px; }
  .main-nav ul { justify-content: center; }
  .page-hero h1 { font-size: 1.8rem; }
  .life-stage { padding: 24px; }
  .resources-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .cookie-consent { flex-direction: column; text-align: center; }
}

@media(max-width: 700px) {
  nav.top-nav a:not(.btn-primary) { display: none; }
}
