/* ─────────────────────────────────────────────
   LIFO Blog — design tokens + components.
   Matches the LIFO Next.js site palette.
   ───────────────────────────────────────────── */

:root {
  /* Navy palette — synced with LIFO Tailwind config. */
  --navy-50:  #eef0fd;
  --navy-100: #d9ddfb;
  --navy-200: #b8bef7;
  --navy-300: #8e97f1;
  --navy-400: #636de8;
  --navy-500: #414bdb;
  --navy-600: #2a33c1;
  --navy-700: #1a2399;
  --navy-800: #030d6a;
  --navy-900: #020a52;
  --navy-950: #010635;
  --accent:   #2c73da;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --green-500: #10b981;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(3, 13, 106, .06);
  --shadow:    0 6px 20px rgba(3, 13, 106, .08);
  --shadow-lg: 0 18px 48px rgba(3, 13, 106, .14);

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Red Hat Display', var(--font-body);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-800);
  margin: 0 0 .5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}
.row { display: flex; gap: 16px; }
.col { flex: 1; }
.muted { color: var(--slate-500); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563c1; box-shadow: 0 0 30px rgba(44,115,218,.3); text-decoration: none; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--slate-200); color: var(--navy-800); }
.btn-outline:hover { background: var(--slate-100); text-decoration: none; }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--slate-800);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,115,218,.15);
}
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ── Flash messages ── */
.flash-list { list-style: none; padding: 0; margin: 0 0 16px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  border-left: 3px solid;
}
.flash-success { background: #ecfdf5; border-color: var(--green-500); color: #065f46; }
.flash-error,
.flash-danger  { background: #fef2f2; border-color: var(--red-500); color: #991b1b; }
.flash-info    { background: #eff6ff; border-color: var(--accent); color: #1e3a8a; }

/* ── Login screen ── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef0fd;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-card-header {
  background: var(--navy-800);
  padding: 28px 32px;
  display: flex; align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.auth-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.auth-logo-tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.7);
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.auth-card-body {
  padding: 32px 32px 36px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.auth-card .auth-sub { color: var(--slate-500); font-size: 14px; margin-bottom: 24px; }

/* ── Admin shell ── */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy-800);
  color: #fff;
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,.06);
}

/* Brand block — LIFO logo + "Blog Admin" tag */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand:hover { text-decoration: none; }
.admin-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.admin-brand-tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
}

.admin-sidebar nav { padding: 14px 12px; }
.admin-sidebar nav > a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.admin-sidebar nav > a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.admin-sidebar nav > a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(44,115,218,.25);
}

.admin-sidebar .nav-section {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 18px 14px 6px;
}

/* Sign out button — matches LIFO outline-pill aesthetic */
.admin-signout-form {
  padding: 8px 14px 0;
}
.admin-signout-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.admin-signout-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.admin-main { padding: 28px 32px 64px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-topbar h1 {
  font-size: 24px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ── KPI grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.kpi {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: var(--navy-800);
  line-height: 1.1;
}

/* ── Table ── */
.table-wrap { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 14px 18px; font-size: 14px; }
table.data thead th {
  background: var(--slate-50);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--slate-200);
}
table.data tbody tr + tr td { border-top: 1px solid var(--slate-100); }
table.data tbody tr:hover { background: var(--slate-50); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-published { background: #ecfdf5; color: #065f46; }
.badge-draft     { background: #fef3c7; color: #92400e; }

/* KPI delta */
.kpi-delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.kpi-delta.up   { color: var(--green-500); }
.kpi-delta.down { color: var(--red-500); }

/* Dashboard widget grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.dash-list { list-style: none; padding: 0; margin: 6px 0 0; }
.dash-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--slate-100);
}
.dash-list li:first-child { border-top: 0; padding-top: 4px; }
.dash-list-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.dash-list-title {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-list-title:hover { color: var(--accent); }
.dash-list-meta { display: flex; gap: 6px; font-size: 12.5px; align-items: center; }

/* Admin thumbnail + title cell (used in dashboard widgets + articles list table) */
.admin-thumb {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  overflow: hidden;
  color: var(--slate-400);
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb svg { width: 20px; height: 20px; }

.admin-title-cell {
  display: flex; align-items: center; gap: 12px;
}
.admin-title-cell-text { min-width: 0; flex: 1; }

/* Media library grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.media-tile {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.media-thumb {
  aspect-ratio: 4/3;
  background: var(--slate-50);
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.media-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--navy-800);
}
.media-meta { display: flex; gap: 4px; font-size: 12px; }
.media-actions { display: flex; gap: 6px; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}

/* ─────────────────────────────────────────────
   PUBLIC BLOG PAGES (.bp-*)
   ───────────────────────────────────────────── */

/* ─── Shared LIFO Header (matches main lifotechnologies.com nav) ─── */
.lifo-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lifo-nav-inner {
  display: flex; align-items: center;
  padding: 14px 24px;
  gap: 16px;
}
.lifo-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lifo-logo img {
  height: 44px; width: auto;
  filter: brightness(0) invert(1);
}
.lifo-nav-links {
  display: flex; align-items: center; gap: 20px;
  margin: 0 auto;
}
@media (min-width: 1280px) {
  .lifo-nav-links { gap: 32px; }
}

/* Top-level nav links — scoped to DIRECT children + the dropdown's trigger link
   so the dropdown menu items below don't inherit this treatment. */
.lifo-nav-links > a,
.lifo-nav-dropdown-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 8px 0;
  transition: color .25s ease;
}
.lifo-nav-links > a:hover,
.lifo-nav-dropdown-link:hover { color: #fff; text-decoration: none; }
.lifo-nav-links > a::after,
.lifo-nav-dropdown-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: #fff;
  transition: width .3s cubic-bezier(0.16,1,0.3,1);
}
.lifo-nav-links > a:hover::after,
.lifo-nav-dropdown-link:hover::after { width: 100%; }
.lifo-nav-links > a.active,
.lifo-nav-dropdown-link.active { color: #fff; }
.lifo-nav-links > a.active::after,
.lifo-nav-dropdown-link.active::after { width: 100%; }

/* ─── Products dropdown ─── */
.lifo-nav-dropdown { position: relative; }
.lifo-nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
}
.lifo-nav-dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 4px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .25s ease, transform .25s ease;
}
.lifo-nav-dropdown-toggle:hover { color: #fff; }
.lifo-nav-dropdown.open .lifo-nav-dropdown-toggle { transform: rotate(180deg); color: #fff; }
.lifo-nav-dropdown.open .lifo-nav-dropdown-link { color: #fff; }
.lifo-nav-dropdown.open .lifo-nav-dropdown-link::after { width: 100%; }

.lifo-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 15px 50px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(0.16,1,0.3,1), visibility .25s;
  z-index: 1010;
}
.lifo-nav-dropdown-menu::before {
  /* Arrow */
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--navy-900);
}
.lifo-nav-dropdown-menu::after {
  /* Hover bridge — keeps :hover alive while moving cursor from trigger to menu */
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
.lifo-nav-dropdown.open .lifo-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.lifo-nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
}
.lifo-nav-dropdown-menu a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  padding-left: 22px;
  text-decoration: none;
}

.lifo-cta {
  display: inline-flex; align-items: center;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  text-decoration: none;
  transition: all .3s ease;
}
.lifo-cta:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  text-decoration: none;
}

/* Mobile burger */
.lifo-burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.lifo-burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
  border-radius: 1px;
}
.lifo-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lifo-burger.open span:nth-child(2) { opacity: 0; }
.lifo-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.lifo-mobile-menu {
  position: fixed; inset: 0;
  z-index: 1050;
  background: rgba(1, 6, 53, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lifo-mobile-menu.open { opacity: 1; pointer-events: auto; }
.lifo-mobile-menu a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.lifo-mobile-menu a:hover { color: #fff; text-decoration: none; }
.lifo-mobile-menu a.active { color: #fff; }
.lifo-mobile-menu .lifo-cta {
  margin-top: 12px;
  font-size: 16px;
  padding: 14px 32px;
}

/* Below xl (1280px): hide the "Talk to an Expert" pill — the Contact nav link
   already covers that need, and 7 nav items + logo need the room. */
@media (max-width: 1279px) {
  .lifo-cta:not(.lifo-mobile-menu .lifo-cta) { display: none; }
}

/* Below lg (1024px): hide desktop nav entirely, show hamburger. */
@media (max-width: 1023px) {
  .lifo-nav-links { display: none; }
  .lifo-burger { display: block; margin-left: auto; }
}

/* Mobile menu — Products sub-links grouped under the parent */
.lifo-mobile-sublinks {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  padding: 4px 0 8px;
  margin-top: -8px;
}
.lifo-mobile-sublinks a {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.65) !important;
}
.lifo-mobile-sublinks a:hover { color: #fff !important; }

/* Body padding so content doesn't slide under the fixed nav */
body.bp-page { padding-top: 76px; }

/* ─── LIFO Footer ─── */
.lifo-footer {
  background: var(--navy-800);
  color: #fff;
  padding: 64px 24px 32px;
  margin-top: 0;
}
.lifo-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 1023px) {
  .lifo-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .lifo-footer-grid { grid-template-columns: 1fr; }
}
.lifo-footer-brand-img {
  height: 40px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 22px;
  display: block;
}
.lifo-footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
  margin: 0 0 22px;
}
.lifo-socials { display: flex; gap: 12px; }
.lifo-socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  transition: all .3s ease;
  text-decoration: none;
}
.lifo-socials a:hover {
  border-color: var(--navy-400);
  background: rgba(99,109,232,.1);
  color: #fff;
  text-decoration: none;
}
.lifo-socials svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lifo-socials .icon-x { fill: currentColor; stroke: none; width: 14px; height: 14px; }

.lifo-footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.lifo-footer ul { list-style: none; padding: 0; margin: 0; }
.lifo-footer ul li + li { margin-top: 12px; }
.lifo-footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .25s ease;
}
.lifo-footer ul a:hover { color: var(--navy-300); text-decoration: none; }

.lifo-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  gap: 16px;
  flex-wrap: wrap;
}
.lifo-footer-copy {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
}
.lifo-footer-legal {
  display: flex; align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lifo-footer-legal a {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .25s ease;
}
.lifo-footer-legal a:hover { color: var(--navy-300); }
.lifo-footer-legal .sep { color: rgba(255,255,255,.2); font-size: 13.5px; }

/* OLD bp-nav (single search bar) — removed; replaced by .lifo-nav above */
.bp-search { flex: 1; max-width: 420px; margin: 0 auto; }
.bp-search-input {
  width: 100%; padding: 9px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 999px; font: inherit;
  background: var(--slate-50);
}
.bp-search-input:focus { outline: none; border-color: var(--accent); background:#fff; }

/* Hero */
.bp-hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 5%, rgba(44, 115, 218, 0.10), transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
@media (max-width: 640px) {
  .bp-hero { padding: 48px 0 36px; }
}
.bp-hero .bp-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 10px;
}
.bp-hero .bp-hero-sub {
  max-width: 720px;
  color: rgba(255,255,255,.65);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.bp-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.bp-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
}
.bp-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Eyebrow / micro labels */
.bp-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.bp-eyebrow:hover { color: var(--navy-800); text-decoration: none; }

.bp-meta { color: var(--slate-500); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Featured */
.bp-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  padding-top: 12px;
}
.bp-featured-img-wrap { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 18px; }
.bp-featured-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.bp-featured-img-wrap:hover .bp-featured-img { transform: scale(1.03); }
.bp-featured-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
  line-height: 1.15;
}
.bp-featured-title a { color: var(--navy-800); text-decoration: none; }
.bp-featured-title a:hover { color: var(--accent); }
.bp-featured-excerpt { color: var(--slate-600); font-size: 16px; margin-bottom: 14px; }
@media (max-width: 800px) {
  .bp-featured { grid-template-columns: 1fr; }
}

.bp-img-placeholder {
  background: linear-gradient(135deg, var(--navy-100) 0%, var(--slate-200) 100%);
}

/* Card grid */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 900px) {
  .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 560px) {
  .bp-grid { grid-template-columns: 1fr; gap: 18px; }
}
.bp-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bp-card:hover {
  border-color: var(--navy-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.bp-card-img-wrap { display: block; aspect-ratio: 14/10; overflow: hidden; }
.bp-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bp-card-img-wrap:hover .bp-card-img { transform: scale(1.04); }
.bp-card-body { padding: 18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.bp-card-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 4px 0 0;
}
.bp-card-title a { color: var(--navy-800); text-decoration: none; }
.bp-card-title a:hover { color: var(--accent); }
.bp-card-excerpt { color: var(--slate-600); font-size: 14.5px; margin: 4px 0 6px; flex: 1; }

/* Pagination */
.bp-pagination {
  display: flex; gap: 10px;
  justify-content: center; align-items: center;
  margin-top: 40px;
}

/* Empty state */
.bp-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--slate-200);
  border-radius: 14px;
  background: #fff;
}

/* Newsletter section */
.bp-newsletter {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 0;
}
.bp-newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.bp-newsletter h3 {
  color: #fff;
  font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.bp-newsletter .muted { color: rgba(255,255,255,.7); }
.bp-newsletter-form { display: flex; gap: 8px; min-width: 320px; }
.bp-newsletter-form input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.bp-newsletter-form input::placeholder { color: rgba(255,255,255,.45); }

/* Footer */
.bp-footer {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  margin-top: 0;
}
.bp-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--slate-500);
  gap: 16px;
}

/* ── Back-to-top button (fixed bottom-right) ── */
.bp-scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(3, 13, 106, 0.3);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity .3s ease,
              transform .3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color .25s ease,
              box-shadow .25s ease;
}
.bp-scroll-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.bp-scroll-top:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(3, 13, 106, 0.4);
}
.bp-scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .bp-scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ── Article hero (two-column, dark) ── */
.bp-hero-detail {
  background:
    radial-gradient(ellipse 80% 60% at 80% 5%, rgba(44, 115, 218, 0.10), transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 32px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  overflow: hidden;
}
@media (max-width: 640px) {
  .bp-hero-detail { padding: 24px 0 48px; }
}

/* Breadcrumb band — white strip between header and dark hero */
.bp-breadcrumb-band {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}
@media (max-width: 640px) {
  .bp-breadcrumb-band { padding: 12px 0; }
}
.bp-hero-breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px;
}
@media (max-width: 640px) {
  .bp-hero-breadcrumb { font-size: 12px; gap: 6px; }
  .bp-hero-breadcrumb .current {
    max-width: 220px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}
.bp-hero-breadcrumb a {
  color: var(--slate-500);
  text-decoration: none;
  transition: color .2s;
}
.bp-hero-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.bp-hero-breadcrumb span[aria-hidden] { color: var(--slate-400); }
.bp-hero-breadcrumb .current { color: var(--accent); font-weight: 500; }

/* Grid */
.bp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 1100px) {
  .bp-hero-grid { gap: 36px; }
}
@media (max-width: 900px) {
  .bp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .bp-hero-right { order: -1; }
}

/* Chip row */
.bp-hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
@media (max-width: 640px) { .bp-hero-chips { margin-bottom: 20px; } }
.bp-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: filter .2s;
}
.bp-hero-chip.primary {
  background: var(--accent);
  color: #fff;
}
.bp-hero-chip.primary:hover { filter: brightness(1.1); text-decoration: none; }
.bp-hero-chip.outline {
  background: rgba(44, 115, 218, 0.14);
  color: var(--navy-300);
  border: 1px solid rgba(44, 115, 218, 0.35);
}

/* Title — large, white, no uppercase (matches reference) */
.bp-hero-detail .bp-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.625rem, 4.2vw, 2.875rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-transform: none;
  /* Long words wrap on narrow screens instead of overflowing the card */
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.bp-hero-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 28px 0;
}
@media (max-width: 640px) { .bp-hero-divider { margin: 22px 0; } }

/* Author + Published row */
.bp-hero-byline-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px) {
  .bp-hero-byline-row { grid-template-columns: 1fr; gap: 20px; }
}
.bp-hero-byline-block {
  display: flex; align-items: center; gap: 14px;
}
.bp-hero-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.bp-hero-byline-text {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.bp-hero-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.45);
}
.bp-hero-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.bp-hero-detail .bp-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat pills row */
.bp-hero-stats {
  display: flex; flex-wrap: wrap; gap: 22px;
}
@media (max-width: 640px) {
  .bp-hero-stats { gap: 14px 18px; }
}
.bp-hero-stat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.bp-hero-stat svg {
  width: 15px; height: 15px;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
}

/* RIGHT — year badge + image card */
.bp-hero-right { position: relative; }
.bp-hero-year-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 6px;
}
.bp-hero-image-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 900px) {
  /* On stacked layout, a 4:3 portrait would dominate. Use a landscape ratio. */
  .bp-hero-image-card { aspect-ratio: 16 / 9; max-height: 60vh; }
}
@media (max-width: 480px) {
  .bp-hero-image-card { aspect-ratio: 16 / 10; }
}
.bp-hero-image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bp-hero-image-card.placeholder::before,
.bp-hero-image-card.placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.bp-hero-image-card.placeholder::before {
  width: 200px; height: 200px;
  top: -40px; right: -40px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
}
.bp-hero-image-card.placeholder::after {
  width: 160px; height: 160px;
  bottom: -30px; left: -30px;
  background: radial-gradient(circle, rgba(44,115,218,.18) 0%, transparent 70%);
}
.bp-hero-image-card.placeholder .ph-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,.18);
  text-transform: uppercase;
}

/* Source / tag chips below image */
.bp-hero-source-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.bp-hero-source-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
}
.bp-hero-source-chip-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 10.5px;
}

.bp-article-body-wrap {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ── Highlights callout: sits between hero and body ── */
.bp-highlights {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 26px 24px;
  background: linear-gradient(135deg, #f4f8ff 0%, #eef3ff 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bp-highlights-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}
.bp-highlights-body {
  min-width: 0;
}
.bp-highlights-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.bp-highlights-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--navy-900);
  font-style: italic;
}
@media (max-width: 640px) {
  .bp-highlights {
    grid-template-columns: 1fr;
    padding: 18px 18px 20px;
  }
  .bp-highlights-icon { width: 28px; height: 28px; }
  .bp-highlights-text { font-size: 15.5px; }
}

/* ── Article body: two-column layout (main + Related Posts sidebar) ── */
.bp-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 64px;
  align-items: start;
}
.bp-article-main { min-width: 0; max-width: 760px; }

.bp-article-sidebar {
  position: sticky;
  top: 96px;  /* below fixed LIFO nav (~76px) + breathing room */
  display: flex; flex-direction: column;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}
.bp-article-sidebar::-webkit-scrollbar { width: 6px; }
.bp-article-sidebar::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
.bp-article-sidebar::-webkit-scrollbar-track { background: transparent; }

.bp-sidebar-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate-500);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}

.bp-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Compact horizontal card — small thumbnail left, text right (sidebar) */
.bp-card.bp-card-compact {
  flex-direction: row;
  align-items: stretch;
  border-radius: 10px;
}
.bp-card.bp-card-compact .bp-card-img-wrap {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--slate-100);
}
.bp-card.bp-card-compact .bp-card-body {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 12px;
  gap: 3px;
}
.bp-card.bp-card-compact .bp-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.bp-card.bp-card-compact .bp-card-title {
  font-size: 13.5px;
  line-height: 1.35;
  margin: 2px 0 0;
  /* Clamp to 3 lines max so card heights stay consistent */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-card.bp-card-compact .bp-card-excerpt { display: none; }
.bp-card.bp-card-compact .bp-meta {
  font-size: 11.5px;
  margin-top: 2px;
}

/* Responsive collapse */
@media (max-width: 1100px) {
  .bp-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 900px) {
  .bp-article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .bp-article-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .bp-sidebar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .bp-article-layout { padding-top: 32px; padding-bottom: 40px; gap: 36px; }
}
.bp-article-body { font-size: 17px; line-height: 1.75; color: var(--slate-700); }
.bp-article-body h1, .bp-article-body h2, .bp-article-body h3, .bp-article-body h4 {
  margin: 1.8em 0 .5em;
  color: var(--navy-800);
}
.bp-article-body h2 { font-size: 26px; }
.bp-article-body h3 { font-size: 21px; }
.bp-article-body p { margin: 0 0 1.1em; }
.bp-article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bp-article-body ul, .bp-article-body ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.bp-article-body li { margin: .35em 0; }
.bp-article-body blockquote {
  margin: 1.4em 0;
  padding: 8px 22px;
  border-left: 3px solid var(--accent);
  color: var(--slate-600);
  font-style: italic;
}
.bp-article-body pre {
  background: var(--navy-900); color: #e2e8f0;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 1.2em 0;
}
.bp-article-body code {
  background: var(--slate-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.bp-article-body pre code { background: transparent; padding: 0; color: inherit; }
.bp-article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2em 0; }
.bp-article-body hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2em 0; }
.bp-article-body table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0;
  font-size: 15px;
}
.bp-article-body th, .bp-article-body td {
  border: 1px solid var(--slate-200);
  padding: 8px 12px;
  text-align: left;
}
.bp-article-body th { background: var(--slate-50); font-weight: 600; }

/* Tags + share */
.bp-tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
.bp-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 999px;
  font-size: 13px;
}
.bp-share {
  display: flex; gap: 12px; align-items: center;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--slate-200);
  font-size: 14px;
}
.bp-share a, .bp-share-copy {
  color: var(--navy-800);
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--slate-200);
  padding: 5px 12px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}
.bp-share a:hover, .bp-share-copy:hover { border-color: var(--navy-800); text-decoration: none; }

/* Prev / next */
.bp-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
}
.bp-prevnext a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.bp-prevnext a:hover { border-color: var(--navy-200); box-shadow: var(--shadow-sm); text-decoration: none; }
.bp-prevnext .bp-prev { text-align: left; }
.bp-prevnext .bp-next { text-align: right; grid-column: 2; }
.bp-prevnext-label { font-size: 12px; color: var(--slate-500); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.bp-prevnext-title { color: var(--navy-800); font-weight: 600; font-size: 15px; }
@media (max-width: 640px) {
  .bp-prevnext { grid-template-columns: 1fr; }
  .bp-prevnext .bp-next { grid-column: auto; text-align: left; }
}

/* Related */
.bp-related {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 56px 0;
}
.bp-related-title {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 22px;
}

