/* Annual Meeting Atlas. Copyright Kabloom 2026. */
/* Design standard, on Richard's word of 2 December 2026: Apple's Human Interface Guidelines as Kabloom's apple-design
   skill sets them out. Type on Apple's scale and in rem, so it follows the reader's own text size. Every gap a multiple
   of 4. Colours named by role, one accent. Targets of 44 px or more. No shadow, no gradient. Motion only on touch. */
:root {
  /* Layout: one reading column of 44rem. Each event is a row with its dates on a rail at the left, like a chart's margin. */
  --bg: #F4F7F6;
  --label: #14232B;
  --label-2: #465962;
  --separator: #D3DCDB;
  --bg-2: #E6EEED;
  --accent: #0B6B73;
  --on-accent: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Apple's type scale: footnote 13, subheadline 15, body 17, title 3 20, title 2 22, title 1 28, large title 34. */
  --footnote: 0.8125rem; --subhead: 0.9375rem; --body: 1.0625rem; --title3: 1.25rem; --title2: 1.375rem; --title1: 1.75rem; --large: 2.125rem;
  --rail: 7.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1C22; --label: #E8EEEC; --label-2: #A9B8BC; --separator: #2A3A41; --bg-2: #16272E;
    --accent: #63C7CB; --on-accent: #06262A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1C22; --label: #E8EEEC; --label-2: #A9B8BC; --separator: #2A3A41; --bg-2: #16272E;
  --accent: #63C7CB; --on-accent: #06262A; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-contrast: more) {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --label-2: var(--label); --separator: var(--label); }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: var(--body)/1.47 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 20px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 5; }

.preview-bar { background: var(--label); color: var(--bg); font-size: var(--footnote); line-height: 1.385; padding: 8px 0; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.top { border-bottom: 1px solid var(--separator); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; color: var(--label); text-decoration: none;
  font: 600 var(--title3)/1.25 var(--font); letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.top nav { display: flex; gap: 0 24px; flex-wrap: wrap; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--subhead); color: var(--label); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.top nav a:hover { text-decoration: underline; }
.top nav a:active { color: var(--label-2); }

main { display: block; padding: 32px 0 48px; }
main:focus { outline: none; }
h1 { font: 600 var(--large)/1.2 var(--font); letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
h2 { font: 600 var(--title2)/1.27 var(--font); margin: 40px 0 12px; text-wrap: balance; }
/* A month's name stays at the top while its events pass, as a section header does in a list on an iPhone. */
h2.month { font: 600 var(--footnote)/1.385 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label-2);
  margin: 24px 0 0; padding: 8px 0; border-bottom: 1px solid var(--separator); position: sticky; top: 0; z-index: 1; background: var(--bg); }
p { margin: 0 0 16px; max-width: 65ch; }
.lede { font-size: var(--title3); line-height: 1.4; }
.meta { color: var(--label-2); font-size: var(--subhead); line-height: 1.33; }

.hero { padding: 8px 0; }
.hero p:last-child { margin-bottom: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--separator); }
/* The row reaches 8 px past the column on each side, so the tint under a finger has room. The text keeps the column's edge. */
.row { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline; margin: 0 -8px; padding: 12px 8px; min-height: 44px;
  border-radius: 8px; color: var(--label); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.row::after { content: ""; width: 8px; height: 8px; margin: 0 4px 0 0; align-self: center; border-top: 2px solid var(--label-2); border-right: 2px solid var(--label-2); transform: rotate(45deg); opacity: 0.6; }
.row:active { background: var(--bg-2); }
@media (hover: hover) { .row:hover { background: var(--bg-2); } }
.row .when { font-variant-numeric: tabular-nums; color: var(--label-2); font-size: var(--subhead); line-height: 1.33; white-space: nowrap; }
.row .what { min-width: 0; overflow-wrap: break-word; }
.row .n { display: block; font-weight: 600; line-height: 1.29; }
.row .w { display: block; margin-top: 4px; color: var(--label-2); font-size: var(--subhead); line-height: 1.33; }

.crumb { margin: 0 0 16px; font-size: var(--subhead); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.answer { font-size: var(--title3); line-height: 1.4; }
.facts { margin: 24px 0; border-top: 1px solid var(--separator); }
.facts > div { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--separator); }
.facts dt { color: var(--label-2); font-size: var(--subhead); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* The link to the official site: 12 px more above and below for a thumb, taken back in the margin so the line stays where it is. */
.facts dd a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.keys { list-style: none; margin: 0 0 16px; padding: 0; }
.keys li { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 16px; align-items: baseline; padding: 8px 0; }
.keys time { font-variant-numeric: tabular-nums; color: var(--label-2); font-size: var(--subhead); }
.note { background: var(--bg-2); border-radius: 12px; padding: 16px; margin: 32px 0 16px; font-size: var(--subhead); line-height: 1.47; }
.note p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--footnote); font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; }
.near { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--separator); font-size: var(--subhead); }
.near a { display: inline-flex; align-items: center; min-height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font: 600 var(--body)/1 var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:active { opacity: 0.8; }
.list { margin: 0 0 16px; padding-left: 20px; max-width: 65ch; }
.list li { margin-bottom: 8px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { border-bottom: 1px solid var(--separator); }
.files a { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; padding: 12px 0; min-height: 44px; }
.files span { color: var(--label-2); font-size: var(--subhead); }

form.sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0; max-width: 34rem; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.field label { font-size: var(--subhead); font-weight: 600; }
.field small { color: var(--label-2); font-size: var(--footnote); line-height: 1.385; }
.field input { font: inherit; color: var(--label); background: var(--bg); border: 1px solid var(--label-2); border-radius: 12px; padding: 0 12px; min-height: 48px; width: 100%; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.result { border: 1px solid var(--separator); border-radius: 12px; padding: 16px; font-size: var(--subhead); }
.result ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.result li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; }
.result b { font-weight: 600; }
.raw { white-space: pre-wrap; overflow-wrap: anywhere; font: var(--footnote)/1.5 var(--mono); background: var(--bg-2); border-radius: 12px; padding: 16px; }

/* The filters on the first page. Labels above their fields, as in a settings sheet. Two columns on a phone, three wider. */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 8px; padding: 16px; background: var(--bg-2); border-radius: 12px; }
.filters .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.filters .field input, .filters select { font: inherit; color: var(--label); background: var(--bg); border: 1px solid var(--label-2); border-radius: 12px; min-height: 44px; width: 100%; }
.filters select { padding: 0 8px; }
.filters .field input { padding: 0 12px; }
.found { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 44px; }
.found .meta { margin: 0; }
.clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font: 600 var(--subhead)/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.browse { margin: 16px 0 0; }
.browse a, .none-found a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.none-found { margin: 24px 0; }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--separator); border-radius: 999px;
  color: var(--label); text-decoration: none; font-size: var(--subhead); -webkit-tap-highlight-color: transparent; }
.chips a:active { background: var(--bg-2); }
@media (hover: hover) { .chips a:hover { background: var(--bg-2); } }
.chips span { color: var(--label-2); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .filters .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

footer { border-top: 1px solid var(--separator); padding: 24px 0 40px; color: var(--label-2); font-size: var(--footnote); line-height: 1.385; }
footer p { margin: 0 0 8px; }
footer a { color: var(--label-2); }

/* Wider than a phone: the margin grows, as Apple's does from compact to regular width. */
@media (min-width: 48rem) { .wrap { padding: 0 24px; } }
/* Narrow, or a reader who has set large text (the widths are in rem, so they follow that setting). */
@media (max-width: 26.25rem) {
  :root { --rail: 6.25rem; }
  h1 { font-size: var(--title1); line-height: 1.21; }
  .row, .facts > div, .keys li { gap: 0 12px; }
  .row .when { white-space: normal; }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
/* Very large text, or a page zoomed to 200 percent: the date sits above the name instead of beside it. */
@media (max-width: 18rem) {
  .filters .grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .when { grid-column: 1 / -1; }
  .facts > div, .keys li { grid-template-columns: minmax(0, 1fr); }
  .result li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .row, .btn, .top nav a { transition: background-color 150ms ease-out, opacity 150ms ease-out, color 150ms ease-out; }
}
