/* ─────────────────────────────────────────────────────────────
   TeachSmartHQ™ — Blog shared design system  v1, 2026-05-24
   Used by: Blog Index, Single Post, Category Archive templates.
   Inherits canonical palette + typography from Homepage v2.3 / FAQ /
   About / Credits / Plans / Teams / Schools & Districts / Legal trio.
   ───────────────────────────────────────────────────────────── */

:root {
  --navy: #0B1E3A;
  --navy-soft: rgba(11,30,58,0.62);
  --navy-faint: rgba(11,30,58,0.32);
  --navy-hair: rgba(11,30,58,0.14);
  --cream: #FAF1E2;
  --cream-deep: #F3E6CE;
  --cream-deeper: #ECDBB9;
  --paper: #FCF7EC;
  --orange: #E07A3B;
  --orange-shadow: #C0612A;
  --orange-soft: rgba(224,122,59,0.10);
  --gold: #E8B86A;
  --gold-soft: rgba(232,184,106,0.18);
  --pen: #7A5A36;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ── Post-body vertical rhythm — DEFINED ONCE, applied everywhere ──
     Every block in .post-body spaces off this scale. Do not hand-pick
     margins per element; reach for a token. */
  --flow-tight: 14px;   /* inside grouped items (list rows, callout lines) */
  --flow-base: 22px;    /* paragraph-to-paragraph, the default beat */
  --flow-block: 32px;   /* around figures, callouts, tables, quotes, hr */
  --flow-section: 52px; /* before an h2 — a new section of thought */
  --flow-sub: 36px;     /* before an h3 — a subsection */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; width: 100%; }
.container.narrow { max-width: 1080px; }

/* Summer Bar */
.summer-bar {
  background: linear-gradient(180deg, #F2D9A8 0%, #EFCF94 100%);
  color: var(--navy); padding: 14px 0; font-family: var(--sans); font-size: 15px;
  border-bottom: 1px solid rgba(11,30,58,0.10);
}
.summer-bar .container { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.summer-bar .sun { font-size: 16px; letter-spacing: 0.4px; }
.summer-bar .tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange-shadow); font-weight: 500;
}
.summer-bar strong { font-weight: 600; }
.summer-bar code {
  font-family: var(--mono); font-size: 13px; padding: 2px 8px;
  border-radius: 6px; background: rgba(11,30,58,0.08); letter-spacing: 0.4px;
}
.summer-bar .auto { color: var(--navy-soft); font-style: italic; font-family: var(--serif); font-size: 15px; }
.summer-bar a.cta {
  color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 1.5px solid var(--navy); padding-bottom: 1px;
}
.summer-bar a.cta:hover { color: var(--orange-shadow); border-color: var(--orange-shadow); }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; background: var(--cream); border-bottom: 1px solid var(--navy-hair); }
.breadcrumb .container {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--navy-soft);
}
.breadcrumb a {
  color: var(--navy-soft); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.breadcrumb a:hover { color: var(--orange-shadow); border-bottom-color: var(--orange-shadow); }
.breadcrumb .sep {
  color: var(--navy-faint); font-family: var(--serif); font-style: italic;
  letter-spacing: 0; font-size: 14px;
}
.breadcrumb .current { color: var(--navy); font-weight: 500; }

/* Blog hero strip — used on Index + Archive */
.blog-hero {
  padding: 72px 0 40px;
}
.blog-hero .eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
  margin: 0 0 22px;
}
.blog-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1.0;
  letter-spacing: -1.4px; margin: 0; color: var(--navy);
  text-wrap: pretty; max-width: 880px;
}
.blog-hero h1 em { font-style: italic; color: var(--orange); font-weight: 400; }
.blog-hero .subhead {
  font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.5;
  color: var(--navy-soft); margin: 28px 0 0; max-width: 720px; text-wrap: pretty;
}
.blog-hero .archive-desc {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.5; color: var(--navy-soft);
  margin: 18px 0 0; max-width: 700px; text-wrap: pretty;
}

/* Filter + search row */
.filter-row {
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--navy-hair);
  margin-top: 48px;
}
.cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cat-pill {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--navy-hair);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--navy); font-weight: 500;
  background: var(--paper); text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cat-pill:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.cat-pill.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.cat-pill .count { color: var(--navy-faint); margin-left: 8px; font-weight: 400; }
.cat-pill.active .count { color: rgba(250,241,226,0.55); }
.search {
  position: relative;
}
.search input {
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-radius: 999px;
  padding: 9px 18px 9px 38px;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--navy);
  min-width: 240px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,122,59,0.20);
}
.search::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  border: 1.5px solid var(--navy-faint); border-radius: 50%;
  pointer-events: none;
}
.search::after {
  content: ""; position: absolute; left: 25px; top: 21px;
  width: 6px; height: 1.5px;
  background: var(--navy-faint);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Featured post (pinned above grid) */
.featured-post {
  margin: 40px 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-radius: 18px;
  position: relative;
}
.featured-post::before {
  content: "Pinned";
  position: absolute; top: -10px; left: 28px;
  background: var(--cream); padding: 0 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
}
.featured-post .img {
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(11,30,58,0.06) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 30% 40%, var(--gold-soft) 0%, transparent 55%);
  border: 1px solid var(--navy-hair);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-faint);
}
.featured-post .body { display: flex; flex-direction: column; gap: 12px; }
.featured-post .meta-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.featured-post h2 {
  font-family: var(--serif); font-weight: 500; font-size: 34px;
  line-height: 1.12; letter-spacing: -0.4px;
  margin: 4px 0 0; color: var(--navy); text-wrap: pretty;
}
.featured-post h2 em { font-style: italic; color: var(--orange); }
.featured-post h2 a { color: inherit; text-decoration: none; }
.featured-post h2 a:hover { color: var(--orange-shadow); }
.featured-post .excerpt {
  font-family: var(--serif); font-size: 18px; line-height: 1.5;
  color: var(--navy-soft); margin: 0; text-wrap: pretty;
}
.featured-post .read-on {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy); padding-bottom: 2px;
  align-self: flex-start;
  transition: color .15s ease, border-color .15s ease;
}
.featured-post .read-on:hover { color: var(--orange-shadow); border-color: var(--orange-shadow); }

/* Post grid */
.post-grid {
  padding: 32px 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11,30,58,0.30);
  box-shadow: 0 1px 0 rgba(11,30,58,0.05), 0 20px 40px -28px rgba(11,30,58,0.22);
}
.post-card .img {
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(11,30,58,0.06) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 70% 30%, var(--gold-soft) 0%, transparent 50%);
  border-bottom: 1px solid var(--navy-hair);
  position: relative;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--navy-faint);
}
.post-card.no-img .img::after {
  content: "TeachSmartHQ™";
  font-family: var(--serif); font-style: italic; font-size: 20px;
  letter-spacing: -0.2px; color: var(--navy-faint); text-transform: none;
}
.post-card .body {
  padding: 22px 24px 22px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card .meta-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.post-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  line-height: 1.2; letter-spacing: -0.2px;
  margin: 4px 0 0; color: var(--navy); text-wrap: pretty;
}
.post-card h3 em { font-style: italic; color: var(--orange); }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--orange-shadow); }
.post-card .excerpt {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55;
  color: var(--navy-soft); margin: 0 0 auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  text-wrap: pretty;
}
.post-card .date {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--navy-hair);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--navy-faint);
}

/* Tag / category pill (small, used on cards + post header) */
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 500;
  background: var(--orange-soft); color: var(--orange-shadow);
  border-radius: 999px; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.tag-pill:hover { background: var(--orange); color: var(--cream); }
.tag-pill.gold { background: var(--gold-soft); color: var(--orange-shadow); }
.tag-pill.navy { background: rgba(11,30,58,0.08); color: var(--navy); }

/* Pagination */
.pagination {
  padding: 16px 0 96px;
  display: flex; justify-content: center; align-items: center;
  gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.4px;
}
.pagination a, .pagination span.page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 14px;
  border: 1px solid var(--navy-hair);
  border-radius: 999px;
  background: var(--paper); color: var(--navy);
  text-decoration: none; font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pagination a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.pagination span.current { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.pagination .gap { color: var(--navy-faint); padding: 0 6px; }
.pagination .nav { padding: 0 18px; }

/* ─── Single post layout ─── */
.post { padding: 56px 0 24px; }
.post .container {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 56px;
  align-items: start;
}
.post-main { max-width: 720px; }
.post-header {
  margin-bottom: 36px;
}
.post-header .meta-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 20px;
}
.post-header h1.title {
  font-family: var(--serif); font-weight: 500; font-size: 52px;
  line-height: 1.08; letter-spacing: -0.8px;
  margin: 0; color: var(--navy); text-wrap: pretty;
  max-width: 720px;
}
.post-header h1.title em { font-style: italic; color: var(--orange); font-weight: 500; }

/* Fixed attribution + meta strip — every post inherits this exact layout.
   UN-BYLINED: the publication is the author. Never a personal name. */
.post-header .byline-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--navy-hair);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.post-header .byline {
  display: inline-flex; align-items: center; gap: 11px;
}
.post-header .byline .mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--navy); color: var(--cream);
  border-radius: 8px;
  font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1;
}
.post-header .byline .who {
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  letter-spacing: -0.1px; color: var(--navy); line-height: 1.1;
}
.post-header .byline .who .tm {
  font-size: 9px; vertical-align: super; opacity: 0.7; margin-left: 0.5px;
}
.post-header .byline .role {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--navy-faint); margin-top: 3px;
}
.post-header .byline-meta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--navy-soft);
}
.post-header .byline-meta .sep { color: var(--navy-faint); }
.post-header .byline-meta .when strong {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--navy);
}

/* Featured image (single post) — TWO uniform states, never broken beside
   each other. Base = image container (expects an <img> child).
   Add .no-img for the branded placeholder when a post has no art yet. */
.post-featured-img {
  margin: 0 0 var(--flow-block);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--navy-hair); border-radius: 14px;
  overflow: hidden;
  background: var(--cream-deep);
}
.post-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-featured-img.no-img {
  background-image:
    repeating-linear-gradient(135deg, rgba(11,30,58,0.06) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 42%, var(--gold-soft) 0%, transparent 60%);
  display: grid; place-content: center; justify-items: center; gap: 8px;
  text-align: center;
}
.post-featured-img.no-img .ph-mark {
  font-family: var(--serif); font-style: italic; font-size: 34px;
  letter-spacing: -0.4px; color: var(--navy-faint); line-height: 1;
}
.post-featured-img.no-img .ph-mark .tm { font-size: 13px; vertical-align: super; }
.post-featured-img.no-img .ph-cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-faint);
}

/* Article body — every WP editor element styled on ONE rhythm.
   h1 is owned by .post-header; body headings start at h2. */
.post-body { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--navy); }
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 var(--flow-base); text-wrap: pretty; max-width: 680px; }

/* Lead paragraph — the opening beat. One per post, sets the tone. */
.post-body .lead {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.5; letter-spacing: -0.1px;
  color: var(--navy); max-width: 680px;
  margin: 0 0 var(--flow-base);
}
.post-body .lead strong { font-weight: 600; }
.post-body .lead em { font-style: italic; color: var(--orange); }

.post-body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 32px;
  line-height: 1.15; letter-spacing: -0.4px;
  margin: var(--flow-section) 0 16px; color: var(--navy); text-wrap: pretty;
  scroll-margin-top: 24px;
}
.post-body h2 em { font-style: italic; color: var(--orange); }
.post-body h3 {
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  line-height: 1.2; letter-spacing: -0.3px;
  margin: var(--flow-sub) 0 12px; color: var(--navy); text-wrap: pretty;
  scroll-margin-top: 24px;
}
.post-body h3 em { font-style: italic; color: var(--orange); }
.post-body h4 {
  font-family: var(--serif); font-weight: 500; font-size: 20px;
  line-height: 1.25; letter-spacing: -0.2px;
  margin: 28px 0 10px; color: var(--navy);
}
.post-body h4 em { font-style: italic; color: var(--orange); }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body u { text-underline-offset: 3px; }
.post-body a {
  color: var(--orange-shadow); text-decoration: underline;
  text-decoration-color: rgba(224,122,59,0.40);
  text-underline-offset: 3px; text-decoration-thickness: 1.2px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.post-body a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.post-body ul, .post-body ol { margin: 0 0 var(--flow-base); padding: 0; max-width: 680px; }
.post-body ul { list-style: none; }
.post-body ul li {
  position: relative; padding: 6px 0 6px 24px;
  line-height: 1.7;
}
.post-body ul li::before {
  content: "→"; position: absolute; left: 0; top: 6px;
  color: var(--orange); font-family: var(--serif); font-weight: 500;
}
.post-body ol { padding-left: 26px; }
.post-body ol li { padding: 6px 0 6px 6px; line-height: 1.7; }
.post-body ol li::marker { color: var(--orange); font-family: var(--mono); font-weight: 500; }

/* Nested lists — keep on the same rhythm, quiet the marker one level down */
.post-body li > ul, .post-body li > ol { margin: var(--flow-tight) 0 2px; }
.post-body li > ul { padding-left: 20px; }
.post-body ul ul li::before { content: "–"; color: var(--navy-faint); }
.post-body ul ul ul li::before { content: "·"; }
.post-body li > ol { padding-left: 24px; }
.post-body ol ol li::marker { color: var(--navy-faint); }

.post-body blockquote {
  margin: var(--flow-block) 0;
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--orange);
  font-family: var(--serif); font-style: italic; font-size: 19px;
  line-height: 1.55; color: var(--navy); text-wrap: pretty;
  max-width: 680px;
}
.post-body blockquote p { margin: 0 0 8px; max-width: none; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote cite {
  display: block; margin-top: 12px;
  font-family: var(--mono); font-style: normal;
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--navy-soft);
}

/* Pull quote — THE Caveat moment. One per post, MAX (see CLAUDE.md
   scarcity rule). Handwritten = "a real teacher wrote in the margin." */
.post-body .pullquote {
  margin: var(--flow-section) 0;
  padding-top: 20px;
  position: relative;
  font-family: var(--hand); font-weight: 600;
  font-size: 42px; line-height: 1.18; letter-spacing: 0.3px;
  color: var(--navy); text-wrap: pretty; max-width: 640px;
}
.post-body .pullquote::before {
  content: ""; position: absolute; left: 2px; top: 0;
  width: 46px; height: 3px; border-radius: 2px; background: var(--orange);
}
.post-body .pullquote em { font-style: normal; color: var(--orange); }

/* Callout / note box — "Teacher tip", "Key takeaway". Calm, informational.
   NOT a status color (those are reserved per CLAUDE.md). */
.post-body .callout {
  margin: var(--flow-block) 0;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-radius: 12px;
}
.post-body .callout .callout-label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--orange-shadow); font-weight: 500;
  margin: 0 0 8px;
}
.post-body .callout p { max-width: none; margin: 0 0 var(--flow-tight); }
.post-body .callout p:last-child { margin-bottom: 0; }
.post-body .callout.tip {
  background: var(--gold-soft);
  border-color: rgba(232,184,106,0.45);
}
.post-body .callout.tip .callout-label { color: var(--orange-shadow); }

.post-body figure {
  margin: var(--flow-block) 0;
}
.post-body figure img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--navy-hair); }

/* Inline image — sits within the measure, floats beside text on desktop */
.post-body figure.inline {
  float: right; width: 320px; max-width: 46%;
  margin: 4px 0 18px 28px;
}
.post-body figure.inline figcaption { text-align: left; }

/* Full-width image — breaks the text measure for emphasis (desktop only) */
.post-body figure.full {
  margin-left: -64px; margin-right: -64px;
}
.post-body figure.full img { border-radius: 12px; }

.post-body figure.placeholder {
  margin: var(--flow-block) 0;
}
.post-body figure.placeholder::before {
  content: attr(data-label);
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  background: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(11,30,58,0.06) 0 1px, transparent 1px 14px);
  border: 1px solid var(--navy-hair); border-radius: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-faint);
  padding: 0 24px; text-align: center;
}
.post-body figure.placeholder.inline { width: 320px; max-width: 46%; }
.post-body figcaption {
  margin-top: 10px;
  font-family: var(--serif); font-style: italic; font-size: 14.5px;
  color: var(--navy-soft); text-align: center; text-wrap: pretty;
}

.post-body code {
  font-family: var(--mono); font-size: 14px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(11,30,58,0.06); color: var(--navy);
}
.post-body pre {
  margin: var(--flow-block) 0;
  padding: 22px 26px;
  background: var(--navy); color: var(--cream);
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
}
.post-body pre code {
  background: transparent; padding: 0; color: var(--cream); font-size: 13.5px;
}

.post-body hr {
  margin: var(--flow-section) 0;
  border: none;
  height: 1px;
  clear: both;
  background: linear-gradient(90deg, transparent 0%, var(--navy-hair) 24%, var(--navy-hair) 76%, transparent 100%);
}

.post-body table {
  width: 100%; margin: var(--flow-block) 0;
  border-collapse: collapse;
  font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--navy-hair); border-radius: 10px; overflow: hidden;
}
.post-body th {
  background: var(--navy); color: var(--cream);
  text-align: left; padding: 12px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 500;
}
.post-body td {
  padding: 12px 16px; border-top: 1px solid var(--navy-hair);
  color: var(--navy); vertical-align: top;
}

.post-body iframe, .post-body .embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: var(--flow-block) 0;
  border: 1px solid var(--navy-hair); border-radius: 12px;
}
.post-body .embed {
  background: var(--cream-deep);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-faint);
}

/* Sticky TOC sidebar */
.post-toc {
  position: sticky; top: 32px;
  padding: 24px 24px;
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-radius: 12px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.post-toc .toc-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
  margin: 0 0 12px;
}
.post-toc ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toci;
}
.post-toc li {
  counter-increment: toci;
}
.post-toc li + li { border-top: 1px dashed var(--navy-hair); }
.post-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  text-decoration: none;
  color: var(--navy);
  transition: color .15s ease;
}
.post-toc a::before {
  content: counter(toci, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  color: var(--orange); font-weight: 500;
}
.post-toc a .t {
  font-family: var(--serif); font-weight: 500; font-size: 14.5px;
  line-height: 1.3; letter-spacing: -0.1px;
}
.post-toc a:hover { color: var(--orange-shadow); }
.post-toc a.active { color: var(--orange-shadow); }
.post-toc a.active::before { color: var(--orange-shadow); }

/* Social share row */
.share-row {
  margin: 40px 0;
  padding: 18px 0;
  border-top: 1px solid var(--navy-hair);
  border-bottom: 1px solid var(--navy-hair);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.share-row .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--navy-soft); font-weight: 500;
}
.share-row .links { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--navy-hair); border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--navy); font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.share-row a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* Related posts */
.related {
  padding: 64px 0 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--navy-hair);
}
.related .head {
  margin-bottom: 28px;
}
.related .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
  margin: 0 0 12px;
}
.related h2 {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  line-height: 1.15; letter-spacing: -0.3px;
  margin: 0; color: var(--navy);
}
.related h2 em { font-style: italic; color: var(--orange); font-weight: 500; }
.related .related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* Footer CTA strip — editorial-feeling between related and footer */
.post-foot-cta {
  background: var(--cream-deep);
  padding: 32px 0 80px;
}
.post-foot-cta .inner {
  max-width: 760px; margin: 0 auto;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--navy-hair);
  border-left: 3px solid var(--orange);
  border-radius: 0 14px 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.post-foot-cta .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
  margin: 0 0 4px;
}
.post-foot-cta h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  line-height: 1.2; letter-spacing: -0.2px;
  margin: 0; color: var(--navy);
}
.post-foot-cta h3 em { font-style: italic; color: var(--orange); }
.post-foot-cta .arrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: var(--cream);
  text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  transition: background-color .15s ease;
  white-space: nowrap;
}
.post-foot-cta .arrow:hover { background: var(--orange-shadow); border-color: var(--orange-shadow); }

/* Footer (canonical) */
footer.site { background: var(--navy); color: var(--cream); padding: 80px 0 56px; }
footer.site .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--cream); text-decoration: none;
  font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.3px;
}
.wordmark .mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--cream); color: var(--navy);
  border-radius: 8px;
  font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1;
}
.wordmark .hq { color: var(--orange); }
.wordmark .tm { font-size: 12px; vertical-align: super; opacity: 0.7; font-weight: 400; margin-left: 1px; }
footer.site .tag {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.5;
  color: rgba(250,241,226,0.72); max-width: 380px; text-wrap: pretty;
}
footer.site .col h4 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin: 6px 0 18px; font-weight: 500;
}
footer.site .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site .col a { color: rgba(250,241,226,0.80); text-decoration: none; font-size: 15px; }
footer.site .col a:hover { color: var(--gold); }
footer.site .row {
  grid-column: 1 / -1; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(250,241,226,0.16);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px;
  color: rgba(250,241,226,0.54);
}
footer.site .row .copyright { text-align: left; }
footer.site .row .legal {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
}
footer.site .row .legal a { color: rgba(250,241,226,0.72); text-decoration: none; transition: color .15s ease; }
footer.site .row .legal a:hover { color: var(--orange); }
footer.site .row .legal .dot { color: rgba(250,241,226,0.30); user-select: none; }
footer.site .row .powered { text-align: right; color: rgba(250,241,226,0.62); }
footer.site .socials { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
footer.site .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: rgba(250,241,226,0.78);
  transition: color .15s ease, transform .15s ease;
}
footer.site .socials a:hover { color: var(--orange); transform: translateY(-1px); }
footer.site .socials svg { width: 20px; height: 20px; display: block; }

/* Responsive */
@media (max-width: 1100px) {
  .container { padding: 0 56px; }
  .blog-hero h1 { font-size: 56px; }
  .post-header h1.title { font-size: 42px; }
  .featured-post { grid-template-columns: 1fr; gap: 24px; }
  .featured-post h2 { font-size: 28px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .related .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post .container { grid-template-columns: 1fr; gap: 32px; }
  .post-toc { position: static; max-height: none; }
  .post-body figure.full { margin-left: 0; margin-right: 0; }
  .filter-row { grid-template-columns: 1fr; gap: 14px; }
  .search input { min-width: 200px; }
  footer.site .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 24px; }
  .blog-hero { padding: 56px 0 32px; }
  .blog-hero h1 { font-size: 40px; letter-spacing: -0.8px; }
  .blog-hero .subhead { font-size: 18px; }
  .post-grid, .related .related-grid { grid-template-columns: 1fr; }
  .post-header h1.title { font-size: 32px; letter-spacing: -0.5px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 26px; margin-top: 40px; }
  .post-body h3 { font-size: 21px; }
  .post-body .pullquote { font-size: 32px; }
  .post-body .lead { font-size: 19px; }
  .post-body figure.inline { float: none; width: 100%; max-width: 100%; margin: var(--flow-block) 0; }
  .post-header .byline-meta { margin-left: 0; }
  .post-foot-cta .inner { grid-template-columns: 1fr; padding: 22px; }
  .post-foot-cta .arrow { justify-self: start; }
  footer.site .container { grid-template-columns: 1fr; gap: 36px; }
  footer.site .row { grid-template-columns: 1fr; text-align: center; gap: 14px; font-size: 11px; }
  footer.site .row .copyright, footer.site .row .powered { text-align: center; }
  footer.site .row .legal { justify-content: center; }
}
