/* ─── AIHubMix tokens (bound from active design system) ─────────── */
:root {
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --fg: #111111;
  --fg-2: #353941;
  --muted: #626773;
  --border: rgba(53, 57, 65, 0.1);
  --border-strong: rgba(53, 57, 65, 0.18);
  --border-width: 0.5px;

  /* ── palette: three colors only (AIHubMix spec) ───────────────────
     1) Focus Blue (#2563EB) 2) neutral ink/gray ramp 3) white canvas.
     No second hue — the focus blue is the only accent on the page. */
  --accent: #2563EB;          /* interactive: buttons, links, active states */
  --accent-hover: #6180F9;    /* spec: hover is LIGHTER */
  --accent-active: #0049DF;   /* spec: pressed is DARKER */
  --accent-on: #ffffff;

  --fill-disabled: rgba(53, 57, 65, 0.1);

  /* status colors: upcoming = focus blue (heads-up), deprecated = gray (already retired).
     Both stay within the three-color palette — no amber/red status hue. */
  --status-upcoming: var(--accent);
  --text-retired: #626773;   /* gray, used for the "deprecated / already retired" state */

  --font-display: "Old Standard TT", "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Inter", "Arial", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  --text-slogan: 56px;
  --text-huge: 40px;
  --text-h1: 32px;
  --text-h2: 24px;
  --text-h3: 18px;
  --text-base: 16px;
  --text-sm: 12px;
  --text-xs: 10px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --leading-tight: 1.2;
  --leading-body: 1.6;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --elev-flat: none;
  --elev-card: 0px 2px 8px rgba(0, 0, 0, 0.08);
  --elev-pop: 0 12px 32px rgba(17, 17, 17, 0.12), 0 2px 8px rgba(17, 17, 17, 0.06);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);

  --control-h: 48px;
  --control-h-sm: 36px;
  --control-min-w: 56px;
  --control-pad-x: 16px;

  --tag-radius: 8px;
  --tag-text: 12px;
  --tag-icon: 12px;

  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  --container-max: 1200px;
  --container-gutter: 24px;
}

/* ─── reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

/* ─── layout primitives ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── type ───────────────────────────────────────────────────────── */
h1, .h1 { font-family: var(--font-display); font-size: var(--text-huge); line-height: var(--leading-tight); color: var(--fg); font-weight: var(--weight-regular); letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-h2); line-height: var(--leading-tight); color: var(--fg); font-weight: var(--weight-bold); }
h3, .h3 { font-family: var(--font-body); font-size: var(--text-h3); line-height: 1.3; color: var(--fg); font-weight: var(--weight-bold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.1);
}
.lead {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}
.meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ─── chrome: top nav ────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-width) solid var(--border);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: var(--space-6);
}
.topnav .brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-bold);
  color: var(--fg);
  letter-spacing: -0.01em;
}
.topnav .brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  display: grid; place-items: center;
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-bold);
}
.topnav .nav { display: flex; gap: var(--space-8); flex: 1; margin-left: var(--space-10); }
.topnav .nav a { font-size: 14px; color: var(--fg-2); transition: color var(--motion-fast) var(--ease-standard); }
.topnav .nav a:hover { color: var(--accent); }
.topnav .nav a.active { color: var(--accent); font-weight: var(--weight-medium); }
.topnav .nav-actions { display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 920px) {
  .topnav .nav { display: none; }
}

/* ─── buttons (AIHubMix pill, 48px) ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h);
  min-width: var(--control-min-w);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: var(--border-width) solid transparent;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  transition: background var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-sm { height: var(--control-h-sm); padding: 0 var(--space-4); font-size: 14px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); border-color: var(--accent-active); }
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost {
  background: transparent; color: var(--fg-2); border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--fill-disabled);
  color: var(--muted);
  border-color: transparent;
}
.btn-icon { width: 18px; height: 18px; stroke-width: 1.6; }

/* ─── card / surface ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--elev-card);
}
.card-inset {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: var(--border-width) solid var(--border);
}
.card-flat { background: transparent; box-shadow: none; }

/* ─── badge / tag (AIHubMix outlined-tag recipe) ─────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--tag-radius);
  font-family: var(--font-body);
  font-size: var(--tag-text);
  font-weight: var(--weight-medium);
  line-height: 1;
  border: 1px solid currentColor;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* status tags — two date-derived states: upcoming (focus blue) / deprecated (gray) */
.tag-upcoming   { color: var(--status-upcoming); background: color-mix(in oklch, var(--status-upcoming) 10%, transparent); }
.tag-deprecated { color: var(--text-retired);    background: color-mix(in oklch, var(--text-retired) 10%, transparent); }

.badge-soon {
  display: inline-flex; align-items: center; height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--muted) 12%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── icons ─────────────────────────────────────────────────────── */
.icon { width: 16px; height: 16px; stroke-width: 1.6; flex-shrink: 0; }
.icon-lg { width: 20px; height: 20px; }

/* ─── page header ────────────────────────────────────────────────── */
.page-header {
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.page-header h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}
.header-brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo-link { display: inline-flex; flex-shrink: 0; border-radius: 8px; transition: opacity .15s ease; }
.brand-logo-link:hover { opacity: .75; }
.brand-logo-link:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; display: block; }
.page-header .lead { max-width: 60ch; }
.page-actions {
  display: inline-flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 920px) {
  .page-header-inner { grid-template-columns: 1fr; }
  .page-actions { justify-content: flex-start; }
}

/* ─── stats overview (4 cards) ───────────────────────────────────── */
.stats-row {
  padding-bottom: var(--space-10);
}
.stat-card { padding: var(--space-5) var(--space-5) var(--space-5); }
.stat-card .stat-head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--space-3);
}
.stat-card .stat-head .icon { color: var(--accent); opacity: 0.9; }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-huge);
  line-height: 1;
  color: var(--fg);
  font-weight: var(--weight-regular);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-value .unit { font-size: 22px; color: var(--muted); margin-left: 4px; }
.stat-card .stat-foot { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); display: flex; align-items: center; gap: 6px; }
.stat-card .stat-foot .delta-up { color: var(--status-upcoming); }
.stat-card .stat-foot .delta-flat { color: var(--muted); }

/* ─── filter toolbar ─────────────────────────────────────────────── */
.toolbar {
  padding-block: var(--space-6);
}
.toolbar-inner {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
}
/* labeled multi-row filter layout — rounded card panel */
.toolbar-rows {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  padding: var(--space-5) var(--space-6);
}
.filter-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: var(--space-4);
}
.filter-label {
  font-size: 13px; font-weight: var(--weight-bold); color: var(--fg);
  line-height: 32px;   /* vertically align label with the first row of pills */
}
.filter-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* search + date row above the filter card — search fills left, date pinned right */
.filter-top {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.filter-top .search-wrap { flex: 0 1 260px; width: auto; max-width: 100%; }
.filter-top .date-picker { margin-left: auto; flex-shrink: 0; }
@media (max-width: 560px) {
  .filter-top { flex-wrap: wrap; }
  .filter-top .search-wrap { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .filter-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .filter-label { line-height: 1.4; }
}
.seg {
  display: flex; align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seg .seg-item {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--fg-2);
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  font-weight: var(--weight-medium);
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}
.seg .seg-item .provider-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
  background: var(--fg);
}
.seg .seg-item:hover { color: var(--fg); border-color: var(--border-strong); }
.seg .seg-item[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.seg .seg-item[aria-pressed="true"] .provider-dot { background: var(--surface) !important; }

.chip-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: var(--weight-medium);
  transition: border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast);
}
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip[aria-pressed="true"] {
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.search-wrap {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.search-wrap .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }

.date-picker { position: relative; }
.date-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.date-trigger:hover { border-color: var(--border-strong); }
.date-trigger .icon { color: var(--muted); }

/* ── date range popover ───────────────────────────────────────────── */
.date-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-pop);
  overflow: hidden;
}
.date-pop[hidden] { display: none; }

.date-presets {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-right: var(--border-width) solid var(--border);
  background: var(--surface-2);
  min-width: 150px;
}
.date-preset {
  text-align: left;
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.date-preset:hover { background: var(--surface); color: var(--fg); }
.date-preset[aria-pressed="true"] { background: var(--accent); color: var(--accent-on); }

.date-cal { padding: var(--space-4); }
.cal-head {
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: center;
  margin-bottom: var(--space-3);
}
.cal-titles {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  text-align: center;
}
.cal-titles span {
  font-family: var(--font-display);
  font-size: 15px; font-weight: var(--weight-bold); color: var(--fg);
}
.cal-nav {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg-2);
}
.cal-nav:hover { border-color: var(--border-strong); color: var(--fg); }
.cal-nav .icon { width: 14px; height: 14px; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 32px); gap: 2px; }
.cal-dow {
  display: grid; place-items: center;
  height: 28px;
  font-size: 11px; color: var(--muted); font-weight: var(--weight-medium);
}
.cal-cell {
  height: 32px;
  display: grid; place-items: center;
  border: none; background: transparent;
  font-size: 13px; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-pill);
  position: relative;
}
.cal-cell.empty { visibility: hidden; }
.cal-cell:not(.empty):hover { background: var(--surface-2); }
.cal-cell.today { font-weight: var(--weight-bold); color: var(--fg); }
.cal-cell.in-range { background: color-mix(in oklch, var(--accent) 10%, transparent); border-radius: 0; }
.cal-cell.range-start, .cal-cell.range-end {
  background: var(--accent); color: var(--accent-on); font-weight: var(--weight-medium);
}
.cal-cell.range-start { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.cal-cell.range-end { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.cal-cell.range-start.range-end { border-radius: var(--radius-pill); }

@media (max-width: 760px) {
  .date-pop { flex-direction: column; right: auto; left: 0; }
  .date-presets { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: var(--border-width) solid var(--border); min-width: 0; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-titles { grid-template-columns: 1fr; }
  .cal-titles span:last-child { display: none; }
  #cal-month-1 { display: none; }
}

.toolbar-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 2px;
}
.toolbar-divider {
  width: 1px; height: 24px; background: var(--border);
  align-self: center;
}

/* ─── changelog feed (timeline + cards) ──────────────────────────── */
.feed-section { padding-block: var(--space-10) var(--space-12); }
.feed {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}
.feed::before {
  content: "";
  position: absolute;
  left: 79px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.month-group + .month-group { margin-top: var(--space-8); }
.month-label {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-left: 0;
}
.month-label .month-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}
.month-label .month-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.month-label .month-rule { flex: 1; height: 1px; background: var(--border); }

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  align-items: stretch;
}
.entry-rail {
  position: relative;
  padding-top: 20px;
}
.entry-rail .rail-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  display: block;
  text-align: right;
  padding-right: var(--space-3);
}
.entry-rail .rail-dot {
  position: absolute;
  right: -5px;
  top: 24px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid currentColor;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}
.entry[data-status="upcoming"]   .rail-dot { color: var(--status-upcoming); }
.entry[data-status="deprecated"] .rail-dot { color: var(--text-retired); }

.entry-card {
  padding: var(--space-5);
  cursor: pointer;
  transition: transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
}
.entry-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--elev-pop);
  border-color: var(--border-strong);
}
.entry-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.entry-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.provider {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  font-weight: var(--weight-medium);
}
.provider-logo {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--surface);
  flex-shrink: 0;
  background: var(--fg);
}
/* 真实 logo：白底防止深色图标被吞，contain 保留比例 */
.provider-logo--img {
  background: #fff;
  border: var(--border-width) solid var(--border);
  padding: 2px;
}
.provider-logo--img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
#so-provider {
  display: inline-flex; align-items: center; gap: 6px;
}

.entry-card h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
  color: var(--fg);
  letter-spacing: -0.005em;
}
.entry-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}
.entry-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--border);
}
.effective {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.effective .effective-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.effective.effective-upcoming {
  color: var(--status-upcoming);
}
.effective.effective-deprecated {
  color: var(--text-retired);
}
.entry-card .view-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--fg);
  font-size: 13px;
  font-weight: var(--weight-medium);
}
.entry-card .view-link .icon { transition: transform var(--motion-fast); }
.entry-card:hover .view-link .icon { transform: translateX(3px); }

@media (max-width: 720px) {
  .entry { grid-template-columns: 56px 1fr; gap: var(--space-3); }
  .feed::before { left: 55px; }
  .entry-rail .rail-date { font-size: 11px; }
  .entry-head { flex-wrap: wrap; }
}

/* ─── empty state ────────────────────────────────────────────────── */
.feed-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--muted);
}
.feed-empty h3 { color: var(--fg-2); margin-bottom: var(--space-2); }

/* ─── infinite-scroll sentinel ───────────────────────────────────── */
.feed-more {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 1px;
  padding: var(--space-6) 0;
  color: var(--muted);
  font-size: 12px;
}
/* 加载中：仅蓝色描边的转圈（不引入第四种颜色） */
.feed-more[data-state="loading"]::before {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: feed-spin 0.7s linear infinite;
}
.feed-more[data-state="done"] { padding: var(--space-4) 0; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .feed-more[data-state="loading"]::before { animation: none; }
}

/* ─── subscription section ───────────────────────────────────────── */
.subscribe-section { padding-block: var(--space-12); border-top: var(--border-width) solid var(--border); }
.subscribe-card {
  padding: var(--space-10) var(--space-10);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 50%),
    var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
}
.subscribe-head { max-width: 56ch; margin-bottom: var(--space-8); }
.subscribe-head h2 { font-size: 28px; margin-bottom: var(--space-2); }
.subscribe-head p { color: var(--muted); margin: 0; }

.sub-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.sub-option {
  padding: var(--space-5);
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--motion-base), box-shadow var(--motion-base);
}
.sub-option:hover { border-color: var(--border-strong); box-shadow: var(--elev-card); }
.sub-option .opt-head { display: flex; align-items: center; justify-content: space-between; }
.sub-option .opt-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  color: var(--accent);
  display: grid; place-items: center;
}
.sub-option .opt-icon .icon { width: 18px; height: 18px; }
.sub-option h3 { font-size: 16px; color: var(--fg); }
.sub-option p { font-size: 13px; color: var(--muted); margin: 0; flex: 1; }
.sub-option .opt-action { display: flex; align-items: stretch; gap: var(--space-2); }
.sub-option .opt-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
}
.sub-option .opt-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.sub-option[data-soon="true"] .opt-icon { background: color-mix(in oklch, var(--muted) 12%, transparent); color: var(--muted); }

@media (max-width: 920px) {
  .sub-options { grid-template-columns: 1fr; }
  .subscribe-card { padding: var(--space-6); }
}

/* ─── footer ─────────────────────────────────────────────────────── */
.pagefoot {
  padding-block: var(--space-10);
  border-top: var(--border-width) solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.pagefoot .row-between { flex-wrap: wrap; gap: var(--space-4); }
.pagefoot a:hover { color: var(--fg); }
.pagefoot .foot-links { display: inline-flex; gap: var(--space-6); }

/* ─── slide-over panel ───────────────────────────────────────────── */
.so-backdrop {
  position: fixed; inset: 0;
  background: rgba(17, 17, 17, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard);
  z-index: 100;
}
.so-backdrop.open { opacity: 1; pointer-events: auto; }
.slideover {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(560px, 100vw);
  background: var(--surface);
  border-left: var(--border-width) solid var(--border);
  box-shadow: -16px 0 48px rgba(17, 17, 17, 0.12);
  transform: translateX(100%);
  transition: transform 280ms var(--ease-standard);
  z-index: 110;
  display: flex; flex-direction: column;
}
.slideover.open { transform: translateX(0); }

.so-head {
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-width) solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  flex-shrink: 0;
}
.so-head .so-head-meta { display: flex; align-items: center; gap: var(--space-3); }
.so-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  display: grid; place-items: center;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.so-close:hover { background: var(--surface-2); border-color: var(--border-strong); }
.so-close .icon { width: 18px; height: 18px; }

.so-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}
.so-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: var(--space-4);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.so-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.so-meta-cell {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border);
}
.so-meta-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.so-meta-cell .value {
  font-size: 14px;
  color: var(--fg);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}

.so-section { margin-bottom: var(--space-6); }
.so-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.so-prose { color: var(--fg-2); font-size: 14px; line-height: 1.65; }
.so-prose p { margin: 0 0 var(--space-3); }
.so-prose p:last-child { margin-bottom: 0; }
.so-prose ul { padding-left: 20px; margin: 0 0 var(--space-3); color: var(--fg-2); }
.so-prose li { margin-bottom: 6px; }
.so-prose code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border: var(--border-width) solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  color: var(--fg);
}

.so-replacement {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: var(--border-width) solid var(--border-strong);
}
.so-replacement .swap-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  border: var(--border-width) solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.so-replacement .swap-meta .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.so-replacement .swap-meta .name { font-size: 15px; color: var(--fg); font-weight: var(--weight-medium); }
.so-replacement .swap-meta .name code { font-family: var(--font-mono); font-size: 13px; background: var(--surface); padding: 1px 6px; border-radius: var(--radius-xs); border: var(--border-width) solid var(--border); }

/* official notice screenshot (email image) */
.so-notice-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border);
  background: var(--surface-2);
  display: block;
}
#so-notice-link { display: block; transition: opacity var(--motion-fast); }
#so-notice-link:hover { opacity: 0.92; }
.so-notice-empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-2);
  border: var(--border-width) dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* migration / deprecation note (under the notice image) */
.so-migration {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}
.so-migration code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--fg);
}
.so-migration a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.so-migration a:hover { color: var(--accent); }
.so-migration p { margin: 0 0 var(--space-2); }
.so-migration p:last-child { margin-bottom: 0; }
.so-model-list { margin: var(--space-2) 0 0; padding-left: 18px; }
.so-model-list li { margin-bottom: 6px; }
.so-model-list li:last-child { margin-bottom: 0; }
.so-mig-rec { margin-top: var(--space-3); }

/* paired migration list: 原模型 → 目标模型，箭头跨行对齐 */
.mig-pairs { list-style: none; padding-left: 0;
  display: grid; grid-template-columns: max-content max-content 1fr;
  gap: 6px var(--space-3); align-items: baseline; }
.mig-pairs li { display: contents; }
.mig-pairs .mig-arrow { color: var(--muted); }

.so-related {
  display: flex; flex-direction: column; gap: var(--space-2);
}
.related-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast);
}
.related-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.related-item .ri-left { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.related-item .ri-title { font-size: 13.5px; color: var(--fg); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item .ri-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.so-foot {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-width) solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--surface);
}
.so-foot .foot-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.so-foot .foot-actions { display: flex; gap: var(--space-2); }

@media (max-width: 720px) {
  .slideover { width: 100vw; }
  .so-meta-grid { grid-template-columns: 1fr; }
}

.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;
}

/* ─── language switcher ──────────────────────────────────────────── */
.lang-switcher { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.lang-trigger:hover { border-color: var(--border-strong); }
.lang-trigger .icon { color: var(--muted); }
.lang-trigger .chev { width: 14px; height: 14px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-pop);
  max-height: 360px;
  overflow-y: auto;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.lang-option:hover { background: var(--surface-2); color: var(--fg); }
.lang-option[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }
