/* directory.css — the classmate directory, wearing the same clothes as the
   post-reunion page it hangs off (index.html). One accent, one rule colour, one
   font stack; nothing here is a design system.

   The old style.css belongs to the 2026 RSVP pages and is not shared. */
:root {
  --ink: #17202a;
  --muted: #5b6673;
  --rule: #e3e7ec;
  --accent: #7a1f2b;      /* Mountain Crest maroon */
  --bg: #fbfaf8;
  --panel: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --ink:#e8ebee; --muted:#9aa5b1; --rule:#2b3239; --bg:#14181c; --panel:#1a1f24; }
}
* { box-sizing: border-box; }

/* The HTML `hidden` attribute is only a default of display:none, and any class
   with a display of its own beats it. `.sharing` is display:flex, so every row
   this project hid with `hidden` — the share tick boxes on values we merely
   found, the married-name question, the replacement box — stayed on screen.
   Found by Mark on 17 Sept 2026, watching his own last name refuse to go away. */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }

.topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); background: var(--panel);
  padding: 12px 20px; position: sticky; top: 0; z-index: 10;
}
.topbar .home { font-weight: 600; text-decoration: none; color: inherit; }
.topbar .home span { color: var(--accent); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 14.5px; }

main { max-width: 980px; margin: 0 auto; padding: 26px 20px 80px; }
main.narrow { max-width: 680px; }
h1 { font-size: clamp(22px, 4vw, 32px); margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 22px; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 11px 20px; border-radius: 999px;
}
.btn.secondary { background: var(--panel); color: var(--ink); border-color: var(--rule); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 7px 14px; font-size: 14.5px; }

input[type=text], input[type=email], input[type=search], textarea, select {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule); border-radius: 10px; padding: 11px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.hint { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }

.search { display: flex; gap: 10px; margin: 0 0 8px; }
.count { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.person {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--panel);
}
.person:hover { border-color: var(--accent); }
.person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #e6e2db;
}
.person .name { padding: 9px 11px; font-size: 15px; line-height: 1.35; }
.person .name b { font-weight: 600; display: block; }
.person .tag { color: var(--muted); font-size: 13px; }
.person.memorial img { filter: grayscale(1); opacity: .88; }
/* "In memoriam" and "Registered" were the same muted 13px line, so on a card
   the difference a glance actually caught was the greyscale photo — and that
   says nothing when the portrait is black-and-white to begin with. Julie Mohr
   and Wendy Mortensen came from the junior yearbook, whose pages are not in
   colour (Mark, 20 Sept 2026: "colorize them so people don't think they
   passed"). Colourising those two was the right fix for them; this is the fix
   for the next one. The words now carry the distinction on their own, echoing
   the maroon rule the profile page's memorial note already uses. */
.person.memorial .tag { color: var(--accent); font-style: italic; opacity: .9; }
.person.memorial .tag::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 1px; margin: 0 7px 2px 0;
  background: currentColor; opacity: .65;
}

.panel {
  border: 1px solid var(--rule); border-radius: 14px; background: var(--panel);
  padding: 20px; margin: 0 0 20px;
}
.panel h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.profile { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.profile img { width: 190px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #e6e2db; }
.profile .about { flex: 1; min-width: 260px; }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.note { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); margin: 18px 0; }
.error { color: #9b1c1c; }
.ok { color: #1c6b3a; }
footer { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 18px; color: var(--muted); font-size: 14.5px; }
.spinner { color: var(--muted); padding: 40px 0; text-align: center; }

/* Memorials (19 Sept 2026): grave photos and our saved copy of the obituary,
   classmates only. The note's muted colour suits a label, not three paragraphs
   someone came here to read. */
.memorial-note dl.facts { margin: 10px 0; }
.memorial-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.memorial-photos figure { margin: 0; flex: 1 1 220px; max-width: 360px; }
.profile .memorial-photos img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain;
  display: block; border-radius: 6px; background: var(--rule); min-height: 120px; }
.memorial-photos figcaption { font-size: .9em; margin-top: 4px; }
details.obituary { margin: 12px 0; color: var(--ink); }
details.obituary summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.obituary p { line-height: 1.55; max-width: 38em; }
details.obituary p.hint { color: var(--muted); }

/* "We are still looking for this one" (19 Sept 2026): louder than a hint,
   because a classmate reading it is the only way we will ever find them. */
.note.searching { border-left-color: #9b5b1c; }
.note.searching strong { color: var(--ink); }
.note.searching p { margin: 8px 0; }

/* "What is this?" on the class list (19 Sept 2026): closed by default, because
   most people arrive knowing what they came for — but the first-time visitor,
   and the committee member being asked to test it, should not have to guess. */
details.explainer { margin: 0 0 20px; border: 1px solid var(--rule); border-radius: 10px;
  padding: 12px 16px; background: var(--panel); }
details.explainer summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.explainer p { margin: 12px 0; max-width: 42em; }
details.explainer p:last-child { margin-bottom: 4px; color: var(--muted); font-size: 14.5px; }

/* A tag — a name that leads to every photograph it is on. The photo browser has
   carried these since it was built; they moved here on 23 September 2026 when a
   classmate's own page grew one and rendered it as a bare underlined link,
   because the styling had only ever existed inside photos/index.html. */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.tags a, .tags span {
  font-size: 14px; text-decoration: none; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--panel); color: var(--accent);
}
.tags a:hover { border-color: var(--accent); }
.tags span { color: var(--muted); }

/* The tag box's suggestions (tagbox.js). These lived inside admin/index.html
   until 23 September 2026, so the first page to mount the shared box without
   them rendered a bulleted list with a full-size yearbook portrait in it. The
   markup is shared; the styling has to be too.

   The portrait is small on purpose. It is there to be recognised, not read —
   forty years on, a face settles "which Kim" faster than a name does, and it
   has to do that without pushing the next suggestion off the screen. */
ul.sugg {
  position: absolute; z-index: 5; left: 0; width: 100%; max-width: 360px;
  margin: 4px 0 0; padding: 0; list-style: none; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 11px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
ul.sugg li { list-style: none; }
ul.sugg button {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 6px 10px; line-height: 1.25;
}
ul.sugg button:hover, ul.sugg button:focus,
ul.sugg li.on button { background: var(--bg); }
ul.sugg li.on button { box-shadow: inset 3px 0 0 var(--accent); }
ul.sugg img {
  width: 34px; height: 44px; flex: none; object-fit: cover;
  border-radius: 4px; background: var(--rule);
}
ul.sugg .also { color: var(--muted); font-size: 13px; }

/* "Email me when…" (notify-prefs.js) — on /edit/ and /board/. */
.notify-pref { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.notify-pref input { margin-top: 6px; flex: none; }
