/* =============================================================================
   ProABD blog (/blog/) — listing pages and articles.

   Restates the landing page's design system for the PHP-rendered blog: the
   tokens come from proabd-landing/src/index.css (@theme), and the nav, buttons,
   hero, cards and footer follow the React components there. Keep the two in
   step when the brand changes.

   Article body markup (.blog-prose and the blog-figure / blog-embed /
   blog-table blocks inside it) is produced by the billing portal's editor; see
   src/lib/blog-content.ts in proabd-billing-portal for exactly what it emits.
   ========================================================================== */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #001a30;
  --navy-900: #002442;
  --navy-800: #002b50;
  --navy-700: #003054; /* brand */
  --navy-600: #0b3c66;
  --navy-500: #16456e;
  --navy-400: #3d6692;
  --navy-300: #6f8eae;
  --navy-200: #aec3da;

  --orange-300: #ff9e6b;
  --orange-400: #ff7d45;
  --orange-500: #fc6024; /* brand */
  --orange-600: #e84e16;
  --orange-700: #c5430f;

  --ink: #14202e;
  --muted: #5a6b82;
  --paper: #f7f9fc;
  --success: #16b364;
  --line: #e2e8f0;

  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.75rem;

  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
    0 12px 28px -12px rgba(16, 24, 40, 0.12);
  --card-shadow-hover: 0 1px 2px rgba(16, 24, 40, 0.04),
    0 26px 44px -18px rgba(16, 24, 40, 0.22);

  --hero-bg: radial-gradient(62% 75% at 80% 4%, rgba(252, 96, 36, 0.26), transparent 58%),
    radial-gradient(46% 58% at 4% 98%, rgba(252, 96, 36, 0.1), transparent 55%),
    linear-gradient(165deg, #003a66 0%, #003054 44%, #00233f 100%);
}

/* ----------------------------------------------------------------- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  cursor: pointer;
}
::selection {
  background: var(--orange-500);
  color: #fff;
}
/* Anchor offset for the fixed nav */
:target {
  scroll-margin-top: 6rem;
}
:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  transform: translateY(-200%);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-700);
}
.skip-link:focus {
  transform: none;
}
.dot {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.accent {
  color: var(--orange-400);
}

/* -------------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
}
/* The darker 600 orange keeps the white label at AA contrast. */
.btn-primary {
  background: var(--orange-600);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(232, 78, 22, 0.6);
}
.btn-primary:hover {
  background: var(--orange-700);
  transform: translateY(-2px);
}
.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-on-dark:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--orange-500);
}
.eyebrow--dark {
  color: var(--orange-400);
}
a.eyebrow:hover {
  color: var(--orange-700);
}

/* ------------------------------------------------------------------ nav ---- */
/* Sits over the navy hero, then turns white once the page scrolls. Without
   JavaScript it stays at the top of the page instead of following the reader,
   since nothing would switch it to the light style. */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.js .site-nav {
  position: fixed;
}
.site-nav__inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav__logo img {
  width: auto;
  height: 2.25rem;
}
.logo-on-light {
  display: none;
}
.site-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.site-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-200);
  transition: color 0.15s;
}
.site-nav__links a[aria-current] {
  font-weight: 600;
  color: #fff;
}
.site-nav__links a:hover,
.site-nav__login:hover {
  color: var(--orange-500);
}
.site-nav__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.site-nav__login {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.15s;
}
.site-nav__toggle {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0.5rem;
  color: #fff;
}
.site-nav__toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.site-nav__toggle .icon-close,
.site-nav__toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.site-nav__toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.site-nav.is-scrolled,
.site-nav.is-open {
  border-bottom-color: rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* With the menu open the bar is part of a solid white sheet, not a frosted strip. */
.site-nav.is-open {
  background: #fff;
}
.site-nav.is-scrolled .logo-on-dark,
.site-nav.is-open .logo-on-dark {
  display: none;
}
.site-nav.is-scrolled .logo-on-light,
.site-nav.is-open .logo-on-light {
  display: block;
}
.site-nav.is-scrolled .site-nav__links a,
.site-nav.is-scrolled .site-nav__login,
.site-nav.is-scrolled .site-nav__toggle,
.site-nav.is-open .site-nav__toggle {
  color: var(--navy-700);
}
.site-nav.is-scrolled .site-nav__links a[aria-current] {
  color: var(--orange-600);
}
.site-nav.is-scrolled .site-nav__links a:hover,
.site-nav.is-scrolled .site-nav__login:hover {
  color: var(--orange-500);
}

.site-nav__panel {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1.25rem;
}
.site-nav__panel[hidden] {
  display: none;
}
.site-nav__panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav__panel a:not(.btn) {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-700);
}
.site-nav__panel a:not(.btn):hover {
  background: #f8fafc;
}
.site-nav__panel a[aria-current] {
  font-weight: 700;
  color: var(--orange-600);
}
.site-nav__panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}
.site-nav__panel-actions a:not(.btn) {
  font-weight: 600;
}

/* ----------------------------------------------------------------- hero ---- */
.blog-hero,
.post-hero,
.cta-band,
.post-card__placeholder {
  background-color: var(--navy-900);
  background-image: var(--hero-bg);
}
.blog-hero,
.post-hero,
.cta-band {
  position: relative;
  overflow: hidden;
}
/* Blueprint grid, faded out toward the edges */
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 40%, transparent 100%);
}

.blog-hero {
  padding: 7rem 0 3.5rem;
}
.blog-hero--overlap {
  padding-bottom: 8.5rem;
}
.blog-hero--compact {
  padding-bottom: 4rem;
}
.blog-hero__inner {
  position: relative;
}
.blog-hero h1 {
  max-width: 50rem;
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}
.blog-hero__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--navy-200);
}
.blog-hero__actions {
  margin-top: 2rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pills a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-200);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.pills a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.pills a[aria-current] {
  border-color: #fff;
  background: #fff;
  color: var(--navy-700);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-200);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--navy-400);
}
.breadcrumbs a {
  transition: color 0.15s;
}
.breadcrumbs a:hover {
  color: #fff;
}
/* The last crumb is where the reader is: the category. */
.breadcrumbs li:last-child,
.breadcrumbs li:last-child a {
  color: var(--orange-400);
}

/* -------------------------------------------------------------- listing ---- */
.blog-list {
  padding: 3.5rem 0 5rem;
}
.blog-hero--overlap + .blog-list {
  padding-top: 0;
}
.blog-hero--overlap + .blog-list .post-card--lead {
  margin-top: -5rem;
}
.section-title {
  margin: 3.5rem 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-700);
}
.blog-list .container > .section-title:first-child {
  margin-top: 0;
}
.post-grid {
  display: grid;
  gap: 1.75rem;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-card:hover .post-card__media img {
  transform: scale(1.04);
}
.post-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.post-card__placeholder svg {
  width: 4.5rem;
  height: 4.5rem;
}
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}
.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
/* The title link covers the whole card; the category link stays clickable above it. */
.post-card__tags a {
  position: relative;
  z-index: 1;
}
.badge {
  border-radius: 9999px;
  background: rgba(252, 96, 36, 0.12);
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-700);
}
.post-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy-700);
}
.post-card__title a {
  transition: color 0.15s;
}
.post-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card:hover .post-card__title a {
  color: var(--orange-600);
}
.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.post-card__meta > span:first-child:not(.dot) {
  font-weight: 600;
  color: var(--ink);
}

.post-card--lead .post-card__title {
  font-size: 1.625rem;
  line-height: 1.2;
}
.post-card--lead .post-card__excerpt {
  font-size: 1.0625rem;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}
.pagination ol {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.pagination a,
.pagination__step {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(0, 48, 84, 0.15);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: border-color 0.2s;
}
.pagination a:hover {
  border-color: rgba(0, 48, 84, 0.35);
}
.pagination a[aria-current] {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: #fff;
}
.pagination__step[aria-disabled] {
  opacity: 0.45;
}
.pagination__gap {
  padding: 0 0.25rem;
  color: var(--muted);
}

.empty-state {
  max-width: 34rem;
  margin: 1rem auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  background: #fff;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.empty-state__mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
}
.empty-state h2 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-700);
}
.empty-state p {
  margin: 0.75rem 0 1.75rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- post ---- */
.post .container {
  max-width: 72rem;
}
.post-hero {
  padding: 6.5rem 0 3.5rem;
}
.post-hero--cover {
  padding-bottom: 8rem;
}
.post-hero__inner {
  position: relative;
}
.post-hero h1 {
  max-width: 54rem;
  margin-top: 1.25rem;
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.post-hero__dek {
  max-width: 46rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy-200);
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}
.byline__avatar {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
.byline__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.byline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-200);
}

/* The cover image straddles the bottom edge of the hero. */
.post-cover {
  position: relative;
  margin-top: -5.5rem;
}
.post-cover img {
  width: 100%;
  max-height: 36rem;
  border-radius: var(--radius-2xl);
  background: var(--navy-800);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 70px -30px rgba(0, 26, 48, 0.55);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}
/* On small screens the contents list comes before the article, and the
   sidebar pitch is left to the band at the foot of the page. */
.post-aside {
  order: -1;
}
.post-layout--no-toc .post-aside,
.aside-cta {
  display: none;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
}
.toc h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.toc ol {
  display: flex;
  flex-direction: column;
  margin-top: 0.875rem;
  border-left: 2px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -2px;
  border-left: 2px solid transparent;
  padding: 0.325rem 0 0.325rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover {
  color: var(--navy-700);
}
.toc a.is-active {
  border-left-color: var(--orange-500);
  font-weight: 600;
  color: var(--navy-700);
}
.toc__l3 {
  display: none;
}
.toc__l3 a {
  padding-left: 1.75rem;
  font-size: 0.8125rem;
}

.aside-cta {
  border-radius: var(--radius-2xl);
  background-color: var(--navy-900);
  background-image: linear-gradient(165deg, #003054 0%, #00233f 100%);
  padding: 1.5rem;
  color: var(--navy-200);
}
.aside-cta__mark {
  width: 2.5rem;
  height: 2.5rem;
}
.aside-cta h2 {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.aside-cta p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.aside-cta .btn {
  width: 100%;
  margin-top: 1.125rem;
}
.aside-cta__link {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.15s;
}
.aside-cta__link:hover {
  color: var(--orange-400);
}

/* --------------------------------------------------------- article body ---- */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.blog-prose > * + * {
  margin-top: 1.25em;
}
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  color: var(--navy-700);
}
.blog-prose h2 {
  margin-top: 2.25em;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
}
.blog-prose h3 {
  margin-top: 1.9em;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
}
.blog-prose h4 {
  margin-top: 1.6em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.blog-prose h2 + *,
.blog-prose h3 + *,
.blog-prose h4 + * {
  margin-top: 0.75em;
}
.blog-prose > :first-child {
  margin-top: 0;
}
.blog-prose a {
  font-weight: 500;
  color: var(--orange-600);
  text-decoration: underline;
  text-decoration-color: rgba(232, 78, 22, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.blog-prose a:hover {
  color: var(--orange-700);
  text-decoration-color: currentColor;
}
.blog-prose strong {
  font-weight: 700;
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 1.5rem;
}
.blog-prose ul {
  list-style: disc;
}
.blog-prose ol {
  list-style: decimal;
}
.blog-prose li + li,
.blog-prose li > ul,
.blog-prose li > ol {
  margin-top: 0.5em;
}
.blog-prose li > p + p {
  margin-top: 0.75em;
}
.blog-prose li::marker {
  font-weight: 700;
  color: var(--orange-500);
}
.blog-prose blockquote {
  border-left: 3px solid var(--orange-500);
  padding: 0.375rem 0 0.375rem 1.5rem;
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy-700);
}
.blog-prose blockquote > * + * {
  margin-top: 0.75em;
}
.blog-prose hr {
  margin: 2.75em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.blog-prose img {
  margin-inline: auto;
  border-radius: var(--radius-xl);
}
.blog-prose .blog-figure,
.blog-prose .blog-embed,
.blog-prose .blog-table {
  margin-top: 2em;
  margin-bottom: 2em;
}
.blog-figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.blog-prose code {
  border-radius: 0.375rem;
  background: #e9eef5;
  padding: 0.15em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--navy-800);
}
.blog-prose pre {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  padding: 1.125rem 1.375rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #e6edf5;
}
.blog-prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.blog-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
}
.blog-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Wide tables scroll inside their own box instead of widening the page. */
.blog-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
}
.blog-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.blog-table th,
.blog-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}
.blog-table th {
  background: #f1f5fa;
  font-weight: 700;
  color: var(--navy-700);
}
.blog-table tr:last-child td {
  border-bottom: 0;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.post-footer__updated {
  font-size: 0.875rem;
  color: var(--muted);
}
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.share__label {
  margin-right: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-700);
}
.share a,
.share button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 48, 84, 0.15);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0;
  color: var(--navy-700);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.share a:hover,
.share button:hover {
  border-color: var(--orange-500);
  color: var(--orange-600);
  transform: translateY(-2px);
}
.share .icon-copied,
.share .is-copied .icon-copy {
  display: none;
}
.share .is-copied .icon-copied {
  display: block;
  color: var(--success);
}

.blog-list--related {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 4rem 0 5rem;
}

.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: none;
  height: 3px;
  pointer-events: none;
}
.js .read-progress {
  display: block;
}
.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange-500);
}

.preview-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  color: #fff;
  box-shadow: 0 16px 40px -12px rgba(0, 26, 48, 0.6);
}
.preview-bar strong {
  color: var(--orange-400);
}

/* ------------------------------------------------------------- cta band ---- */
.cta-band {
  padding: 5rem 0;
}
.cta-band__inner {
  position: relative;
  max-width: 50rem;
  text-align: center;
}
.cta-band h2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.cta-band p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--navy-200);
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-200);
  transition: color 0.15s;
}
.cta-band__phone:hover {
  color: var(--orange-400);
}

/* --------------------------------------------------------------- footer ---- */
.site-footer {
  background: var(--navy-950);
  padding: 4rem 0;
  color: var(--navy-200);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}
.site-footer img {
  width: auto;
  height: 2.75rem;
}
.site-footer__blurb {
  max-width: 20rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--navy-300);
}
.site-footer h2 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.site-footer a {
  transition: color 0.15s;
}
.site-footer a:hover {
  color: var(--orange-400);
}
.site-footer__contact a,
.site-footer__contact span {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.site-footer__contact .icon {
  color: var(--orange-400);
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--navy-300);
}
.site-footer__rss {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.site-footer__rss .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* ----------------------------------------------------------- breakpoints ---- */
@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
  .blog-hero h1 {
    font-size: 3rem;
  }
  .post-hero h1 {
    font-size: 2.75rem;
  }
  .post-hero__dek {
    font-size: 1.25rem;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-title {
    font-size: 1.875rem;
  }
  .blog-prose {
    font-size: 1.125rem;
    line-height: 1.8;
  }
  .blog-prose h2 {
    font-size: 1.875rem;
  }
  .blog-prose h3 {
    font-size: 1.4375rem;
  }
  .cta-band h2 {
    font-size: 2.25rem;
  }
  .cta-band__actions {
    flex-direction: row;
  }
  .site-footer__bottom {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .site-nav__inner {
    height: 5rem;
  }
  .site-nav__actions {
    display: flex;
  }
  .site-nav__panel-actions {
    display: none;
  }
  .blog-hero {
    padding: 9rem 0 4.5rem;
  }
  .blog-hero--overlap {
    padding-bottom: 10rem;
  }
  .blog-hero--overlap + .blog-list .post-card--lead {
    margin-top: -6rem;
  }
  .blog-list {
    padding-bottom: 7rem;
  }
  .post-hero {
    padding: 8.5rem 0 4.5rem;
  }
  .post-hero--cover {
    padding-bottom: 12rem;
  }
  .post-cover {
    margin-top: -8.5rem;
  }
  .post-cover img {
    border-radius: var(--radius-3xl);
  }
  .cta-band {
    padding: 7rem 0;
  }
  .cta-band h2 {
    font-size: 3rem;
  }
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav__actions {
    margin-left: 0;
  }
  .site-nav__toggle,
  .site-nav__panel {
    display: none;
  }
  .blog-hero h1 {
    font-size: 3.75rem;
  }
  .post-hero h1 {
    font-size: 3.25rem;
  }
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-card--lead {
    flex-direction: row;
  }
  .post-card--lead .post-card__media {
    flex: 0 0 54%;
    min-height: 23rem;
    aspect-ratio: auto;
  }
  .post-card--lead .post-card__media img {
    position: absolute;
    inset: 0;
  }
  .post-card--lead .post-card__body {
    justify-content: center;
    padding: 2.75rem;
  }
  .post-card--lead .post-card__title {
    font-size: 2.125rem;
    line-height: 1.15;
  }
  .post-card--lead .post-card__meta {
    margin-top: 1.5rem;
    padding-top: 0;
  }

  .post-layout {
    grid-template-columns: minmax(0, 46rem) 17.5rem;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 7rem;
  }
  .post-aside,
  .post-layout--no-toc .post-aside {
    position: sticky;
    top: 6.5rem;
    order: 0;
    display: flex;
    max-height: calc(100vh - 8rem);
    flex-direction: column;
    gap: 1.75rem;
    align-self: start;
    overflow-y: auto;
  }
  .aside-cta {
    display: block;
    flex-shrink: 0;
  }
  .toc {
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0;
    box-shadow: none;
  }
  .toc__l3 {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-nav,
  .site-footer,
  .cta-band,
  .post-aside,
  .post-footer,
  .blog-list--related,
  .read-progress,
  .preview-bar,
  .grid-overlay {
    display: none !important;
  }
  .post-hero {
    background: none;
    padding: 0 0 1rem;
  }
  .post-hero h1,
  .byline__name {
    color: #000;
  }
  .post-hero__dek,
  .byline__meta,
  .breadcrumbs ol {
    color: #333;
  }
  .post-cover {
    margin-top: 0;
  }
}
