/* ============================================================ */
/* File.Business Blog · Enterprise Editorial System              */
/* ============================================================ */

/* === Post hero === */
.blog-post-shell { background: #fff; }

.post-hero {
  background: linear-gradient(180deg, #faf8f1 0%, #fdfcf8 100%);
  border-bottom: 1px solid #ecf0f6;
  padding: 64px 0 48px;
  position: relative;
}
.post-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(26,58,143,0.04) 0%, transparent 50%),
    radial-gradient(circle at 88% 82%, rgba(160,120,42,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.post-hero-inner { position: relative; max-width: 880px; }
.post-breadcrumb {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #6b7591;
  display: flex; gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}
.post-breadcrumb a { color: #1a3a8f; text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .bc-cur { color: #3a4254; font-weight: 500; }

.post-eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  background: #fff;
  border: 1px solid #e7d9b5;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.post-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.post-deck {
  font-family: Inter, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: #4a5570;
  margin: 0 0 36px;
  max-width: 720px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid #ecf0f6;
}
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8f, #142b6a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  flex-shrink: 0;
}
.byline-meta { flex: 1; }
.byline-name {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  color: #3a4254;
}
.byline-name strong { color: #1a1a1a; font-weight: 600; }
.byline-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #6b7591;
  margin-top: 2px;
}
.byline-share {
  display: flex; gap: 8px;
  margin-left: auto;
}
.byline-share a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d6dceb;
  display: flex; align-items: center; justify-content: center;
  color: #6b7591;
  transition: all 0.15s ease;
}
.byline-share a:hover {
  background: #1a3a8f;
  border-color: #1a3a8f;
  color: #fff;
  transform: translateY(-1px);
}

/* === Featured image === */
.post-feature-img {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.post-feature-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(15, 30, 75, 0.25),
              0 10px 25px -10px rgba(15, 30, 75, 0.15);
}
.post-feature-img figcaption {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #6b7591;
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

/* === Post grid: TOC + body + sidebar === */
.post-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 64px;
  align-items: start;
}

/* Left TOC */
.post-toc { position: sticky; top: 92px; align-self: start; }
.toc-sticky { padding-right: 12px; }
.toc-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  padding: 0; margin: 0 0 18px;
  counter-reset: toc-c;
  border-left: 2px solid #ecf0f6;
  padding-left: 14px;
}
.toc-list li {
  counter-increment: toc-c;
  margin-bottom: 12px;
  position: relative;
}
.toc-list li::before {
  content: counter(toc-c, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #a0782a;
  margin-right: 6px;
  font-weight: 600;
}
.toc-list a {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7591;
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc-list a:hover { color: #1a3a8f; }
.toc-list a.active { color: #1a3a8f; font-weight: 600; }
.toc-progress {
  height: 3px;
  background: #ecf0f6;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 14px;
}
.toc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a3a8f, #a0782a);
  width: 0%;
  transition: width 0.1s ease;
}

/* === Post body (prose) === */
.post-body.prose {
  max-width: 720px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  color: #2a3142;
}
.post-h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  scroll-margin-top: 92px;
}
.post-h2:first-child { margin-top: 0; }
.post-h3 {
  font-family: Inter, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.post-p { margin: 0 0 22px; }
.post-p strong { color: #0f1e4b; font-weight: 600; }
.post-p a { color: #1a3a8f; font-weight: 500; border-bottom: 1px solid rgba(26,58,143,0.3); }
.post-p a:hover { border-bottom-color: #1a3a8f; background: rgba(26,58,143,0.05); }

.post-li {
  margin: 0 0 10px;
  padding-left: 6px;
}
.post-body ul, .post-body ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

/* Inline figure */
.post-fig {
  margin: 36px -20px;
}
.post-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgba(15, 30, 75, 0.18);
}
.post-fig figcaption {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  color: #6b7591;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Inline CTA inside body */
.post-inline-cta {
  margin: 48px 0;
  background: linear-gradient(135deg, #f5efdf 0%, #fdf9ed 100%);
  border: 1px solid #e7d9b5;
  border-radius: 14px;
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}
.post-inline-cta::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(160,120,42,0.12) 0%, transparent 70%);
  transform: translate(40%, -40%);
  pointer-events: none;
}
.cta-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 8px;
}
.cta-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.cta-text {
  font-family: Inter, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a5570;
  margin: 0 0 22px;
  max-width: 560px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn-primary, .cta-btn-secondary {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.cta-btn-primary { background: #1a3a8f; color: #fff; }
.cta-btn-primary:hover { background: #142b6a; transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(26,58,143,0.4); }
.cta-btn-secondary { background: #fff; color: #1a3a8f; border: 1px solid #d6dceb; }
.cta-btn-secondary:hover { background: #f5efdf; border-color: #a0782a; }

/* === Right sidebar === */
.post-side { position: sticky; top: 92px; align-self: start; }
.side-sticky { display: flex; flex-direction: column; gap: 24px; }

.side-newsletter {
  background: #0f1e4b;
  color: #fff;
  padding: 24px 22px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.side-newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(160,120,42,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4a955;
  margin-bottom: 8px;
  position: relative;
}
.newsletter-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  position: relative;
}
.newsletter-text {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 0 16px;
  position: relative;
}
.newsletter-form { display: flex; flex-direction: column; gap: 8px; position: relative; }
.newsletter-form input {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: #d4a955; background: rgba(255,255,255,0.1); }
.newsletter-form button {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px;
  background: #d4a955;
  color: #0f1e4b;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter-form button:hover { background: #e6c073; }
.newsletter-stats {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  position: relative;
}

.side-topics, .side-helpful {
  background: #fafbfd;
  border: 1px solid #ecf0f6;
  padding: 20px;
  border-radius: 12px;
}
.side-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 12px;
}
.side-topic-list, .side-svc-list {
  list-style: none;
  padding: 0; margin: 0;
}
.side-topic-list li, .side-svc-list li {
  border-bottom: 1px solid #ecf0f6;
}
.side-topic-list li:last-child, .side-svc-list li:last-child { border-bottom: none; }
.side-topic-list a, .side-svc-list a {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  color: #3a4254;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  transition: color 0.12s ease;
}
.side-topic-list a:hover, .side-svc-list a:hover { color: #1a3a8f; }

/* === Author bio === */
.post-author-bio {
  background: #fafbfd;
  border-top: 1px solid #ecf0f6;
  padding: 56px 0;
}
.author-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 860px;
}
.author-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8f, #142b6a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -8px rgba(26,58,143,0.4);
}
.author-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 8px;
}
.author-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f1e4b;
  margin: 0 0 12px;
}
.author-text {
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #4a5570;
  margin: 0;
}
.author-text a { color: #1a3a8f; font-weight: 500; }

/* === Related posts === */
.post-related {
  padding: 80px 0 100px;
  background: #fff;
  border-top: 1px solid #ecf0f6;
}
.rel-eyebrow-big {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 12px;
}
.rel-title-big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.rel-card {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.rel-card:hover {
  border-color: #d6dceb;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(15,30,75,0.15);
}
.rel-img { aspect-ratio: 16 / 10; overflow: hidden; }
.rel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rel-card:hover .rel-img img { transform: scale(1.04); }
.rel-body { padding: 20px 22px 22px; }
.rel-card .rel-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 8px;
}
.rel-card .rel-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f1e4b;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.rel-card .rel-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6b7591;
}
.rel-cta { text-align: center; }
.rel-see-all {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a3a8f;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid #d6dceb;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-block;
}
.rel-see-all:hover { background: #1a3a8f; color: #fff; border-color: #1a3a8f; transform: translateY(-1px); }

/* === Responsive === */
@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }
  .post-toc { display: none; }
}
@media (max-width: 820px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .post-side { position: static; }
  .rel-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-hero { padding: 40px 0 32px; }
  .post-title { font-size: 32px; }
  .post-deck { font-size: 17px; }
  .author-inner { flex-direction: column; gap: 20px; }
  .post-feature-img { margin-top: -16px; padding: 0 16px; }
  .post-feature-img img { border-radius: 10px; }
  .post-h2 { font-size: 26px; margin: 40px 0 14px; }
  .post-h3 { font-size: 18px; }
  .post-body.prose { font-size: 17px; line-height: 1.7; }
  .post-fig { margin: 28px 0; }
}

/* === Blog INDEX (hub) === */
.blog-hub-shell { background: #fff; }

.hub-hero {
  background: linear-gradient(180deg, #faf8f1 0%, #fff 100%);
  border-bottom: 1px solid #ecf0f6;
  padding: 72px 0 56px;
}
.hub-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 18px;
}
.hub-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 800px;
}
.hub-deck {
  font-family: Inter, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #4a5570;
  max-width: 720px;
  margin: 0 0 32px;
}

/* Hub filters */
.hub-filters {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid #ecf0f6;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.hub-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.hub-filter-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7591;
  margin-right: 10px;
}
.hub-chip {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #3a4254;
  background: #fff;
  border: 1px solid #d6dceb;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.hub-chip:hover { border-color: #1a3a8f; color: #1a3a8f; }
.hub-chip.active { background: #1a3a8f; color: #fff; border-color: #1a3a8f; }

/* Featured posts band */
.hub-featured {
  padding: 56px 0;
  background: #fff;
}
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.featured-main {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.2s ease;
}
.featured-main:hover {
  border-color: #d6dceb;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -16px rgba(15,30,75,0.15);
}
.featured-main-img { aspect-ratio: 16 / 9; overflow: hidden; }
.featured-main-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-main-body { padding: 28px 32px 32px; }
.featured-main .f-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 12px;
}
.featured-main .f-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f1e4b;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.featured-main .f-deck {
  font-family: Inter, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: #4a5570;
  margin-bottom: 16px;
}
.featured-main .f-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: #6b7591;
}

.featured-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-content: start;
}
.featured-side-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.featured-side-card:hover { border-color: #d6dceb; transform: translateY(-2px); }
.featured-side-card .fs-img {
  width: 100px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.featured-side-card .fs-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-side-card .fs-body { flex: 1; min-width: 0; }
.featured-side-card .fs-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 6px;
}
.featured-side-card .fs-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f1e4b;
  letter-spacing: -0.005em;
}

/* All posts grid */
.hub-all-posts {
  padding: 56px 0 100px;
  background: #fafbfd;
}
.hub-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}
.hub-section-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.02em;
  margin: 0;
}
.hub-section-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #6b7591;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
}
.post-card:hover {
  border-color: #d6dceb;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(15,30,75,0.15);
}
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #f5f5f5; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 22px; }
.post-card .pc-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 8px;
}
.post-card .pc-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f1e4b;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.post-card .pc-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6b7591;
}

/* Upcoming deadlines band */
.hub-deadlines {
  padding: 56px 0;
  background: #0f1e4b;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hub-deadlines::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(160,120,42,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.deadlines-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; position: relative;
}
.deadlines-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4a955;
  margin-bottom: 10px;
}
.deadlines-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
.deadlines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.deadline-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.deadline-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,169,85,0.45);
  transform: translateY(-2px);
}
.deadline-card .dc-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a955;
  margin-bottom: 8px;
}
.deadline-card .dc-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 10px;
}
.deadline-card .dc-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* Newsletter big band */
.hub-newsletter-big {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5efdf 0%, #fdf9ed 100%);
}
.newsletter-big-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.nlb-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 14px;
}
.nlb-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.nlb-text {
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #4a5570;
  margin: 0 0 8px;
}
.nlb-form {
  display: flex; gap: 10px;
  background: #fff;
  border: 1px solid #d6dceb;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 30px -10px rgba(15,30,75,0.1);
}
.nlb-form input {
  flex: 1;
  font-family: Inter, sans-serif;
  font-size: 15px;
  border: none;
  outline: none;
  padding: 10px 14px;
  background: transparent;
}
.nlb-form button {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  background: #1a3a8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
}
.nlb-form button:hover { background: #142b6a; }
.nlb-trust {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #6b7591;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .deadlines-grid { grid-template-columns: 1fr; }
  .newsletter-big-inner { grid-template-columns: 1fr; }
  .hub-filters { position: static; }
  .hub-section-head { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================================ */
/* AUTHORITY TIER · Components for definitive long-form articles */
/* ============================================================ */

/* === Executive Summary card === */
.exec-summary {
  background: linear-gradient(135deg, #fafbfd 0%, #ffffff 100%);
  border: 1px solid #d6dceb;
  border-left: 4px solid #1a3a8f;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
}
.exec-summary-head {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ecf0f6;
  margin-bottom: 6px;
}
.exec-summary-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0782a;
}
.exec-summary-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #0f1e4b;
  margin: 0;
}
.exec-row { display: flex; flex-direction: column; gap: 4px; }
.exec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7591;
}
.exec-value {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
}
.exec-value.risk-critical { color: #b8290f; }
.exec-value.risk-high     { color: #c2410c; }
.exec-value.risk-medium   { color: #b45309; }
.exec-value.risk-low      { color: #166534; }
.exec-value strong { color: #0f1e4b; }
@media (max-width: 700px) { .exec-summary { grid-template-columns: 1fr; padding: 22px; } }

/* === Soft inline CTA (early, educational) === */
.soft-cta {
  background: #fafbfd;
  border: 1px solid #ecf0f6;
  border-left: 3px solid #a0782a;
  padding: 18px 22px;
  border-radius: 10px;
  margin: 28px 0;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5570;
}
.soft-cta strong { color: #1a3a8f; font-weight: 600; }
.soft-cta a { color: #1a3a8f; font-weight: 600; border-bottom: 1px solid rgba(26,58,143,0.35); }

/* === Compliance Risk band === */
.risk-band {
  background: linear-gradient(135deg, #fff5f0 0%, #fffaf6 100%);
  border: 1px solid #f4cdb6;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
}
.risk-band-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.risk-icon {
  width: 38px; height: 38px;
  background: #b8290f;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}
.risk-band-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #7c1d10;
  margin: 0;
}
.risk-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.risk-list li {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  color: #5b1d10;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.risk-list li::before {
  content: "!";
  position: absolute;
  left: 0; top: 0;
  width: 16px; height: 16px;
  background: #b8290f;
  color: #fff;
  border-radius: 50%;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.risk-list li strong { color: #7c1d10; font-weight: 600; }
@media (max-width: 700px) { .risk-list { grid-template-columns: 1fr; } }

/* === Common Mistakes grid === */
.mistakes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 36px;
}
.mistake-card {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-top: 3px solid #c2410c;
  border-radius: 10px;
  padding: 22px 24px;
}
.mistake-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c2410c;
  margin-bottom: 8px;
}
.mistake-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f1e4b;
  margin: 0 0 12px;
  line-height: 1.3;
}
.mistake-row {
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5570;
  margin: 0 0 8px;
}
.mistake-row b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a3a8f;
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 700px) { .mistakes-grid { grid-template-columns: 1fr; } }

/* === Real-World Examples === */
.example-card {
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  border: 1px solid #d6dceb;
  border-radius: 12px;
  padding: 26px 28px;
  margin: 18px 0;
}
.example-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  background: #f5efdf;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.example-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #0f1e4b;
  margin: 0 0 12px;
  line-height: 1.3;
}
.example-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 12px 0;
  border-top: 1px solid #ecf0f6;
  border-bottom: 1px solid #ecf0f6;
}
.example-meta-item {
  font-family: Inter, sans-serif;
  font-size: 13px;
}
.example-meta-item b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7591;
  display: block;
  margin-bottom: 3px;
}
.example-meta-item span { color: #1a1a1a; font-weight: 500; }
.example-outcome {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a5570;
  margin: 0;
}
.example-outcome b { color: #166534; }

/* === Fee Comparison Table === */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0 36px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}
.fee-table thead {
  background: #0f1e4b;
  color: #fff;
}
.fee-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.fee-table th:last-child { border-right: none; }
.fee-table td {
  padding: 12px 16px;
  border-top: 1px solid #ecf0f6;
  border-right: 1px solid #ecf0f6;
  color: #3a4254;
}
.fee-table td:last-child { border-right: none; }
.fee-table tbody tr:hover { background: #fafbfd; }
.fee-table tbody tr:nth-child(even) { background: #fafbfd; }
.fee-table td strong { color: #1a1a1a; }
.fee-table .fee-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

/* === Deadline Timeline === */
.timeline-vis {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 14px;
  padding: 32px;
  margin: 28px 0 40px;
  position: relative;
}
.timeline-vis-track {
  position: relative;
  height: 4px;
  background: #ecf0f6;
  border-radius: 2px;
  margin: 28px 16px 56px;
}
.timeline-vis-progress {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #1a3a8f 0%, #a0782a 65%, #b8290f 100%);
  border-radius: 2px;
  width: 100%;
}
.timeline-vis-marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.tv-mark {
  position: relative;
  text-align: center;
}
.tv-dot {
  width: 22px; height: 22px;
  background: #fff;
  border: 3px solid #1a3a8f;
  border-radius: 50%;
  margin: -41px auto 16px;
  position: relative;
}
.tv-mark:nth-child(2) .tv-dot { border-color: #a0782a; }
.tv-mark:nth-child(3) .tv-dot { border-color: #c2410c; }
.tv-mark:nth-child(4) .tv-dot { border-color: #b8290f; }
.tv-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7591;
  margin-bottom: 4px;
}
.tv-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #0f1e4b;
  line-height: 1.2;
  margin-bottom: 4px;
}
.tv-desc {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: #6b7591;
}
@media (max-width: 700px) {
  .timeline-vis-marks { grid-template-columns: 1fr 1fr; gap: 24px; }
  .timeline-vis-track { display: none; }
  .tv-dot { margin: 0 auto 12px; }
}

/* === Filing Process Steps === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0 36px;
  counter-reset: ps;
}
.ps-step {
  background: #fafbfd;
  border: 1px solid #ecf0f6;
  border-radius: 10px;
  padding: 18px;
  position: relative;
  counter-increment: ps;
}
.ps-step::before {
  content: counter(ps, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #a0782a;
  letter-spacing: 0.08em;
}
.ps-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #0f1e4b;
  margin: 6px 0 6px;
  line-height: 1.25;
}
.ps-text {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7591;
  margin: 0;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq-section {
  margin: 48px 0;
}
.faq-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 10px;
}
.faq-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f1e4b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  color: #a0782a;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-item[open] .faq-q { border-bottom: 1px solid #ecf0f6; }
.faq-a {
  padding: 16px 22px 20px;
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4a5570;
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin: 0; }
.faq-a a { color: #1a3a8f; font-weight: 500; border-bottom: 1px solid rgba(26,58,143,0.3); }

/* === Source & Trust band === */
.trust-band {
  background: #fafbfd;
  border: 1px solid #ecf0f6;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
}
.trust-row {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5570;
}
.trust-row b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7591;
  display: block;
  margin-bottom: 3px;
}
.trust-row a { color: #1a3a8f; font-weight: 500; }
@media (max-width: 700px) { .trust-band { grid-template-columns: 1fr; } }

/* === Conclusion === */
.conclusion {
  background: linear-gradient(135deg, #0f1e4b 0%, #1a3a8f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 44px;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}
.conclusion::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212,169,85,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.conc-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4a955;
  margin-bottom: 10px;
  position: relative;
}
.conc-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
  position: relative;
}
.conc-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  max-width: 620px;
  position: relative;
}
.conc-buttons { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.conc-btn-primary {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: #d4a955;
  color: #0f1e4b;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.conc-btn-primary:hover { background: #e6c073; transform: translateY(-1px); }
.conc-btn-secondary {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.15s ease;
}
.conc-btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* === Authority Article badge on hero === */
.authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #a6e6c2;
  padding: 4px 11px;
  border-radius: 999px;
  margin-left: 8px;
}
.authority-badge::before {
  content: "✓";
  font-size: 12px;
}

/* ============================================================ */
/* PATCH 10 · 2026-06-12 · Blog visual bug fixes                 */
/* ============================================================ */

/* BUG 1: post-fig negative margin (-20px) overflowed the body column.
   With grid columns 220+1fr+280 in a 1180px container after 56px×2 gaps,
   the body column was ~520px wide. A -20px margin pushed the figure to
   ~560px, overflowing into the right sidebar / TOC.
   FIX: zero out negative margin on the figure */
.post-grid .post-body.prose .post-fig {
  margin: 36px 0 !important;
}

/* BUG 2: Body column was too tight (~520px) for 18px prose at 1.78 line-height,
   making the column read narrow and crowded.
   FIX: slim TOC + sidebar widths, reduce gaps, give body ~640px breathing room */
.post-grid {
  grid-template-columns: 200px minmax(0, 1fr) 260px !important;
  gap: 44px !important;
}

/* BUG 3: Sticky offsets were inconsistent (64px on hub filters, 92px on TOC,
   96px elsewhere). Canonical .nav is position:sticky;top:0 with ~64px height.
   FIX: standardize all sticky offsets to top:80px (16px buffer below nav) */
.post-toc,
.post-side {
  top: 80px !important;
}
.hub-filters {
  top: 64px !important; /* sits flush below nav */
}

/* BUG 4: Grid items without min-width:0 can blow past their column width when
   they contain long unbreakable strings (URLs, long words). Forces body column
   to respect its assigned size. */
.post-grid > * {
  min-width: 0;
}

/* BUG 5: Featured image container's negative top margin (-28px) overlapped the
   hero band but with z-index:2. On narrow viewports this pulled the image up
   into the byline area awkwardly.
   FIX: tighter mobile margin */
@media (max-width: 820px) {
  .post-feature-img { margin-top: -10px; }
}

/* BUG 6: post-body.prose max-width:720px was wider than the column allowed,
   making the constraint irrelevant on desktop. Match max-width to actual
   available column width for explicit clarity. */
.post-body.prose {
  max-width: none; /* let grid column govern width */
}

/* BUG 7: Long-word overflow protection — links with no spaces (URLs in text)
   could break out of paragraph boundaries. */
.post-p, .post-h2, .post-h3, .post-li {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* BUG 8: post-feature-img overflowed slightly on narrow viewports because of
   the parent container's padding combined with the image's own 16:9 aspect.
   Constrain to viewport width. */
.post-feature-img { box-sizing: border-box; }

/* BUG 9: Mega-menu z-index conflict — when a blog post opens a mega menu, the
   featured-image's z-index:2 was poking through. Push image below the nav. */
.post-feature-img { z-index: 1 !important; }

/* BUG 10: When TOC sidebar collapses below 1100px (responsive breakpoint),
   the body column got the freed space but the negative figure margin still
   pushed past. Already fixed by BUG 1 but reinforce here. */
@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 40px !important;
  }
}
@media (max-width: 820px) {
  .post-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .post-fig { margin: 24px 0 !important; }
}

/* BUG 11: faq-q used <details>/<summary> — Safari's default focus ring on
   summary is ugly. Add proper focus state. */
.faq-q:focus { outline: 2px solid #1a3a8f; outline-offset: 2px; border-radius: 8px; }
.faq-q:focus:not(:focus-visible) { outline: none; }

/* BUG 12: post-inline-cta pseudo-element used translate(40%,-40%) and overflow:hidden
   on parent — but the inner content has position:relative, so was OK. Add explicit
   z-index for layering safety. */
.post-inline-cta > * { position: relative; z-index: 1; }

/* BUG 13: Side sticky needs an explicit max-height + scroll for very tall sidebars
   on short viewports (otherwise content gets cut off). */
.side-sticky { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.side-sticky::-webkit-scrollbar { width: 6px; }
.side-sticky::-webkit-scrollbar-thumb { background: #d6dceb; border-radius: 3px; }
.side-sticky::-webkit-scrollbar-track { background: transparent; }

/* BUG 14: Hub filter chips on mobile wrapped to multiple lines but lacked spacing.
   Add proper gap on wrap. */
@media (max-width: 700px) {
  .hub-filter-row { gap: 6px; }
  .hub-chip { font-size: 12.5px; padding: 6px 11px; }
}

/* BUG 15: featured-main image was set 16/9 but on smaller screens it
   became too tall relative to the body. */
@media (max-width: 700px) {
  .featured-main-img { aspect-ratio: 16/10; }
}

/* BUG 16: post-hero container max-width was unconstrained; the title could
   stretch to full width on ultra-wide screens. Cap it. */
.post-hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 820px) {
  .post-hero-inner { padding: 0 20px; }
  .post-hero { padding: 44px 0 32px; }
}

/* BUG 17: Related-post card titles in 3-column grid were getting too long
   on narrow desktop widths (1024-1200px). Cap title length visually. */
.rel-card .rel-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-side-card .fs-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .pc-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUG 18: Hub hero deck on narrow mobile got cramped against next section. */
@media (max-width: 700px) {
  .hub-hero { padding: 48px 0 36px; }
  .hub-title { font-size: 34px; }
  .hub-deck { font-size: 17px; }
}

/* BUG 19: Newsletter form on dark sidebar — input autofill on Chrome turned
   the field a different color (yellow-ish). Override autofill styling. */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 30px #142b6a inset;
  caret-color: #fff;
}

/* BUG 20: Author avatar gradient could collide visually with the dark
   newsletter card if author bio appears near it. Add subtle ring. */
.author-avatar { box-shadow: 0 12px 24px -8px rgba(26,58,143,0.4), 0 0 0 4px rgba(26,58,143,0.06); }

/* /PATCH 10 */

/* ============================================================ */
/* PATCH 11 · Blog sub-navigation + browse system                */
/* ============================================================ */

/* === Blog sub-nav (appears below main nav on every /blog/ page) === */
.blog-subnav {
  background: #0f1e4b;
  color: #fff;
  position: sticky;
  top: 64px;
  z-index: 49;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.blog-subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
  height: 52px;
}
.bsn-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; gap: 8px;
}
.bsn-brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d4a955;
  box-shadow: 0 0 8px rgba(212,169,85,0.6);
}
.bsn-link {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}
.bsn-link:hover, .bsn-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.bsn-link .bsn-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: rgba(212,169,85,0.85);
  font-weight: 600;
}
.bsn-link svg { opacity: 0.6; transition: transform 0.15s ease; }
.bsn-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.bsn-spacer { flex: 1; }

.bsn-search {
  position: relative;
  display: flex; align-items: center;
}
.bsn-search input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  padding: 8px 12px 8px 34px;
  border-radius: 7px;
  outline: none;
  width: 220px;
  transition: all 0.15s ease;
}
.bsn-search input::placeholder { color: rgba(255,255,255,0.5); }
.bsn-search input:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(212,169,85,0.5);
  width: 280px;
}
.bsn-search svg {
  position: absolute; left: 10px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

.bsn-cta {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #d4a955;
  color: #0f1e4b;
  padding: 8px 14px;
  border-radius: 7px;
  text-decoration: none;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
}
.bsn-cta:hover { background: #e6c073; transform: translateY(-1px); }

/* Mega dropdown panel under sub-nav items */
.bsn-mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(15,30,75,0.4), 0 8px 16px -8px rgba(15,30,75,0.15);
  border: 1px solid #ecf0f6;
  padding: 24px;
  min-width: 580px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 999;
}
.bsn-item { position: relative; }
.bsn-item:hover .bsn-mega,
.bsn-item.is-open .bsn-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bsn-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.bsn-mega.states-grid .bsn-mega-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 16px;
}
.bsn-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.bsn-mega-item:hover { background: #fafbfd; }
.bsn-mega-item-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f5efdf;
  color: #a0782a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bsn-mega-item-text {
  flex: 1;
  font-family: Inter, sans-serif;
  font-size: 13.5px;
}
.bsn-mega-item-text b {
  font-weight: 600;
  color: #0f1e4b;
  display: block;
}
.bsn-mega-item-text span {
  color: #6b7591;
  font-size: 12.5px;
  display: block;
  margin-top: 1px;
}
.bsn-mega-item-text em {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-style: normal;
  color: #a0782a;
  font-weight: 600;
}

/* States compact list */
.bsn-state-link {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #3a4254;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.12s ease;
}
.bsn-state-link:hover { background: #fafbfd; color: #1a3a8f; }
.bsn-state-link span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #a0782a;
  font-weight: 600;
}
.bsn-state-link.empty span { color: #c2c8d6; }

.bsn-mega-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ecf0f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bsn-mega-footer-text {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: #6b7591;
}
.bsn-mega-footer a {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a3a8f;
  text-decoration: none;
}

@media (max-width: 900px) {
  .bsn-search, .bsn-cta { display: none; }
  .blog-subnav-inner { height: 48px; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bsn-link { padding: 6px 10px; font-size: 12.5px; }
  .bsn-mega { min-width: 320px; left: 0; }
  .bsn-mega.states-grid .bsn-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Browse pages (topics, states, authors landings) === */
.browse-shell { background: #fff; }

.browse-hero {
  background: linear-gradient(180deg, #faf8f1 0%, #fff 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid #ecf0f6;
}
.browse-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 14px;
}
.browse-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 800px;
}
.browse-deck {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #4a5570;
  max-width: 720px;
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0;
}
.topic-card {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 14px;
  padding: 28px 30px 30px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(26,58,143,0.08) 0%, transparent 70%);
  transform: translate(40%, -40%);
  transition: transform 0.4s ease;
}
.topic-card:hover {
  border-color: #1a3a8f;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(15,30,75,0.18);
}
.topic-card:hover::before { transform: translate(20%, -20%) scale(1.4); }
.topic-card-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5efdf, #fdf9ed);
  color: #a0782a;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.topic-card-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0782a;
  margin-bottom: 8px;
  position: relative;
}
.topic-card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f1e4b;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  position: relative;
}
.topic-card-text {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a5570;
  margin: 0 0 18px;
  position: relative;
}
.topic-card-count {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a3a8f;
  position: relative;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 48px 0;
}
.state-card {
  background: #fff;
  border: 1px solid #ecf0f6;
  border-radius: 10px;
  padding: 16px 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  text-align: center;
}
.state-card:hover {
  border-color: #1a3a8f;
  background: #fafbfd;
  transform: translateY(-2px);
}
.state-card.empty:hover { transform: none; border-color: #ecf0f6; cursor: default; }
.state-card-abbr {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.state-card.empty .state-card-abbr { color: #c2c8d6; }
.state-card-name {
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #6b7591;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-card-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #a0782a;
}
.state-card.empty .state-card-count { color: #c2c8d6; }

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: 1fr; gap: 16px; }
  .state-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }

/* === Per-topic / per-state landing pages === */
.filtered-list-shell { background: #fafbfd; }
.filtered-list {
  padding: 48px 0 80px;
}
.filtered-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.filtered-list-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #0f1e4b;
  letter-spacing: -0.02em;
  margin: 0;
}
.filtered-list-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #6b7591;
}
.filtered-list-back {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #1a3a8f;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 6px;
}
.filtered-list-back:hover { text-decoration: underline; }

/* /PATCH 11 */

/* ============================================================ */
/* PATCH 12 · Embedded quick-browse (replaces sticky sub-nav)    */
/* ============================================================ */

/* Hub-level quick browse — embedded in hero (NOT sticky) */
.hub-quickbrowse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 30, 75, 0.08);
}
.qb-link {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a5570;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: transparent;
}
.qb-link:hover {
  color: #1a3a8f;
  background: #f5efdf;
  border-color: #e7d9b5;
}
.qb-link.qb-active {
  color: #1a3a8f;
  background: #fff;
  border-color: #d6dceb;
  font-weight: 600;
}
.qb-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #a0782a;
  font-weight: 600;
  padding: 1px 6px;
  background: rgba(160, 120, 42, 0.12);
  border-radius: 999px;
}
.qb-link.qb-active .qb-count { background: rgba(26, 58, 143, 0.1); color: #1a3a8f; }

.qb-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.qb-search svg {
  position: absolute;
  left: 12px;
  color: #6b7591;
  pointer-events: none;
}
.qb-search input {
  background: #fff;
  border: 1px solid #d6dceb;
  color: #1a1a1a;
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  padding: 9px 14px 9px 36px;
  border-radius: 999px;
  outline: none;
  width: 240px;
  transition: all 0.15s ease;
}
.qb-search input::placeholder { color: #8a92a3; }
.qb-search input:focus {
  border-color: #1a3a8f;
  box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
  width: 280px;
}

/* Post-page quick browse — inline rail (sits inside the breadcrumb area) */
.post-quickbrowse {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 18px 0 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 30, 75, 0.06);
  border-bottom: 1px solid rgba(15, 30, 75, 0.06);
}
.post-quickbrowse .qb-link {
  padding: 6px 13px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .hub-quickbrowse { gap: 2px; padding-top: 20px; margin-top: 22px; }
  .qb-link { padding: 7px 12px; font-size: 13px; }
  .qb-search { margin-left: 0; width: 100%; margin-top: 12px; }
  .qb-search input { width: 100%; }
  .qb-search input:focus { width: 100%; }
  .post-quickbrowse { margin: 14px 0 18px; padding: 12px 0; }
  .post-quickbrowse .qb-link { padding: 5px 10px; font-size: 12.5px; }
}

/* /PATCH 12 */

/* ============================================================ */
/* PATCH 13 · CTA button color override fix                     */
/* ============================================================ */

/* BUG: site.css line 85 has `a{color:inherit;text-decoration:none}` which
   in some cascade contexts wins over .cta-btn-primary { color: #fff }
   because of how `color: inherit` resolves through .post-body.prose's
   dark inherited color. The result: navy text on navy background = invisible.
   FIX: high-specificity selector + explicit colors with !important guards. */

a.cta-btn-primary,
.post-inline-cta a.cta-btn-primary,
.post-body a.cta-btn-primary,
.post-body.prose a.cta-btn-primary {
  background: #1a3a8f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
a.cta-btn-primary:hover,
.post-inline-cta a.cta-btn-primary:hover,
.post-body a.cta-btn-primary:hover {
  background: #142b6a !important;
  color: #ffffff !important;
}

a.cta-btn-secondary,
.post-inline-cta a.cta-btn-secondary,
.post-body a.cta-btn-secondary,
.post-body.prose a.cta-btn-secondary {
  background: #ffffff !important;
  color: #1a3a8f !important;
  text-decoration: none !important;
  border: 1px solid #d6dceb !important;
  border-bottom: 1px solid #d6dceb !important;
}
a.cta-btn-secondary:hover {
  background: #f5efdf !important;
  border-color: #a0782a !important;
  border-bottom-color: #a0782a !important;
  color: #1a3a8f !important;
}

/* Also fix the conclusion CTA buttons (.conc-btn-primary, .conc-btn-secondary)
   used in some authority-tier templates */
a.conc-btn-primary {
  background: #d4a955 !important;
  color: #0f1e4b !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
a.conc-btn-primary:hover {
  background: #e6c073 !important;
  color: #0f1e4b !important;
}
a.conc-btn-secondary {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.25) !important;
}

/* /PATCH 13 */

/* ============================================================
   BLOG POLISH — Final QA pass (2026-06-13)
   Filters, hero, byline, CTAs, inline links, mobile responsive
   ============================================================ */

/* Quickbrowse pill row — more prominent + active state */
.hub-quickbrowse {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
}
.hub-quickbrowse .qb-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  border: 1.5px solid #e7ecf3 !important;
  border-radius: 999px !important;
  color: #1a3a8f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
.hub-quickbrowse .qb-link:hover {
  border-color: #1a3a8f !important;
  background: rgba(26, 58, 143, 0.04) !important;
  transform: translateY(-1px);
}
.hub-quickbrowse .qb-link.qb-active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(26, 58, 143, 0.25);
}
.hub-quickbrowse .qb-link .qb-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px;
  padding: 2px 8px !important;
  background: rgba(160, 120, 42, 0.15) !important;
  color: #7a5a1f !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  letter-spacing: 0.3px !important;
}
.hub-quickbrowse .qb-link.qb-active .qb-count {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.hub-quickbrowse .qb-search {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  background: #ffffff !important;
  border: 1.5px solid #e7ecf3 !important;
  border-radius: 999px !important;
  margin-left: auto !important;
}
.hub-quickbrowse .qb-search:focus-within {
  border-color: #1a3a8f !important;
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.10);
}
.hub-quickbrowse .qb-search input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #1a3a8f !important;
  width: 200px !important;
}
.hub-quickbrowse .qb-search input::placeholder { color: #9ca3af; }
@media (max-width: 760px) {
  .hub-quickbrowse .qb-search { margin-left: 0 !important; width: 100% !important; }
  .hub-quickbrowse .qb-search input { width: 100% !important; }
}

/* Topic chip filter row — more obvious filter affordance */
.hub-filter-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 18px 0 !important;
}
.hub-filter-label {
  display: inline-flex !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  margin-right: 6px !important;
}
.hub-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e7ecf3 !important;
  border-radius: 999px !important;
  color: #1a3a8f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}
.hub-chip:hover {
  border-color: #1a3a8f !important;
  background: rgba(26, 58, 143, 0.04) !important;
}
.hub-chip.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(26, 58, 143, 0.22);
}

/* Filter banner (when ?state=, ?topic=, ?author= active) */
.blog-filter-banner {
  background: linear-gradient(135deg, #22388d 0%, #2d4ea8 100%) !important;
  color: #ffffff !important;
  padding: 14px 22px !important;
  border-radius: 14px !important;
  margin: 16px auto !important;
  max-width: 1180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  box-shadow: 0 6px 20px rgba(34, 56, 141, 0.20);
}
.blog-filter-banner a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s ease !important;
}
.blog-filter-banner a:hover { background: rgba(255, 255, 255, 0.28) !important; }

/* Post-meta byline polish */
.post-meta, .post-byline {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin: 16px 0 24px !important;
  padding: 16px 0 !important;
  border-top: 1px solid #ecf0f6 !important;
  border-bottom: 1px solid #ecf0f6 !important;
  font-size: 13.5px !important;
  color: #6b7280 !important;
}
.post-meta .post-author, .post-byline .byline-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #1a3a8f !important;
  font-weight: 600 !important;
}
.post-meta .post-author a, .post-byline .byline-name a {
  color: #1a3a8f !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: border-color 0.18s ease !important;
}
.post-meta .post-author a:hover, .post-byline .byline-name a:hover {
  border-bottom-color: #1a3a8f !important;
}
.post-author-initial, .byline-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  color: #ffffff !important;
  font-family: Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

/* Inline links inside post body — make them obvious */
.post-body p a:not(.cta-primary):not(.cta-secondary):not(.cta-tertiary),
.post-body li a:not(.cta-primary):not(.cta-secondary):not(.cta-tertiary) {
  color: #1a3a8f !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background-image: linear-gradient(to right, rgba(160, 120, 42, 0.40), rgba(160, 120, 42, 0.40)) !important;
  background-size: 100% 1.5px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
  transition: background-size 0.25s ease, color 0.18s ease !important;
}
.post-body p a:hover, .post-body li a:hover {
  color: #a0782a !important;
  background-size: 100% 2.5px !important;
}

/* Post CTA block at bottom of article */
.post-cta-block {
  margin: 48px 0 24px !important;
  padding: 32px !important;
  background: linear-gradient(135deg, #f5efdf 0%, rgba(160, 120, 42, 0.08) 100%) !important;
  border: 1px solid rgba(160, 120, 42, 0.30) !important;
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
}
.post-cta-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a3a8f, #a0782a, #16a34a);
}
.post-cta-block h3 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 24px !important;
  color: #1a3a8f !important;
  margin: 0 0 10px !important;
  line-height: 1.25 !important;
}
.post-cta-block p {
  color: #5a4316 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 0 20px !important;
}
.post-cta-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
.post-cta-row .cta-primary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 22px !important;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(26, 58, 143, 0.25) !important;
  transition: all 0.2s ease !important;
}
.post-cta-row .cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(26, 58, 143, 0.40) !important;
  color: #ffffff !important;
}
.post-cta-row .cta-secondary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  color: #1a3a8f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  border: 1.5px solid #d6dde8 !important;
  transition: all 0.2s ease !important;
}
.post-cta-row .cta-secondary:hover {
  border-color: #1a3a8f !important;
  color: #1a3a8f !important;
  transform: translateY(-1px);
}
.post-cta-row .cta-tertiary {
  display: inline-flex !important;
  align-items: center !important;
  color: #1a3a8f !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  padding: 4px 0 !important;
  transition: border-color 0.18s ease !important;
}
.post-cta-row .cta-tertiary:hover { border-bottom-color: #1a3a8f !important; }

/* Reading progress bar at top of article */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a3a8f, #a0782a);
  z-index: 1000;
  width: 0;
  transition: width 0.1s linear;
}

/* Post hero — tighten and frame */
.post-hero {
  margin: 0 0 32px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 29, 61, 0.10);
}
.post-hero img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Post body — typography rhythm */
.post-body { font-size: 16.5px; line-height: 1.75; color: #2a3344; max-width: 760px; }
.post-body p { margin: 0 0 22px !important; }
.post-h2 {
  font-family: Georgia, serif !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  color: #1a3a8f !important;
  margin: 40px 0 16px !important;
  line-height: 1.25 !important;
  padding-top: 8px !important;
}
.post-h3 {
  font-family: -apple-system, sans-serif !important;
  font-size: clamp(17px, 1.7vw, 19px) !important;
  font-weight: 700 !important;
  color: #1a3a8f !important;
  margin: 28px 0 12px !important;
  line-height: 1.3 !important;
}

/* Fee table — polish */
.fee-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  margin: 16px 0 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e7ecf3 !important;
  border-radius: 12px !important;
  overflow: hidden;
  font-size: 14.5px;
}
.fee-table thead { background: linear-gradient(180deg, #f5efdf, #efe6c8); }
.fee-table th {
  padding: 12px 16px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #7a5a1f !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(160, 120, 42, 0.30) !important;
}
.fee-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #eef0f4 !important;
  color: #2a3344 !important;
}
.fee-table tr:last-child td { border-bottom: none !important; }
.fee-table td strong { color: #1a3a8f !important; }
.fee-table .fee-num {
  font-family: Georgia, serif !important;
  font-weight: 700 !important;
  color: #1a3a8f !important;
}

/* FAQ accordion polish */
.faq-q {
  border: 1px solid #e7ecf3 !important;
  border-radius: 10px !important;
  margin: 0 0 10px !important;
  background: #ffffff !important;
  overflow: hidden;
}
.faq-q summary {
  padding: 16px 18px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  color: #1a3a8f !important;
  font-size: 15px !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: background 0.18s ease !important;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 58, 143, 0.10);
  color: #1a3a8f;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-q[open] summary::before { content: "−"; background: #1a3a8f; color: #fff; }
.faq-q[open] summary { background: rgba(26, 58, 143, 0.04); }
.faq-a {
  padding: 0 18px 18px !important;
  color: #4a5468 !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}
.faq-a p { margin: 0 !important; }

/* Mobile improvements */
@media (max-width: 760px) {
  .post-cta-block { padding: 22px !important; }
  .post-cta-block h3 { font-size: 20px !important; }
  .post-cta-row .cta-primary, .post-cta-row .cta-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
  .hub-quickbrowse { gap: 6px !important; }
  .hub-quickbrowse .qb-link { padding: 8px 12px !important; font-size: 13px !important; }
}

/* ============================================================
   BLOG NAV UX v2 (2026-06-13)
   1) Fix authors section header layout
   2) Float back-to-top button
   3) Sticky condensed mini-nav after hero
   ============================================================ */

/* FIX 1: Authors / State / hub section headers — vertical block layout */
.hub-authors-spotlight .hub-section-head,
.hub-state-spotlight .hub-section-head,
.hub-topic-spotlight .hub-section-head {
  display: block !important;
  margin-bottom: 28px !important;
  max-width: 760px !important;
}
.hub-authors-spotlight .hub-section-head > *,
.hub-state-spotlight .hub-section-head > *,
.hub-topic-spotlight .hub-section-head > * {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.hub-authors-spotlight .hub-eyebrow,
.hub-state-spotlight .hub-eyebrow,
.hub-topic-spotlight .hub-eyebrow {
  display: inline-block !important;
  margin-bottom: 14px !important;
  width: auto !important;
  white-space: nowrap !important;
}
.hub-authors-spotlight .hub-section-head h2,
.hub-state-spotlight .hub-section-head h2,
.hub-topic-spotlight .hub-section-head h2,
.hub-authors-spotlight .hub-section-title,
.hub-state-spotlight .hub-section-title,
.hub-topic-spotlight .hub-section-title {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(24px, 2.8vw, 34px) !important;
  color: #1a3a8f !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
}
.hub-authors-spotlight .hub-section-head p,
.hub-authors-spotlight .hub-section-sub,
.hub-state-spotlight .hub-section-head p,
.hub-state-spotlight .hub-section-sub,
.hub-topic-spotlight .hub-section-head p,
.hub-topic-spotlight .hub-section-sub {
  color: #4a5468 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 8px 0 0 !important;
  max-width: 600px !important;
  display: block !important;
}
/* If the "See all 51 →" CTA was inline with the head, move it to its own row */
.hub-section-head .rel-see-all,
.hub-section-head .hub-cta {
  display: inline-block !important;
  margin-top: 12px !important;
}

/* FIX 2: Floating back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%);
  border: none;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 58, 143, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(26, 58, 143, 0.55);
}
.back-to-top:active {
  transform: translateY(-2px) scale(1.04);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* Tooltip on hover */
.back-to-top::before {
  content: "Back to top";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  background: #101c46;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.back-to-top:hover::before { opacity: 1; }

/* FIX 3: Sticky mini-nav appears after hero */
.blog-sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 58, 143, 0.10);
  z-index: 950;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 20px rgba(15, 29, 61, 0.08);
}
.blog-sticky-nav.show { transform: translateY(0); }
.blog-sticky-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.blog-sticky-nav-title {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a3a8f;
  flex-shrink: 0;
}
.blog-sticky-nav-jumps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-sticky-nav-jumps::-webkit-scrollbar { display: none; }
.blog-sticky-nav-jumps a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 58, 143, 0.06);
  color: #1a3a8f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.blog-sticky-nav-jumps a:hover {
  background: rgba(26, 58, 143, 0.14);
}
.blog-sticky-nav-search {
  flex-shrink: 0;
  width: 220px;
}
.blog-sticky-nav-search input {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #d6dde8;
  border-radius: 999px;
  font-size: 13px;
  color: #1a3a8f;
  background: #ffffff;
  outline: none;
}
.blog-sticky-nav-search input:focus { border-color: #1a3a8f; }
@media (max-width: 760px) {
  .blog-sticky-nav-search { display: none; }
  .blog-sticky-nav-title { font-size: 14px; }
}

/* ============================================================
   STATE CARD FIX (2026-06-13) — proper sizing, no truncation
   ============================================================ */

/* Override the blog index state-grid layout to fit content properly */
.state-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

.state-grid .state-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 16px 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  min-width: 0 !important;
  transition: all 0.2s ease !important;
}
.state-grid .state-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a3a8f, #a0782a);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.state-grid .state-card:hover {
  border-color: #1a3a8f !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(26, 58, 143, 0.10);
}
.state-grid .state-card:hover::before { opacity: 1; }

.state-grid .state-card-abbr {
  display: block !important;
  font-family: Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a3a8f !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
}
.state-grid .state-card-name {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1a3a8f !important;
  line-height: 1.2 !important;
  margin: 4px 0 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.state-grid .state-card-count {
  display: block !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #7a5a1f !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin: 6px 0 0 !important;
  white-space: nowrap !important;
}

/* Mobile */
@media (max-width: 540px) {
  .state-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .state-grid .state-card { padding: 12px 12px !important; }
  .state-grid .state-card-abbr { font-size: 18px !important; }
  .state-grid .state-card-name { font-size: 12px !important; }
}

/* ============================================================
   UNIFIED FILTER SECTION (2026-06-13)
   Single section: mode tabs + contextual chips + search + active bar
   ============================================================ */

.unified-filter {
  max-width: 1180px;
  margin: 32px auto 28px;
  padding: 22px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e7ecf3;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(15, 29, 61, 0.06);
}

/* Top row: mode tabs + search */
.uf-mode-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.uf-mode {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  background: #ffffff !important;
  border: 1.5px solid #e7ecf3 !important;
  border-radius: 999px !important;
  color: #1a3a8f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  font-family: inherit !important;
}
.uf-mode:hover {
  border-color: #1a3a8f !important;
  background: rgba(26, 58, 143, 0.04) !important;
}
.uf-mode.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(26, 58, 143, 0.25);
}
.uf-mode-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 1px 8px;
  background: rgba(160, 120, 42, 0.15);
  color: #7a5a1f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}
.uf-mode.active .uf-mode-count {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}
.uf-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #e7ecf3;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.uf-search:focus-within {
  border-color: #1a3a8f;
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.10);
}
.uf-search svg { color: #6b7280; flex-shrink: 0; }
.uf-search:focus-within svg { color: #1a3a8f; }
.uf-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1a3a8f;
  width: 220px;
  font-family: inherit;
}
.uf-search input::placeholder { color: #9ca3af; }

/* Panels — only one visible at a time */
.uf-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ecf0f6;
  animation: ufFade 0.25s ease;
}
.uf-panel.show { display: block; }
@keyframes ufFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Topic chips inside panel */
.uf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uf-chips .hub-chip {
  padding: 8px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e7ecf3 !important;
  border-radius: 999px !important;
  color: #1a3a8f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  font-family: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.uf-chips .hub-chip:hover {
  border-color: #1a3a8f !important;
  background: rgba(26, 58, 143, 0.04) !important;
}
.uf-chips .hub-chip.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.uf-chips .hub-chip .ufc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: inherit;
  opacity: 0.7;
  font-weight: 700;
}

/* State grid inside panel */
.uf-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.uf-state-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1.5px solid #e7ecf3;
  border-radius: 10px;
  color: #1a3a8f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: inherit;
}
.uf-state-pill:hover {
  border-color: #1a3a8f;
  background: rgba(26, 58, 143, 0.04);
  transform: translateY(-1px);
}
.uf-state-pill.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%);
  border-color: transparent;
  color: #ffffff;
}
.uf-state-pill .abbr {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  min-width: 24px;
}
.uf-state-pill .name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
}
.uf-state-pill .cnt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #7a5a1f;
  opacity: 0.85;
}
.uf-state-pill.active .cnt { color: rgba(255,255,255,0.75); }

/* Author grid inside panel */
.uf-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.uf-author-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e7ecf3;
  border-radius: 12px;
  color: #1a3a8f;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.uf-author-pill:hover {
  border-color: #1a3a8f;
  background: rgba(26, 58, 143, 0.04);
  transform: translateY(-1px);
}
.uf-author-pill.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d4ea8 100%);
  border-color: transparent;
}
.uf-author-pill.active * { color: #ffffff !important; }
.uf-author-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}
.uf-author-meta { flex: 1; min-width: 0; }
.uf-author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a3a8f;
  line-height: 1.2;
}
.uf-author-sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #7a5a1f;
  margin-top: 2px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Active filter bar */
.uf-active-bar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ecf0f6;
}
.uf-active-bar.show { display: flex; }
.uf-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 14px;
  background: linear-gradient(135deg, #22388d, #2d4ea8);
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 10px rgba(34, 56, 141, 0.18);
}
.uf-active-chip .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 13px;
  line-height: 1;
}
.uf-clear-all {
  padding: 7px 14px;
  background: transparent;
  border: 1.5px solid #d6dde8;
  border-radius: 999px;
  color: #1a3a8f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.uf-clear-all:hover { border-color: #1a3a8f; background: rgba(26,58,143,0.04); }

@media (max-width: 760px) {
  .unified-filter { padding: 16px 18px; margin: 20px auto; border-radius: 16px; }
  .uf-search { margin-left: 0; width: 100%; }
  .uf-search input { width: 100%; }
  .uf-state-grid { grid-template-columns: repeat(2, 1fr); }
  .uf-author-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TOC LAYOUT FIX (2026-06-13)
   The sticky TOC was bleeding into the article body. Lock it to a
   proper 2-column grid with solid backgrounds + correct widths.
   ============================================================ */

.post-body-wrap {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 48px !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  align-items: start !important;
}

.post-toc {
  position: sticky !important;
  top: 84px !important;
  align-self: start !important;
  width: 240px !important;
  max-width: 240px !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  padding: 18px 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(15, 29, 61, 0.04) !important;
  z-index: 5;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.post-toc-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e7ecf3 !important;
  display: block !important;
}

.post-toc ol {
  list-style: none !important;
  counter-reset: toc !important;
  padding: 0 !important;
  margin: 0 !important;
}

.post-toc ol li {
  counter-increment: toc !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  display: block !important;
}

.post-toc ol li a {
  display: block !important;
  padding: 6px 8px !important;
  color: #4a5468 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  border-left: 2px solid transparent !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
}

.post-toc ol li a:hover {
  background: rgba(26, 58, 143, 0.04) !important;
  color: #1a3a8f !important;
  border-left-color: #1a3a8f !important;
}

.post-toc ol li a.active {
  background: rgba(26, 58, 143, 0.08) !important;
  color: #1a3a8f !important;
  font-weight: 700 !important;
  border-left-color: #a0782a !important;
}

/* Article body — constrain width + ensure no overflow */
.post-body {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 720px !important;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Mobile/tablet: stack TOC above body */
@media (max-width: 960px) {
  .post-body-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 18px !important;
  }
  .post-toc {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin-bottom: 20px !important;
  }
  .post-toc ol {
    columns: 2 !important;
    column-gap: 12px !important;
  }
  .post-body { max-width: 100% !important; }
}

@media (max-width: 560px) {
  .post-toc ol { columns: 1 !important; }
}

/* Scrollbar styling for sticky TOC */
.post-toc::-webkit-scrollbar { width: 6px; }
.post-toc::-webkit-scrollbar-track { background: transparent; }
.post-toc::-webkit-scrollbar-thumb { background: rgba(26, 58, 143, 0.12); border-radius: 3px; }
.post-toc::-webkit-scrollbar-thumb:hover { background: rgba(26, 58, 143, 0.20); }
