/* Kelly WM blog — shared styles. Matches the main site design system. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fafaf7; --surface: #f1ede5; --surface-2: #e6e1d5;
  --green: #1f9023; --green-light: #eaf6ea; --green-dark: #155f17;
  --navy: #0d1c36; --navy-soft: #1a2c4d;
  --text: #0d1c36; --muted: #5b6478; --muted-2: #8a92a3;
  --border: rgba(13,28,54,0.08); --border-strong: rgba(13,28,54,0.16);
  --serif: 'Plus Jakarta Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }
.wrap { max-width: 760px; margin: 0 auto; }

/* NAV */
.bnav { position: sticky; top: 0; z-index: 100; background: rgba(250,250,247,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 14px 0; }
.bnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bnav-logo { height: 38px; }
.bnav-links { display: flex; gap: 22px; align-items: center; }
.bnav-links a { color: var(--muted); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 14px; transition: color .2s; }
.bnav-links a:hover { color: var(--navy); }
.bnav-cta { background: var(--navy) !important; color: #fff !important; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 100px; transition: all .25s; }
.bnav-cta:hover { background: var(--green) !important; }
@media (max-width: 560px) { .bnav-links a.hide-sm { display: none; } }

/* breadcrumbs */
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* BLOG INDEX */
.blog-head { padding: 64px 0 24px; text-align: center; }
.blog-head .kicker { font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.blog-head h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 14px; }
.blog-head p { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 36px 0 80px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; text-decoration: none; transition: all .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13,28,54,.08); border-color: rgba(31,144,35,.3); background: var(--bg); }
.post-cat { font-family: var(--serif); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.post-card h2 { font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.28; margin-bottom: 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.post-meta { font-size: 12.5px; color: var(--muted-2); font-family: var(--serif); font-weight: 600; }

/* ARTICLE */
.article { padding: 48px 0 8px; }
.article-head { max-width: 760px; margin: 0 auto; text-align: center; }
.article-cat { font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: var(--green-light); border: 1px solid rgba(31,144,35,0.2); border-radius: 100px; padding: 6px 14px; display: inline-block; margin-bottom: 20px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--navy); margin-bottom: 20px; }
.article-byline { display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 14px; color: var(--muted); font-family: var(--serif); font-weight: 600; flex-wrap: wrap; }
.article-byline .sep { color: var(--muted-2); }

.prose { max-width: 720px; margin: 44px auto 0; font-size: 18px; line-height: 1.78; color: #232c3e; }
.prose > p:first-of-type { font-size: 20px; color: var(--navy); }
.prose h2 { font-family: var(--serif); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 46px 0 16px; line-height: 1.2; }
.prose h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 26px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31,144,35,.4); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--green); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--green); padding: 4px 0 4px 22px; margin: 26px 0; font-size: 21px; font-style: italic; color: var(--navy); }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: .82em; background: var(--surface); padding: 2px 6px; border-radius: 5px; color: var(--navy-soft); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.key-takeaway { background: var(--green-light); border: 1px solid rgba(31,144,35,.25); border-radius: 16px; padding: 22px 26px; margin: 32px 0; font-size: 16px; color: var(--navy); }
.key-takeaway b { color: var(--green-dark); }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; margin: 26px 0 30px; font-size: 15.5px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 14px; }
.cmp thead th:first-child { background: var(--navy-soft); }
.cmp tbody td:first-child { font-family: var(--serif); font-weight: 700; color: var(--navy); background: var(--surface); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:nth-child(even) td:not(:first-child) { background: rgba(13,28,54,0.02); }
@media (max-width: 600px) { .cmp { font-size: 13.5px; } .cmp th, .cmp td { padding: 9px 11px; } }

/* author box */
.author-box { max-width: 720px; margin: 52px auto 0; display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; }
.author-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.author-name { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 16px; }
.author-bio { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* related */
.related { max-width: 720px; margin: 52px auto 0; }
.related h3 { font-family: var(--serif); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.related-links { display: flex; flex-direction: column; gap: 10px; }
.related-links a { color: var(--green-dark); font-weight: 600; text-decoration: none; font-family: var(--serif); font-size: 15.5px; }
.related-links a:hover { text-decoration: underline; }

/* CTA */
.blog-cta { max-width: 900px; margin: 64px auto; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); border-radius: 24px; padding: 48px 40px; text-align: center; color: #fff; }
.blog-cta h2 { font-family: var(--serif); font-size: 28px; font-weight: 800; margin-bottom: 12px; color: #fff; letter-spacing: -.02em; }
.blog-cta p { color: rgba(255,255,255,.72); margin: 0 auto 24px; max-width: 500px; }
.blog-cta a { background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px; padding: 14px 30px; border-radius: 100px; text-decoration: none; display: inline-block; transition: all .25s; }
.blog-cta a:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* footer */
.bfoot { background: var(--navy); color: rgba(255,255,255,.55); padding: 48px 0 28px; font-size: 14px; }
.bfoot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.bfoot a { color: rgba(255,255,255,.55); text-decoration: none; }
.bfoot a:hover { color: #6adf6c; }
.bfoot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* TL;DR / quick answer */
.tldr { max-width: 720px; margin: 36px auto 0; background: var(--green-light); border: 1px solid rgba(31,144,35,.25); border-left: 4px solid var(--green); border-radius: 14px; padding: 20px 24px; }
.tldr-label { font-family: var(--serif); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); display: block; margin-bottom: 8px; }
.tldr p { font-size: 16.5px; line-height: 1.65; color: var(--navy); margin: 0; }
/* table of contents */
.toc { max-width: 720px; margin: 22px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 24px; }
.toc-label { font-family: var(--serif); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--green-dark); text-decoration: none; font-weight: 600; font-size: 14.5px; font-family: var(--serif); }
.toc a:hover { text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 84px; }
/* FAQ (native details, content always in DOM) */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq details[open] { border-color: rgba(31,144,35,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--serif); font-weight: 700; font-size: 16.5px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--green); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 20px 18px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq .faq-a p { margin: 0; }

/* AUTHOR / PROFILE page */
.profile-head { padding: 56px 0 10px; text-align: center; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 36px; margin: 0 auto 20px; box-shadow: 0 12px 32px rgba(31,144,35,.28); }
.profile-head h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 6px; }
.profile-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.profile-tagline { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 auto; }
.profile-contact { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.profile-contact a { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 10px 20px; transition: all .2s; }
.profile-contact a:hover { background: var(--green-light); border-color: rgba(31,144,35,.35); color: var(--green-dark); }
.profile-contact a.primary { background: var(--green); color: #fff; border-color: var(--green); }
.profile-contact a.primary:hover { background: var(--green-dark); color: #fff; }
.expertise { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin: 0 auto; }
.expertise span { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--navy); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; }
