:root {
  --lr-accent: #3B5475;
  --lr-accent-dark: #2C3F5A;
  --lr-accent-soft: #E5ECF4;
  --lr-accent-strong: #1F3050;
  --lr-bg: #F4F6F8;
  --lr-surface: #FFFFFF;
  --lr-surface-alt: #ECEFF3;
  --lr-border: #D7DDE5;
  --lr-border-soft: #E4E8EE;
  --lr-text: #1F2933;
  --lr-text-muted: #57636F;
  --lr-text-faint: #7B8794;
  --lr-utility-bg: #1F2933;
  --lr-utility-fg: #E4E8EE;
  --lr-radius: 4px;
  --lr-radius-lg: 8px;
  --lr-radius-pill: 999px;
  --lr-shadow: 0 1px 2px rgba(31, 41, 51, 0.06);
  --lr-shadow-hover: 0 4px 10px rgba(31, 41, 51, 0.10);
  --lr-shadow-sticky: 0 1px 0 rgba(31, 41, 51, 0.04), 0 4px 16px rgba(31, 41, 51, 0.06);
  --lr-focus: 0 0 0 3px rgba(59, 84, 117, 0.30);
  --lr-max: 1180px;
  --lr-pad-x: 20px;
  --lr-tap: 44px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lr-bg);
  color: var(--lr-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--lr-accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--lr-accent-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--lr-focus);
  border-radius: 3px;
}

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

/* ---------- Skip link ---------- */
.lr-skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.lr-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--lr-accent);
  color: #fff;
  border-radius: var(--lr-radius);
  font-weight: 600;
  z-index: 100;
}

/* ---------- Utility bar ---------- */
.lr-utility {
  background: var(--lr-utility-bg);
  color: var(--lr-utility-fg);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.lr-utility__inner {
  max-width: var(--lr-max);
  margin: 0 auto;
  padding: 6px var(--lr-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lr-utility__name {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lr-utility-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-utility__find {
  color: var(--lr-utility-fg);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: var(--lr-radius-pill);
  white-space: nowrap;
}
.lr-utility__find:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

/* ---------- Mobile nav toggle (CSS-only) ---------- */
.lr-nav-toggle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lr-nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--lr-tap);
  height: var(--lr-tap);
  padding: 10px;
  cursor: pointer;
  border-radius: var(--lr-radius);
  margin-left: auto;
}
.lr-nav-burger:hover { background: var(--lr-surface-alt); }
.lr-nav-burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lr-accent-dark);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.lr-nav-toggle:focus-visible + .lr-header .lr-nav-burger {
  box-shadow: var(--lr-focus);
}

/* ---------- Header (sticky) ---------- */
.lr-header {
  background: var(--lr-surface);
  border-bottom: 1px solid var(--lr-border);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--lr-shadow-sticky);
}
.lr-header__inner {
  max-width: var(--lr-max);
  margin: 0 auto;
  padding: 10px var(--lr-pad-x);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo burger"
    "search search"
    "nav nav";
  align-items: center;
  gap: 10px 12px;
}
.lr-logo {
  grid-area: logo;
  font-size: 20px;
  font-weight: 700;
  color: var(--lr-accent-dark);
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1.2;
  min-height: var(--lr-tap);
  display: inline-flex;
  align-items: center;
}
.lr-logo:hover { text-decoration: none; color: var(--lr-accent); }

.lr-nav-burger { grid-area: burger; justify-self: end; }

.lr-header__search { grid-area: search; min-width: 0; }

.lr-nav {
  grid-area: nav;
  width: 100%;
  display: none;
}
.lr-nav-toggle:checked ~ .lr-header .lr-nav { display: block; }
.lr-nav__list {
  list-style: none;
  margin: 0;
  padding: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--lr-border-soft);
}
.lr-nav__list > li { border-bottom: 1px solid var(--lr-border-soft); }
.lr-nav__list > li:last-child { border-bottom: none; }
.lr-nav__link {
  display: flex;
  align-items: center;
  min-height: var(--lr-tap);
  padding: 10px 4px;
  color: var(--lr-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.lr-nav__link:hover {
  color: var(--lr-accent);
  text-decoration: none;
}

@media (min-width: 720px) {
  .lr-header__inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    grid-template-areas:
      "logo search burger"
      "nav nav nav";
    gap: 12px 18px;
    padding: 12px var(--lr-pad-x);
  }
  .lr-logo { font-size: 22px; }
  .lr-nav-burger { display: none; }
  .lr-nav { display: block !important; }
  .lr-nav__list {
    flex-direction: row;
    gap: 4px 22px;
    padding: 0;
    border-top: none;
    flex-wrap: wrap;
    align-items: center;
  }
  .lr-nav__list > li { border-bottom: none; }
  .lr-nav__link {
    min-height: 0;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 2px solid transparent;
  }
  .lr-nav__link:hover { border-bottom-color: var(--lr-accent); }
}

@media (min-width: 1000px) {
  .lr-header__inner {
    grid-template-columns: auto minmax(260px, 360px) 1fr;
    grid-template-areas: "logo search nav";
    align-items: center;
  }
  .lr-nav__list { justify-content: flex-end; }
}

/* ---------- Search form ---------- */
.lr-search { display: block; }
.lr-search__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-text-muted);
  margin-bottom: 6px;
}
.lr-search--compact .lr-search__label {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lr-search__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lr-search__row:focus-within {
  border-color: var(--lr-accent);
  box-shadow: var(--lr-focus);
}
.lr-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--lr-text);
  font: inherit;
  padding: 0 14px;
  min-height: var(--lr-tap);
  font-size: 16px;
}
.lr-search__input::placeholder { color: var(--lr-text-faint); }
.lr-search__btn {
  border: none;
  background: var(--lr-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 16px;
  min-height: var(--lr-tap);
  min-width: 64px;
  cursor: pointer;
  border-radius: 0;
}
.lr-search__btn:hover { background: var(--lr-accent-dark); }

.lr-search--large .lr-search__input { font-size: 18px; min-height: 52px; }
.lr-search--large .lr-search__btn { min-height: 52px; padding: 0 22px; }
.lr-search--large .lr-search__row { border-width: 2px; }

.lr-search--compact .lr-search__input { font-size: 14px; min-height: 38px; padding: 0 10px; }
.lr-search--compact .lr-search__btn { min-height: 38px; padding: 0 12px; min-width: 0; }
@media (max-width: 719px) {
  .lr-search--compact .lr-search__btn { font-size: 0; padding: 0 14px; }
  .lr-search--compact .lr-search__btn::after { content: "Go"; font-size: 14px; }
}

/* ---------- Main ---------- */
.lr-main {
  max-width: var(--lr-max);
  margin: 0 auto;
  padding: 20px var(--lr-pad-x) 48px;
}

/* ---------- Hero ---------- */
.lr-hero {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--lr-shadow);
  border-left: 4px solid var(--lr-accent);
  overflow: hidden;
}
.lr-hero__inner { max-width: 760px; }
/* Optional BFL hero banner above the search card. Sits flush with the rounded
 * corners of the parent card; aspect-ratio reserves the box before the bytes
 * land so the search input doesn't jump. We collapse the banner under 480px
 * to keep the home page above-the-fold focused on the search affordance. */
.lr-hero-banner {
  margin: -22px -22px 18px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--lr-surface-alt);
}
.lr-hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 479px) {
  .lr-hero-banner { display: none; }
}
.lr-hero__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lr-accent);
}
.lr-hero__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--lr-accent-dark);
  letter-spacing: -0.01em;
}
.lr-hero__lede {
  margin: 0 0 18px;
  color: var(--lr-text-muted);
  font-size: 16px;
}
.lr-hero__search { max-width: 640px; }

@media (min-width: 720px) {
  .lr-hero { padding: 30px 32px; margin-bottom: 28px; }
  .lr-hero__title { font-size: 36px; }
  .lr-hero__lede { font-size: 17px; }
  .lr-hero-banner { margin: -30px -32px 22px; aspect-ratio: 24 / 9; }
}

/* Article hero — banded full-bleed figure rendered ABOVE the breadcrumb on
 * detail pages when a hero-slot image is ready. No border-radius,
 * consistent with the home banners flush-bleed aesthetic; 21:9 at small
 * sizes promoting to 24:9 at the 720px breakpoint to match the home banner.
 * The figure is marked decorative (aria-hidden) so screen readers skip it
 * straight to the title — the articles information lives in the body. */
.lr-hero--article {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--lr-surface-alt);
}
.lr-hero--article img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 720px) {
  .lr-hero--article { aspect-ratio: 24 / 9; margin-bottom: 28px; }
}

/* ---------- Sections ---------- */
.lr-section { margin: 0 0 32px; }
.lr-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--lr-border);
  padding-bottom: 8px;
}
.lr-section__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-text-muted);
}
.lr-section__count {
  margin: 0;
  font-size: 12px;
  color: var(--lr-text-faint);
  white-space: nowrap;
}
.lr-section__empty {
  color: var(--lr-text-faint);
  font-style: italic;
  margin: 0;
  padding: 16px 0;
}
/* When the title appears outside a head wrapper (e.g. simple sections),
   keep the historical underline behaviour. */
.lr-section > .lr-section__title:first-child {
  border-bottom: 1px solid var(--lr-border);
  padding-bottom: 8px;
  margin: 0 0 14px;
}

/* ---------- Filter chip row ---------- */
.lr-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 24px;
  padding: 12px 14px;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow);
}
.lr-filters__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-text-muted);
}
.lr-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lr-filters__chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lr-text);
  background: var(--lr-surface-alt);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
.lr-filters__chip:hover {
  background: var(--lr-accent-soft);
  border-color: #C7D5E5;
  color: var(--lr-accent-dark);
  text-decoration: none;
}
.lr-filters__chip--active,
.lr-filters__chip--active:hover {
  background: var(--lr-accent);
  border-color: var(--lr-accent);
  color: #fff;
}

/* ---------- Category chip grid ---------- */
.lr-chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 540px) {
  .lr-chip-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 860px) {
  .lr-chip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .lr-chip-grid { grid-template-columns: repeat(4, 1fr); }
}
.lr-chip-grid__item { display: block; }
.lr-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius);
  padding: 12px 14px;
  min-height: 72px;
  text-decoration: none;
  color: var(--lr-text);
  box-shadow: var(--lr-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lr-chip:hover {
  border-color: var(--lr-accent);
  box-shadow: var(--lr-shadow-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.lr-chip__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--lr-accent-dark);
  line-height: 1.25;
}
.lr-chip__desc {
  font-size: 13px;
  color: var(--lr-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lr-chip__view {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lr-accent);
  letter-spacing: 0.02em;
}

/* ---------- Resource cards (recent / category list) ---------- */
.lr-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .lr-card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 960px) {
  .lr-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.lr-card {
  /* Position-relative so the absolute-positioned badge anchors to the card,
     not the grid container. Pre-fix the badge floated in the grid gap and
     overlapped neighbouring cards on the row. */
  display: block;
  position: relative;
}
.lr-card__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-left: 3px solid var(--lr-accent);
  border-radius: var(--lr-radius);
  /* Extra top padding leaves room for the badge corner chip — the badge
     never overlaps card content or the row gap. */
  padding: 30px 16px 14px;
  height: 100%;
  text-decoration: none;
  color: var(--lr-text);
  box-shadow: var(--lr-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lr-card__link:hover {
  border-color: var(--lr-accent-dark);
  box-shadow: var(--lr-shadow-hover);
  text-decoration: none;
}
.lr-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--lr-accent-dark);
}
.lr-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lr-text-faint);
}
.lr-card__badge {
  /* Corner chip — anchored to the card via .lr-card { position: relative; }.
     Sits inside the card's reserved top padding so it never overlaps the
     row gap or card title. */
  position: absolute;
  top: 8px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--lr-accent-soft);
  color: var(--lr-accent-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--lr-radius-pill);
  font-size: 11px;
}
/* When the badge is an <a> linking to /category/<slug> we keep the same
   pill chrome but add the underline-on-hover affordance. */
.lr-card__badge--link {
  text-decoration: none;
  transition: background 0.15s ease;
}
.lr-card__badge--link:hover {
  background: var(--lr-accent);
  color: #fff;
  text-decoration: none;
}
/* Card excerpt — short prose sourced from meta_description / first paragraph
   of body. Hidden when the producer didn't derive one (no boilerplate
   placeholder strings — visual audit P1 enforced). */
.lr-card__excerpt {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lr-text-muted);
}
.lr-card__stamp { color: var(--lr-text-muted); }
.lr-card__cta {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lr-accent);
}

/* ---------- "More" pagination link ---------- */
.lr-more {
  margin: 18px 0 0;
  text-align: center;
}
/* "Older posts →" affordance — sits at the bottom of the home / archive
   feed. Visual audit: pre-fix this link appeared to live inside the last
   card; the separator gap + top border distinguishes the affordance from
   the card grid above. */
.lr-paginate {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--lr-border-soft);
  text-align: center;
}
.lr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--lr-tap);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--lr-radius);
  border: 1px solid transparent;
  background: var(--lr-accent);
  color: #fff;
}
.lr-button:hover { background: var(--lr-accent-dark); color: #fff; text-decoration: none; }
.lr-button--ghost {
  background: transparent;
  color: var(--lr-accent);
  border-color: var(--lr-border);
}
.lr-button--ghost:hover {
  background: var(--lr-accent-soft);
  border-color: var(--lr-accent);
  color: var(--lr-accent-dark);
}

/* ---------- Detail layout ---------- */
.lr-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .lr-detail {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 32px;
  }
}

/* ---------- Breadcrumbs ---------- */
.lr-breadcrumb { margin: 0 0 14px; }
.lr-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--lr-text-muted);
}
.lr-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.lr-breadcrumb__item + .lr-breadcrumb__item::before {
  content: "/";
  color: var(--lr-text-faint);
  margin-right: 4px;
}
.lr-breadcrumb__item a { color: var(--lr-accent); }
.lr-breadcrumb__item--current { color: var(--lr-text); font-weight: 500; }

/* ---------- Article ---------- */
.lr-article {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-lg);
  padding: 22px;
  box-shadow: var(--lr-shadow);
}
@media (min-width: 720px) {
  .lr-article { padding: 28px 32px; }
}
.lr-article__header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lr-border-soft);
}
.lr-article__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--lr-accent-dark);
  letter-spacing: -0.005em;
}
@media (min-width: 720px) {
  .lr-article__title { font-size: 30px; }
}

/* Article meta — category pill + "Updated <relative>" stamp directly under
   the title. Compact horizontal block; wraps cleanly on narrow viewports. */
.lr-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lr-text-muted);
}
.lr-article-meta .article-meta__category {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lr-accent-soft);
  color: var(--lr-accent-dark);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.lr-article-meta .article-meta__category:hover {
  background: var(--lr-accent);
  color: #fff;
  text-decoration: none;
}
.lr-article-meta .article-meta__time { color: var(--lr-text-muted); }
.lr-article-meta .article-meta__byline { color: var(--lr-text-muted); }
.lr-article-meta .article-meta__byline a {
  color: var(--lr-accent-dark);
  font-weight: 600;
  text-decoration: none;
}
.lr-article-meta .article-meta__byline a:hover {
  color: var(--lr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lr-article-meta .article-meta__format {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lr-accent-soft);
  color: var(--lr-accent-dark);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.lr-article__body { color: var(--lr-text); font-size: 16px; line-height: 1.65; }
.lr-article__body p { margin: 0 0 1em; }
.lr-article__body h2 {
  margin: 1.6em 0 0.5em;
  font-size: 20px;
  font-weight: 700;
  color: var(--lr-accent-dark);
  line-height: 1.3;
}
.lr-article__body h3 {
  margin: 1.4em 0 0.4em;
  font-size: 17px;
  font-weight: 600;
  color: var(--lr-accent-dark);
}
.lr-article__body ul,
.lr-article__body ol { padding-left: 1.4em; margin: 0 0 1em; }
.lr-article__body li { margin-bottom: 0.3em; }
.lr-article__body blockquote {
  margin: 1.2em 0;
  padding: 8px 14px;
  border-left: 3px solid var(--lr-accent);
  background: var(--lr-accent-soft);
  color: var(--lr-text);
}
.lr-article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--lr-surface-alt);
  padding: 1px 4px;
  border-radius: 3px;
}
.lr-article__body pre {
  background: var(--lr-surface-alt);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius);
  padding: 12px 14px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
}
.lr-article__body pre code { background: transparent; padding: 0; }
.lr-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}
.lr-article__body th,
.lr-article__body td {
  border: 1px solid var(--lr-border);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
.lr-article__body th { background: var(--lr-surface-alt); font-weight: 600; }
.lr-article__body hr {
  border: 0;
  border-top: 1px solid var(--lr-border);
  margin: 1.4em 0;
}

/* ---------- Related resources block ---------- */
.lr-related {
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--lr-border);
}
.lr-related__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-text-muted);
}
.lr-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .lr-related__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.lr-related__item { display: block; }
.lr-related__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--lr-surface-alt);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius);
  text-decoration: none;
  color: var(--lr-text);
  min-height: var(--lr-tap);
}
.lr-related__link:hover {
  background: var(--lr-accent-soft);
  border-color: #C7D5E5;
  color: var(--lr-accent-dark);
  text-decoration: none;
}
.lr-related__title-text { display: contents; } /* placeholder for forwards-compat */
.lr-related__link .lr-related__title { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--lr-accent-dark); }
.lr-related__stamp { font-size: 12px; color: var(--lr-text-faint); }

/* ---------- Sidebar (detail) ---------- */
.lr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Sticky desktop sidebar — keeps "On this site" + "Browse" in view while
   the reader scrolls a long article. Pre-fix the sidebar ended ~600px
   while the article body ran 2000px+, leaving a tall empty rail.
   position: sticky on the sidebar itself sticks within the .lr-detail
   grid track. align-self: start keeps the box at the top of the cell
   (sticky needs a non-stretched containing track to anchor). max-height
   makes the box scroll internally when its own content exceeds the
   viewport so the bottom of a long "On this site" list stays reachable. */
@media (min-width: 900px) {
  .lr-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
.lr-side-box {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--lr-shadow);
}
.lr-side-box__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-text-muted);
  border-bottom: 1px solid var(--lr-border-soft);
  padding-bottom: 6px;
}
.lr-side-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lr-side-box__list li {
  border-bottom: 1px solid var(--lr-border-soft);
}
.lr-side-box__list li:last-child { border-bottom: none; }
.lr-side-box__list a {
  display: block;
  padding: 8px 0;
  color: var(--lr-text);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.4;
  min-height: 36px;
}
.lr-side-box__list a:hover { color: var(--lr-accent); text-decoration: underline; }
.lr-side-box__empty {
  color: var(--lr-text-faint);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}
.lr-side-box__text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--lr-text);
}
.lr-side-box__cta { margin: 8px 0 0; }
.lr-side-box--contact {
  background: var(--lr-accent-soft);
  border-color: #C7D5E5;
}
.lr-side-box--contact .lr-side-box__title {
  color: var(--lr-accent-dark);
  border-bottom-color: #C7D5E5;
}
.lr-side-box--search { background: var(--lr-surface); }
.lr-side-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lr-accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  min-height: 36px;
  border-radius: var(--lr-radius);
  letter-spacing: 0.02em;
}
.lr-side-box__btn:hover {
  background: var(--lr-accent-dark);
  color: #fff;
  text-decoration: none;
}

/* ---------- Category index page ---------- */
/* Wave B — wide image band above the category header card. Mirrors the
 * home .lr-hero-banner aspect (21:9 → 24:9 at large breakpoint) so the
 * category index reads as a sibling of the home page when an anchor hero
 * is available. 12px bottom margin slots above the header card; the band
 * itself uses the surface alt color for the pre-load placeholder. */
.lr-cathero-img {
  margin: 0 0 14px;
  padding: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--lr-surface-alt);
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow);
}
.lr-cathero-img__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 479px) {
  .lr-cathero-img { display: none; }
}
@media (min-width: 720px) {
  .lr-cathero-img {
    aspect-ratio: 24 / 9;
    margin-bottom: 18px;
  }
}

.lr-cat-header {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-left: 4px solid var(--lr-accent);
  border-radius: var(--lr-radius-lg);
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: var(--lr-shadow);
}
.lr-cat-header__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lr-accent);
}
.lr-cat-header__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lr-accent-dark);
}
.lr-cat-header__lede {
  margin: 0 0 6px;
  color: var(--lr-text-muted);
  font-size: 15px;
}
.lr-cat-header__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lr-text-faint);
}
/* Author persona bio — only rendered on /author/<slug> when the seed
   row has a non-empty persona. Styled as a quiet prose block under the
   meta line. */
.lr-author-bio {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--lr-border-soft);
}
.lr-author-bio p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lr-text-muted);
}
.lr-author-bio p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .lr-cat-header { padding: 24px 28px; }
  .lr-cat-header__title { font-size: 30px; }
}

/* ---------- 404 ----------
 * Practical, helpful, list-driven — same posture as the rest of the
 * directory. Big "404" numeral picks up the Status 77 signature gradient
 * (the only colour beat); body, search, and CTAs stay in the slate
 * vocabulary the directory uses elsewhere.
 */
.lr-notfound {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border-soft);
  border-radius: var(--lr-radius-lg);
  padding: 28px 22px;
  margin: 0 0 24px;
  box-shadow: var(--lr-shadow);
  position: relative;
  overflow: hidden;
}
.lr-notfound::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #4A90E2, #52C7C7);
}
.lr-notfound__numeral {
  margin: 0 0 8px;
  font-size: clamp(64px, 14vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #4A90E2, #52C7C7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lr-notfound__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lr-text-muted);
}
.lr-notfound__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--lr-accent-dark);
}
.lr-notfound__lede {
  margin: 0 0 20px;
  color: var(--lr-text-muted);
  font-size: 16px;
  max-width: 56ch;
}
.lr-notfound__code {
  background: var(--lr-surface-alt);
  border: 1px solid var(--lr-border-soft);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: var(--lr-text);
  word-break: break-all;
}
.lr-notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}
.lr-notfound__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}
.lr-notfound__cta--primary {
  background: linear-gradient(135deg, #4A90E2, #52C7C7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.20);
}
.lr-notfound__cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.28);
}
.lr-notfound__cta--ghost {
  background: var(--lr-surface);
  color: var(--lr-accent-dark);
  border: 1px solid var(--lr-border-soft);
}
.lr-notfound__cta--ghost:hover {
  background: var(--lr-surface-alt);
  border-color: var(--lr-accent-dark);
}
.lr-notfound__back { margin: 16px 0 0; }
.lr-notfound-recent {
  margin-top: 24px;
}
@media (min-width: 720px) {
  .lr-notfound { padding: 36px 40px; }
  .lr-notfound__title { font-size: 32px; }
}

/* ---------- Footer ---------- */
.lr-footer {
  background: var(--lr-utility-bg);
  color: var(--lr-utility-fg);
  margin-top: 24px;
}
.lr-footer__inner {
  max-width: var(--lr-max);
  margin: 0 auto;
  padding: 28px var(--lr-pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .lr-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 36px var(--lr-pad-x);
  }
}
@media (min-width: 1000px) {
  .lr-footer__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
.lr-footer__heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}
.lr-footer__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.lr-footer__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--lr-utility-fg);
  line-height: 1.55;
}
.lr-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lr-footer__list li { margin-bottom: 4px; }
.lr-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--lr-utility-fg);
  text-decoration: none;
  font-size: 14px;
}
.lr-footer__list a:hover { color: #fff; text-decoration: underline; }
.lr-footer__empty {
  color: var(--lr-text-faint);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}
.lr-footer__cta { margin: 6px 0 0; }
.lr-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lr-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--lr-radius);
  text-decoration: none;
}
.lr-footer__btn:hover { background: var(--lr-accent-dark); color: #fff; text-decoration: none; }
.lr-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lr-footer__legal p {
  max-width: var(--lr-max);
  margin: 0 auto;
  padding: 12px var(--lr-pad-x);
  font-size: 12px;
  color: var(--lr-text-faint);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Loader (poll-mode holding page + error fallback) ----------
 * Directory aesthetic: clean, dense, slate-blue accent ring on a white
 * card over the standard light grey-blue page background. Sans-serif
 * throughout — no display fonts in the loader. Spinner is a thin rotating
 * ring in the slate accent; reduced-motion stops the rotation but keeps
 * the card visible.
 */
.lr-loader-body {
  margin: 0;
  background: var(--lr-bg);
}
.lr-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--lr-pad-x);
}
.lr-loader__card {
  width: 100%;
  max-width: 480px;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow);
  padding: 36px 28px;
  text-align: center;
}
.lr-loader__eyebrow {
  display: inline-block;
  margin: 0 0 20px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lr-text-muted);
}
.lr-loader__spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--lr-border);
  border-top-color: var(--lr-accent);
  margin-bottom: 20px;
  animation: lr-loader-spin 1s linear infinite;
}
@keyframes lr-loader-spin {
  to { transform: rotate(360deg); }
}
.lr-loader__title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lr-text);
}
.lr-loader__body-text,
.lr-loader__hint {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: var(--lr-text-muted);
  line-height: 1.55;
}
.lr-loader__path {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: var(--lr-radius-pill);
  background: var(--lr-accent-soft);
  color: var(--lr-accent);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
}
.lr-loader__card--error .lr-loader__spinner { display: none; }
.lr-loader__icon-error {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FCEEEC;
  color: #B23A2C;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.lr-loader__actions {
  margin-top: 20px;
}
.lr-loader__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  background: var(--lr-accent);
  color: #fff;
  border-radius: var(--lr-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lr-loader__link:hover { background: var(--lr-accent-dark); color: #fff; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .lr-loader__spinner { animation: none; }
}
