:root {
  --primary: #28517e;
  --accent: #f57f3b;
  --secondary: #96b790;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

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

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

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

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

img { max-width: 100%; height: auto; display: block; }

/* ─── Site Header ─────────────────────────────── */

.site-header {
  background: var(--primary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header__logo span.mark {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.site-header__nav a:hover { color: #fff; }

.site-header__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.15s !important;
}

.site-header__cta:hover { background: #e06d28 !important; }

/* ─── Blog Index ──────────────────────────────── */

.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1d3d60 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.blog-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.blog-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}

.blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(40,81,126,0.12);
  transform: translateY(-2px);
}

.post-card__image-placeholder {
  background: linear-gradient(135deg, #e8eef5 0%, #d4e0ec 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-card__image-placeholder::after {
  content: 'Image coming';
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__tag {
  display: inline-block;
  background: #eef4f0;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.post-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card__link::after { content: '→'; }

/* ─── Single Post ─────────────────────────────── */

.post-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.post-hero__image-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.post-hero__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-hero__image-placeholder {
  background: linear-gradient(135deg, #dce8f2 0%, #c8d9ea 100%);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.post-hero__image-placeholder p {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-hero__image-placeholder svg {
  color: #b0c4d8;
}

.post-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.post-header__tag {
  display: inline-block;
  background: #eef4f0;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.post-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.post-header__meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-header__meta span::before {
  content: '·';
  margin-right: 1rem;
}

.post-header__meta span:first-child::before { content: none; }

/* ─── Post Body ───────────────────────────────── */

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.post-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #2a2a2a;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-body li {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
  color: #2a2a2a;
}

.post-body strong { font-weight: 600; color: var(--text); }

.post-body .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #3a3a3a;
  margin-bottom: 2rem;
  font-style: italic;
}

.post-body .callout {
  background: linear-gradient(135deg, #eef4f8 0%, #e8f0f8 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.post-body .callout p {
  margin-bottom: 0;
  font-size: 1rem;
  font-style: italic;
}

.post-body .stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat-item__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── In-body Image ───────────────────────────── */

.post-body .inline-image-placeholder {
  background: linear-gradient(135deg, #e8eef5 0%, #d4e0ec 100%);
  border-radius: 10px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.post-body .inline-image-placeholder p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── CTA Block ───────────────────────────────── */

.post-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1d3d60 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0 1rem;
  color: #fff;
}

.post-cta__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-cta__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-cta__body {
  font-size: 0.975rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.post-cta__button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.post-cta__button:hover { background: #e06d28; text-decoration: none; }

.post-cta__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1rem;
}

/* ─── Related Posts ───────────────────────────── */

.related-posts {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.related-posts__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-list a {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.4;
}

/* ─── Site Footer ─────────────────────────────── */

.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer__tagline {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.site-footer__address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.site-footer__disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── Breadcrumb ──────────────────────────────── */

.breadcrumb {
  max-width: 740px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 640px) {
  .site-header__nav { display: none; }
  .blog-index__grid { grid-template-columns: 1fr; }
  .post-body .stat-block { grid-template-columns: 1fr 1fr; }
  .post-cta { padding: 2rem 1.5rem; }
}

/* ─── Internal Link Highlighting ─────────────────── */

a.ilink {
  color: var(--primary);
  background: rgba(245, 127, 59, 0.10);
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.15s;
}

a.ilink:hover {
  background: rgba(245, 127, 59, 0.22);
  text-decoration: none;
  color: var(--primary);
}

/* Tooltip showing the destination URL */
a.ilink::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.6;
  font-weight: 400;
}

/* ─── v2: remove arrow, cleaner highlight ──────── */
a.ilink::after { content: none; }

/* ─── CTA block overrides (post-body rules bleed in) ── */
.post-body .post-cta { color: #fff; }

.post-body .post-cta__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-body .post-cta h2,
.post-body .post-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.post-body .post-cta p,
.post-body .post-cta__body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0 auto 1.75rem;
  max-width: 480px;
}

.post-body .post-cta__sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ─── Related posts — cleaner cards ──────────────── */
.related-posts {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--border);
}

.related-posts__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-list li {
  border-bottom: 1px solid var(--border);
}

.related-list li:first-child {
  border-top: 1px solid var(--border);
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.related-list a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.related-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

.related-list a:hover::after {
  transform: translateX(4px);
}

/* ─── CTA link overrides ─────────────────────────── */
.post-body .post-cta a {
  color: #fff;
  border-bottom: none;
  background: none;
}

.post-body .post-cta a.post-cta__button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: none;
  transition: background 0.15s;
}

.post-body .post-cta a.post-cta__button:hover {
  background: #e06d28;
  color: #fff;
  text-decoration: none;
}

.post-body .post-cta a.post-cta__button::after,
.post-body .post-cta a::after {
  content: none;
}
