/* ============================================================================
   ChemistryScore components — hero, cards, tables, sell units, interactives
   ========================================================================= */

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 78% -12%, rgb(124 58 237 / .30), transparent 62%),
    radial-gradient(900px 520px at 8% 6%, rgb(6 182 212 / .24), transparent 60%),
    linear-gradient(178deg, #0b1020, #131c39 62%, #0b1020);
  color: #eef2ff; isolation: isolate;
}
.hero::after {                       /* faint hex lattice, pure CSS */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16Z' fill='none' stroke='%23ffffff' stroke-opacity='.055'/%3E%3C/svg%3E");
}
.hero__inner {
  display: grid; gap: var(--sp-7); align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  padding-block: clamp(var(--sp-7), 6vw, var(--sp-9));
}
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: var(--step-5); letter-spacing: -.033em; margin-bottom: var(--sp-4);
  color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan-lo), var(--violet-lo) 46%, var(--lime-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: var(--step-1); color: #c3cde4; max-width: 46ch; margin-bottom: var(--sp-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin: 0; padding: 0; }
.hero__stats div { min-width: 88px; }
.hero__stats dt { font-size: var(--step--2); text-transform: uppercase;
  letter-spacing: .1em; color: #93a2c4; margin-bottom: .15rem; }
.hero__stats dd { margin: 0; font-size: var(--step-2); font-weight: 800; color: #fff;
  letter-spacing: -.02em; }
.hero__art { position: relative; }
.hero__art svg { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 22px 48px rgb(0 0 0 / .45)); }

/* search-first hero: one centred column, the box as the widest element */
.hero__search {
  max-width: 760px; margin-inline: auto; text-align: center;
  padding-block: clamp(var(--sp-7), 7vw, var(--sp-9));
}
.hero__search h1 { font-size: var(--step-5); }
.hero__search .hero__lede { margin-inline: auto; margin-bottom: var(--sp-6); }
.hero__search .search-box input {
  padding: 1.05rem 1.2rem 1.05rem 3.1rem; font-size: var(--step-1);
  border-radius: var(--r-xl); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .7);
}
.hero__search .search-box svg { left: 1.2rem; width: 21px; height: 21px; }
.hero__chips {
  justify-content: center; align-items: center; margin-top: var(--sp-5);
}
.hero__chips-label {
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 650; color: #8fa3c8; margin-right: .2rem;
}
.hero__search .chip {
  background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); color: #dbe4f7;
}
.hero__search .chip:hover { background: rgb(255 255 255 / .14); color: #fff; }
.hero__search .hero__stats { justify-content: center; margin-top: var(--sp-7); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: var(--sp-4);
  padding: .34rem .8rem; border-radius: var(--r-full);
  background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .17);
  font-size: var(--step--2); font-weight: 640; letter-spacing: .04em;
  text-transform: uppercase; color: #d9e2f7;
}
.eyebrow--light {
  background: color-mix(in oklab, var(--violet) 12%, transparent);
  border-color: color-mix(in oklab, var(--violet) 26%, transparent);
  color: var(--accent);
}

/* ---- section furniture -------------------------------------------------- */
.section { padding-block: var(--sp-8); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--fg-muted); font-size: var(--step-1); margin: 0; }

/* ---- cards -------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5); border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease,
    border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.card h3 { margin: 0; font-size: var(--step-1); }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:hover { color: var(--link); }
.card p { margin: 0; color: var(--fg-muted); font-size: var(--step--1); }
.card__meta { margin-top: auto; padding-top: var(--sp-3);
  font-size: var(--step--2); color: var(--fg-faint); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 620; }

.card--topic { padding-top: var(--sp-6); }
.card--topic .card__icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: grid; place-items: center; margin-bottom: var(--sp-2);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--violet) 20%, transparent),
    color-mix(in oklab, var(--cyan) 20%, transparent));
  border: 1px solid color-mix(in oklab, var(--violet) 26%, transparent);
  color: var(--accent);
}
.card--topic .card__icon svg { width: 24px; height: 24px; }
.card__count {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  font-size: var(--step--2); font-weight: 700; color: var(--fg-faint);
  background: var(--bg-soft); border-radius: var(--r-full); padding: .12rem .55rem;
}

/* pillar tint */
.card[data-pillar="organic-reactions"] { --accent: var(--violet); }
.card[data-pillar="biochemistry"]      { --accent: #059669; }
.card[data-pillar="fundamentals"]      { --accent: var(--cyan); }
.card[data-pillar="spectroscopy"]      { --accent: #d946ef; }

/* ---- post list ---------------------------------------------------------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.post-list li { position: relative; }
.post-list a {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: .72rem .95rem; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: var(--bg);
  color: var(--fg); text-decoration: none; font-weight: 550;
}
.post-list a:hover { border-color: var(--accent); background: var(--bg-soft); color: var(--link); }
.post-list .tag {
  margin-left: auto; flex: none; font-size: var(--step--2); color: var(--fg-faint);
  font-family: var(--font-mono);
}

/* ---- breadcrumbs -------------------------------------------------------- */
.crumbs { font-size: var(--step--1); color: var(--fg-faint); margin-bottom: var(--sp-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--line); }
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }

/* ---- article ------------------------------------------------------------ */
.article-layout {
  display: grid; gap: var(--sp-7); align-items: start;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding-block: var(--sp-6) var(--sp-8);
}
@media (max-width: 1040px) { .article-layout { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: 84px; display: grid; gap: var(--sp-5); }
@media (max-width: 1040px) { .article-aside { position: static; } }

.article__header { margin-bottom: var(--sp-5); }
.article__header h1 { margin-bottom: var(--sp-3); }
.article__dek { font-size: var(--step-1); color: var(--fg-muted); margin: 0 0 var(--sp-4); }
.article__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  font-size: var(--step--1); color: var(--fg-faint);
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft);
}
.pill {
  display: inline-block; padding: .2rem .68rem; border-radius: var(--r-full);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  font-size: var(--step--2); font-weight: 680; text-decoration: none;
  text-transform: uppercase; letter-spacing: .05em;
}
a.pill:hover { background: color-mix(in oklab, var(--accent) 22%, transparent); }

.article-body { font-size: var(--step-0); }
.article-body > * { max-width: var(--measure); }
.article-body h2 { font-size: var(--step-2); padding-top: var(--sp-2); }
.article-body h3 { font-size: var(--step-1); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong, .article-body b { font-weight: 700; color: var(--fg); }

/* reaction scheme images get room to breathe and a light plate in dark mode */
.article-body figure { margin: var(--sp-6) 0; max-width: 100%; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.scheme {
  background: #fff; padding: var(--sp-4); border-radius: var(--r);
  border: 1px solid var(--line);
}
.scheme img { mix-blend-mode: multiply; }
figcaption {
  margin-top: var(--sp-3); font-size: var(--step--1); color: var(--fg-muted);
  border-left: 3px solid var(--accent); padding-left: var(--sp-3);
}
figcaption b, figcaption strong { color: var(--fg); }

.article-body a[href^="/definition/"] {
  text-decoration: none; border-bottom: 1px dotted currentColor;
  font-weight: 550;
}
.article-body a[href^="/definition/"]:hover { border-bottom-style: solid; }

/* ---- tables ------------------------------------------------------------- */
.table-wrap {
  margin: var(--sp-6) 0; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.table-wrap__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap__scroll:focus-visible { outline: 3px solid var(--violet-lo); outline-offset: -3px; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
table.data caption {
  caption-side: top; text-align: left; padding: var(--sp-4) var(--sp-5) var(--sp-3);
  font-weight: 720; font-size: var(--step-0); color: var(--fg);
  border-bottom: 1px solid var(--line-soft); background: var(--bg-soft);
}
table.data caption .caption-note {
  display: block; font-weight: 450; font-size: var(--step--1);
  color: var(--fg-muted); margin-top: .3rem;
}
table.data th, table.data td {
  padding: .62rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  position: sticky; top: 0; background: var(--bg-soft); z-index: 1;
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: .06em;
  color: var(--fg-muted); font-weight: 700; white-space: nowrap;
}
table.data tbody th { font-weight: 680; color: var(--fg); }
table.data tbody tr:hover { background: var(--bg-soft); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; }
.table-note {
  padding: var(--sp-3) var(--sp-5); font-size: var(--step--2); color: var(--fg-faint);
  background: var(--bg-soft); border-top: 1px solid var(--line-soft);
}

/* ---- study-guide sell units --------------------------------------------- */
.sell-banner {
  position: relative; overflow: hidden;
  margin: var(--sp-7) 0; padding: var(--sp-6);
  border-radius: var(--r-xl); border: 1px solid var(--sell-line);
  background:
    radial-gradient(680px 260px at 88% -30%, rgb(251 191 36 / .28), transparent 70%),
    var(--sell-bg);
  display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 720px) { .sell-banner { grid-template-columns: 1fr; } }
.sell-banner__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .5rem;
  font-size: var(--step--2); font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sell);
}
.sell-banner h2, .sell-banner h3 { margin: 0 0 var(--sp-2); font-size: var(--step-2); }
.sell-banner p { margin: 0 0 var(--sp-3); color: var(--fg-muted); max-width: 52ch; }
.sell-banner__price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: var(--sp-3); }
.sell-banner__now { font-size: var(--step-3); font-weight: 850; letter-spacing: -.03em; }
.sell-banner__was { color: var(--fg-faint); text-decoration: line-through; font-weight: 600; }
.sell-banner__save {
  font-size: var(--step--2); font-weight: 750; color: #fff; background: var(--rose);
  border-radius: var(--r-full); padding: .16rem .6rem; letter-spacing: .03em;
}
.sell-banner ul { margin: 0 0 var(--sp-4); padding-left: 1.15rem; color: var(--fg-muted);
  font-size: var(--step--1); }
.sell-banner__art { width: 190px; flex: none; }
.sell-banner__art svg { width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgb(120 53 15 / .28)); }
@media (max-width: 720px) { .sell-banner__art { display: none; } }

/* compact in-article insert */
.sell-insert {
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid var(--sell-line);
  border-left: 4px solid #f59e0b; background: var(--sell-bg);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
}
.sell-insert__body { flex: 1 1 260px; }
.sell-insert p { margin: 0; font-size: var(--step--1); color: var(--fg-muted); }
.sell-insert strong { display: block; font-size: var(--step-0); color: var(--fg); margin-bottom: .18rem; }
.sell-insert .btn { flex: none; }

/* sidebar sell card */
.sell-card {
  padding: var(--sp-5); border-radius: var(--r-lg);
  border: 1px solid var(--sell-line); background: var(--sell-bg); text-align: center;
}
.sell-card h2 { margin: 0 0 var(--sp-2); font-size: var(--step-1); }
.sell-card p { font-size: var(--step--1); color: var(--fg-muted); }
.sell-card__art { width: 120px; margin: 0 auto var(--sp-3); }
.sell-card__price { font-size: var(--step-2); font-weight: 850; margin-bottom: var(--sp-3); }
.sell-card__price s { color: var(--fg-faint); font-size: var(--step-0); font-weight: 500;
  margin-left: .4rem; }
.guarantee { font-size: var(--step--2); color: var(--fg-faint); margin-top: var(--sp-3); }

/* ---- interactive -------------------------------------------------------- */
.tool {
  margin: var(--sp-6) 0; padding: var(--sp-5); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.tool > h2, .tool > h3 { margin-top: 0; }
.tool__hint { font-size: var(--step--1); color: var(--fg-muted); margin-bottom: var(--sp-4); }

.search-box { position: relative; }
.search-box input {
  width: 100%; padding: .8rem 1rem .8rem 2.7rem; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-full);
}
.search-box input::placeholder { color: var(--fg-faint); }
.search-box svg {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--fg-faint); pointer-events: none;
}

/* live search results */
.search-box { position: relative; z-index: 20; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + .45rem); z-index: 30;
  margin: 0; padding: .3rem; list-style: none; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-height: min(58vh, 26rem); overflow-y: auto;
}
.search-results[hidden] { display: none; }
.search-results li { border-radius: var(--r-sm); }
.search-results a {
  display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: var(--r-sm);
  color: var(--fg); text-decoration: none;
}
.search-results li:hover a,
.search-results li.is-active a { background: var(--bg-soft); }
.search-results li.is-active a { box-shadow: inset 2px 0 0 var(--accent); }
.search-results__title { font-weight: 620; font-size: var(--step-0); line-height: 1.3; }
.search-results__meta {
  font-size: var(--step--2); color: var(--fg-faint);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 620;
}
.search-results__empty { padding: .8rem .7rem; color: var(--fg-muted); font-size: var(--step--1); }

/* the hero box sits on the dark band and needs its own contrast */
.hero .search-box input {
  background: rgb(255 255 255 / .10); border-color: rgb(255 255 255 / .26); color: #fff;
}
.hero .search-box input::placeholder { color: #a9b8d8; }
.hero .search-box svg { color: #a9b8d8; }
.hero .search-results { color: var(--fg); }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .35rem .8rem; border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--bg); color: var(--fg-muted); font-size: var(--step--1);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* flashcard */
.flashcard {
  perspective: 1400px; width: 100%; min-height: 220px; background: none;
  border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.flashcard__inner {
  position: relative; width: 100%; min-height: 220px;
  transition: transform .5s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d;
}
.flashcard[aria-pressed="true"] .flashcard__inner { transform: rotateY(180deg); }
.flashcard__face {
  position: absolute; inset: 0; display: grid; place-content: center; gap: var(--sp-2);
  padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--line);
  backface-visibility: hidden; text-align: center; background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.flashcard__face--back {
  transform: rotateY(180deg); background: var(--bg-soft);
  border-color: color-mix(in oklab, var(--violet) 35%, var(--line));
}
.flashcard__q { font-size: var(--step-2); font-weight: 750; }
.flashcard__a { font-size: var(--step-0); color: var(--fg-muted); }
.flashcard__hint { font-size: var(--step--2); color: var(--fg-faint);
  text-transform: uppercase; letter-spacing: .08em; }

/* quiz */
.quiz { display: grid; gap: var(--sp-4); }
.quiz__q { font-weight: 680; font-size: var(--step-1); margin: 0; }
.quiz__opts { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.quiz__opt {
  display: flex; gap: .7rem; align-items: flex-start; width: 100%; text-align: left;
  padding: .7rem .9rem; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg); font: inherit; color: var(--fg); cursor: pointer;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--accent); background: var(--bg-soft); }
.quiz__opt .key {
  flex: none; width: 24px; height: 24px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--bg-soft);
  border: 1px solid var(--line); font-size: var(--step--2); font-weight: 700;
}
.quiz__opt.is-right { border-color: #16a34a; background: color-mix(in oklab, #16a34a 12%, transparent); }
.quiz__opt.is-right .key { background: #16a34a; color: #fff; border-color: #16a34a; }
.quiz__opt.is-wrong { border-color: var(--rose); background: color-mix(in oklab, var(--rose) 12%, transparent); }
.quiz__opt.is-wrong .key { background: var(--rose); color: #fff; border-color: var(--rose); }
.quiz__feedback { font-size: var(--step--1); padding: .8rem 1rem; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line); }
.quiz__feedback[hidden] { display: none; }
.quiz__bar { display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--step--1); color: var(--fg-muted); }
.quiz__progress { flex: 1; height: 7px; border-radius: var(--r-full);
  background: var(--bg-sunk); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .3s ease; }

/* glossary A–Z */
.az-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: var(--sp-5); }
.az-nav a {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .4rem;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  color: var(--fg-muted); text-decoration: none; font-weight: 700; font-size: var(--step--1);
}
.az-nav a:hover { border-color: var(--accent); color: var(--link); background: var(--bg-soft); }
.az-nav a[aria-disabled="true"] { opacity: .32; pointer-events: none; }

.term-grid { display: grid; gap: .4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.term-grid a {
  display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
  color: var(--fg-muted); text-decoration: none; font-size: var(--step--1);
  border: 1px solid transparent;
}
.term-grid a:hover { background: var(--bg-soft); color: var(--link); border-color: var(--line-soft); }
.az-group { margin-bottom: var(--sp-6); scroll-margin-top: 84px; }
.az-group h2 {
  margin: 0 0 var(--sp-3); font-size: var(--step-2); color: var(--accent);
  border-bottom: 2px solid var(--line); padding-bottom: .3rem;
}

/* definition page */
.def-hero { padding-block: var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.def-hero h1 { margin-bottom: var(--sp-2); }
.def-hero .pill { margin-bottom: var(--sp-3); }
.def-quick {
  margin: var(--sp-5) 0; padding: var(--sp-5); border-radius: var(--r-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.def-quick h2 { margin: 0 0 var(--sp-2); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); }
.def-quick p { margin: 0; font-size: var(--step-1); }
.related-terms { display: flex; flex-wrap: wrap; gap: .4rem; }

/* misc */
.callout {
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
}
.callout h3, .callout h4 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--tip { border-left-color: var(--lime); }
.callout--warn { border-left-color: var(--amber-lo); }

.disclosure {
  font-size: var(--step--2); color: var(--fg-faint); background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5);
}

.pagination { display: flex; gap: var(--sp-3); justify-content: space-between;
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }
.pagination a { display: grid; gap: .2rem; padding: .8rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line); text-decoration: none; color: var(--fg); max-width: 46%; }
.pagination a:hover { border-color: var(--accent); background: var(--bg-soft); }
.pagination small { color: var(--fg-faint); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: .07em; }
.pagination .next { text-align: right; margin-left: auto; }

.empty { padding: var(--sp-6); text-align: center; color: var(--fg-muted); }
