/* Cox Extension Guide v14. Palette matches the kerik.party hub (grays + Cornell red). */
:root {
  --g25: #fcfcfd;
  --g50: #f9fafb;
  --g100: #f3f4f6;
  --g200: #e5e7eb;
  --g300: #d1d5db;
  --g400: #9ca3af;
  --g500: #6b7280;
  --g600: #4b5563;
  --g700: #374151;
  --g900: #111827;
  --red: #b31b1b;
  --red-dark: #8b1515;
  --red-bg: #fdf2f2;
  --amber: #8a4b08;
  --amber-bg: #fef6e4;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --top-h: 56px;
  --rail-w: 264px;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--g900);
  background: #fff;
  min-height: 100svh;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--g200);
}
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--g900); width: calc(var(--rail-w) - 36px); flex-shrink: 0; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.005em; }
.brand-sub { font-size: 12px; color: var(--g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-link { margin-left: auto; font-size: 13px; color: var(--g500); white-space: nowrap; }
.hub-link:hover { color: var(--g900); }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-left: -8px;
  border: 0; background: none; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: var(--g700); border-radius: 1px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.search { position: relative; flex: 1 1 auto; max-width: 520px; min-width: 0; }
.search input {
  width: 100%; height: 36px; padding: 0 34px 0 12px;
  font: 14px var(--font); color: var(--g900);
  background: var(--g100); border: 1px solid transparent; border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder, .filters input::placeholder { color: var(--g600); opacity: 1; }
.search input:focus { outline: none; background: #fff; border-color: var(--g300); box-shadow: 0 0 0 3px rgba(179,27,27,.12); }
.search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 11px var(--mono); color: var(--g500); border: 1px solid var(--g300); border-radius: 4px; padding: 1px 5px; background: #fff;
  pointer-events: none;
}
.search input:focus + kbd { display: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--g200); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17,24,39,.12), 0 2px 6px rgba(17,24,39,.06);
  max-height: min(70svh, 520px); overflow-y: auto; padding: 6px;
}
.sr-group { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--g500); padding: 8px 8px 4px; }
.sr-item {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 7px 8px; border-radius: 5px; color: var(--g900);
}
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--g100); text-decoration: none; }
.sr-title { display: block; font-size: 14px; font-weight: 550; line-height: 1.35; }
.sr-meta { display: block; font-size: 12px; color: var(--g500); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-empty { padding: 12px 8px; font-size: 13px; color: var(--g500); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100svh - var(--top-h)); }
.rail {
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100svh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 10px 32px 12px;
  border-right: 1px solid var(--g200);
  background: var(--g25);
}
.page { min-width: 0; padding: 28px 40px 64px; outline: none; }
.loading { color: var(--g500); }

/* ---------- Rail ---------- */
.rail-group + .rail-group { margin-top: 18px; }
.rail-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--g500); padding: 0 8px 4px; }
.rail-link {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 8px; border-radius: 5px;
  font-size: 14px; line-height: 1.35; color: var(--g700);
}
.rail-link:hover { background: var(--g100); color: var(--g900); text-decoration: none; }
.rail-link[aria-current="page"] { background: #fff; color: var(--g900); font-weight: 600; box-shadow: inset 2px 0 0 var(--red), 0 0 0 1px var(--g200); }
.rail-link .rl-main { flex: 1 1 auto; min-width: 0; }
.rail-link .rl-meta { flex-shrink: 0; font-size: 12px; color: var(--g500); font-weight: 400; }
.rail-link .now-tag { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--red); }
.dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transform: translateY(-2px); }
.dot.is-off { background: transparent; }
.rail-hint { font-size: 12px; color: var(--g500); padding: 2px 8px 6px; line-height: 1.4; }

/* ---------- Article ---------- */
.article { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 720px) 200px; gap: 56px; }
.article-main { min-width: 0; }
.toc { position: sticky; top: calc(var(--top-h) + 28px); align-self: start; font-size: 13px; }
.toc-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--g500); margin-bottom: 6px; }
.toc button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 3px 0 3px 10px; color: var(--g500); cursor: pointer; border-left: 1px solid var(--g200); line-height: 1.4; }
.toc button:hover { color: var(--g900); }
.toc button.is-active { color: var(--g900); border-left-color: var(--red); }

.crumbs { font-size: 13px; color: var(--g500); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--g500); }
.crumbs a:hover { color: var(--g900); }

.head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
.head.no-plate { grid-template-columns: minmax(0, 1fr); }
.eyebrow { font-size: 13px; color: var(--g500); margin-bottom: 4px; }
.eyebrow .now { color: var(--red); font-weight: 600; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.latin { font-style: italic; color: var(--g600); font-size: 15px; margin-top: 4px; }
.lede { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--g700); max-width: 62ch; }
.plate { position: relative; margin: 0; }
.plate-panel { border-radius: 6px; overflow: hidden; }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { font-size: 11px; color: var(--g500); text-align: right; margin-top: 2px; }

.facts { margin-top: 20px; border-top: 1px solid var(--g200); }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--g200); font-size: 14px; }
.fact dt { color: var(--g500); }
.fact dd { color: var(--g900); }

.season-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 18px; }
.ss-step {
  display: block; padding: 6px 8px 7px; font-size: 12px; line-height: 1.3; color: var(--g500);
  background: var(--g100); border-radius: 4px; min-width: 0;
}
.ss-step:hover { text-decoration: none; background: var(--g200); color: var(--g900); }
.ss-step b { display: block; font-weight: 600; font-size: 12.5px; color: var(--g700); }
.ss-step span { display: block; color: #4b5563; }
.ss-step.is-on { background: var(--red-bg); color: var(--red-dark); }
.ss-step.is-on b { color: var(--red-dark); }
.ss-step.is-current { background: var(--red); color: #fff; }
.ss-step.is-current b { color: #fff; }
.ss-step.is-current span { color: rgba(255,255,255,.88); }
@media (min-width: 900px) { .stage-strip { display: none; } }
.ss-legend { font-size: 12px; color: var(--g500); margin-top: 6px; }

section.sec { margin-top: 36px; }
section.sec > h2 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin-bottom: 10px; }
section.sec > .sec-note { font-size: 14px; color: var(--g600); margin: -4px 0 12px; max-width: 62ch; }

.rows { list-style: none; border-top: 1px solid var(--g200); }
.row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--g200); font-size: 14.5px; }
.row-k { font-weight: 600; color: var(--g900); }
.row-v { color: var(--g700); }
.row-v p + p { margin-top: 4px; }

.checklist { list-style: none; counter-reset: c; }
.checklist li { counter-increment: c; position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--g200); font-size: 14.5px; color: var(--g700); }
.checklist li:first-child { border-top: 1px solid var(--g200); }
.checklist li::before {
  content: counter(c); position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--g100); color: var(--g700);
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}

.cycle { list-style: none; counter-reset: c; }
.cycle li { counter-increment: c; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 6px 0; font-size: 14.5px; color: var(--g700); }
.cycle li::before { content: counter(c) "."; color: var(--g500); font-variant-numeric: tabular-nums; }
.cycle b { color: var(--g900); font-weight: 600; }

.callout { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--g50); border: 1px solid var(--g200); font-size: 14px; color: var(--g700); }
.callout b { color: var(--g900); }

/* Disease rows (stage page, finder) */
.dlist { list-style: none; border-top: 1px solid var(--g200); }
.ditem { border-bottom: 1px solid var(--g200); }
.dlink { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 11px 0; color: var(--g900); }
.dlink:hover { text-decoration: none; }
.dlink:hover .d-name { color: var(--red); }
.d-name { font-weight: 600; font-size: 15px; }
.d-latin { font-style: italic; font-weight: 400; color: var(--g500); font-size: 13.5px; margin-left: 6px; }
.d-cue { grid-column: 1 / -1; font-size: 14px; color: var(--g600); line-height: 1.5; }
.d-meta { font-size: 12.5px; color: var(--g500); white-space: nowrap; align-self: baseline; }
.d-extra { grid-column: 1 / -1; font-size: 13px; color: var(--g500); }
.d-extra b { color: var(--g700); font-weight: 600; }

/* Weather check */
.wx { border: 1px solid var(--g200); border-radius: 8px; padding: 14px 16px; }
.wx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.wx-title { font-weight: 600; font-size: 14.5px; }
.wx-link { font-size: 13px; }
.wx-ctrl { margin-top: 10px; }
.wx-ctrl-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--g700); }
.wx-ctrl-top output { font-weight: 650; color: var(--g900); font-variant-numeric: tabular-nums; }
.wx input[type=range] { width: 100%; margin: 6px 0 0; accent-color: var(--red); height: 28px; }
.wx-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--g500); font-variant-numeric: tabular-nums; }
.wx-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.wx-checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--g700); padding: 6px 0; min-height: 36px; cursor: pointer; }
.wx-checks input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.wx-result { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--ok-bg); color: #065f46; font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.wx-result b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.wx-result.is-warn { background: var(--amber-bg); color: var(--amber); }
.wx-result.is-high { background: var(--red-bg); color: var(--red-dark); }
.wx-foot { margin-top: 8px; font-size: 12px; color: var(--g500); }

/* Quiz */
.quiz-prompt { font-size: 15px; color: var(--g900); margin-bottom: 10px; max-width: 66ch; }
.quiz-opts { list-style: none; display: grid; gap: 6px; }
.quiz-opt {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid var(--g200); border-radius: var(--radius); background: #fff;
  font-size: 14.5px; line-height: 1.45; color: var(--g700); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .08s ease;
}
.quiz-opt:hover { border-color: var(--g400); }
.quiz-opt:active { transform: scale(.995); }
.quiz-letter { width: 22px; height: 22px; border-radius: 50%; background: var(--g100); display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--g700); }
.quiz-opt.is-right { border-color: var(--ok); background: var(--ok-bg); color: #065f46; }
.quiz-opt.is-right .quiz-letter { background: var(--ok); color: #fff; }
.quiz-opt.is-wrong { border-color: var(--red); background: var(--red-bg); color: var(--red-dark); }
.quiz-opt.is-wrong .quiz-letter { background: var(--red); color: #fff; }
.quiz-opt[disabled] { cursor: default; }
.quiz-why { margin-top: 10px; font-size: 14px; color: var(--g700); max-width: 66ch; }
.quiz-why b { color: var(--g900); }
.text-btn { border: 0; background: none; padding: 0; color: var(--red); cursor: pointer; font-size: 14px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Sources */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--g200); margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 7px 10px 8px; font-size: 13.5px; color: var(--g500); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--g900); }
.tab[aria-selected="true"] { color: var(--g900); font-weight: 600; border-bottom-color: var(--red); }
.tab .n { color: var(--g500); font-weight: 400; margin-left: 3px; font-variant-numeric: tabular-nums; }
.slist { list-style: none; }
.sitem { padding: 9px 0; border-bottom: 1px solid var(--g200); }
.s-meta { font-size: 12.5px; color: var(--g500); }
.s-meta .k { color: var(--g700); font-weight: 550; }
.s-title { display: block; font-size: 14.5px; font-weight: 550; line-height: 1.4; color: var(--g900); margin-top: 1px; }
a.s-title:hover { color: var(--red); }
.s-quote { font-size: 13.5px; color: var(--g600); margin-top: 3px; }
.s-actions { margin-top: 3px; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.more { margin-top: 10px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select {
  height: 36px; padding: 0 10px; font: 14px var(--font); color: var(--g900);
  border: 1px solid var(--g300); border-radius: var(--radius); background: #fff; min-width: 0;
}
.filters input { flex: 1 1 260px; }
.filters select { flex: 0 1 240px; }
.count { font-size: 13px; color: var(--g500); margin: 6px 0 4px; }

/* FRAC */
.table-wrap { overflow-x: auto; border: 1px solid var(--g200); border-radius: 8px; }
table.frac { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.frac th { text-align: left; font-weight: 600; font-size: 12px; color: var(--g500); background: var(--g50); padding: 8px 10px; border-bottom: 1px solid var(--g200); }
.frac td { padding: 9px 10px; border-bottom: 1px solid var(--g200); vertical-align: top; color: var(--g700); }
.frac tr:last-child td { border-bottom: 0; }
.frac td:first-child { font-weight: 650; color: var(--g900); white-space: nowrap; }
.risk { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.risk.lo { background: var(--ok-bg); color: #065f46; }
.risk.md { background: var(--amber-bg); color: var(--amber); }
.risk.hi { background: var(--red-bg); color: var(--red-dark); }

/* Finder */
.finder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; max-width: 1080px; margin-top: 20px; }
.finder-filters { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; }
.f-step + .f-step { margin-top: 16px; }
.f-label { font-size: 12px; font-weight: 600; color: var(--g500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button {
  border: 1px solid var(--g200); background: #fff; border-radius: 5px; padding: 5px 9px; font-size: 13.5px; color: var(--g700); cursor: pointer; min-height: 32px;
}
.seg button:hover { border-color: var(--g400); }
.seg button[aria-pressed="true"] { background: var(--g900); border-color: var(--g900); color: #fff; }
.signs { list-style: none; border-top: 1px solid var(--g200); }
.sign {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid var(--g200); background: none; padding: 8px 2px; font-size: 14px; color: var(--g700); cursor: pointer; min-height: 40px;
}
.sign:hover { color: var(--g900); background: var(--g50); }
.sign .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--g400); }
.sign[aria-pressed="true"] { color: var(--g900); font-weight: 600; }
.sign[aria-pressed="true"] .radio { border: 4px solid var(--red); }
.sign .n { font-size: 12px; color: var(--g500); font-weight: 400; font-variant-numeric: tabular-nums; }
.sign[disabled] { opacity: .45; cursor: default; }
.reset { margin-top: 10px; }
.empty { padding: 20px 0; color: var(--g600); font-size: 14.5px; }

.foot { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--g200); font-size: 12.5px; color: var(--g500); max-width: 720px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager a { display: block; padding: 10px 12px; border: 1px solid var(--g200); border-radius: var(--radius); font-size: 14px; color: var(--g900); flex: 1 1 0; min-width: 0; }
.pager a:hover { border-color: var(--g400); text-decoration: none; }
.pager a span { display: block; font-size: 12px; color: var(--g500); }
.pager a.next { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .article { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 1100px) {
  .head { grid-template-columns: minmax(0, 1fr) 240px; }
  .finder { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 899px) {
  :root { --top-h: 52px; }
  .top { gap: 10px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .menu-btn { display: flex; }
  .brand { width: auto; }
  .brand-sub, .hub-link, .search kbd { display: none; }
  .search { position: static; max-width: none; }
  .search input { height: 44px; }
  .tab { min-height: 44px; }
  .s-actions a { display: inline-block; padding: 10px 0; }
  .search-results { left: 8px; right: 8px; top: calc(var(--top-h) + 4px); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(86vw, 320px);
    padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
    background: #fff;
  }
  .rail.is-open { transform: none; box-shadow: 0 0 40px rgba(17,24,39,.18); }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(17,24,39,.32); }
  .page { padding: 18px 16px 48px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .head { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .head .plate { order: -1; margin: 0 0 6px; }
  .head .plate-panel { display: flex; justify-content: center; }
  .head .plate img { max-height: 112px; width: auto; max-width: 100%; }
  .head .plate.is-home { display: none; }
  h1 { font-size: 26px; }
  .lede { font-size: 15.5px; }
  .fact { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .season-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  section.sec { margin-top: 30px; }
  .finder { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 14px; }
  .finder-filters { position: static; }
  .wx-checks { grid-template-columns: minmax(0, 1fr); }
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Kerik's talks and clips */
.clips { list-style: none; border-top: 1px solid var(--g200); }
.clip { padding: 12px 0; border-bottom: 1px solid var(--g200); }
.clip-meta { font-size: 12.5px; color: var(--g500); }
.clip-meta .k { color: var(--g700); font-weight: 600; }
.clip-text { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--g900); max-width: 66ch; }
.media-actions, .talk-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.media-play, .media-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 13.5px; }
.media-play { border: 0; border-radius: var(--radius); padding: 0 12px; background: var(--red-bg); color: var(--red); font-weight: 650; cursor: pointer; }
.media-play:hover, .media-play[aria-expanded="true"] { background: var(--red); color: #fff; }
.media-link { color: var(--g600); }
.media-link:only-child { color: var(--red); }
.media-player { margin-top: 8px; }
.media-player iframe, .media-player audio { display: block; width: 100%; }
.media-player iframe { aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--g900); }
.media-player p { margin-top: 4px; color: var(--g700); font-size: 13.5px; }
.talks { list-style: none; border-top: 1px solid var(--g200); }
.talk { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--g200); }
.talk-date { font-size: 13px; color: var(--g500); font-variant-numeric: tabular-nums; padding-top: 1px; }
.talk-main { min-width: 0; }
.talk-title { display: block; font-size: 14.5px; font-weight: 550; color: var(--g900); line-height: 1.4; }
.talk-topics { gap: 0 8px; margin-top: 0; }
.talk-topics .media-play { padding: 0 8px; background: transparent; color: var(--g700); font-weight: 500; }
.talk-topics .media-play:hover, .talk-topics .media-play[aria-expanded="true"] { background: var(--g100); color: var(--red); }
@media (max-width: 899px) {
  .talk { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .talk-date { font-size: 12.5px; }
}

.home-cta { margin-top: 12px; font-size: 15px; font-weight: 600; }
.article.is-wide { grid-template-columns: minmax(0, 960px); }
.article.is-wide .head { max-width: 960px; }
@media (min-width: 1100px) {
  .dlist.is-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .dlist.is-two .ditem:nth-child(-n+2) { border-top: 1px solid var(--g200); }
}
h2.year { font-size: 13px; font-weight: 650; color: var(--g500); letter-spacing: .04em; margin: 22px 0 4px; position: sticky; top: var(--top-h); background: #fff; padding: 6px 0; z-index: 2; }
.filter-link { align-self: center; font-size: 14px; }
@media (max-width: 899px) {
  .seg button { min-height: 44px; padding: 6px 11px; }
  .sign { min-height: 44px; }
  .text-btn { padding: 10px 0; }
}

.talk-kind { display: block; font-size: 12px; color: var(--g500); margin-top: 1px; }
.follow { font-size: 13.5px; color: var(--g600); margin-top: 10px; }

.finder-bar { display: none; }
@media (max-width: 899px) {
  .finder-bar {
    display: block; position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; justify-self: center;
    margin: 0 auto; padding: 10px 18px; min-height: 44px; border: 0; border-radius: 22px;
    background: var(--g900); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(17,24,39,.25); cursor: pointer;
  }
}
