/* =========================================================
   03 — The Record
   Education statement, self-drawing ledger timeline, notes.
   ========================================================= */

/* ---------- Hero ---------- */
.rec-hero { padding: calc(var(--header-h) + clamp(56px, 10vw, 140px)) 0 clamp(56px, 8vw, 110px); }
@media (max-width: 700px) { .rec-hero { padding-top: calc(var(--header-h) + 32px); } }   /* one hero top offset on phones, site-wide */
.rec-title { margin-top: 18px; }
.rec-hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; margin-top: clamp(28px, 4vw, 48px); }
.rec-hero-foot .lede { margin: 0; }
.rec-period { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.rec-period > div { padding: 12px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.rec-period > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rec-period dd { margin: 6px 0 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rec-status { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: -8px 0; color: inherit; border-bottom: 1px dotted var(--ink-3);
  transition: color .25s var(--ease), border-color .25s var(--ease); }
.rec-status:hover, .rec-status:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.rec-status:hover .rec-live { transform: scale(1.4); }
.rec-live { transition: transform .3s var(--spring, var(--ease)); }
.rec-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 50%, transparent); animation: rec-pulse 2.4s var(--ease) infinite; }
@keyframes rec-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (max-width: 600px) {
  .rec-period { width: 100%; }
  .rec-period > div { flex: 1; padding-right: 10px; margin-right: 10px; }
  .rec-period dd { font-size: 14px; }
}

/* ---------- Education statement ---------- */
.rec-edu { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.stmt { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.stmt .label { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.stmt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.stmt-head .h2 { max-width: 18ch; }
.stmt-loc { margin: 10px 0 0; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 18px; }
.stmt-stamp { flex: none; display: grid; text-align: center; border: 1px solid var(--mark); color: var(--mark); border-radius: 4px; padding: 10px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg) scale(var(--press, 1));
  cursor: pointer; background: none; -webkit-tap-highlight-color: transparent; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.stmt-stamp:hover { background: color-mix(in srgb, var(--mark) 8%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 10%, transparent); }
.stmt-stamp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stmt-stamp b { font-weight: 500; font-size: 15px; letter-spacing: .02em; margin-top: 2px; }

.stmt-degrees { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.stmt-deg { padding: clamp(22px, 3vw, 34px) 0; }
.stmt-deg + .stmt-deg { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.stmt-deg .h3 { margin: 0; }
.stmt-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.stmt-figs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.stmt-fig { padding: clamp(22px, 3vw, 34px) 0; }
.stmt-fig + .stmt-fig { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.stmt-gpa { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.stmt-gpa > .figure:first-child { font-size: clamp(56px, 8vw, 112px); line-height: 1; color: var(--ink); }
.stmt-of { font-size: 15px; color: var(--ink-3); }

.deans { display: flex; align-items: center; gap: 8px; min-height: clamp(56px, 8vw, 112px); flex-wrap: wrap; }
/* Each square is a button that names its semester (record.js shows the tip); the target is as wide as the square plus its 8px gap, so neighbours never overlap. */
.dsq { position: relative; width: clamp(22px, 2.6vw, 34px); aspect-ratio: 1; padding: 0; border: 1px solid var(--ink); background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .3s var(--spring, var(--ease)); }
.dsq::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(100% + 10px); height: max(100%, 38px); transform: translate(-50%, -50%); }
.dsq i { position: absolute; inset: 0; overflow: hidden; font-size: 0; }
.dsq i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease); }
.deans.in .dsq i::after { transform: scaleY(1); }
.dsq:nth-child(1) i::after { transition-delay: .3s; }
.dsq:nth-child(2) i::after { transition-delay: .55s; }
.dsq:nth-child(3) i::after { transition-delay: .8s; }
.dsq:nth-child(4) i::after { transition-delay: 1.05s; }
.dsq:hover, .dsq:focus-visible { transform: translateY(-3px); }
.dsq:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dsq.is-tap { animation: dsq-tap .45s var(--ease); }
@keyframes dsq-tap { 40% { transform: translateY(-5px) scale(1.08); } }
.deans-n { font-size: 13px; color: var(--ink-3); margin-left: 8px; }

.stmt-course { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stmt-course > div { padding: clamp(22px, 3vw, 34px) 0; }
.stmt-course > div + div { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.stmt-course ul { list-style: none; margin: 0; padding: 0; }
.stmt-course li { font-family: var(--serif); font-size: 19px; line-height: 1.35; padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.stmt-course li:last-child { border-bottom: 0; }
/* An underline sweeps under a course on hover; Data Science for Finance links to the class project. */
.stmt-course li { position: relative; }
.stmt-course li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease); pointer-events: none; }
.stmt-course li:hover::after, .stmt-course li:focus-within::after { transform: scaleX(1); }
.stmt-link { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.stmt-link .arr { font-family: var(--sans); font-size: .8em; color: var(--accent); transition: transform .35s var(--ease); }
.stmt-link:hover, .stmt-link:focus-visible { color: var(--accent); }
.stmt-link:hover .arr, .stmt-link:focus-visible .arr { transform: translateX(4px); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--done { background: var(--ink); }
.dot--prog { border: 1px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }

@media (max-width: 700px) {
  .stmt-head { flex-direction: column-reverse; }
  .stmt-degrees, .stmt-figs, .stmt-course { grid-template-columns: 1fr; }
  .stmt-deg + .stmt-deg, .stmt-fig + .stmt-fig, .stmt-course > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .deans { min-height: 0; }
}

/* ---------- Filter chips ---------- */
.rec-time { padding: 0 0 clamp(80px, 10vw, 140px); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -16px 0 clamp(40px, 6vw, 72px); }
.filter-l { margin-right: 6px; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chip .figure { font-size: 12px; color: var(--ink-3); transition: color .3s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .figure { color: var(--paper); opacity: .7; }

/* Idle reset: a thin accent line along the bottom of the active (non-All) chip drains over 12s, then the page returns to All.
   record.js sets data-idle="run|paused" on .filter (and on .traj-whole when only a date window is set). */
.chip, .traj-whole { position: relative; }
.filter[data-idle] .chip[aria-pressed="true"]:not([data-filter="all"])::after,
.traj-whole[data-idle]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: 0 50%; animation: idle-drain 12s linear forwards; pointer-events: none; }
.traj-whole[data-idle]::after { left: 2px; right: 2px; bottom: 2px; height: 1.5px; }
.filter[data-idle="paused"] .chip[aria-pressed="true"]::after, .traj-whole[data-idle="paused"]::after { animation-play-state: paused; }
@keyframes idle-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .filter[data-idle] .chip::after, .traj-whole[data-idle]::after { display: none; }
}

/* ---------- Timeline ---------- */
.tl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: clamp(24px, 4vw, 56px); }
.tl-year { position: relative; }
.tl-year-in { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: 6px; }
.tl-year-num { position: relative; display: block; height: 1em; overflow: hidden; font-family: var(--serif); font-size: clamp(64px, 7vw, 104px);
  letter-spacing: -.03em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tl-year-num > span { position: absolute; left: 0; top: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.tl-year-num > span.enter { transform: translateY(100%); opacity: 0; }
.tl-year-num > span.leave { transform: translateY(-100%); opacity: 0; }

.tl-body { --rail: 56px; --sx: 11px; position: relative; padding-left: var(--rail); }
.spine { position: absolute; left: var(--sx); top: 6px; bottom: 0; width: 1.5px; background: var(--rule); }
.spine-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); will-change: transform; }
.spine-head { position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent);
  transform: translateY(var(--fh, 0px)); box-shadow: 0 0 0 5px var(--accent-soft); will-change: transform; }
.spine.done .spine-head { opacity: 0; transition: opacity .4s; }

.tl-list { list-style: none; margin: 0; padding: 0; }
.entry { position: relative; display: grid; grid-template-columns: 1fr minmax(120px, 180px); grid-template-areas: "meta meta" "main fig";
  gap: 14px 32px; padding: 0 0 clamp(36px, 4.5vw, 56px); }
.entry-meta { grid-area: meta; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.entry-date { font-size: 13px; color: var(--ink); letter-spacing: 0; }
.entry-cat { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.entry-main { grid-area: main; border-top: 1px solid var(--rule); padding-top: 16px; }
.entry-org { margin: 0 0 4px; font-size: 14px; color: var(--ink-3); }
/* "Website ↗": a small pill; its hit area reaches 38px tall without changing the line it sits in. */
.entry-site { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: 8px; padding: 0 9px; vertical-align: 1px;
  border: 1px solid var(--rule); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: var(--ink-2); background: var(--paper); transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.entry-site::after { content: ""; position: absolute; left: -2px; right: -2px; top: -7px; bottom: -7px; }
.entry-site:hover, .entry-site:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.entry-site:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.entry .h3 { margin: 0; }
.entry-pts { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); max-width: 60ch; font-size: 16px; }
.entry-pts li { position: relative; padding-left: 18px; margin-top: 6px; }
.entry-pts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--ink-3); }
.entry-pts b { font-weight: 500; color: var(--ink); font-size: .95em; }
.entry-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent); }
.entry-fig { grid-area: fig; border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 4px; align-content: start; text-align: right; }
.entry-fig .figure { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; transition: color .5s var(--ease); }

.node { position: absolute; left: calc(var(--sx) - var(--rail) + .75px); top: 7px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--rule); transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); }

/* Reveal states, driven by the line (JS adds .is-reached as the spine passes the node). */
.js-tl .entry > :not(.node) { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .5s var(--ease); }
.js-tl .entry > .entry-main { transition-delay: .06s; }
.js-tl .entry > .entry-fig { transition-delay: .14s; }
.js-tl .entry.is-seen > :not(.node) { opacity: 1; transform: none; }
.entry.is-reached .node { border-color: var(--accent); background: var(--accent); }
.entry.is-active .node { transform: scale(1.3); box-shadow: 0 0 0 5px var(--accent-soft); }
.entry.is-active .entry-fig .figure { color: var(--accent); }
.entry.is-active .entry-date { color: var(--accent); }

/* Filtering: dim, never remove — the ledger keeps its order. */
.js-tl .entry.is-seen.is-dim > :not(.node), .entry.is-dim > :not(.node) { opacity: .2; filter: grayscale(1); }
.entry.is-dim .node { opacity: .35; }
/* Every control in a dimmed entry is out of reach until the filter lets it back (record.js also drops it from the tab order). */
.entry.is-dim :is(a, button, input, select, textarea, summary, [tabindex], [role="button"]) { pointer-events: none; }


@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; gap: 0; }
  /* Pin the chip below the fixed 64px header (never under it). */
  .tl-year { position: sticky; top: calc(var(--header-h) + 14px); z-index: 5; height: 0; justify-self: end; }
  .tl-year-in { position: static; display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--rule);
    border-radius: 999px; padding: 6px 14px; }
  .tl-year-in .label { font-size: 12px; }
  .tl-year-num { font-family: var(--mono); font-size: 15px; letter-spacing: 0; height: 1.1em; width: 4ch; }
  .tl-body { --rail: 36px; --sx: 6px; }
  .entry { grid-template-columns: 1fr; grid-template-areas: "meta" "main" "fig"; gap: 10px; }
  .entry-meta { padding-right: 170px; min-height: 26px; }
  .entry-fig { text-align: left; display: flex; align-items: baseline; gap: 10px; border-top: 1px dotted var(--rule); padding-top: 10px; }
  .entry-fig .figure { font-size: 24px; }
  .entry-pts { font-size: 15px; }
}

/* ---------- Notes ---------- */
.rec-notes { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.notes { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); }
.note-blk { border-top: 1px solid var(--ink); padding-top: 18px; }
.note-n { margin: 0 0 8px; font-size: 12px; color: var(--mark); letter-spacing: .02em; }
.note-blk .h3 { margin: 0 0 18px; }

.honors { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.honors li { counter-increment: h; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--rule);
  font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.honors li::before { content: "(" counter(h, lower-alpha) ")"; font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; flex: none; width: 26px; }
.honors li span:first-child { flex: 1; }
.honors .figure { font-size: 13px; color: var(--ink-3); padding-top: 4px; }

.skills { width: 100%; border-collapse: collapse; font-size: 15px; }
.skills th, .skills td { text-align: left; padding: 11px 0; border-bottom: 1px dotted var(--rule); vertical-align: baseline; }
.skills thead th { border-bottom: 1px solid var(--ink); padding-top: 0; font-weight: 400; }
.skills tbody th { font-weight: 500; padding-right: 16px; }
.skills td { text-align: right; font-size: 13px; color: var(--ink-2); }
.skills thead th:last-child { text-align: right; }
.skills tbody tr { transition: background .25s; }
.skills tbody tr:hover { background: var(--accent-soft); }
.skills-l { margin: 24px 0 10px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skills-tags .tag { height: auto; min-height: 26px; padding: 4px 10px; }

.also { margin: 0; }
.also > div { padding: 12px 0; border-bottom: 1px dotted var(--rule); }
.also dt { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.also dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.note-go { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }

.rec-dl { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 3px double var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.rec-dl .body { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); }

@media (max-width: 1000px) { .notes { grid-template-columns: 1fr 1fr; } .note-blk:nth-child(2) { grid-row: span 2; } }
@media (max-width: 700px) { .notes { grid-template-columns: 1fr; } .note-blk:nth-child(2) { grid-row: auto; } .rec-dl .btn { width: 100%; justify-content: center; } }
.entry-fig--word .figure { font-size: clamp(18px, 1.8vw, 24px); white-space: nowrap; }

/* Section heads: plain-English subtitle beside the report conceit. */
.sect-head .sect-plain { font-family: var(--sans); font-size: 15px; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.sect-head .sect-plain::before { content: "— "; color: var(--ink-3); }
/* Phones: drop the aside; the subtitle takes its own line under the rule label. */
@media (max-width: 600px) {
  .sect-head { flex-wrap: wrap; row-gap: 6px; }
  .sect-head .aside { display: none; }
  .sect-head .sect-plain { order: 5; flex-basis: 100%; }
  .sect-head .sect-plain::before { content: none; }
}

.entry[id] { scroll-margin-top: calc(var(--header-h) + 96px); }
.stmt-course--one { grid-template-columns: 1fr; border-top: 1px solid var(--rule); }

/* =========================================================
   Deeper layer (record.js, second half)
   Colour roles: --accent answers the pointer, --play marks the visitor's own pins, --mark stays static.
   ========================================================= */

/* ---------- Metric chips: a bold figure that explains itself ---------- */
.mchip { position: relative; font: inherit; color: inherit; letter-spacing: inherit; padding: 0 1px; margin: 0 -1px; border-radius: 2px; cursor: help;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 5px); background-size: 100% 1px; background-position: 0 100%;
  transition: color .2s var(--ease), background-color .2s var(--ease); }
.mchip:hover, .mchip[aria-expanded="true"] { color: var(--accent); background-color: var(--accent-soft); }
.mchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A 38px-tall target around a figure that sits in running text. */
.mchip::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 38px; transform: translateY(-50%); }
.mpop { position: absolute; left: 0; top: 0; z-index: 60; width: 268px; max-width: calc(100vw - 32px); padding: 12px 14px 12px;
  background: var(--paper-2); border: 1px solid var(--rule); border-left: 2px solid var(--accent); border-radius: 4px;
  box-shadow: 0 18px 44px -26px color-mix(in srgb, var(--ink) 55%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s linear .2s; pointer-events: none; }
.mpop.is-above { transform: translateY(-4px); }
.mpop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s; pointer-events: auto; }
.mpop-v { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mpop-v b { font-size: 24px; font-weight: 400; color: var(--ink); line-height: 1.1; }
.mpop-vis { margin-top: 10px; }
.mpop-say { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.mv-grid { display: block; width: 100%; }
.mv-grid--pop { height: 76px; }
.mv-grid--tile { height: 68px; }

/* Bars (a loss against a gain), a pair of forms, a row of names: DOM pictures, driven by --t (0 → 1). */
.mv-bars { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px; font-size: 12px; }
.mv-bl { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.mv-bt { position: relative; height: 10px; background: linear-gradient(var(--ink-3), var(--ink-3)) var(--zero) 0 / 1px 100% no-repeat; }
.mv-bt i { position: absolute; top: 1px; bottom: 1px; width: calc(var(--w) * var(--t, 1)); border-radius: 1px; }
.mv-bt i.is-down { right: calc(100% - var(--zero)); background: var(--down); }
.mv-bt i.is-up { left: var(--zero); background: var(--up); }
.mv-bv { font-size: 12px; }
.mv-pair, .mv-names { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-pair span { position: relative; width: 64px; height: 78px; padding: 8px 8px 0; border: 1px solid var(--ink-3); border-radius: 2px; background: var(--paper);
  font-family: var(--mono); font-size: 10px; color: var(--ink-2); opacity: clamp(0, calc(var(--t, 1) * 2 - var(--i)), 1);
  background-image: repeating-linear-gradient(var(--rule) 0 1px, transparent 1px 8px); background-position: 0 28px; background-size: 100% calc(100% - 34px); background-repeat: no-repeat; background-clip: content-box; }
.mv-pair span::after { content: "✓"; position: absolute; right: 6px; bottom: 4px; color: var(--accent); font-size: 12px; }
.mv-names span { padding: 3px 8px; border: 1px solid var(--rule); border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  opacity: clamp(.15, calc(var(--t, 1) * 7 - var(--i)), 1); }

/* ---------- Detail cards: an entry opens ---------- */
.entry-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.entry-link + .entry-acts { margin-top: 10px; }
.entry-open { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 2px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .25s var(--ease); }
.entry-open:hover { color: var(--accent); }
.entry-open-i { position: relative; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; flex: none; transition: transform .45s var(--ease); }
.entry-open-i::before, .entry-open-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.25px; margin: -.625px 0 0 -4px; background: currentColor; }
.entry-open-i::after { transform: rotate(90deg); }
.entry.is-open .entry-open-i { transform: rotate(135deg); color: var(--accent); }
.entry-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .35s var(--ease); }
.entry.is-open .entry-more { grid-template-rows: 1fr; opacity: 1; }
.em-in { min-height: 0; overflow: hidden; }
.em-in > :first-child { margin-top: 14px; }
.em-span { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--ink-2); }
/* Where the entry sits on the whole record: every entry a thin lane, this one in accent. */
.em-pos { margin-top: 14px; max-width: 560px; }
.em-axis { position: relative; height: 32px; margin-top: 8px; border-bottom: 1px solid var(--ink-3); }
.em-axis i { position: absolute; height: 2px; min-width: 3px; border-radius: 1px; background: var(--ink-3); opacity: .35; }
.em-axis i:nth-child(1) { top: 2px; } .em-axis i:nth-child(2) { top: 6px; } .em-axis i:nth-child(3) { top: 10px; } .em-axis i:nth-child(4) { top: 14px; }
.em-axis i:nth-child(5) { top: 18px; } .em-axis i:nth-child(6) { top: 22px; } .em-axis i:nth-child(7) { top: 26px; } .em-axis i:nth-child(8) { top: 29px; }
.em-axis i.is-point { width: 5px; height: 5px; margin: -1.5px 0 0 -2.5px; border-radius: 0; transform: rotate(45deg); }
.em-axis i.is-approx { background: repeating-linear-gradient(90deg, var(--ink-3) 0 3px, transparent 3px 5px); }
.em-axis i.is-me { height: 4px; margin-top: -1px; opacity: 1; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.em-axis i.is-me.is-approx { background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 5px); }
.em-axis i.is-me.is-point { width: 7px; height: 7px; margin: -2px 0 0 -3.5px; }
.em-ends { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.em-with { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.em-with .label { margin-right: 6px; }
.em-with a { color: var(--accent); }
.em-approx { color: var(--ink-3); font-size: 13px; }
.em-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; margin: 16px 0 0; }
.em-tile { margin: 0; padding: 10px 0 2px; border-top: 1px solid var(--ink); }
.em-v { margin: 0; font-size: 28px; line-height: 1.1; color: var(--ink); }
.em-of { margin: 4px 0 10px; }
.em-vis { margin-bottom: 8px; }

.em-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 4px; }
.em-skills .label { margin-right: 4px; }
.em-skill { min-height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease); }
.em-skill:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Pins: compare two entries ---------- */
.entry-pin { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 0 8px; border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); align-self: center;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.entry-pin svg { transition: transform .35s var(--ease); }
.entry-pin:hover { color: var(--accent); border-color: var(--accent); }
.entry-pin[aria-pressed="true"] { color: var(--play); border-color: var(--play); background: color-mix(in srgb, var(--play) 9%, transparent); }
.entry-pin[aria-pressed="true"] svg { transform: rotate(-24deg); }
.entry.is-pinned .node { outline: 1.5px solid var(--play); outline-offset: 3px; }
/* Compare's tooltip, for pointers that hover (title covers the rest; the label says it to screen readers). */
.entry-pin { position: relative; min-height: 32px; }
.entry-pin::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 38px; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) {
  .entry-pin::before { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 4; width: max-content; max-width: 240px; padding: 6px 10px;
    border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-2); color: var(--ink-2); font-family: var(--sans); font-size: 12.5px; letter-spacing: 0;
    text-transform: none; line-height: 1.35; white-space: normal; text-align: left; box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--ink) 50%, transparent);
    opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s var(--ease) .25s, transform .2s var(--ease) .25s; }
  .entry-pin:hover::before, .entry-pin:focus-visible::before { opacity: 1; transform: none; }
}

.cmp { position: fixed; left: 50%; bottom: 16px; z-index: 70; width: min(680px, calc(100vw - 32px)); max-height: min(72vh, 560px); overflow: auto; overscroll-behavior: contain;
  transform: translateX(-50%); padding: 10px 16px 14px; background: var(--paper-2); border: 1px solid var(--rule); border-top: 2px solid var(--play); border-radius: 6px;
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent); animation: cmp-in .4s var(--ease); }
.cmp[hidden] { display: none; }
/* Room at the bottom of the page while the tray is up, as tall as the tray plus its gap (--cmp-h from record.js). */
html.has-cmp body { padding-bottom: calc(var(--cmp-h, 0px) + 24px); }
@keyframes cmp-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.cmp-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.cmp-status { margin: 0; font-size: 14px; color: var(--ink-2); }
.cmp-status b { font-weight: 500; color: var(--play); }
.cmp-acts { display: inline-flex; gap: 14px; }
.cmp-acts button { min-height: 32px; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cmp-acts button:hover { text-decoration-thickness: 2px; }
.cmp-acts button[hidden] { display: none; }
.cmp-body[hidden] { display: none; }
.cmp-axis { position: relative; margin: 10px 0 4px; padding-bottom: 16px; }
.cmp-ov { position: absolute; top: 0; bottom: 16px; background: color-mix(in srgb, var(--play) 14%, transparent); border-left: 1px dashed var(--play); border-right: 1px dashed var(--play); }
.cmp-row { position: relative; display: block; height: 16px; margin: 2px 0; }
.cmp-row b { position: absolute; top: 4px; height: 8px; min-width: 6px; border-radius: 1px; background: var(--play); }
.cmp-row + .cmp-row b { background: transparent; box-shadow: inset 0 0 0 1.5px var(--play); }
.cmp-row b.is-point { min-width: 0; width: 10px !important; margin-left: -1px; transform: rotate(45deg) scale(.8); }
.cmp-row b.is-approx { background-image: repeating-linear-gradient(-45deg, var(--play) 0 2px, transparent 2px 5px); }
.cmp-tag { font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--play); }
.cmp-row .cmp-tag { position: absolute; left: -2px; top: 1px; transform: translateX(-100%); padding-right: 4px; }
.cmp-axis { margin-left: 16px; }
.cmp-ends { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.cmp-verdict { margin: 6px 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col { border-top: 1px solid var(--ink); padding-top: 8px; min-width: 0; }
.cmp-col > .label { margin: 0; display: flex; gap: 6px; align-items: baseline; }
.cmp-role { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.25; color: var(--ink); }
.cmp-org { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.cmp-col dl { margin: 8px 0 0; }
.cmp-col dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 13px; }
.cmp-col dt { flex: none; }
.cmp-col dd { margin: 0; text-align: right; color: var(--ink-2); }
.cmp-col dd b { font-weight: 500; color: var(--ink); }
.cmp-go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }
@media (max-width: 520px) {
  .cmp { bottom: 10px; padding: 8px 12px 12px; max-height: 56vh; }
  .cmp-cols { gap: 10px; }
  .cmp-role { font-size: 15px; }
  .cmp-col dl > div { flex-direction: column; gap: 0; }
  .cmp-col dd { text-align: left; }
  .cmp-verdict { font-size: 16px; }
}

/* ---------- Ledger answers the constellation and the playhead ---------- */
.entry-main { transition: border-color .3s var(--ease); }
.entry.is-lit .entry-main { border-top-color: var(--accent); }
.entry.is-lit .node { box-shadow: 0 0 0 5px var(--accent-soft); border-color: var(--accent); }
::highlight(ak-skill) { background-color: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }
.entry.is-playing .node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent); animation: rec-ring 1.6s var(--ease) infinite; }
@keyframes rec-ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Note 4: the constellation ---------- */
.constel-blk { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); padding-top: 18px; }
html:not(.js) .constel-blk { display: none; }
.constel-head .h3 { margin: 0 0 8px; }
.constel-sub { margin: 0; max-width: 62ch; font-size: 15px; color: var(--ink-2); }
.constel { position: relative; height: 600px; margin-top: 22px; }
@media (min-width: 720px) { .constel { height: 470px; } }
.constel-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cs-line { fill: none; stroke: var(--rule); stroke-width: 1.2; transition: stroke .25s var(--ease), opacity .25s var(--ease), stroke-width .25s var(--ease); }
.constel.has-focus .cs-line { opacity: .22; }
.constel .cs-line.is-on { stroke: var(--accent); stroke-width: 1.7; opacity: 1; }
.constel-stars, .constel-skills { position: absolute; inset: 0; pointer-events: none; }
.cs-star { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; color: var(--ink-2); outline: none; transition: opacity .25s var(--ease); }
.cs-star i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.cs-star span { position: absolute; top: -9px; left: 12px; padding: 1px 4px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; border-radius: 2px; }
.cs-star[data-side="l"] span { left: auto; right: 12px; }
.cs-star[data-side="t"] span { top: auto; bottom: 9px; left: 0; transform: translateX(-50%); }
.cs-star[data-side="b"] span { top: 9px; left: 0; transform: translateX(-50%); }
.cs-star:hover, .cs-star.is-on { color: var(--accent); }
.cs-star.is-on i, .cs-star:hover i { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.cs-star:focus-visible span { outline: 2px solid var(--accent); outline-offset: 1px; }
.constel.has-focus .cs-star:not(.is-on) { opacity: .45; }
.cs-skill { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; min-height: 28px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); font-size: 13px; color: var(--ink-2); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), opacity .25s var(--ease), box-shadow .2s var(--ease); }
.cs-skill.is-tool { font-family: var(--mono); font-size: 12px; border-color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .constel-skills .cs-skill { cursor: grab; } }
.cs-skill:hover, .cs-skill.is-on { color: var(--accent); border-color: var(--accent); background: var(--paper-2); }
.cs-skill.is-kept { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.cs-skill.is-dragging { cursor: grabbing; z-index: 2; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 60%, transparent); }
.constel.has-focus .cs-skill:not(.is-on):not(.is-kept) { opacity: .45; }
.constel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dotted var(--rule); }
.constel-foot[hidden] { display: none; }
.constel-loose-l { margin: 0; }
.constel-loose { display: flex; flex-wrap: wrap; gap: 8px; }
.constel-loose .cs-skill { position: static; }
.constel-read { min-height: calc(1.5em * 3); margin: 12px 0 0; max-width: 80ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.constel-count { margin: 6px 0 0; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.constel-count b { display: inline-block; min-width: 2ch; text-align: right; font-weight: 500; color: var(--ink-2); }
.constel-count.is-lit b { color: var(--accent); }
.constel-count.is-tick b { animation: cs-tick .35s var(--ease); }
@keyframes cs-tick { 40% { transform: translateY(-3px); } }

/* ---------- Note 1: the honors shelf ---------- */
.honors.is-shelf li { display: block; padding: 0 0 12px; border-bottom: 0; perspective: 900px; }
.honors.is-shelf li::before { content: none; }
.hon { position: relative; height: 104px; transform-style: preserve-3d; transform: rotateY(var(--rot, 0deg)); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.hon.is-turning { cursor: grabbing; }
.hon-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px 10px; text-align: left;
  background: var(--paper-2); border: 1px solid var(--rule); border-bottom: 2px solid var(--ink); border-radius: 4px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: border-color .25s var(--ease); }
.hon-front { width: 100%; font: inherit; color: var(--ink); cursor: pointer; }
.hon-front::before { content: "(" counter(h, lower-alpha) ")"; position: absolute; right: 14px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hon-name { font-family: var(--serif); font-size: 19px; line-height: 1.25; padding-right: 48px; font-variation-settings: "SOFT" 40, "WONK" 0; }
.hon-fig { position: absolute; right: 14px; top: 13px; font-size: 13px; color: var(--ink-3); }
.hon-turn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); transition: color .2s var(--ease); }
.hon-turn::before { content: "↻"; font-size: 13px; letter-spacing: 0; }
.hon-front:hover, .hon-front:focus-visible { border-color: var(--accent); border-bottom-color: var(--accent); }
.hon-front:hover .hon-turn, .hon-front:focus-visible .hon-turn { color: var(--accent); }
.hon-front:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hon-back { transform: rotateY(180deg); border-bottom-color: var(--mark); }
.hon-back p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.hon-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 500; }
.hon-acts a { color: var(--accent); }
.hon-back-btn { font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hon-back-btn:hover { color: var(--accent); }
.hon-back-btn, .hon-acts a { display: inline-flex; align-items: center; min-height: 28px; }
.hon-acts, .hon-src { font-family: var(--sans); }
/* A card with nothing more to show does not turn. */
.hon--still { transform: none; }
.hon-plain { border-bottom-color: var(--ink-3); }
.hon-plain::before { content: "(" counter(h, lower-alpha) ")"; position: absolute; right: 14px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hon-src { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; font-weight: 500; color: var(--accent); }

/* ---------- Résumé sheet with a corner that lifts ---------- */
.rec-dl { justify-content: flex-start; }
.rec-dl .body { flex: 1 1 260px; }
.rdl-fig { flex: none; display: grid; justify-items: center; gap: 10px; }
.rdl-cap { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.rdl-fig:hover .rdl-cap { color: var(--accent); }
.rdl-sheet { --c: 10px; position: relative; flex: none; display: block; width: 86px; height: 112px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; transform: rotate(-2deg); transition: transform .4s var(--ease); }
.rdl-sheet:hover { transform: rotate(0deg) translateY(-2px); }
.rdl-sheet:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.rdl-under { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; padding: 6px 7px; border-radius: 3px;
  background: var(--accent); color: var(--paper); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.rdl-page { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 8px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
.rdl-name { font-family: var(--serif); font-weight: 500; font-size: 10px; line-height: 1; color: var(--ink); margin-bottom: 2px; }
.rdl-page i { display: block; height: 2px; width: 100%; border-radius: 1px; background: var(--rule); }
.rdl-page i.s { width: 58%; background: var(--ink-3); opacity: .5; margin-top: 3px; }
.rdl-pg { margin-top: auto; font-family: var(--mono); font-size: 7px; color: var(--ink-3); }
.rdl-fold { position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); pointer-events: none;
  background: linear-gradient(to bottom right, var(--paper-2) 0%, var(--paper-3) 42%, color-mix(in srgb, var(--ink) 22%, var(--paper-3)) 50%);
  clip-path: polygon(0 0, 100% 0, 0 100%); }
.rdl-sheet.is-peeling { cursor: grabbing; }
@media (max-width: 700px) { .rec-dl .body { flex-basis: 180px; } .rdl-sheet { width: 72px; height: 94px; } }

/* Small tip for the stamp and the Dean's List squares */
.rec-tip { position: fixed; left: 0; top: 0; z-index: 90; display: flex; align-items: baseline; gap: 8px; max-width: calc(100vw - 16px); padding: 7px 11px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2); box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--ink) 55%, transparent);
  pointer-events: none; opacity: 0; scale: .96; transition: opacity .18s var(--ease), scale .25s var(--ease); }
.rec-tip.show { opacity: 1; scale: 1; }
.rec-tip-v { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); }
.rec-tip-m { font-size: 12.5px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .dsq, .dsq.is-tap, .stmt-course li::after, .rec-tip, .constel-count.is-tick b { transition: none; animation: none; }
  .entry-more, .entry-open-i, .rdl-sheet, .cs-line, .cs-skill, .cs-star, .mpop, .mpop.is-open { transition: none; }
  .entry.is-playing .node::after { animation: none; transform: none; opacity: 1; }
  .cmp { animation: none; }
}
/* Touch: small links and pills get a hit area of at least 36px without moving anything they sit beside.
   The expanded areas stop short of their neighbours (skill pills sit at least 8px apart; "Alongside" lines are
   given their own 36px line height). */
@media (pointer: coarse) {
  .cs-skill::after { content: ""; position: absolute; inset: -4px -2px; }
  .constel-loose .cs-skill { position: relative; }   /* the loose pills are in flow: without this their hit area would fill the whole map */
  .em-with { line-height: 36px; }
  .em-with a { position: relative; white-space: nowrap; }   /* one box per link: a wrapped link would get a sliver for a hit area */
  .em-with a::before { content: ""; position: absolute; inset: -9px -3px; }
  .entry-link, .cmp-go { position: relative; }
  .entry-link::after, .cmp-go::after { content: ""; position: absolute; inset: -8px -6px; }
  .cmp-acts { gap: 6px; }
  .cmp-acts button { min-height: 40px; min-width: 44px; padding: 0 6px; }
}
@media print {
  .entry-acts, .entry-more, .entry-pin, .cmp, .constel-blk, .rdl-fig, .mpop, .rec-tip, .entry-site { display: none !important; }
  .mchip { background: none; }
}

/* =========================================================
   Phones (≤700px): one calm column.
   - The sticky year chip floated over the entries; every entry's date already carries its year.
   - Compare (pins + fixed tray) is a two-up desk tool: on a phone the tray would cover the page, so it is not offered.
   - The filter chips sit on one swipe row instead of wrapping 3 + 2.
   ========================================================= */
@media (max-width: 700px) {
  .rec-hero { padding-bottom: 48px; }
  .rec-edu { padding-top: 8px; }
  .rec-period > div:first-child { flex: 1.9; }
  .rec-period dd { white-space: nowrap; }

  .tl-year { display: none; }
  .entry-meta { padding-right: 0; min-height: 0; }
  .entry-pin, .cmp { display: none !important; }
  html.has-cmp body { padding-bottom: 0; }
  .entry-open { min-height: 44px; }

  .filter { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .filter::-webkit-scrollbar { display: none; }
  .filter-l { display: none; }
  .filter .chip { flex: none; height: 40px; padding: 0 16px; scroll-snap-align: start; }
  .filter .chip:last-of-type { margin-right: 24px; }
}
