/* fx registry: the Models page (registry stats, model table, upgrades) and the
   PET "uptake" glow that follows the cursor across editorial rows site-wide.
   Blue leads, peach accents; green only for list markers and state dots.
   Type scale on this page: 10px labels · 12px data · 13px reading · 19–23px serif names. */

.models-page { --mr-muted: #5b6964; --mr-rule: #e6d8ce; --mr-rule-strong: #d8c3b5; font-variant-numeric: tabular-nums; }

.mr-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.models-page .fx-mono, .mr-label { font-feature-settings: 'tnum' 1; }

/* ---------- hero ---------- */
.models-page .page-hero h1 { max-width: 760px; }
.models-page .page-hero-bottom { flex-direction: column; align-items: flex-start; gap: 30px; max-width: 640px; }
.models-page .page-hero-bottom p { max-width: 600px; }
.models-page .mr-hero-note { box-shadow: var(--fx-shadow); }
.models-page .mr-hero-note:hover { box-shadow: var(--fx-shadow-lift); }

/* ---------- registry stats (navy band) ---------- */
.mr-stats { background: var(--fx-deep); color: #f6eee8; --bloom-x: 82%; --bloom-y: -45%; }
.mr-stats .eyebrow { color: #e2bdb0; }
.mr-stats h2 em { color: var(--fx-peach-light); }
.mr-stats .section-top > p { color: #b9c5d2; max-width: 430px; font-size: 14px; line-height: 1.65; }
.mr-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #34465d; }
.mr-stat { padding: 26px 28px 4px; border-left: 1px solid #34465d; min-width: 0; }
.mr-stat:first-child { padding-left: 0; border-left: 0; }
.mr-stat:last-child { padding-right: 0; }
.mr-stat-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 14px; color: #e2bdb0; }
.mr-figure {
  display: flex; align-items: baseline; gap: 10px; margin: 20px 0 22px; height: 60px;
  font: 400 60px/60px var(--fx-mono); letter-spacing: -.045em; color: #fbf5f1;
  font-feature-settings: 'tnum' 1;
}
.mr-figure small { font-size: 15px; letter-spacing: 0; color: #8fa0b3; }
.mr-split { display: flex; gap: 2px; height: 4px; margin-bottom: 16px; }
.mr-split i { display: block; height: 100%; flex: 0 0 auto; width: calc(var(--w, 0%) - 2px); transform-origin: 0 50%; }
.mr-split i:nth-child(1) { background: var(--fx-peach-light); }
.mr-split i:nth-child(2) { background: #8fa5bd; }
.mr-split i:nth-child(3) { background: #3f5168; }
.mr-split[data-mr-split="state"] i:nth-child(1) { background: var(--fx-green); }
.mr-split[data-mr-split="state"] i:nth-child(2) { background: var(--fx-peach-light); }
.mr-split-mods i, .mr-split-mods i:nth-child(n) { background: var(--fx-peach-light); }
.mr-legend-mods li::before, .mr-legend-mods li:nth-child(n)::before { background: var(--fx-peach-light); box-shadow: none; }
.mr-legend-mods li:nth-child(2)::before { opacity: .72; }
.mr-legend-mods li:nth-child(3)::before { opacity: .6; }
.mr-legend { list-style: none; margin: 0; padding: 0; font-size: 12px; color: #b9c5d2; }
.mr-legend li { display: grid; grid-template-columns: 7px 26px 1fr; align-items: center; column-gap: 10px; height: 26px; border-top: 1px solid #2b3c52; }
.mr-legend li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-peach-light); }
.mr-legend li:nth-child(2)::before { background: #8fa5bd; }
.mr-legend li:nth-child(3)::before { background: #3f5168; box-shadow: inset 0 0 0 1px #7d8ea3; }
.mr-legend[data-mr-legend="state"] li:nth-child(1)::before { background: var(--fx-green); }
.mr-legend[data-mr-legend="state"] li:nth-child(2)::before { background: var(--fx-peach-light); }
.mr-legend b { font: 500 12px var(--fx-mono); color: #f6eee8; text-align: right; }
.mr-stat-note { font-size: 12px; line-height: 1.65; color: #b9c5d2; max-width: 250px; padding-top: 6px; border-top: 1px solid #2b3c52; }

/* ---------- registry: filters ---------- */
.mr-registry .section-top > p { max-width: 380px; }
.mr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mr-tabs button {
  position: relative; min-height: 44px; padding: 0 14px; border: 1px solid #dfcfc4; background: #fffaf6; color: #3d4c57;
  font: 600 12px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
}
.mr-tabs button span { font: 400 11px var(--fx-mono); color: #8a7262; min-width: 2ch; text-align: right; transition: color .18s; }
.mr-tabs button:hover { border-color: #b99c8b; background: #fff; box-shadow: 0 1px 0 #dfcfc4, 0 8px 18px -12px rgba(17, 30, 50, .45); }
.mr-tabs button:active { transform: translateY(1px); box-shadow: none; }
.mr-tabs button:focus-visible { outline: 2px solid var(--fx-peach-deep); outline-offset: 2px; }
.mr-tabs button[aria-pressed="true"] { background: var(--fx-navy); border-color: var(--fx-navy); color: #fbf5f1; box-shadow: 0 10px 20px -14px rgba(17, 30, 50, .8); }
.mr-tabs button[aria-pressed="true"] span { color: var(--fx-peach-light); }
.mr-tabs button[aria-pressed="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px; background: var(--fx-peach-light); opacity: .7; }
.mr-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: end; }
.mr-controls .catalog-search { min-height: 52px; transition: border-color .18s, box-shadow .18s; }
.mr-controls .catalog-search:hover { border-color: #c9b2a3; }
.mr-controls .catalog-search:focus-within { border-color: var(--fx-navy); box-shadow: 0 0 0 3px rgba(188, 138, 114, .22); }
.mr-controls .catalog-search input:focus-visible { outline: none; }
.mr-controls .catalog-search span { color: var(--fx-peach-deep); }
.mr-controls .mr-filterbar { margin-top: 0; }
.mr-filterbar label { transition: border-color .18s; }
.mr-filterbar label:hover, .mr-filterbar label:focus-within { border-bottom-color: var(--fx-navy); }
.mr-filterbar select { min-height: 44px; }
.mr-filterbar > button { min-height: 44px; transition: opacity .18s, color .18s; }
.mr-filterbar > button:not(:disabled):hover { color: var(--fx-ink); }
.mr-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 28px 0 10px; font: 400 11px/16px var(--fx-mono); letter-spacing: .06em; color: #745f53; text-transform: uppercase; }
.mr-count b { color: var(--fx-ink); font-weight: 500; }

/* ---------- registry: table ---------- */
.mr-table-wrap { background: var(--fx-paper); border: 1px solid var(--mr-rule); box-shadow: var(--fx-shadow); }
.mr-table { width: 100%; border-collapse: collapse; display: block; }
.mr-table thead { display: block; }
.mr-table tbody { display: flex; flex-direction: column; }
.mr-table tr { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr) 44px; column-gap: 24px; align-items: center; padding: 0 24px; }
.mr-table th, .mr-table td { display: block; padding: 0; text-align: left; font-weight: 400; min-width: 0; }
.mr-head { border-bottom: 1px solid var(--mr-rule-strong); background: #f6ece5; }
.mr-head button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #86584e; transition: color .18s;
}
.mr-head button i { width: 8px; height: 5px; position: relative; opacity: .3; transition: opacity .18s, transform .25s var(--fx-ease); }
.mr-head button i::before { content: ''; position: absolute; left: 0; top: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
.mr-head button:hover i { opacity: .7; }
.mr-head th[aria-sort="ascending"] button, .mr-head th[aria-sort="descending"] button { color: var(--fx-ink); }
.mr-head th[aria-sort="ascending"] button i, .mr-head th[aria-sort="descending"] button i { opacity: 1; color: var(--fx-peach-deep); }
.mr-head th[aria-sort="descending"] button i { transform: rotate(180deg); }
.mr-head button:hover, .mr-head th.is-col button { color: var(--fx-ink); }
.mr-head button:focus-visible { outline-offset: 2px; }

.mr-table .mr-row { position: relative; border-bottom: 1px solid #eee3da; cursor: pointer; padding-top: 18px; padding-bottom: 18px; transition: background-color .2s; }
.mr-table .is-out { display: none !important; }
/* Off-screen rows skip layout and paint; a re-sort lays out only what is visible. */
.mr-table .mr-row { content-visibility: auto; contain-intrinsic-size: auto 96px; }
.mr-table .mr-row.is-last:not(.is-open) { border-bottom-color: transparent; }
.mr-table .mr-row.is-open { background: #f7ede6; border-bottom-color: transparent; }
.mr-table .mr-row:focus-within { background: #faf2ec; }
.mr-name { display: grid; gap: 5px; }
.mr-name button {
  justify-self: start; text-align: left; border: 0; background: none; cursor: pointer; color: var(--fx-ink);
  font: 400 19px/1.18 var(--serif); letter-spacing: -.01em; padding: 12px 0; margin: -12px 0;
}
.mr-name button:focus-visible { outline-offset: 2px; }
.mr-name small { font-size: 12px; line-height: 1.5; color: var(--mr-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.mr-mods span { font-size: 10px; line-height: 14px; letter-spacing: .03em; color: #46555e; background: #f0e7e0; padding: 3px 7px; }
.mr-cell-text { font-size: 12px; line-height: 1.45; color: #3d4c57; }
.mr-access, .mr-state { display: inline-flex; align-items: baseline; }
.mr-access::before, .mr-state::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; transform: translateY(-1px); }
.mr-access[data-a="open"]::before { background: var(--fx-navy); }
.mr-access[data-a="gated"]::before { background: var(--fx-peach-deep); }
.mr-access[data-a="review"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px #9aa3ab; }
.mr-state[data-s="cataloged"]::before { background: var(--fx-green); }
.mr-state[data-s="mapped"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fx-green); }
.mr-state[data-s="project coordinator"]::before { background: var(--fx-navy); }
.mr-toggle { justify-self: end; position: relative; width: 44px; height: 44px; font-size: 0; }
.mr-toggle::before, .mr-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: #aa806e; transition: transform .35s var(--fx-ease), background .2s; }
.mr-toggle::after { transform: rotate(90deg); }
.mr-row:hover .mr-toggle::before, .mr-row:hover .mr-toggle::after { background: var(--fx-ink); }
.mr-row.is-open .mr-toggle::before { transform: rotate(180deg); }
.mr-row.is-open .mr-toggle::after { transform: rotate(180deg); }

/* detail panel: height opens on a grid-rows track, then the contents settle in */
.mr-table .mr-detail { display: block; padding: 0; background: #f7ede6; }
.mr-table .mr-detail[hidden] { display: none; }
.mr-table .mr-detail > td { display: block; }
.mr-detail-clip { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--fx-ease); }
.mr-detail.is-open .mr-detail-clip { grid-template-rows: 1fr; }
.mr-detail-body { min-height: 0; overflow: hidden; }
.mr-detail-grid {
  position: relative; display: grid; column-gap: 24px; padding: 8px 24px 30px; border-bottom: 1px solid var(--mr-rule-strong);
  /* same tracks as the row above, so the facts line up under Access → State */
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr) 44px;
  opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .42s var(--fx-ease);
}
.mr-detail-grid::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: var(--fx-peach-deep); opacity: .55; transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--fx-ease); }
.mr-detail.is-open .mr-detail-grid { opacity: 1; transform: none; transition: opacity .3s ease .1s, transform .48s var(--fx-ease) .06s; }
.mr-detail.is-open .mr-detail-grid::before { transform: scaleX(1); transition-delay: .12s; }
.mr-detail-grid > div { grid-column: 1 / 3; padding-right: 24px; }
.mr-detail-grid > dl { grid-column: 3 / 6; }
.mr-detail h4 { font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 14px; color: #86584e; margin: 20px 0 8px; }
.mr-detail h4:first-child { margin-top: 18px; }
.mr-detail p { font-size: 13px; line-height: 1.65; color: #46555c; max-width: 620px; }
.mr-detail p.mr-cite-text { font-size: 12px; color: #5b6964; overflow-wrap: anywhere; }
.mr-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mr-detail li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #46555c; }
.mr-detail li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-green); }
.mr-detail .mr-none { color: #6b7972; font-size: 13px; }
.mr-detail a.mr-cite { display: inline-flex; align-items: center; gap: 18px; margin-top: 12px; min-height: 44px; font-size: 12px; font-weight: 700; color: var(--fx-ink); border-bottom: 1px solid #c8a090; transition: border-color .18s, gap .25s var(--fx-ease); }
.mr-detail a.mr-cite:hover { border-color: var(--fx-ink); gap: 24px; }
.mr-detail a.mr-cite span { color: var(--fx-peach-deep); }
.mr-detail dl { margin: 18px 0 0; border-bottom: 1px solid #e3d2c6; }
.mr-detail dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid #e3d2c6; }
.mr-detail dt { font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 18px; text-transform: uppercase; color: #86584e; }
.mr-detail dd { margin: 0; font-size: 12px; line-height: 18px; color: #33424d; overflow-wrap: anywhere; }
.mr-detail dd.fx-mono { font-size: 11px; }

.mr-empty { padding: 56px 24px 60px; text-align: center; border-top: 1px solid #eee3da; }
.mr-empty h3 { font: 400 28px/1.1 var(--serif); }
.mr-empty p { color: var(--mr-muted); font-size: 13px; line-height: 1.6; max-width: 460px; margin: 10px auto 0; }
.mr-empty .underlink { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: 700 12px var(--sans); color: var(--fx-ink); min-height: 44px; padding-bottom: 0; display: inline-flex; align-items: center; gap: 10px; }
.mr-source { margin-top: 18px; }
.mr-source a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- upgrades: comparison chart ---------- */
.mr-compare { background: var(--fx-paper); border: 1px solid #e4d4c9; box-shadow: var(--fx-shadow); padding: 30px 36px 32px; }
.mr-compare-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.mr-compare-tabs { display: flex; background: #efe4dc; padding: 4px; }
.mr-compare-tabs button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; cursor: pointer; font: 700 12px var(--sans); color: #5a5e63; transition: background .18s, color .18s; }
.mr-compare-tabs button:hover { color: var(--fx-ink); background: rgba(255, 255, 255, .55); }
.mr-compare-tabs button[aria-selected="true"] { background: var(--fx-navy); color: #fff; }
.mr-compare-tabs button:focus-visible { outline: 2px solid var(--fx-peach-deep); outline-offset: 2px; }
.mr-compare-key { display: flex; gap: 22px; font-size: 11px; color: #5b6964; }
.mr-compare-key span { display: inline-flex; align-items: center; gap: 8px; }
.mr-compare-key i { width: 10px; height: 10px; border-radius: 50%; }
.mr-compare-key i.is-base { background: #fff; box-shadow: inset 0 0 0 2px #7d8ea3; }
.mr-compare-key i.is-new { background: var(--fx-peach-deep); }
.mr-compare-panel:focus-visible { outline-offset: 6px; }
.mr-cmp-head { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .11em; line-height: 14px; color: #86584e; padding-bottom: 14px; }
.mr-cmp-row, .mr-cmp-axis { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(0, 2.4fr) minmax(150px, .8fr); gap: 28px; }
.mr-cmp-row { align-items: center; padding: 20px 0; border-top: 1px solid #ebded5; }
.mr-cmp-label strong { display: block; font: 400 22px/1.1 var(--serif); }
.mr-cmp-label small { display: block; margin-top: 6px; font: 400 11px var(--fx-mono); color: #6f6c68; letter-spacing: .02em; }
.mr-cmp-track { position: relative; height: 34px; }
.mr-cmp-track::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: #e2d4ca; }
.mr-cmp-grid { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: #f0e6df; }
.mr-cmp-bar { position: absolute; top: 14px; height: 6px; background: linear-gradient(90deg, #7d8ea3, var(--fx-peach-deep)); transform-origin: 0 50%; border-radius: 3px; }
.mr-cmp-dot { position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.mr-cmp-dot.is-base { background: #fff; box-shadow: inset 0 0 0 2px #7d8ea3; }
.mr-cmp-dot.is-new { background: var(--fx-peach-deep); box-shadow: 0 0 0 5px rgba(188, 138, 114, .16), 0 0 16px rgba(234, 195, 182, .85); }
.mr-cmp-vals { display: grid; justify-items: end; gap: 3px; font-family: var(--fx-mono); font-feature-settings: 'tnum' 1; }
.mr-cmp-vals span { font-size: 12px; color: #7a7d7e; }
.mr-cmp-vals strong { font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--fx-ink); }
.mr-cmp-vals b { font-weight: 500; font-size: 11px; color: #94603f; }
.mr-cmp-axis { align-items: start; border-top: 1px solid #d9c6b9; }
.mr-cmp-axis-title, .mr-cmp-axis-unit { font-size: 10px; font-weight: 700; letter-spacing: .11em; line-height: 14px; color: #86584e; padding-top: 10px; }
.mr-cmp-axis-unit { text-align: right; }
.mr-cmp-scale { position: relative; height: 30px; }
.mr-cmp-tick { position: absolute; top: 0; display: grid; justify-items: center; transform: translateX(-50%); }
.mr-cmp-tick i { width: 1px; height: 6px; background: #b49c8d; }
.mr-cmp-tick b { margin-top: 5px; font: 400 10px/12px var(--fx-mono); color: #76685f; }
.mr-compare .fine { margin-top: 20px; max-width: 900px; }
.mr-compare .underlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-bottom: 0; font-size: 12px; font-weight: 700; }
.mr-cmp-enter { animation: mr-enter .3s ease both; }
@keyframes mr-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- upgrades: dated project record (horizontal viewport) ---------- */
.mr-log { margin-top: 64px; }
.mr-log-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 6px; }
.mr-log-bar > div:first-child { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.mr-log-label { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: #86584e; }
.mr-log-range { font: 400 11px var(--fx-mono); letter-spacing: .06em; color: #745f53; }
.mr-log-ctrls { display: flex; gap: 8px; }
.mr-log-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cdb5a6; background: var(--fx-paper); color: var(--fx-ink); cursor: pointer; font-size: 16px; display: grid; place-items: center; transition: background .18s, color .18s, opacity .18s, box-shadow .18s, transform .12s; }
.mr-log-btn:hover:not(:disabled) { background: var(--fx-navy); border-color: var(--fx-navy); color: #fbf5f1; box-shadow: var(--fx-shadow); }
.mr-log-btn:active:not(:disabled) { transform: scale(.96); }
.mr-log-btn:disabled { opacity: .35; cursor: default; }
.mr-log-frame { position: relative; }
.mr-log-frame::after { content: ''; position: absolute; top: 0; right: 0; bottom: 18px; width: 80px; pointer-events: none; background: linear-gradient(90deg, rgba(241, 222, 209, 0), #f1ded1 85%); transition: opacity .3s; }
.mr-log-frame.is-end::after { opacity: 0; }
.mr-log-vp { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 4px 4px 24px; margin: -4px -4px 0; cursor: grab; scrollbar-width: thin; scrollbar-color: #cdb5a6 transparent; }
.mr-log-vp.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.mr-log-vp:focus-visible { outline-offset: 2px; }
.mr-log-content { position: relative; width: max-content; padding-top: 62px; }
.mr-log-rail { position: absolute; left: 6px; right: 0; top: 41px; height: 1px; background: #d3bcae; }
.mr-log-rail span { position: absolute; inset: 0; background: var(--fx-peach-deep); transform-origin: 0 50%; will-change: transform; }
.mr-log-list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.mr-log-item { position: relative; flex: none; width: 288px; min-height: 300px; display: flex; flex-direction: column; padding: 20px 22px 16px; background: var(--fx-paper); border: 1px solid #e4d4c9; box-shadow: 0 1px 2px rgba(17, 30, 50, .04), 0 14px 30px -20px rgba(17, 30, 50, .3); }
.mr-log-item.is-day-start { margin-left: 18px; }
.mr-log-item:first-child { margin-left: 0; }
.mr-log-node { position: absolute; left: 0; top: -26px; width: 11px; height: 11px; border-radius: 50%; background: var(--fx-peach-deep); box-shadow: 0 0 0 4px #f1ded1; transition: background .35s, box-shadow .35s; }
.mr-log-item.is-day-start .mr-log-node { width: 13px; height: 13px; top: -27px; left: -1px; }
.mr-log.is-live .mr-log-node { background: #f1ded1; box-shadow: 0 0 0 4px #f1ded1, inset 0 0 0 1.5px #c3a594; }
.mr-log.is-live .mr-log-node.is-on { background: var(--fx-peach-deep); box-shadow: 0 0 0 4px #f1ded1, 0 0 14px rgba(188, 138, 114, .75); }
.mr-log-day { position: absolute; left: 0; top: -62px; white-space: nowrap; font: 400 10px/14px var(--fx-mono); letter-spacing: .08em; color: #8a7262; }
.mr-log-day b { font-weight: 500; color: var(--fx-ink); }
.mr-log-item time { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #ebded5; }
.mr-log-item time b { font: 400 34px/1 var(--fx-mono); letter-spacing: -.05em; color: var(--fx-ink); }
.mr-log-item time span { display: grid; font: 500 10px/14px var(--fx-mono); letter-spacing: .1em; color: #86584e; }
.mr-log-item time small { font-size: 10px; font-weight: 400; color: #8a8077; }
.mr-log-item h3 { font: 400 22px/1.12 var(--serif); letter-spacing: -.015em; }
.mr-log-item p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #52605a; }
.mr-log-item a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 12px; font-weight: 700; color: var(--fx-ink); border-bottom: 1px solid #c8a090; transition: border-color .18s, gap .25s var(--fx-ease); }
.mr-log-item a:hover { border-color: var(--fx-ink); gap: 24px; }
.mr-log-item a span { color: var(--fx-peach-deep); }
.mr-log-item p + a { margin-top: auto; padding-top: 14px; }

.mr-next { padding-top: 70px; padding-bottom: 80px; }
.mr-next .research-reference-row { margin-top: 0; }
.mr-next .research-reference-row a { min-height: 44px; align-items: center; }

/* ---------- PET uptake glow (fine pointers only) ----------
   A warm radial "uptake" tint follows the cursor and the row's rule lights up near it.
   JS writes --gx/--gy once per frame from a rect cached on enter. */
@media (hover: hover) and (pointer: fine) {
  .fx .mr-row, .fx .platform-stack article, .fx .research-finding-ledger > div, .fx .catalog-record, .fx .about-record { position: relative; }
  .fx .mr-row::before, .fx .platform-stack article::before, .fx .research-finding-ledger > div::before, .fx .catalog-record::before, .fx .about-record::before,
  .fx .mr-table .mr-row::after { bottom: 0; }
  .fx .mr-row::after, .fx .platform-stack article::after, .fx .research-finding-ledger > div::after, .fx .catalog-record::after, .fx .about-record::after {
    content: ''; position: absolute; pointer-events: none; opacity: 0; transition: opacity .3s var(--fx-ease);
  }
  .fx .mr-row::before, .fx .platform-stack article::before, .fx .research-finding-ledger > div::before, .fx .catalog-record::before {
    inset: 0; mix-blend-mode: multiply;
    background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(234, 179, 155, .4), rgba(241, 213, 197, .18) 40%, rgba(241, 213, 197, 0) 70%);
  }
  .fx .mr-row::after, .fx .platform-stack article::after, .fx .research-finding-ledger > div::after, .fx .catalog-record::after {
    left: 0; right: 0; bottom: -1px; height: 1px;
    background: radial-gradient(180px 1px at var(--gx, 50%) 50%, var(--fx-peach-deep), rgba(188, 138, 114, 0));
  }
  .fx .about-record::before {
    inset: 0; mix-blend-mode: screen;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(234, 195, 182, .2), rgba(234, 195, 182, .06) 42%, rgba(234, 195, 182, 0) 70%);
  }
  .fx .about-record::after {
    left: 0; right: 0; top: -1px; height: 1px;
    background: radial-gradient(180px 1px at var(--gx, 50%) 50%, var(--fx-peach-light), rgba(234, 195, 182, 0));
  }
  .fx .fx-glow-on::before, .fx .fx-glow-on::after { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .mr-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .mr-stat:nth-child(2) { padding-right: 0; }
  .mr-stat:nth-child(n+3) { border-top: 1px solid #34465d; margin-top: 22px; }
  .mr-controls { grid-template-columns: 1fr; gap: 14px; }
  .mr-table tr { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .95fr) 44px; column-gap: 20px; }
  .mr-table [data-col="license"], .mr-table .mr-c-license { display: none; }
  .mr-detail-grid { column-gap: 20px; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .95fr) 44px; }
  .mr-detail-grid > dl { grid-column: 3 / 5; }
  .mr-cmp-row, .mr-cmp-axis { grid-template-columns: minmax(150px, .9fr) minmax(0, 2fr) minmax(120px, .7fr); gap: 20px; }
}
@media (max-width: 760px) {
  .mr-table tr { grid-template-columns: minmax(0, 1fr) 44px; padding: 0 16px; column-gap: 12px; }
  .mr-table .mr-head { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 2px 16px; }
  .mr-head .mr-col-toggle { display: none; }
  .mr-head button { min-height: 44px; }
  .mr-table [data-col="license"] { display: block; }
  .mr-table .mr-row { row-gap: 8px; padding-top: 16px; padding-bottom: 16px; }
  .mr-row > .mr-c-mod, .mr-row > .mr-c-access, .mr-row > .mr-c-license, .mr-row > .mr-c-state { grid-column: 1; }
  .mr-row > .mr-toggle { grid-column: 2; grid-row: 1; align-self: start; margin-top: -10px; }
  .mr-detail-grid { grid-template-columns: 1fr; gap: 0; padding: 0 16px 24px; }
  .mr-detail-grid > div, .mr-detail-grid > dl { grid-column: 1; padding-right: 0; }
  .mr-detail-grid::before { left: 16px; right: 16px; }
  .mr-detail dl div { grid-template-columns: 104px minmax(0, 1fr); }
  .mr-meta { flex-direction: column; gap: 4px; }
  .mr-compare { padding: 22px 18px 24px; }
  .mr-compare-tabs { width: 100%; }
  .mr-compare-tabs button { flex: 1; padding: 0 10px; }
  .mr-cmp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .mr-cmp-track { grid-column: 1 / -1; grid-row: 2; }
  .mr-cmp-vals { grid-column: 2; grid-row: 1; }
  .mr-cmp-axis { grid-template-columns: 1fr auto; gap: 0 12px; }
  .mr-cmp-scale { grid-column: 1 / -1; grid-row: 1; }
  .mr-cmp-axis-title { grid-row: 2; }
  .mr-cmp-axis-unit { grid-row: 2; }
  .mr-log { margin-top: 48px; }
  .mr-log-ctrls { display: none; }
  .mr-log-frame::after { display: none; }
  .mr-log-vp { overflow: visible; cursor: auto; padding: 0; margin: 0; }
  .mr-log-content { width: auto; padding: 18px 0 0 30px; }
  .mr-log-rail { left: 5px; right: auto; top: 24px; bottom: 6px; width: 1px; height: auto; }
  .mr-log-rail span { transform-origin: 50% 0; }
  .mr-log-list { flex-direction: column; gap: 12px; }
  .mr-log-item { width: auto; min-height: 0; }
  .mr-log-item.is-day-start { margin-left: 0; margin-top: 30px; }
  .mr-log-item:first-child { margin-top: 0; }
  .mr-log-node { left: -30px; top: 26px; }
  .mr-log-item.is-day-start .mr-log-node { left: -31px; top: 25px; }
  .mr-log-day { top: -24px; }
  .mr-log-item:first-child .mr-log-day { top: -22px; }
}
@media (max-width: 520px) {
  .mr-stat-grid { grid-template-columns: 1fr; }
  .mr-stat, .mr-stat:nth-child(n) { padding: 22px 0 4px; border-left: 0; margin-top: 0; }
  .mr-stat + .mr-stat { border-top: 1px solid #34465d; }
  .mr-figure { margin: 14px 0 16px; height: 52px; font-size: 52px; line-height: 52px; }
  .mr-tabs button { padding: 0 12px; }
  .mr-name button { font-size: 18px; }
  .mr-filterbar { grid-template-columns: 1fr 1fr; }
  .mr-cmp-label strong { font-size: 20px; }
  .mr-cmp-vals strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mr-cmp-enter { animation: none; }
  .mr-toggle::before, .mr-toggle::after, .mr-log-node, .mr-detail-clip, .mr-detail-grid, .mr-detail-grid::before,
  .fx .fx-glow-on::before, .fx .fx-glow-on::after { transition: none !important; }
}

/* Facts list shares the row's tracks: labels under Access, values from Licence on. */
@supports (grid-template-columns: subgrid) {
  @media (min-width: 761px) {
    .mr-detail-grid > dl { display: grid; grid-template-columns: subgrid; align-content: start; column-gap: 24px; }
    .mr-detail dl div { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: inherit; }
    .mr-detail dl dd { grid-column: 2 / -1; }
  }
}

/* Within a day only the first card carries the full date; the rest recede to it. */
.mr-log-item:not(.is-day-start) time b { color: #cdb6a7; }
.mr-log-item:not(.is-day-start) time small { visibility: hidden; }

/* Stacked rows on phones are about three times taller than the desktop estimate; a closer
   placeholder keeps the page from jumping while off-screen rows render in. */
@media (max-width: 760px) {
  .mr-table .mr-row { contain-intrinsic-size: auto 290px; }
}
