/* rememberingjohndouglas.com
   A quiet, printed-page look: warm paper, a serif for anything that is about
   John, a plain sans for the machinery. Type is deliberately large — a good
   share of the people using this are reading it on a phone, at night, and are
   not young. Nothing animates except where a finger has asked it to. */

:root {
  --paper:      #faf8f5;
  --card:       #ffffff;
  --ink:        #2f3540;
  --ink-soft:   #545c6b;
  --muted:      #8a8f99;
  --line:       #e6e3dd;
  --line-soft:  #f0ede8;
  --accent:     #7a6a53;   /* aged brass */
  --accent-ink: #5d5040;
  --sky:        #3f5c72;   /* the only cool note: links and focus */
  --bad:        #a1483f;
  --good:       #3f6b52;
  --shadow:     0 1px 2px rgba(47,53,64,.05), 0 8px 24px -12px rgba(47,53,64,.18);
  --serif:      Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans:       system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius:     4px;
  --page:       1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181c; --card: #1d2026; --ink: #e7e5e0; --ink-soft: #b6b4ae; --muted: #8b8983;
    --line: #2e323a; --line-soft: #24272d; --accent: #bda57f; --accent-ink: #d3bb95;
    --sky: #8fb3cc; --bad: #d98a80; --good: #7fb096;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--sans);
  padding-bottom: env(safe-area-inset-bottom, 0);
  /* A long unbroken token — an email address, a URL — is otherwise wider than a
     phone and pushes the whole page sideways. Breaking it is always better than
     a page that scrolls horizontally. */
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3.4vw, 27px); line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p  { margin: 0 0 16px; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.soft  { color: var(--ink-soft); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.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; }

/* ---------------- shell ---------------- */
.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.tight  { max-width: 560px; }

header.top {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
  position: sticky; top: 0; z-index: 40;
}
header.top .container { display: flex; align-items: center; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brand {
  font-family: var(--serif); font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); text-decoration: none; margin-right: auto; padding: 8px 0;
}
.brand:hover { color: var(--ink); }
nav.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 8px 11px; border-radius: var(--radius);
}
nav.nav a:hover { background: var(--line-soft); color: var(--ink); }
nav.nav a.here { color: var(--ink); background: var(--line-soft); }
nav.nav a.cta { background: var(--ink); color: var(--paper); }
nav.nav a.cta:hover { background: var(--accent-ink); color: #fff; }
.badge-dot { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 5px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; text-align: center; font-family: var(--sans); }

main { padding: 34px 0 64px; }
footer.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer.foot .container { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
footer.foot a { color: var(--muted); }
footer.foot .sp { margin-left: auto; }

/* ---------------- the memorial header ---------------- */
.memorial { text-align: center; padding: 8px 0 22px; }
.memorial .portrait {
  width: min(260px, 62vw); aspect-ratio: 1; margin: 0 auto 22px; border-radius: 50%;
  object-fit: cover; border: 6px solid var(--card); box-shadow: var(--shadow);
}
.memorial .portrait.empty { display: grid; place-items: center; background: var(--line-soft); color: var(--muted); font-family: var(--serif); font-size: 52px; }
.memorial .kicker { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; margin-bottom: 6px; }
.memorial h1 { font-size: clamp(34px, 7vw, 54px); margin-bottom: 8px; }
.memorial .dates { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); letter-spacing: .04em; }
.memorial .dates .dash { color: var(--accent); margin: 0 10px; }
.rule { width: 64px; height: 1px; background: var(--accent); margin: 24px auto; opacity: .6; }

.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.8; color: var(--ink); }
.prose p { margin: 0 0 20px; }
.prose p:first-of-type::first-letter { font-size: 3.1em; float: left; line-height: .84; padding: 4px 10px 0 0; color: var(--accent); }
.prose.plain p:first-of-type::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }

/* ---------------- cards & grids ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.card.flat { box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin: 42px 0 18px; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-size: 15px; }

/* ---------------- events ---------------- */
.event { display: flex; gap: 20px; align-items: flex-start; }
.event .when {
  flex: 0 0 82px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 6px; background: var(--paper);
}
.event .when .m { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.event .when .d { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.event .when .y { font-size: 12px; color: var(--muted); }
.event .body { flex: 1 1 auto; min-width: 0; }
.event h3 { margin-bottom: 4px; }
.event .meta { color: var(--ink-soft); font-size: 15px; }
.event .meta span + span::before { content: "·"; margin: 0 8px; color: var(--muted); }
.cancelled-flag { color: var(--bad); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; }
.rsvp-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.rsvp-opt { flex: 1 1 130px; }
.rsvp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-opt span {
  display: block; text-align: center; padding: 13px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; background: var(--card); font-size: 16px;
}
.rsvp-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.rsvp-opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.tally { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 0; }
.tally b { font-family: var(--serif); font-size: 26px; font-weight: 400; display: block; line-height: 1.1; }
.tally .lab { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- photographs ---------------- */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; position: relative; }
.gallery img { width: 100%; border-radius: var(--radius); background: var(--line-soft); box-shadow: var(--shadow); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; font-family: var(--serif); font-style: italic; }
.gallery .pick { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; }
.gallery a { display: block; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
/* The front page showcase FLOWS rather than sitting in a fixed grid. A grid
   with a fixed column count strands the remainder on a short last row, and the
   count here changes every time the family adds a photograph — thirteen is a
   prime number, and no column count saves it. Flowing columns have no rows to
   leave ragged, and they show each photograph at its own shape instead of
   centre-cropping everything to a square, which is how a shoebox of family
   pictures actually looks. */
.strip.showcase { display: block; columns: 3 220px; column-gap: 14px; }
.strip.showcase a { display: block; break-inside: avoid; margin: 0 0 14px; }
.strip.showcase img { aspect-ratio: auto; width: 100%; transition: transform .18s ease; }
.strip.showcase a:hover img { transform: scale(1.012); }
.pending-tag { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(20,22,26,.94); z-index: 100; display: grid; grid-template-rows: 1fr auto; }
.lb[hidden] { display: none !important; }
.lb .frame { display: grid; place-items: center; padding: 20px; overflow: auto; }
.lb img { max-height: 82vh; width: auto; border-radius: 2px; }
.lb .bar { color: #d8d5cf; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 16px; align-items: center; font-size: 15px; }
.lb .bar .cap { flex: 1 1 auto; font-family: var(--serif); font-style: italic; }
.lb button { background: transparent; border: 1px solid #55565c; color: #e8e6e1; border-radius: var(--radius);
  padding: 9px 15px; font-size: 16px; cursor: pointer; }
.lb button:hover { background: #2a2c31; }

/* ---------------- guestbook ---------------- */
.entry { border-left: 3px solid var(--line); padding: 2px 0 2px 18px; margin: 0 0 26px; }
.entry .msg { font-family: var(--serif); font-size: 18px; line-height: 1.75; white-space: pre-wrap; }
.entry .by { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry .by b { color: var(--ink-soft); font-weight: 600; }

/* ---------------- forms ---------------- */
label { display: block; margin: 0 0 6px; font-size: 15px; color: var(--ink-soft); }
label .req { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:disabled, textarea:disabled, select:disabled { background: var(--line-soft); color: var(--muted); }
.field { margin-bottom: 18px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.check label { margin: 0; color: var(--ink); }

/* Show-password toggle. On a phone, a handed-over password typed blind is the
   commonest reason a person cannot get in — and they have no way to see what
   went wrong. Letting them look is worth far more than the shoulder-surfing it
   costs on a family memorial page. */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 74px; }
.pw-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--sky); font: inherit; font-size: 14px;
  padding: 10px 10px; cursor: pointer; border-radius: var(--radius); min-height: 44px;
}
.pw-reveal:hover { background: var(--line-soft); }

.btn {
  display: inline-block; font: inherit; font-size: 16px; padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 14px; }
.btn.wide { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
form.inline { display: inline; }

/* ---------------- notices ---------------- */
.notice { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); margin: 0 0 20px; font-size: 15.5px; }
.notice.good { border-color: #cfe0d4; background: #f2f8f4; color: #2f5b45; }
.notice.bad  { border-color: #edd2ce; background: #fdf4f3; color: #8c3c34; }
.notice.warn { border-color: #e9dfc8; background: #fdf9ef; color: #6d5a2e; }
@media (prefers-color-scheme: dark) {
  .notice.good { background: #1b2a22; border-color: #2f4b3a; color: #9fd0b4; }
  .notice.bad  { background: #2a1d1b; border-color: #4d302b; color: #e0a49b; }
  .notice.warn { background: #292518; border-color: #4a4128; color: #d6c18a; }
}
.notice b { font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 18px; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th, table.list td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.list tr:hover td { background: var(--line-soft); }
table.list td.right, table.list th.right { text-align: right; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); white-space: nowrap; }
.pill.role-superadmin { border-color: #c8b48c; color: var(--accent-ink); }
.pill.role-admin { border-color: #b7c6d3; color: var(--sky); }
.pill.role-organizer { border-color: #c5cfc0; color: var(--good); }
.pill.ok { border-color: #bcd6c5; color: var(--good); }
.pill.no { border-color: #e2c4bf; color: var(--bad); }

/* ---------------- admin ---------------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-bottom: 12px; }
.admin-nav a { font-size: 15px; padding: 8px 13px; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; }
.admin-nav a:hover { background: var(--line-soft); color: var(--ink); }
.admin-nav a.here { background: var(--ink); color: var(--paper); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .n { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.stat .lab { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.stat a { text-decoration: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wrap-any { word-break: break-word; }

/* ---------------- drop zone ---------------- */
/* The browser's own file button is ~21px tall and cannot be styled. Hide it
   and drive it from a label that looks and measures like every other button. */
.filepick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filepick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filepick .btn { margin: 0; }
.filepick .chosen { font-size: 14px; color: var(--muted); }

.drop {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  background: var(--card); color: var(--muted); cursor: pointer;
}
.drop.over { border-color: var(--accent); background: var(--line-soft); color: var(--ink); }
.queue-item { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.queue-item .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; flex: 0 0 90px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }


/* ---------------- dashboard & charts ----------------
   The chart palette is ONE blue hue used as an ordinal ramp, validated rather
   than eyeballed: monotone lightness, a visible gap between steps, and the pale
   end still clearing the card it is drawn on — checked in both modes against
   the real card colours, not a generic white. --viz-3 is the most ink, --viz-1
   the least; in dark mode the order flips, because "more" means more contrast
   against the surface either way. */
:root {
  --viz-1: #86b6ef;
  --viz-2: #2a78d6;
  --viz-3: #1c5cab;
  --viz-line: #2a78d6;
  --viz-grid: #e6e4de;
  --viz-axis: #c3c2b7;
  --viz-track: #ecebe6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-1: #184f95;
    --viz-2: #2a78d6;
    --viz-3: #86b6ef;
    --viz-line: #3987e5;
    --viz-grid: #2c2f36;
    --viz-axis: #3c4048;
    --viz-track: #262a31;
  }
}

.dash-greet { margin: 0 0 4px; }
.dash-sub { color: var(--ink-soft); margin: 0 0 26px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block;
}
a.stat-tile:hover { border-color: var(--accent); }
.stat-tile .lab { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.stat-value { font-family: var(--sans); font-size: 34px; font-weight: 600; line-height: 1.15; margin: 6px 0 0; letter-spacing: -.02em; }
.stat-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.spark { display: block; margin-top: 8px; width: 100%; height: 34px; overflow: visible; }

.chart { margin: 0; position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .hit { cursor: crosshair; }
.chart .hit:focus-visible { outline: none; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, -100%);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 7px 11px; font-size: 13px; white-space: nowrap; line-height: 1.35;
}
.chart-tip b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.chart-tip .k { color: var(--muted); font-size: 12.5px; }

.reply-bar { margin: 4px 0 0; }
.rb-track { display: flex; width: 100%; height: 30px; border-radius: 3px; overflow: hidden; background: var(--viz-track); gap: 2px; }
.rb-seg { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; min-width: 2px; }
.rb-key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--ink-soft); }
.rb-key li { display: flex; align-items: center; gap: 7px; }
.rb-key i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.rb-key i.empty { background: var(--viz-track); border: 1px solid var(--line); }
.rb-key b { color: var(--ink); font-weight: 600; }

.meter { margin: 0 0 4px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 7px; }
.meter-top b { color: var(--ink); font-weight: 600; }
.meter-track { height: 10px; border-radius: 5px; background: var(--viz-track); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 5px; }
.meter-sub { font-size: 13px; color: var(--muted); margin-top: 7px; }

.numbers { margin-top: 16px; max-width: 100%; }
.numbers .table-wrap { max-width: 100%; }
.numbers summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); padding: 6px 0; }
.numbers summary:hover { color: var(--ink); }

.howto { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.howto li { margin-bottom: 8px; line-height: 1.6; }
.howto b { color: var(--ink); }

.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.todo li:last-child { border-bottom: 0; }
.todo .n { font-family: var(--sans); font-size: 25px; font-weight: 600; min-width: 34px; text-align: center; line-height: 1; }
.todo .n.urgent { color: var(--bad); }
.todo .go { margin-left: auto; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; display: flex; gap: 10px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  /* Tap targets. A 37px link is a miss for a thumb, and most of the people
     using this are reading it on a phone, some of them with older eyes and
     unsteady hands. Everything interactive gets at least 44px. */
  nav.nav a { padding: 12px 11px; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
  footer.foot .container { gap: 2px 16px; }
  footer.foot a { padding: 10px 0; display: inline-block; }
  .admin-nav a { padding: 11px 13px; min-height: 44px; display: flex; align-items: center; }
  .section-head .more, .numbers summary { padding: 10px 0; display: inline-block; }
  .check input { width: 24px; height: 24px; }
  .btn.sm { padding: 10px 14px; }
  .chart-svg { overflow: hidden; }
  main { padding: 24px 0 48px; }
  .card { padding: 18px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .strip.showcase { columns: 2 130px; column-gap: 10px; }
  .strip.showcase a { margin-bottom: 10px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-tile { padding: 13px 14px 10px; }
  .stat-value { font-size: 27px; }
  .rb-key { gap: 6px 14px; font-size: 13.5px; }
  .todo .n { font-size: 22px; min-width: 28px; }
  .event { gap: 14px; }
  .event .when { flex-basis: 66px; }
  .memorial .portrait { width: min(200px, 56vw); }
  header.top .container { min-height: 56px; gap: 8px; }
  .brand { font-size: 14px; letter-spacing: .08em; }
  nav.nav a { padding: 7px 9px; font-size: 14px; }
}
@media print {
  header.top, footer.foot, .btn, .admin-nav, form { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
