/* 85 Livingston Help Center. Standard help-center form at Linear-docs craft:
   Inter, refined neutrals, one indigo accent, hairline borders, light and dark from the system. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-subtle: #fafafb;
  --surface: #f4f4f6;
  --surface-hover: #ededf0;
  --border: #e6e6ea;
  --border-strong: #d4d4da;
  --text: #18181c;
  --text-2: #55565f;
  --text-3: #74757e;
  --accent: #5151cd;
  --accent-hover: #4343bd;
  --accent-text: #ffffff;
  --accent-subtle: #efeffc;
  --accent-ring: rgb(81 81 205 / 0.28);
  --ok: #18794e;
  --ok-subtle: #e9f6ef;
  --danger: #c5282a;
  --danger-subtle: #fdeceb;
  --warn-subtle: #fdf4e3;
  --mark: #fff1b8;
  --shadow-sm: 0 1px 2px rgb(16 16 24 / 0.05);
  --shadow-md: 0 1px 2px rgb(16 16 24 / 0.04), 0 4px 12px -2px rgb(16 16 24 / 0.06);
  --shadow-pop: 0 2px 4px rgb(16 16 24 / 0.04), 0 12px 32px -8px rgb(16 16 24 / 0.18);

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --topbar: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --bg-subtle: #111114;
    --surface: #18181c;
    --surface-hover: #202025;
    --border: #25252b;
    --border-strong: #34343c;
    --text: #ececf0;
    --text-2: #a3a3ad;
    --text-3: #8b8b95;
    --accent: #8d8df7;
    --accent-hover: #a2a2fa;
    --accent-text: #0d0d0f;
    --accent-subtle: #1c1c34;
    --accent-ring: rgb(141 141 247 / 0.35);
    --ok: #4cc38a;
    --ok-subtle: #10261b;
    --danger: #ff6b67;
    --danger-subtle: #2a1312;
    --warn-subtle: #2a2211;
    --mark: #4a3d0b;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px -2px rgb(0 0 0 / 0.4);
    --shadow-pop: 0 2px 4px rgb(0 0 0 / 0.3), 0 16px 40px -8px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss03";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent-ring); color: var(--text); }
* { caret-color: var(--accent); scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.icon { flex: none; display: block; }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; background: var(--accent); color: var(--accent-text); border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.kbd { font: 500 12px/1 var(--font); color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; background: var(--bg); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar-inner { height: var(--topbar); display: flex; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font: 650 13.5px/1 var(--font); letter-spacing: -0.02em;
}
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.brand-sub { font-weight: 500; color: var(--text-2); font-size: 14.5px; padding-left: 8px; border-left: 1px solid var(--border-strong); }
.topbar-search {
  flex: 1 1 0; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r); color: var(--text-3);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.2s var(--ease);
}
.topbar-search:focus-within { background: var(--bg); border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-ring); }
.topbar-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.topbar-search input::placeholder { color: var(--text-3); }
.topbar-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topbar-nav a { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.topbar-nav a:hover { color: var(--text); background: var(--surface); }
.topbar-nav a[aria-current="page"] { color: var(--text); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.account { position: relative; flex: none; }
.account summary { list-style: none; cursor: pointer; border-radius: 50%; }
.account summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent); font-weight: 600; font-size: 14px; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop 0.18s var(--ease);
}
.account-email { padding: 8px 10px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-wrap: anywhere; }
.account-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 15px; }
.account-menu a:hover { background: var(--surface); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }

/* Shell: sidebar + content */
.shell { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--border); }
.sidebar-toggle { position: sticky; top: var(--topbar); max-height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 20px 12px 32px; }
.sidebar-toggle > summary { display: none; }
.side-heading { padding: 0 10px; margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; }
.side-heading:first-child { margin-top: 0; }
.side-nav ul { list-style: none; display: grid; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 15px; color: var(--text-2); transition: background 0.12s, color 0.12s; }
.side-nav a span:first-of-type { flex: 1; min-width: 0; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 500; }
.side-nav a[aria-current="page"] .icon { color: var(--accent); }
.side-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.side-count.is-alert { color: var(--accent-text); background: var(--accent); border-radius: 9px; padding: 0 6px; font-weight: 600; }
.main { min-width: 0; padding: 40px 48px 80px; }
.main-bare { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg); color: var(--text);
  font: 500 15px/1 var(--font); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 14px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Home */
.hero { border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 40px 24px 32px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 49px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; }
.lede { margin-top: 12px; font-size: 17.5px; line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-search {
  margin: 24px auto 0; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 18px;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  color: var(--text-3); text-align: left; transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-md); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 400 18px var(--font); color: var(--text); }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search .btn { height: 40px; padding: 0 18px; }
.hero-search-inline { margin: 8px 0 32px; height: 48px; padding-left: 14px; box-shadow: var(--shadow-sm); }
.hero-search-inline input { font-size: 16.5px; }
.hero-search-inline .btn { height: 36px; }
.suggest { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-3); }
.suggest span { margin-right: 4px; }
.suggest a { padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-2); transition: border-color 0.15s, color 0.15s; }
.suggest a:hover { border-color: var(--border-strong); color: var(--text); }

.wrap.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 24px; align-items: start; }
.section-title { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-gap { margin-top: 52px; }

.rows { list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.rows > li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; transition: background 0.12s; }
.row:hover { background: var(--bg-subtle); }
.row-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-title { font-weight: 550; font-size: 16px; letter-spacing: -0.005em; }
.row-summary { color: var(--text-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { color: var(--text-3); font-size: 13.5px; }
.rows-detailed .row { padding: 16px 20px; align-items: flex-start; }
.rows-detailed .row-body { gap: 4px; }
.rows-detailed .row-go { margin-top: 3px; }
.row-go { color: var(--text-3); transition: transform 0.25s var(--ease), color 0.15s; }
.row:hover .row-go { transform: translateX(3px); color: var(--text); }

.topic-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.topic-block { min-width: 0; padding: 22px 24px 20px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.topic-block:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--border); }
.topic-head { display: flex; gap: 12px; align-items: flex-start; }
.topic-icon { width: 32px; height: 32px; border-radius: var(--r); display: grid; place-items: center; flex: none; background: var(--surface); color: var(--text-2); transition: background 0.15s, color 0.15s; }
.topic-head:hover .topic-icon { background: var(--accent-subtle); color: var(--accent); }
.topic-name { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.topic-head:hover .topic-name { color: var(--accent); }
.topic-blurb { display: block; font-size: 14.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.topic-links { list-style: none; margin: 12px 0 0 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.topic-links a { font-size: 15px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14.5px; font-weight: 500; color: var(--accent); }
.topic-block .more { margin-left: 44px; }
.more:hover { color: var(--accent-hover); }

.home-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar) + 24px); }
.panel { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 18px 16px; background: var(--bg); }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.panel-title .icon { color: var(--text-3); }
.doc-mini { list-style: none; margin: 0 -8px; }
.doc-mini a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); font-size: 15px; }
.doc-mini a:hover { background: var(--surface); }
.doc-mini-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-type { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px; }
.panel .more { margin-top: 8px; }
.contacts { list-style: none; display: grid; gap: 14px; }
.contacts li { display: grid; gap: 1px; font-size: 15px; }
.contact-label { font-weight: 550; }
.contact-detail { color: var(--text-2); font-size: 14px; }
.contacts a { color: var(--accent); overflow-wrap: anywhere; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-list { list-style: none; margin: 0 -8px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: var(--r-sm); }
.link-list a:hover { background: var(--surface); }
.link-list .icon { color: var(--text-3); }
.link-title { display: block; font-size: 15px; font-weight: 500; }
.link-note { display: block; font-size: 13.5px; color: var(--text-2); }

.ask-band { margin-top: 40px; margin-bottom: 72px; }
.ask-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 40px; border-top: 1px solid var(--border); margin-bottom: 16px; }
.ask-band-head .section-title { margin-bottom: 4px; }
.ask-band-head p { font-size: 15px; }
.q-mini { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-mini a { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.15s, box-shadow 0.2s var(--ease); }
.q-mini a:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.q-mini-body { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface); color: var(--text-2); width: max-content; vertical-align: middle; }
.pill-ok { background: var(--ok-subtle); color: var(--ok); }
.pill-accent { background: var(--accent-subtle); color: var(--accent); margin-left: 8px; }

/* Newsletters on the home page */
.news { margin-bottom: 4px; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.news-head .section-title { margin-bottom: 0; }
.news-head .more { margin-top: 0; }
.news-latest {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle);
}
.news-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent); }
.news-latest-body { display: grid; gap: 2px; min-width: 0; }
.news-latest-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.news-latest-body:hover .news-latest-title { color: var(--accent); }
.news-latest-date { font-size: 14px; color: var(--text-2); }
.news-latest-summary { margin-top: 4px; font-size: 15px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-actions { display: flex; gap: 8px; }
.news-older { list-style: none; margin-top: 4px; }
.news-older a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.news-older li:last-child a { border-bottom: 0; }
.news-older a:hover span:first-child { color: var(--accent); }
.news-older-date { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows-news li { position: relative; }
.rows-news .row-pdf { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); z-index: 1; }
.rows-news li.has-pdf .row { padding-right: 140px; }

/* Pages */
.page { max-width: 760px; }
.page-wide { max-width: 900px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14.5px; color: var(--text-3); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.03em; }
.page-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-subtle); color: var(--accent); margin-bottom: 16px; }
.page-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 14.5px; color: var(--text-3); }
.edit-link { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--accent); font-weight: 500; }
.empty { padding: 32px 0; color: var(--text-2); display: grid; gap: 8px; }
.empty a { color: var(--accent); }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px); gap: 56px; }
.article-layout.has-toc { grid-template-columns: minmax(0, 760px) 220px; }
.toc { position: sticky; top: calc(var(--topbar) + 40px); align-self: start; font-size: 14.5px; max-height: calc(100vh - var(--topbar) - 80px); overflow-y: auto; }
.toc-title { font-size: 13.5px; font-weight: 600; color: var(--text-3); margin-bottom: 10px; }
.toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc-l3 a { padding-left: 26px; }

.attachments { display: grid; gap: 8px; margin-bottom: 28px; }
.attachment { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); transition: border-color 0.15s, background 0.15s; }
.attachment:hover { border-color: var(--border-strong); background: var(--bg); }
.attachment-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent-subtle); color: var(--accent); flex: none; }
.attachment-name { flex: 1; min-width: 0; font-weight: 500; font-size: 15.5px; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-kind { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
.prose .attachments { margin: 1.2em 0; }
.prose a.attachment { text-decoration: none; color: var(--text); font-weight: 500; }
.prose .attachment + .attachment { margin-top: 0; }
.attachment-action { font-size: 14.5px; font-weight: 500; color: var(--accent); }

/* Reading column */
.prose { font-size: 17px; line-height: 1.72; color: var(--text); max-width: 68ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--topbar) + 20px); }
.prose h2 { font-size: 1.32em; line-height: 1.3; margin-top: 2.1em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.12em; line-height: 1.35; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.55em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose a[data-file] { font-weight: 500; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--text-3); }
.prose ol > li::marker { font-variant-numeric: tabular-nums; }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 18px; border-left: 1px solid var(--border-strong); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.prose video { display: block; max-width: min(100%, 360px); height: auto; border-radius: var(--r-lg); background: #000; border: 1px solid var(--border); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure.wp-block-table, .prose figure:has(table) { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-subtle); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--surface); padding: 14px 16px; border-radius: var(--r); overflow-x: auto; }
.prose-sm { font-size: 16px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager-link { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); font-weight: 500; font-size: 15.5px; transition: border-color 0.15s; }
.pager-link:hover { border-color: var(--border-strong); }
.pager-next { text-align: right; }
.pager-dir { font-size: 13.5px; color: var(--text-3); font-weight: 400; }
.still-stuck { margin-top: 24px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-subtle); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15.5px; color: var(--text-2); }
.still-stuck strong { color: var(--text); font-weight: 600; }
.still-stuck-actions { display: flex; gap: 8px; }

/* Documents */
.doc-group + .doc-group { margin-top: 40px; }
.docs { list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.doc + .doc { border-top: 1px solid var(--border); }
.doc-badge { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r); font-size: 11px; font-weight: 650; letter-spacing: 0.04em; background: var(--surface); color: var(--text-2); }
.doc-pdf { background: var(--danger-subtle); color: var(--danger); }
.doc-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.doc-title { font-weight: 550; font-size: 16px; }
.doc-note { font-size: 14px; color: var(--text-2); }

/* Search */
.results { list-style: none; display: grid; gap: 2px; }
.result { display: grid; gap: 3px; padding: 14px 16px; margin: 0 -16px; border-radius: var(--r-lg); transition: background 0.12s; }
.result:hover { background: var(--bg-subtle); }
.result-kind { font-size: 13px; font-weight: 500; color: var(--text-3); }
.result-title { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.result:hover .result-title { color: var(--accent); }
.result-snippet { font-size: 15px; color: var(--text-2); line-height: 1.55; }

/* Questions */
.ask { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); }
.ask-title { font-size: 16.5px; margin-bottom: 12px; }
.ask-form textarea, .field textarea {
  width: 100%; resize: vertical; min-height: 104px; padding: 12px 14px; font: 400 16px/1.55 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r); transition: border-color 0.15s, box-shadow 0.2s var(--ease);
}
.ask-form textarea:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ask-note { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.qa { list-style: none; display: grid; }
.qa-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.qa-item:first-child { padding-top: 4px; }
.qa-item:target { animation: flash-target 2.4s var(--ease); }
@keyframes flash-target { 0%, 30% { background: var(--accent-subtle); } }
.qa-q { font-size: 16.5px; font-weight: 550; line-height: 1.55; white-space: pre-line; }
.qa-a { margin-top: 12px; padding-left: 16px; border-left: 1px solid var(--ok); }
.qa-a-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ok); font-weight: 500; margin-bottom: 6px; }
.qa-wait { margin-top: 8px; font-size: 14px; color: var(--text-3); }

/* Flash */
.flash { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r); font-size: 15px; margin-bottom: 16px; animation: pop 0.25s var(--ease); }
.flash-ok { background: var(--ok-subtle); color: var(--ok); }
.flash-error { background: var(--danger-subtle); color: var(--danger); }
.notice { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-subtle); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* Sign in */
.login-body { display: grid; place-items: center; padding: 24px; background: var(--bg-subtle); }
.login { width: 100%; max-width: 380px; text-align: center; display: grid; justify-items: center; }
.brand-mark-lg { width: 48px; height: 48px; border-radius: 12px; font-size: 20.5px; margin-bottom: 20px; }
.login h1 { font-size: 28px; letter-spacing: -0.03em; }
.login .lede { font-size: 16px; margin: 8px 0 28px; }
.login-form { width: 100%; display: grid; gap: 10px; }
.login-form input[type="password"] { height: 46px !important; font-size: 17px !important; padding: 0 14px !important; border-radius: var(--r) !important; text-align: center; }
.login-form .btn { height: 44px; font-size: 16px; }
.login-error { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--danger); font-size: 14.5px; }
.login-help { margin-top: 28px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.login-help a { color: var(--accent); }
.pw-block + .pw-block { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.pw-block > .muted { font-size: 15px; margin: -6px 0 14px; max-width: 70ch; }
.pw-block .hint { margin-top: 8px; }

/* Admin */
.admin-page { max-width: 980px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-head h1 { font-size: 28px; letter-spacing: -0.025em; }
.admin-head .lede { font-size: 16px; margin-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; background: var(--surface); padding: 1px 7px; border-radius: 999px; }
.empty-admin { place-items: center; text-align: center; padding: 56px 0; color: var(--text-3); }
.mod-list { list-style: none; display: grid; gap: 16px; }
.mod { position: relative; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.mod-meta { font-size: 13.5px; color: var(--text-3); margin-bottom: 6px; }
.mod-q { font-size: 17px; font-weight: 550; line-height: 1.55; white-space: pre-line; margin-bottom: 16px; max-width: 70ch; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mod > .confirm { position: absolute; top: 14px; right: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 550; color: var(--text); }
.optional { font-weight: 400; color: var(--text-3); }
.hint { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="search"]), select {
  height: 36px; padding: 0 10px; font: 400 15px var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); min-width: 0; transition: border-color 0.15s, box-shadow 0.2s var(--ease);
}
input:focus, select:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-ring); }
select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2374757e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
input[type="file"] { font: 400 14px var(--font); color: var(--text-2); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); margin: 3px 0 0; flex: none; }
.filter { display: flex; align-items: center; gap: 8px; max-width: 320px; height: 34px; padding: 0 10px; margin-bottom: 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text-3); }
.filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.filter input { border: 0; background: none; outline: none; flex: 1; font: inherit; font-size: 15px; color: var(--text); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 550; font-size: 13.5px; color: var(--text-2); padding: 10px 14px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-subtle); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-title { font-weight: 550; }
.table-title:hover { color: var(--accent); }
.edit-form { display: grid; gap: 16px; }
.title-input { height: auto !important; border: 0 !important; padding: 4px 0 !important; font: 650 30px/1.2 var(--font) !important; letter-spacing: -0.03em; background: none !important; box-shadow: none !important; }
.title-input::placeholder { color: var(--text-3); }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.edit-side { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar) + 24px); padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.edit-side select { width: 100%; }
.check { display: flex; gap: 10px; cursor: pointer; }
.check-title { display: block; font-size: 15px; font-weight: 550; }
.danger-zone { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.confirm { position: relative; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 260px; padding: 12px; display: grid; gap: 10px; font-size: 14.5px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop 0.18s var(--ease); }
.danger-zone .confirm-pop { right: auto; left: 0; }
.add-panel { margin-bottom: 28px; }
.add-panel > summary { list-style: none; width: max-content; }
.add-panel > summary::-webkit-details-marker { display: none; }
.form-grid { margin-top: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { grid-column: 1 / -1; }
.edit-rows { list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); }
.edit-row { padding: 12px 14px; display: grid; gap: 8px; }
.edit-row + .edit-row { border-top: 1px solid var(--border); }
.edit-row-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edit-row-form input:not(.input-num):not(.input-wide) { flex: 1 1 160px; }
.input-wide { flex: 2 1 240px; }
.input-num { width: 64px; }
.edit-row-form .doc-badge { width: 36px; height: 36px; }
.edit-row-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); min-height: 30px; flex-wrap: wrap; }
.edit-row-meta a { color: var(--accent); overflow-wrap: anywhere; }
.edit-row-meta .confirm { margin-left: auto; }
.file-replace { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); color: var(--text-2); cursor: pointer; }
.file-replace input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-replace.has-file { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
.inline-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.inline-add input:not(.input-wide) { flex: 1 1 160px; }
.people-block + .people-block { margin-top: 44px; }
.people-block > .muted { font-size: 15px; margin: -6px 0 14px; max-width: 70ch; }
.add-emails { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.add-emails .field { flex: 1; }
.add-emails textarea { min-height: 60px; }
.email-list { list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); max-height: 480px; overflow-y: auto; }
.email-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; font-size: 15px; }
.email-list li + li { border-top: 1px solid var(--border); }
.email-list li span { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }

/* Trix editor in the site's skin */
trix-toolbar .trix-button-group { border-color: var(--border-strong); border-radius: var(--r-sm); margin-bottom: 8px; }
trix-toolbar .trix-button { border-color: var(--border); }
trix-toolbar .trix-button--icon-attach, trix-toolbar .trix-button--icon-code, trix-toolbar .trix-button--icon-strike { display: none; }
trix-editor {
  border: 1px solid var(--border-strong) !important; border-radius: var(--r) !important; padding: 14px 16px !important;
  background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--font); transition: border-color 0.15s, box-shadow 0.2s var(--ease);
}
trix-editor:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-ring); }
trix-editor.trix-full { min-height: 420px; }
trix-editor.trix-compact { min-height: 90px; }
trix-editor a { color: var(--accent); }
trix-editor h1 { font-size: 1.25em; }
@media (prefers-color-scheme: dark) {
  trix-toolbar .trix-button { background: var(--surface); }
  trix-toolbar .trix-button.trix-active { background: var(--surface-hover); }
  trix-toolbar .trix-button--icon::before { filter: invert(0.9); }
}

/* Responsive */
@media (max-width: 1180px) {
  .article-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-toggle { position: static; max-height: none; padding: 0; }
  .sidebar-toggle > summary { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer; list-style: none; }
  .sidebar-toggle > summary::-webkit-details-marker { display: none; }
  .sidebar-toggle .side-nav { padding: 0 12px 16px; }
  .main { padding: 28px 20px 64px; }
  .wrap.home-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
  .home-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .edit-side { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-inner { gap: 10px; padding: 0 14px; }
  .brand-sub { display: none; }
  .topbar-search { max-width: none; }
  .topbar-search .kbd { display: none; }
  .topbar-nav a:not(.nav-admin) { display: none; }
  .hero-inner { padding: 28px 20px 24px; }
  .hero-search { height: 52px; padding-left: 14px; }
  .hero-search .btn { display: none; }
  .wrap { padding: 0 20px; }
  .topic-index { grid-template-columns: minmax(0, 1fr); }
  .topic-block, .topic-block:nth-child(even) { padding: 20px 0; border-left: 0; }
  .q-mini { grid-template-columns: minmax(0, 1fr); }
  .news-latest { grid-template-columns: auto minmax(0, 1fr); }
  .news-actions { grid-column: 1 / -1; }
  .news-actions .btn { flex: 1; }
  .news-older a { padding: 10px 4px; }
  .rows-news .row-pdf { position: static; transform: none; margin: 0 20px 14px; }
  .rows-news li.has-pdf { display: flex; flex-direction: column-reverse; }
  .rows-news li.has-pdf .row { padding-right: 20px; }
  .ask-band-head { flex-direction: column; align-items: flex-start; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { text-align: left; }
  .doc { flex-wrap: wrap; }
  .doc .btn { margin-left: 54px; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .add-emails { flex-direction: column; align-items: stretch; }
  .prose { font-size: 17px; }
  .hero-search-inline .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
