/* ==========================================================================
   jamesearle.net — one stylesheet for the whole site.
   Colors and type live in the tokens below; change them here, not per page.
   ========================================================================== */

:root {
  /* Palette: built from James's personal palette (navy, light blue, yellow, red).
     Contrast checked: body text 15:1, links 6.9:1, text on navy 10:1. */
  --ink: #172033;        /* text */
  --ink-soft: #4a5568;   /* secondary text */
  --paper: #f5f6f8;      /* page background, cool white */
  --panel: #e7edf4;      /* tiles and panels: a whisper of light blue (#a4cae7) */
  --line: #cfd8e3;       /* borders and rules */
  --blue: #18588c;       /* links, dates, timeline, contour lines */
  --navy: #123f66;       /* feature tile and button hover: a deeper #18588c */
  --on-navy: #f5f6f8;    /* text on navy, in light and dark mode */
  --on-navy-soft: #d6e6f3;
  --blaze: #e5b000;      /* trail-marker yellow, deepened from #ffe115 so it shows on white */
  --blaze-on-navy: #ffe115;
  --focus: #18588c;      /* keyboard focus ring */
  --todo-bg: #ffe5e5;    /* placeholder boxes, from light red #ffc0c0 (remove before launch) */
  --todo-line: #ff3131;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 6vw, 4.25rem);

  --measure: 66ch;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf3;
    --ink-soft: #a9b6c6;
    --paper: #0f1928;
    --panel: #172437;
    --line: #2a3a50;
    --blue: #a4cae7;
    --navy: #18588c;
    --blaze: #ffe115;
    --focus: #ffe115;
    --todo-bg: #3a1f24;
    --todo-line: #ff6b6b;
  }
}
:root[data-theme="dark"] {
  --ink: #e8edf3;
  --ink-soft: #a9b6c6;
  --paper: #0f1928;
  --panel: #172437;
  --line: #2a3a50;
  --blue: #a4cae7;
  --navy: #18588c;
  --blaze: #ffe115;
  --focus: #ffe115;
  --todo-bg: #3a1f24;
  --todo-line: #ff6b6b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
}
img, iframe, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 650;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); margin-top: 2.2em; }
h3 { font-size: var(--step-1); margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: 0.3em; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }

/* ---------- Header + nav ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.wordmark::before { content: ""; width: 0.5rem; height: 1.1rem; background: var(--blaze); border-radius: 1px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* ---------- Page heads ---------- */
main { padding-bottom: 4rem; }
.page-head { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 20ch; }
.page-head .lede { max-width: 52ch; }

/* Section headings carry a small trail blaze */
.blazed { display: flex; align-items: center; gap: 0.7rem; }
.blazed::before { content: ""; flex: none; width: 0.42em; height: 0.9em; background: var(--blaze); border-radius: 1px; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
/* The trail: one winding line (a career path) with bursts (conversations sparked
   along it). Thin, one color, drawn once on load. Generated once; see README. */
.hero .trail {
  /* --tw is the graphic's width. The top offset puts the last (biggest) spark halfway
     between the menu bar and the top of the "I spark" letters: (hero padding + cap offset) / 2,
     minus the spark's own height inside the drawing (48.7 of 600 units). */
  --tw: min(50vw, 46rem);
  position: absolute; right: -6vw; width: var(--tw); height: auto; aspect-ratio: 600 / 520;
  top: calc((clamp(3rem, 9vw, 7rem) + 0.17 * var(--step-4)) / 2 - var(--tw) * 0.0812);
  color: var(--blue); opacity: 0.35; pointer-events: none; overflow: visible;
}
.hero .trail-path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero .trail-spark { stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.hero .trail-node { fill: currentColor; }
@media (max-width: 700px) {
  .hero .trail { --tw: 100vw; right: -45vw; opacity: 0.22; }
}
.hero-inner { position: relative; }
.hero h1 { max-width: 13ch; margin-bottom: 0.4em; }
.hero .lede { max-width: 46ch; }
.hero .epigraph { font-style: italic; color: var(--ink-soft); max-width: 52ch; margin-top: 1.5rem; }

/* ---------- Home tiles: a trail map of sections ---------- */
.tiles {
  display: grid; gap: 1rem; margin-top: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 11rem; padding: 1.4rem 1.4rem 1.2rem 1.9rem;
  background: var(--panel); color: var(--ink); text-decoration: none;
  border-radius: 6px; border: 1px solid transparent;
  grid-column: span 2;
}
.tile::before { /* the blaze */
  content: ""; position: absolute; left: 0.85rem; top: 1.55rem; width: 0.38rem; height: 1.3rem;
  background: var(--blaze); border-radius: 1px;
}
.tile:hover { border-color: var(--blue); }
.tile h2 { font-size: var(--step-2); margin: 0 0 0.35em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.tile .go { font-family: var(--font-display); color: var(--blue); margin-top: 1rem; font-size: 0.95rem; }
.tile.feature { grid-column: span 4; grid-row: span 2; background: var(--navy); color: var(--on-navy); }
.tile.feature::before { background: var(--blaze-on-navy); }
.tile.feature:hover { border-color: var(--blaze-on-navy); }
.tile.feature p, .tile.feature .go { color: var(--on-navy-soft); }
.tile.feature h2 { font-size: var(--step-3); max-width: 14ch; }
.tile.wide { grid-column: span 3; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 540px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.feature { grid-column: auto; min-height: 0; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.65rem 1.1rem; border-radius: 4px; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
}
.button.quiet { background: transparent; color: var(--ink); }
.button:hover { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

/* ---------- On-this-page jump list ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0; margin: 0 0 1rem; list-style: none; font-family: var(--font-display); }
.jump li + li { margin-top: 0; }

/* ---------- Experience timeline (a real sequence, so it gets a line) ---------- */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; border-left: 2px solid var(--line); }
.role { position: relative; padding: 0 0 2.25rem 1.6rem; margin: 0; }
.role::before {
  content: ""; position: absolute; left: -0.45rem; top: 0.45rem; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--blue);
}
.role h3 { margin: 0 0 0.15em; }
.role .org { font-family: var(--font-display); margin: 0; }
.role .when { color: var(--blue); font-family: var(--font-display); font-size: var(--step--1); margin: 0 0 0.6rem; }
.role ul { max-width: var(--measure); padding-left: 1.1rem; }
.role-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 1.5rem 2.5rem; align-items: start; }
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- Figures + placeholders ---------- */
figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; margin-top: 0.5rem; }
.frame { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow: hidden; }
.frame img { width: 100%; height: auto; }

/* TODO placeholders: search the code for class="todo" to find every one. */
.todo {
  background: var(--todo-bg); border: 2px dashed var(--todo-line); border-radius: 4px;
  color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; line-height: 1.4;
  padding: 1rem;
}
.todo::before { content: "To do: "; font-weight: 700; }
.ph { display: grid; place-items: center; align-content: center; gap: 0.25rem; text-align: center; aspect-ratio: 4 / 3; }
.ph.square { aspect-ratio: 1; }
.ph.wide { aspect-ratio: 16 / 9; }
p.todo, div.todo { max-width: var(--measure); }

/* ---------- Portfolio ---------- */
.work-grid {
  display: grid; gap: 2.5rem 2rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.piece h3 { margin: 0.9rem 0 0.35rem; font-size: 1.2rem; }
.piece p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 0.6rem; }
.piece .links { font-family: var(--font-display); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.piece .thumb { aspect-ratio: 4 / 3; }
.piece .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.piece.span-2 { grid-column: span 2; }
@media (max-width: 700px) { .piece.span-2 { grid-column: auto; } }
.gallery .frame { aspect-ratio: 1; display: grid; place-items: center; }
.gallery .frame img { width: 100%; height: 100%; object-fit: contain; }
.gallery { margin-bottom: 0.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.embed { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 4px; background: var(--panel); }

/* ---------- Community + press stories ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; margin-top: 3rem; }
.story h2 { margin-top: 0; font-size: var(--step-2); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }
blockquote { margin: 1rem 0 1.25rem; padding-left: 1.1rem; border-left: 3px solid var(--blaze); font-style: italic; }

.press-list { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 52rem; }
.press-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); margin: 0; }
.press-list .outlet { font-family: var(--font-display); font-weight: 600; }
.press-list .date { display: block; font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); font-weight: 400; }
.press-list a { font-size: 1.08rem; }
.press-list p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 600px) { .press-list li { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.mission { font-size: var(--step-1); line-height: 1.55; max-width: 36ch; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 3rem; }
.columns ul { padding-left: 1.1rem; }
.roles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 40rem; }
.roles li { margin: 0; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-display); font-size: 0.95rem; }
.strengths { list-style: none; padding: 0; max-width: var(--measure); }
.strengths li { margin: 0 0 1rem; }
.strengths strong { font-family: var(--font-display); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; margin-top: 1rem; }
.docs a { font-family: var(--font-display); }

/* ---------- Contact ---------- */
.form-embed { width: 100%; min-height: 1000px; border: 0; background: var(--panel); border-radius: 4px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Article (blog) ---------- */
.article { max-width: var(--measure); }
.article h2 { font-size: var(--step-2); }
.article .highlights { background: var(--panel); padding: 1.25rem 1.5rem 0.5rem 2.25rem; border-radius: 4px; }
.byline { font-family: var(--font-display); color: var(--ink-soft); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; margin: 1rem 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-family: var(--font-display); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero .trail-path { stroke-dasharray: var(--L); stroke-dashoffset: var(--L); animation: trail-draw 3.4s cubic-bezier(.35,.1,.25,1) forwards; }
  .hero .trail-spark { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: trail-pop .7s ease-out var(--d) forwards; }
  .hero .trail-node { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: trail-dot .35s ease-out var(--d) forwards; }
  @keyframes trail-draw { to { stroke-dashoffset: 0; } }
  @keyframes trail-pop { to { stroke-dashoffset: 0; } }
  @keyframes trail-dot { to { transform: scale(1); } }
}
@media print {
  .site-header, .site-footer, .todo { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Screen-reader-only text ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ANC page ---------- */
.map-figure { max-width: 52rem; margin-top: 2rem; }
.map-figure .frame img { width: 100%; height: auto; }

/* Quote carousel: sits inside the text column; 1 quote on phones, 2 on wider screens.
   assets/js/quotes.js adds the arrow button. */
.quotes {
  --per-view: 1; max-width: var(--measure);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 1rem; margin: 2.5rem 0;
}
@media (min-width: 760px) { .quotes { --per-view: 2; } }
.quotes-track {
  display: grid; grid-auto-flow: column; column-gap: 1rem;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1rem) / var(--per-view));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}
.quotes.js .quotes-track { scrollbar-width: none; padding-bottom: 0; }
.quotes.js .quotes-track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; background: var(--panel); border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { margin: 0 0 1rem; border: 0; padding: 0; font-size: 1.125rem; line-height: 1.5; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 0; }
.quote figcaption::before { content: ""; display: inline-block; width: 0.38rem; height: 0.9rem; margin-right: 0.55rem; background: var(--blaze); border-radius: 1px; vertical-align: -0.05rem; }
.quotes-next {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--on-navy);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.quotes-next:hover { background: var(--ink); color: var(--paper); }
.quotes-next[hidden] { display: none; }

/* Numbered promises: a real sequence, so they get numbers */
.promises { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: promise; }
.promise {
  counter-increment: promise; position: relative;
  padding: 0 0 2rem 4.25rem; margin: 0;
}
.promise + .promise { margin-top: 0.5rem; }
.promise::before {
  content: counter(promise); position: absolute; left: 0; top: -0.1rem;
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--blaze-on-navy);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.promise h3 { margin: 0.35rem 0 0.4rem; font-size: var(--step-2); }
.promise p { margin-bottom: 1rem; }
.button.arrow { padding: 0.5rem 1rem; }
@media (max-width: 480px) {
  .promise { padding-left: 0; }
  .promise::before { position: static; margin-bottom: 0.6rem; }
}

/* Read more: assets/js/readmore.js collapses the region to its first paragraph's
   first three lines; line 1 is solid, line 2 starts fading, and line 3 is all but gone. */
.readmore { position: relative; }
.readmore.is-collapsed .readmore-body {
  max-height: calc(2 * 1.7em); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0em, transparent 3em);
  mask-image: linear-gradient(to bottom, #000 0em, transparent 3em);
}
.readmore.is-collapsed .readmore-body > p:first-child { margin-bottom: 0; }
.readmore-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--blue); border: 1.5px solid var(--blue);
}
.readmore-toggle:hover { background: var(--panel); }
.readmore-toggle[hidden] { display: none; }
.readmore.is-collapsed .readmore-toggle {
  position: absolute; left: 50%; bottom: 0.35em; transform: translateX(-50%);
}
.readmore:not(.is-collapsed) .readmore-toggle { margin-top: 0.25rem; }

/* ---------- ANC Tracker ---------- */
.tracker-section { margin-top: 3.5rem; scroll-margin-top: 1rem; }
.tracker-section h3 { scroll-margin-top: 1rem; }
.tracker-section h2 { margin-top: 0; }
.meta { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }

/* Section headings for the three promises reuse the promise numbers from the ANC page */
h2.numbered { display: flex; align-items: center; gap: 0.8rem; }
h2.numbered .num {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--blaze-on-navy); font-size: 1.4rem;
}
.promise-recap { font-style: italic; color: var(--ink-soft); margin-top: -0.25rem; }

/* Inline placeholder text: search for todo-inline to find every one */
.todo-inline { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--todo-bg); outline: 1px dashed var(--todo-line); border-radius: 2px; padding: 0 0.2em; }

/* "Working on now" */
.status-list { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--measure); }
.status-list li {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: baseline;
  padding: 0.8rem 0; border-top: 1px solid var(--line); margin: 0;
}
.status-list li:last-child { border-bottom: 1px solid var(--line); }
.status {
  justify-self: start; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; line-height: 1.3;
  padding: 0.2rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft);
}
.status.is-progress { border-color: var(--blue); color: var(--blue); }
.status.is-done { border-color: var(--navy); background: var(--navy); color: var(--on-navy); }
@media (max-width: 480px) { .status-list li { grid-template-columns: 1fr; } }

/* Log tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; max-width: 56rem; }
table.log { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
table.log th, table.log td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); }
table.log thead th { font-family: var(--font-display); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.log tr.total th, table.log tr.total td { font-family: var(--font-display); font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }
table.log td.empty-cell { color: var(--ink-soft); font-style: italic; padding: 1rem 0; }

/* Empty states ("First report: ...") */
.empty-note { background: var(--panel); border-radius: 6px; padding: 0.9rem 1.1rem; }

/* Get-involved roles */
.role-cards { display: grid; gap: 1rem; margin: 1rem 0; max-width: 56rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.role-card { background: var(--panel); border-radius: 6px; padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; }
.role-card h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.4rem; }
.role-card p { font-size: 0.98rem; line-height: 1.55; margin: 0 0 0.75rem; }
.role-card .time { margin: auto 0 0; font-family: var(--font-display); font-size: 0.9rem; color: var(--blue); }
.role-card .time::before { content: ""; display: inline-block; width: 0.35rem; height: 0.85rem; margin-right: 0.5rem; background: var(--blaze); border-radius: 1px; vertical-align: -0.05rem; }

/* UMC timeline */
.dated-list { list-style: none; padding: 0; }
.dated-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); margin: 0; }
.dated-list li:last-child { border-bottom: 1px solid var(--line); }
.dated-list .date { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
@media (max-width: 480px) { .dated-list li { grid-template-columns: 1fr; } }

.callout { background: var(--panel); border-left: 4px solid var(--blaze); border-radius: 0 6px 6px 0; padding: 1rem 1.2rem; }

/* Logos sit on white in both themes so dark artwork stays visible */
.piece .thumb.logo { background: #fff; }
.piece .thumb.logo img { object-fit: contain; padding: 1.25rem; }
.frame video { width: 100%; height: auto; display: block; }
