:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #10151c;
  --muted: rgba(16, 21, 28, 0.7);
  --line: rgba(16, 21, 28, 0.12);
  --teal: #0f766e;
  --gold: #ca8a04;
  --indigo: #4f46e5;
  --rose: #be185d;
  --sky: #0284c7;
  --green: #15803d;
  --shadow: 0 24px 70px rgba(13, 18, 28, 0.1);
  --shadow-soft: 0 12px 28px rgba(13, 18, 28, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(202, 138, 4, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.09), transparent 24%),
    linear-gradient(180deg, #faf8f4 0%, #f0ece2 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: min(var(--max), calc(100vw - 24px));
  margin: 0 auto;
  padding: 112px 0 28px;
}

.nav-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 100;
  pointer-events: none;
}
.nav-underlay {
  position: absolute;
  z-index: 50;
  inset: 0;
  background: rgba(250, 247, 240, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(13, 18, 28, 0.1);
  pointer-events: none;
}
.header {
  position: relative;
  z-index: 100;
  width: min(1200px, calc(100vw - 32px));
  margin: 16px auto 0;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(15, 118, 110, 0.96);
  box-shadow: 0 22px 54px rgba(13, 18, 28, 0.24), 0 10px 24px rgba(15, 118, 110, 0.20);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  pointer-events: auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold) 34%, var(--teal) 68%);
}
.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}
.nav a svg { font-size: 1rem; }
.nav a.active {
  color: #fff;
  border-color: rgba(202, 138, 4, 0.82);
  background: rgba(202, 138, 4, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.nav a:nth-child(5n+1):hover { color: #fff; border-color: rgba(202, 138, 4, 0.86); background: rgba(202, 138, 4, 0.18); }
.nav a:nth-child(5n+2):hover { color: #fff; border-color: rgba(79, 70, 229, 0.86); background: rgba(79, 70, 229, 0.22); }
.nav a:nth-child(5n+3):hover { color: #fff; border-color: rgba(190, 24, 93, 0.86); background: rgba(190, 24, 93, 0.22); }
.nav a:nth-child(5n+4):hover { color: #fff; border-color: rgba(2, 132, 199, 0.86); background: rgba(2, 132, 199, 0.22); }
.nav a:nth-child(5n+5):hover { color: #fff; border-color: rgba(255, 255, 255, 0.76); background: rgba(255, 255, 255, 0.14); }

.main { position: relative; z-index: 1; display: grid; gap: 18px; }
.main.archive-preview-main {
  display: block;
  line-height: 1.45;
}

.hero, .panel, .card, .article, .callout, .modal, .docs, .pagination, .section, .filter-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}
.hero {
  border-radius: 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.hero h1, .section h2, .panel h2, .card h3, .article h2, .docs h2, .docs h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
h1 {
  margin: 12px 0 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
  max-width: 12ch;
}
h2 { margin: 0; font-size: 1.45rem; line-height: 1.12; }
h3 { margin: 0; font-size: 1.06rem; line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.lede, .summary, .article .intro { color: rgba(16, 21, 28, 0.8); font-size: 1.06rem; max-width: 70ch; }
.section {
  border-radius: 30px;
  padding: 18px;
}
.section-head {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .panel, .callout, .docs, .article, .filter-box, .pagination {
  border-radius: 22px;
  padding: 16px;
}
.card { display: grid; gap: 10px; position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--indigo), var(--rose));
}
.card p, .panel p, .article p, .docs p { margin: 0; color: var(--muted); }
.card .meta, .article .meta, .docs .meta { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-row, .chip-stack, .button-row, .share-row, .series-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip, .filter-chip, .page-chip, .share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.chip.active, .filter-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.18);
}
.chip.teal, .filter-chip.teal {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.18);
  color: #115e59;
}
.chip.gold, .filter-chip.gold {
  background: rgba(202, 138, 4, 0.1);
  border-color: rgba(202, 138, 4, 0.18);
  color: #936200;
}
.chip.indigo, .filter-chip.indigo {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.18);
  color: #4338ca;
}
.chip.rose, .filter-chip.rose {
  background: rgba(190, 24, 93, 0.1);
  border-color: rgba(190, 24, 93, 0.18);
  color: #9f1239;
}
.chip.mint, .filter-chip.mint {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.18);
  color: #0f766e;
}
.chip.sky, .filter-chip.sky {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.18);
  color: #0369a1;
}
.chip.amber, .filter-chip.amber {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.18);
  color: #8a6100;
}
.chip.cyan, .filter-chip.cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.18);
  color: #0e7490;
}
.chip.violet, .filter-chip.violet {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.18);
  color: #5b21b6;
}
.chip.lime, .filter-chip.lime {
  background: rgba(101, 163, 13, 0.12);
  border-color: rgba(101, 163, 13, 0.18);
  color: #4d7c0f;
}
.chip.series, .filter-chip.series {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #0f766e, #155e75);
  color: #f8fafc;
  box-shadow: 0 10px 18px rgba(21, 94, 117, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff;
  box-shadow: 0 12px 22px rgba(79, 70, 229, 0.18);
}
.btn.secondary { background: rgba(255, 255, 255, 0.78); border-color: var(--line); }

.filter-shell, .archive-shell, .filter-row {
  position: relative;
  overflow: hidden;
}
.filter-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--teal), var(--indigo));
  border-radius: 22px 0 0 22px;
}
.filter-shell {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 14px 14px 18px;
}
.filter-shell form {
  display: grid;
  gap: 10px;
}
.filter-shell .btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.16);
}
.filter-shell .btn.secondary {
  background: #fff;
  color: #11161d;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.78fr);
  gap: 10px;
  align-items: end;
}
.filter-grid.split {
  grid-template-columns: 80% 20%;
  gap: 10px;
}
.field {
  display: grid;
  gap: 4px;
}
.field label,
.field span {
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(16, 21, 28, 0.58);
}
.field.wide {
  grid-column: 1 / -1;
}
.control {
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 10px;
  box-shadow: var(--shadow-soft);
}
.search input,
.control select,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.83rem;
  min-width: 0;
}
.search input::placeholder {
  color: #8b95a6;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.results {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(79, 70, 229, 0.1));
  box-shadow: 0 10px 18px rgba(13, 18, 28, 0.04);
  font-size: 0.76rem;
  color: #334155;
  white-space: nowrap;
}
.results::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  flex: none;
}
.results strong {
  font-size: 0.92rem;
}

.filter-row {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.filter-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.filter-row-head strong {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.filter-row-head span {
  font-size: 0.68rem;
  color: var(--muted);
}
.archive-preview-main .filter-row-head {
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article {
  display: grid;
  gap: 14px;
}
.article-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.article h1 { max-width: 13ch; }
.article .quote {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
}
.article .quote p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.article .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}
.article .body {
  display: grid;
  gap: 14px;
}
.article-list {
  display: grid;
  gap: 12px;
}
.archive-shell {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px 14px 18px;
}
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.archive-toolbar .results {
  padding-inline: 9px;
}
.archive-list {
  display: grid;
  gap: 10px;
}
.article-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 12px 12px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  overflow: hidden;
}
.article-row > * {
  position: relative;
  z-index: 2;
}
.article-row-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.article-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--teal), var(--gold), var(--indigo), var(--rose));
}
.article-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 28px rgba(13, 18, 28, 0.08);
}
.article-row h3 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-title-link {
  position: relative;
  z-index: 3;
}
.article-title-link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 58ch;
}
.date-block {
  padding-top: 2px;
  color: #334155;
  font-size: 0.74rem;
}
.date-block strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.date-block span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.article-date {
  padding-top: 2px;
  color: #334155;
  font-size: 0.74rem;
}
.article-summary {
  display: grid;
  gap: 0;
  padding-top: 1px;
}
.article-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
  padding-top: 2px;
  max-width: 360px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.article-row .chip {
  font-size: 0.68rem;
  padding: 5px 8px;
  min-height: 21px;
  box-shadow: none;
}
.article-section {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}
.article-section h2 { margin-bottom: 10px; }
.article-section ul, .article-section ol { margin: 0; padding-left: 20px; }
.article-section li + li { margin-top: 8px; }

.article-detail {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.article-mobile-actions {
  display: none;
  gap: 8px;
  position: sticky;
  top: 138px;
  z-index: 20;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-x: auto;
}
.nav-pill,
.article-back,
.article-subject,
.article-facts span,
.article-facts a,
.summary-label,
.rail-card strong,
.article-prev-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-pill {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2937;
  white-space: nowrap;
}
.article-feature {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 16% 18%, rgba(202, 138, 4, 0.32), transparent 23%),
    radial-gradient(circle at 86% 0%, rgba(79, 70, 229, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(17, 22, 29, 0.98), rgba(15, 23, 42, 0.96) 46%, rgba(15, 118, 110, 0.94));
  color: #f8fafc;
  box-shadow: var(--shadow);
  padding: 18px;
}
.article-feature::after {
  content: "";
  position: absolute;
  inset: auto -120px -150px auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.article-kicker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.article-back,
.article-subject {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.article-subject {
  background: rgba(202, 138, 4, 0.16);
  border-color: rgba(202, 138, 4, 0.34);
}
.article-feature-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 18px;
  align-items: end;
  padding-top: 64px;
}
.article-title-block h1 {
  max-width: 13ch;
  margin-top: 14px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
}
.article-title-block .intro {
  margin-top: 18px;
  color: rgba(248, 250, 252, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  max-width: 62ch;
}
.article-meta-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-meta-kicker a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.article-meta-kicker span::before {
  content: "/";
  margin-right: 12px;
  color: rgba(248, 250, 252, 0.36);
}
.article-series-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.92rem;
}
.article-series-link:hover {
  color: #fff;
}
.article-summary-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px;
}
.summary-label {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-summary-card p {
  margin: 12px 0 0;
  color: rgba(248, 250, 252, 0.86);
}
.article-summary-card blockquote {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
}
.article-summary-card .share-row { margin-top: 14px; }
.article-summary-card .share {
  min-height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.article-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.article-rail {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
}
.rail-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.rail-card strong {
  margin-bottom: 4px;
  color: rgba(16, 21, 28, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rail-card a {
  padding: 9px 10px;
  border-radius: 14px;
  color: rgba(16, 21, 28, 0.78);
}
.rail-card a:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
}
.article-body {
  min-width: 0;
}
.article-prose-shell {
  position: relative;
  padding: clamp(28px, 5vw, 70px) clamp(22px, 6vw, 86px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}
.article-prose-shell > * {
  max-width: 72ch;
}
.article-prose-shell p,
.article-prose-shell li {
  color: rgba(16, 21, 28, 0.84);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}
.article-prose-shell p { margin: 0; }
.article-prose-shell p + p { margin-top: 14px; }
.article-opening {
  color: rgba(16, 21, 28, 0.92) !important;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem) !important;
  line-height: 1.62 !important;
}
.prose-section,
.prose-callout,
.prose-quote {
  margin-top: clamp(26px, 4vw, 44px);
}
.prose-section h2 {
  margin: 0 0 12px;
  max-width: 20ch;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
}
.prose-section ul,
.prose-section ol {
  margin: 0;
  padding-left: 22px;
}
.prose-section li + li { margin-top: 8px; }
.prose-quote {
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prose-quote p {
  color: var(--ink);
  font: inherit;
  line-height: inherit;
}
.prose-callout {
  padding: 18px 20px;
  border-left: 5px solid var(--teal);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02));
}
.prose-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.article-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.article-prev-next a {
  min-height: 96px;
  justify-content: space-between;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}
.article-prev-next a:hover {
  border-color: rgba(15, 118, 110, 0.28);
  transform: translateY(-1px);
}
.article-prev-next small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.article-prev-next strong {
  display: block;
  line-height: 1.18;
}

.progress-track {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 3px;
  margin: -112px 0 109px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
#progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #f0c074);
  transition: width 0.08s linear;
}
.article-page {
  display: block;
}
.hero-shell {
  margin-top: 0;
}
.article-page .hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  padding: 38px clamp(26px, 4vw, 52px);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(202, 138, 4, 0.20), transparent 42%),
    linear-gradient(125deg, #163a37 0%, #173243 45%, #1f2a4d 100%);
  box-shadow: 0 30px 60px -34px rgba(20, 40, 60, 0.75);
  display: block;
}
.article-page .hero h1 {
  max-width: none;
  margin: 0 0 26px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.dek {
  margin: 0;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.03rem;
  line-height: 1.55;
}
.keyidea {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 24px 26px;
}
.keyidea .kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.keyidea q {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.34;
  quotes: "\201C" "\201D";
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  margin: 44px 0 80px;
}
.rail {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail .panel {
  border-radius: 18px;
  padding: 20px 18px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px -22px rgba(20, 40, 40, 0.6);
}
.rail .panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -20px -18px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 17px 17px 0 0;
  background: linear-gradient(100deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.05));
  color: #14463e;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rail .panel h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.22);
  flex: none;
}
.toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.toc a:hover,
.toc a.current {
  color: #14463e;
  background: rgba(15, 118, 110, 0.08);
}
.toc a.current {
  font-weight: 650;
  border-left-color: var(--gold);
}
.browse a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.16s ease, padding 0.16s ease;
}
.browse a:hover {
  color: var(--teal);
  padding-left: 8px;
}
.back-rail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(202, 138, 4, 0.65);
  border-radius: 13px;
  background: var(--surface-strong);
  color: #9c6b11;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: 0 8px 18px -16px rgba(20, 40, 40, 0.6);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.back-rail:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(202, 138, 4, 0.12);
  color: #8a5a0b;
}
.article-detail-page {
  border-radius: 22px;
  padding: clamp(28px, 4vw, 56px);
  background: #fff;
  box-shadow: 0 18px 50px -36px rgba(20, 40, 40, 0.5);
}
.article-detail-page section {
  scroll-margin-top: 112px;
}
.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.article-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.slug-line {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-word;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}
.meta-line .pub-date {
  color: var(--gold);
  font-weight: 650;
}
.meta-line .dot-sep {
  opacity: 0.45;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 13px;
  background: linear-gradient(100deg, #efb456, var(--gold));
  color: #3a2a10;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: 0 10px 22px -14px rgba(202, 138, 4, 0.95);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 26px -14px rgba(202, 138, 4, 1);
}
.mobile-toc {
  display: none;
}
.article-detail-page section + section {
  margin-top: 40px;
}
.h-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.h-sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.article-detail-page p {
  max-width: 68ch;
  margin: 0 0 20px;
  color: #34373b;
}
.article-detail-page p:last-child {
  margin-bottom: 0;
}
.article-detail-page ul,
.article-detail-page ol {
  max-width: 68ch;
  margin: 0;
  padding-left: 22px;
  color: #34373b;
}
.article-detail-page li + li {
  margin-top: 8px;
}
.lead {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.62;
}
.lead::first-letter {
  float: left;
  padding: 6px 12px 0 0;
  color: #1e6b5b;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 800;
  line-height: 0.82;
}
.article-detail-page .callout {
  position: relative;
  margin: 8px 0 4px;
  padding: 20px 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-left: 4px solid var(--teal);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.10), rgba(15, 118, 110, 0.04));
}
.article-detail-page .callout .lbl {
  display: block;
  margin-bottom: 8px;
  color: #14463e;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-detail-page .callout p {
  max-width: 62ch;
  margin: 0;
  color: #2c4641;
}
.prose-quote {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prose-quote p {
  max-width: 62ch;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.related-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rel-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--teal));
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-left-width 0.18s ease;
}
.rel-card:hover {
  transform: translateY(-2px);
  border-left-width: 6px;
  box-shadow: 0 16px 34px -22px rgba(20, 40, 40, 0.5);
}
.rel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rel-rel {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-bg, rgba(15, 118, 110, 0.12));
  color: var(--accent-ink, #14463e);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rel-arrow {
  color: var(--accent-ink, var(--teal));
  font-size: 1.12rem;
  transition: transform 0.18s ease;
}
.rel-card:hover .rel-arrow {
  transform: translateX(4px);
}
.rel-title {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.32;
}
.rel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.tag {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
}
.tag-teal { background: #def1ed; color: #1a7a6a; }
.tag-gold { background: #faf0d6; color: #a57c18; }
.tag-gray { background: #eeede6; color: #6b6e72; }
.a-teal { --accent: #2c8a78; --accent-bg: #def1ed; --accent-ink: #176456; }
.a-purple { --accent: #6b5bd0; --accent-bg: #eceafb; --accent-ink: #5847c4; }
.a-gold { --accent: #e3a23c; --accent-bg: #faf0d6; --accent-ink: #9c7414; }
.series-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.series-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 249, 243, 0.92));
  box-shadow: 0 14px 32px -26px rgba(20, 40, 40, 0.55);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.series-nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 138, 4, 0.35);
  box-shadow: 0 18px 38px -26px rgba(20, 40, 40, 0.70);
}
.series-nav-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.series-nav-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}
.other-articles {
  width: 100%;
  margin: -36px 0 80px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-strong);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42));
}
.panel-head h3 {
  margin: 0;
  color: #115e59;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.panel-body {
  padding: 18px;
}
.oa-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.oa-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 208px;
  padding: 20px 18px;
  border: 1px solid var(--tone-line);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--tone-soft), rgba(255, 255, 255, 0.5) 70%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.oa-tile:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, var(--tone-soft), rgba(255, 255, 255, 0.35) 78%);
  box-shadow: 0 22px 44px rgba(12, 18, 28, 0.12);
}
.oa-tile .label {
  color: var(--tone);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.oa-tile h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.oa-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.oa-tile .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--tone);
  font-size: 0.9rem;
  font-weight: 600;
}
.oa-tile .arr {
  display: inline-flex;
  transition: transform 0.18s ease;
}
.oa-tile:hover .arr {
  transform: translateX(4px);
}
.t-rose { --tone: #9f1239; --tone-soft: rgba(190, 24, 93, 0.10); --tone-line: rgba(190, 24, 93, 0.18); }
.t-indigo { --tone: #4338ca; --tone-soft: rgba(79, 70, 229, 0.10); --tone-line: rgba(79, 70, 229, 0.18); }
.t-teal { --tone: #115e59; --tone-soft: rgba(15, 118, 110, 0.10); --tone-line: rgba(15, 118, 110, 0.18); }
.t-gold { --tone: #936200; --tone-soft: rgba(202, 138, 4, 0.10); --tone-line: rgba(202, 138, 4, 0.18); }
.t-sky { --tone: #0369a1; --tone-soft: rgba(2, 132, 199, 0.10); --tone-line: rgba(2, 132, 199, 0.18); }
.t-mint { --tone: #0f766e; --tone-soft: rgba(20, 184, 166, 0.10); --tone-line: rgba(20, 184, 166, 0.18); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 12px;
}
.pagination .pages { display: flex; flex-wrap: wrap; gap: 6px; }
.page-chip {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(79, 70, 229, 0.08));
  color: #334155;
  box-shadow: var(--shadow-soft);
}
.page-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff;
  box-shadow: 0 10px 18px rgba(21, 94, 117, 0.18);
}
.page-chip:first-child,
.page-chip:last-child {
  border-color: rgba(202, 138, 4, 0.18);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.1), rgba(190, 24, 93, 0.08));
  color: #7c5b00;
}

.docs pre, .docs code, .article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.docs pre {
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: #11161d;
  color: #f8fafc;
}
.docs table {
  width: 100%;
  border-collapse: collapse;
}
.docs th, .docs td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  vertical-align: top;
}

.footer {
  margin-top: 12px;
  padding: 18px 10px 0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  padding: 6px 2px 12px;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--teal); }
.copyright { margin: 14px 0 0; font-size: 0.88rem; }

@media (max-width: 1100px) {
  .hero, .article-hero, .footer-grid, .filter-grid, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero-grid,
  .layout { grid-template-columns: 1fr; }
  .layout { gap: 24px; }
  .rail { position: static; }
  .oa-tiles { grid-template-columns: 1fr; }
  .article-feature-grid,
  .article-layout,
  .article-prev-next { grid-template-columns: 1fr; }
  .article-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }
  .filter-grid.split { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-meta { justify-items: start; max-width: none; }
  .meta-row { justify-content: flex-start; }
}

@media (max-width: 880px) {
  .rail .toc-panel { display: none; }
  .mobile-toc { display: block; margin-bottom: 28px; }
  .mobile-toc summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    color: #14463e;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .mobile-toc[open] summary { border-radius: 14px 14px 0 0; }
  .mobile-toc .toc {
    padding: 8px 12px 12px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--surface-strong);
  }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100vw - 14px), var(--max)); padding-top: 150px; }
  .progress-track { margin: -150px 0 147px; }
  .nav-frame { height: 136px; }
  .header { border-radius: 26px; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { flex: 1 1 auto; text-align: center; }
  .hero, .section, .article, .docs, .modal, .filter-box { padding-left: 14px; padding-right: 14px; }
  .article-page .hero { border-radius: 24px; padding: 26px 20px; }
  .article-page .hero h1 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .article-detail-page { padding: 24px 20px; }
  .article-top { align-items: flex-start; flex-direction: column; }
  .article-detail { padding-left: 0; padding-right: 0; }
  .article-mobile-actions { display: flex; }
  .article-feature { border-radius: 28px; padding: 14px; }
  .article-feature-grid { padding-top: 42px; }
  .article-title-block h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .article-meta-kicker { display: grid; gap: 4px; }
  .article-meta-kicker span::before { content: none; }
  .article-rail { grid-template-columns: 1fr; }
  .rail-card:first-child { display: none; }
  .article-prose-shell { border-radius: 24px; padding: 24px 20px; }
  .filter-shell { padding: 10px 10px 12px 16px; border-radius: 24px; }
  .filter-row { padding: 7px 8px; }
  .toolbar { align-items: flex-start; }
}

.home-main { display: block; }
.blog-home { --home-bg: #f5f4ef; --home-surface: #fff; --home-muted: rgba(17, 22, 29, 0.68); --home-line: rgba(17, 22, 29, 0.12); --home-mono: "IBM Plex Mono", Consolas, monospace; --home-ease: cubic-bezier(0.22, 0.61, 0.36, 1); margin: -18px 0 0; }
.blog-home h1, .blog-home h2, .blog-home h3, .blog-home p { margin: 0; }
.t-green { --tone: #15803d; --tone-soft: rgba(21, 128, 61, 0.1); --tone-line: rgba(21, 128, 61, 0.18); }

.home-hero { position: relative; overflow: hidden; color: #f8fafc; border-radius: 34px; padding: 58px 34px 34px; background: linear-gradient(135deg, #0b0f15 0%, #11161d 28%, #0f766e 70%, #ca8a04 120%); box-shadow: var(--shadow); }
.home-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.6; pointer-events: none; }
.home-orb.o1 { width: 360px; height: 360px; top: -110px; left: -90px; background: radial-gradient(circle, rgba(79, 70, 229, 0.85), transparent 65%); animation: home-drift-1 22s var(--home-ease) infinite; }
.home-orb.o2 { width: 320px; height: 320px; right: -70px; bottom: -110px; background: radial-gradient(circle, rgba(202, 138, 4, 0.8), transparent 65%); animation: home-drift-2 26s var(--home-ease) infinite; }
.home-orb.o3 { width: 280px; height: 280px; top: 35%; left: 44%; background: radial-gradient(circle, rgba(15, 118, 110, 0.85), transparent 65%); animation: home-drift-3 30s var(--home-ease) infinite; }
@keyframes home-drift-1 { 50% { transform: translate(58px, 48px) scale(1.12); } }
@keyframes home-drift-2 { 50% { transform: translate(-48px, -38px) scale(1.15); } }
@keyframes home-drift-3 { 50% { transform: translate(-38px, 28px) scale(0.9); } }
.home-grain { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.home-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: rgba(248, 250, 252, 0.86); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.home-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.6); animation: home-pulse 2.4s var(--home-ease) infinite; }
@keyframes home-pulse { 0% { box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(202, 138, 4, 0); } 100% { box-shadow: 0 0 0 0 rgba(202, 138, 4, 0); } }
.home-hero h1 { max-width: 13ch; margin-top: 22px; font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.home-hero h1 span { background: linear-gradient(90deg, #ffd97a, #5eead4, #a5b4fc, #ffd97a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: home-shimmer 7s linear infinite; }
@keyframes home-shimmer { to { background-position: 300% 0; } }
.home-lede { max-width: 62ch; margin-top: 22px; color: rgba(248, 250, 252, 0.85); font-size: 1.16rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-actions.compact { margin-top: 14px; }
.home-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; transition: transform 0.2s var(--home-ease), box-shadow 0.25s var(--home-ease), background 0.25s var(--home-ease); }
.home-btn span { transition: transform 0.25s var(--home-ease); }
.home-btn:hover span { transform: translateX(4px); }
.home-btn.primary { color: #fff; background: linear-gradient(110deg, var(--teal), var(--indigo) 55%, var(--gold)); background-size: 180% 100%; box-shadow: 0 14px 30px -10px rgba(15, 118, 110, 0.55); }
.home-btn.primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.55); }
.home-btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); transition: left 0.6s var(--home-ease); }
.home-btn.primary:hover::after { left: 130%; }
.home-btn.ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.home-btn.ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.home-btn.ink { color: #fff; background: var(--ink); }
.home-btn.bright { color: var(--ink); background: #fff; }
.home-btn.bright:hover, .home-btn.ink:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.4); }
.home-btn:focus-visible, .home-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.home-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 42px; }
.home-stats div { display: flex; flex-direction: column; }
.home-stats strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.home-stats span { margin-top: 6px; color: rgba(248, 250, 252, 0.7); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.home-marquee { position: relative; z-index: 2; margin-top: 54px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home-track { display: flex; gap: 12px; width: max-content; animation: home-scroll 28s linear infinite; }
.home-marquee:hover .home-track { animation-play-state: paused; }
.home-track span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(248, 250, 252, 0.9); font-size: 0.84rem; white-space: nowrap; }
@keyframes home-scroll { to { transform: translateX(-50%); } }

.home-block { padding: 64px 0 0; }
.home-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.home-sec-head span, .home-cta span, .home-topics > div > span { color: var(--teal); font-family: var(--home-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.home-sec-head h2, .home-cta h2, .home-topics h2 { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.1; }
.home-sec-head a { display: inline-flex; gap: 7px; align-items: center; color: var(--indigo); font-family: var(--home-mono); font-size: 0.82rem; }
.home-sec-head a span, .home-read-link span, .home-go svg { transition: transform 0.25s var(--home-ease); }
.home-sec-head a:hover span, .home-read-link:hover span { transform: translateX(4px); }
.home-featured { display: grid; grid-template-columns: 1.35fr 0.85fr; overflow: hidden; border: 1px solid var(--home-line); border-radius: 28px; background: var(--home-surface); box-shadow: var(--shadow-soft); transition: transform 0.3s var(--home-ease), box-shadow 0.3s var(--home-ease); }
.home-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-featured-lead { display: flex; flex-direction: column; gap: 14px; padding: 34px 34px 30px; }
.home-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-subject { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 11px; border: 1px solid var(--tone-line, rgba(15, 118, 110, 0.26)); border-radius: 999px; background: var(--tone-soft, rgba(15, 118, 110, 0.1)); color: var(--tone, var(--teal)); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; }
.home-subject::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--teal)); }
.home-read { color: var(--home-muted); font-family: var(--home-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.home-featured h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.12; }
.home-featured p, .home-series-card p, .home-row p, .home-empty p, .home-modal p { color: var(--home-muted); }
.home-featured p { max-width: 58ch; font-size: 1.02rem; }
.home-read-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; color: var(--indigo); font-weight: 700; }
.home-featured-aside { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow: hidden; padding: 34px; color: #f8fafc; background: linear-gradient(150deg, #11161d, var(--indigo) 80%); }
.home-featured-aside::before { content: ""; position: absolute; top: -70px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); transition: transform 0.5s var(--home-ease); }
.home-featured:hover .home-featured-aside::before { transform: scale(1.3); }
.home-featured-aside span { color: #ffd97a; font-family: var(--home-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.home-featured-aside q { position: relative; font-family: var(--font-display); font-size: 1.32rem; line-height: 1.32; }
.home-series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-series-card { position: relative; display: flex; flex-direction: column; gap: 11px; min-height: 100%; overflow: hidden; padding: 22px 18px 18px; border: 1px solid var(--home-line); border-radius: 22px; background: var(--home-surface); box-shadow: 0 10px 24px rgba(12, 18, 28, 0.05); transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease); }
.home-series-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--indigo), var(--rose)); background-size: 200% 100%; transition: background-position 0.6s var(--home-ease); }
.home-series-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(12, 18, 28, 0.14); }
.home-series-card:hover::before { background-position: 100% 0; }
.home-series-card h3 { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1.18; }
.home-card-foot { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.home-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 10px; border: 1px solid var(--home-line); border-radius: 999px; background: var(--home-surface); color: var(--home-muted); font-size: 0.76rem; line-height: 1; }
.home-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; overflow: hidden; padding: 46px; border-radius: 30px; color: #f8fafc; background: linear-gradient(120deg, var(--teal), var(--indigo) 50%, var(--gold)); background-size: 200% 100%; box-shadow: var(--shadow); animation: home-cta-flow 12s var(--home-ease) infinite alternate; }
@keyframes home-cta-flow { to { background-position: 100% 0; } }
.home-cta::after { content: ""; position: absolute; top: -100px; left: 30%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%); }
.home-cta > * { position: relative; z-index: 2; }
.home-cta > div { max-width: 48ch; }
.home-cta span { color: rgba(255, 255, 255, 0.82); }
.home-cta p { margin-top: 10px; color: rgba(248, 250, 252, 0.86); }
.home-list { display: flex; flex-direction: column; gap: 12px; }
.home-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border: 1px solid var(--home-line); border-left: 4px solid var(--tone); border-radius: 18px; background: var(--home-surface); box-shadow: 0 8px 20px rgba(12, 18, 28, 0.04); transition: transform 0.2s var(--home-ease), box-shadow 0.2s var(--home-ease), border-left-width 0.2s var(--home-ease); }
.home-row:hover { transform: translateX(6px); box-shadow: 0 18px 34px rgba(12, 18, 28, 0.12); border-left-width: 7px; }
.home-when { display: flex; flex-direction: column; gap: 3px; }
.home-when span { color: var(--ink); font-family: var(--home-mono); font-size: 0.82rem; font-weight: 600; }
.home-when small { color: var(--home-muted); font-family: var(--home-mono); font-size: 0.76rem; }
.home-row h3 { font-family: var(--font-display); font-size: 1.14rem; letter-spacing: -0.02em; line-height: 1.2; }
.home-row p { max-width: 68ch; margin-top: 4px; font-size: 0.9rem; }
.home-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; text-align: right; }
.home-go { display: inline-flex; align-items: center; gap: 2px; color: var(--tone); font-family: var(--home-mono); font-size: 0.88rem; }
.home-row:hover .home-go svg { transform: translateX(4px); }
.home-topics, .home-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px; border: 1px solid var(--home-line); border-radius: 26px; background: rgba(255, 255, 255, 0.76); box-shadow: var(--shadow-soft); }
.home-topics > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 680px; }
.home-empty { align-items: flex-start; flex-direction: column; }
.home-empty h2 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.02em; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--home-ease), transform 0.7s var(--home-ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.home-backdrop { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 15, 21, 0.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s var(--home-ease); }
.home-backdrop.open { display: flex; opacity: 1; }
.home-modal { width: min(560px, 100%); padding: 26px; border: 1px solid var(--home-line); border-radius: 24px; background: var(--home-surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(0.98); transition: transform 0.3s var(--home-ease), opacity 0.3s var(--home-ease); }
.home-backdrop.open .home-modal { opacity: 1; transform: none; }
.home-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.home-modal h2 { margin-top: 10px; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.home-modal p { margin-top: 8px; font-size: 0.95rem; }
.home-close { width: 44px; height: 44px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-bg); color: var(--ink); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.home-close:hover { background: #ececec; }
.home-gate { margin-top: 18px; padding: 18px; border: 1px solid var(--tone-line); border-radius: 16px; background: var(--tone-soft); }
.home-gate strong, .home-reveal-box strong { font-family: var(--font-display); font-size: 1.1rem; }
.home-reveal-box { display: none; margin-top: 18px; }
.home-reveal-box.show { display: grid; gap: 12px; animation: home-fade-up 0.4s var(--home-ease); }
@keyframes home-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.home-socials { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .blog-home { margin-top: 0; }
  .home-featured { grid-template-columns: 1fr; }
  .home-series-grid { grid-template-columns: 1fr; }
  .home-row { grid-template-columns: 1fr; gap: 10px; }
  .home-row-meta { align-items: flex-start; text-align: left; }
  .home-topics > div:last-child { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .home-hero { padding: 42px 18px 24px; border-radius: 26px; }
  .home-hero h1 { font-size: clamp(2.35rem, 15vw, 3.4rem); }
  .home-lede { font-size: 1rem; }
  .home-stats { gap: 18px; }
  .home-block { padding-top: 44px; }
  .home-featured-lead, .home-featured-aside, .home-cta, .home-topics, .home-empty { padding: 24px; }
  .home-actions { align-items: stretch; flex-direction: column; }
  .home-btn { width: 100%; }
  .home-card-top { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-home *, .home-backdrop, .home-modal { animation: none !important; transition: none !important; }
  .blog-home .reveal { opacity: 1; transform: none; }
}
