/* ===== Old-portal look (think Yahoo! in 2005). Change these to re-theme. ===== */
:root {
  --ink: #111;
  --link: #0033cc;
  --link-hover: #0a1f6e;
  --red: #1c3f94;           /* main accent (navy) */
  --blue-head: #d3e4f6;     /* left card headers */
  --blue-body: #f4f8fd;
  --blue-line: #a8c4e6;
  --purple: #9366cc;        /* right card headers */
  --purple-body: #f3eefb;
  --purple-line: #b9a1e0;
  --gold-top: #ffe887;
  --gold-bot: #fbc62d;
  --gold-line: #b58d12;

  --font: "Inter", "Trebuchet MS", Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .strip-label::after, .notice-date::after, .tool h3::after { animation: none; background-position: 200% 0, 0 0; } html { scroll-behavior: auto; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { image-rendering: pixelated; }

/* ===== 1. Header: icons / logo / icons ===== */
.masthead {
  max-width: 1224px;
  margin: 0 auto;
  padding: 14px 12px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mast-side { display: flex; gap: 8px; }
.mast-side:first-child { justify-content: flex-start; }
.mast-side:last-child { justify-content: flex-end; }
.mast-side a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 74px;
  font-size: 11px;
  color: var(--link);
  text-decoration: none;
}
.mast-side a:hover, .mast-side a[aria-current] { text-decoration: underline; color: var(--link-hover); }
.mi { display: block; width: 54px; height: 54px; }
.mi svg { overflow: visible; }
.mast-side svg, .tool-icon svg { width: 100%; height: 100%; }

.logo {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  color: var(--red);
  text-shadow: 1px 1px 0 #0b2468, 2px 2px 0 rgba(0, 0, 0, 0.18);
}
.logo:hover { color: var(--red); }
.logo-top { display: block; font-size: 46px; letter-spacing: -0.01em; }
.logo-bot { display: block; font-size: 34px; color: #4a8fe8; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15); }
.logo-bot b { color: #1c3f94; }

/* ===== 2. Strip with the scrolling newest members (the "search bar" spot) ===== */
.strip {
  max-width: 1200px;
  margin: 2px auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #e3e5e9;
  border: 1px solid #b4b9c2;
}
/* "Just joined": every letter a different rainbow colour, outlined in black, with a shine on top (no box, no blinking) */
.strip-label, .notice-date, .tool h3 {
  flex: none;
  position: relative;
  padding: 0 4px;
  font-kerning: none;
  white-space: nowrap;
  font-family: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.strip-label b, .notice-date b, .tool h3 b {
  font-weight: 400; /* Impact is already heavy, so no extra bold */
  /* black outline around each letter */
  text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 -1px 0 #111, 0 1px 0 #111, -1px 0 0 #111, 1px 0 0 #111;
}
/* Shine: the same text again, drawn on top of the coloured letters as white light (clipped to the glyphs only) */
.strip-label::after, .notice-date::after, .tool h3::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  padding: 0 4px;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(105deg, transparent 32%, rgba(255, 232, 150, 0.7) 50%, transparent 68%),   /* the glint that sweeps across */
    linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);        /* gloss over the top half */
  background-size: 260% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 2.2s linear infinite; /* constant speed, restarts instantly: no waiting between sweeps */
}
@keyframes shine { from { background-position: 0% 0, 0 0; } to { background-position: 100% 0, 0 0; } }
.marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: scroll var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-set { display: inline-flex; flex: none; }
.mq-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mq-item .av { width: 14px; height: 14px; border: 1px solid #999; background: #fff; }
.mq-item b { color: var(--link); }
.mq-no { color: #5b6475; }
.mq-dot { flex: none; align-self: center; width: 6px; height: 6px; margin: 0 16px; border-radius: 50%; background: #8c96a5; } /* round dot between members */
.marquee-static { display: none; margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.marquee.is-empty .marquee-track { display: none; }
.marquee.is-empty .marquee-static { display: block; }
@keyframes scroll { to { transform: translateX(-50%); } }

.tagline { max-width: 1200px; margin: 0 auto 12px; padding: 0 12px; text-align: center; font-size: 13px; }
.tagline a { font-weight: 700; }

/* ===== Page layout ===== */
.page { max-width: 1224px; margin: 0 auto; padding: 0 12px 16px; }
/* 12-column grid: each card says how wide it is (s4, s5, s7, s8, s12), so rows can mix */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.s4 { grid-column: span 4; }
.s3 { grid-column: span 3; }
.s5 { grid-column: span 5; }
.s6 { grid-column: span 6; }
.s7 { grid-column: span 7; }
.s8 { grid-column: span 8; }
.s9 { grid-column: span 9; }
.s12 { grid-column: span 12; }
.half { grid-column: span 6; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Point to point: both halves end on the same line. The last card in each half takes the spare height. */
.half > .card:last-child { flex: 1; }
/* In the form card the spare height is shared out between its sections, so there is no empty block at the bottom */
.card-body.flush { display: flex; flex-direction: column; }
#wl-form-wrap { flex: 1; display: flex; flex-direction: column; }
#wl-form { flex: 1; display: flex; flex-direction: column; }
#wl-form > .part { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pair { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .card { flex: 1; }
.c-blue   { --head: #d3e4f6; --body: #f4f8fd; --line: #a8c4e6; --ht: #000; --tint: #d9e8ff; --dot: #1f6fd6; --btn: #2f7fe8; }
.c-orange { --head: #fbdcb8; --body: #fff8f0; --line: #eebb88; --ht: #000; --tint: #ffeaad; --dot: #e8710a; --btn: #e8710a; }
.c-yellow { --head: #fbeaa0; --body: #fffcec; --line: #e8d58a; --ht: #000; --tint: #fff3a8; --dot: #d9a400; --btn: #ffc400; --btn-ink: #111; }
.c-pink   { --head: #f8d3e3; --body: #fff6fa; --line: #e8b3c9; --ht: #000; --tint: #ffdce9; --dot: #e0437f; --btn: #e0437f; }
.c-green  { --head: #d4efd0; --body: #f5fbf4; --line: #a9d3a3; --ht: #000; --tint: #c9f7d8; --dot: #1f9a4d; --btn: #1f9a4d; }
.c-purple { --head: #e2d6f5; --body: #f8f5fd; --line: #c4b2e6; --ht: #000; --tint: #e8dcff; --dot: #7b52da; --btn: #7b52da; }
.card {
  display: flex;
  flex-direction: column;
  margin: 0;
  /* body = a lighter version of the header colour */
  background: color-mix(in srgb, var(--head, #d3e4f6) 20%, #fff);
  border: 1px solid var(--line, #a8c4e6);
}
.card.wide { max-width: 1200px; margin-inline: auto; }

/* ===== Cards: coloured header bar + body ===== */
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
  min-height: 26px;
  background: var(--head, #d3e4f6);
  color: var(--ht, #000);
  border-bottom: 1px solid var(--line, #a8c4e6);
}
.card-head h2 { margin: 0; font-size: 13px; font-weight: 700; color: inherit; }
.head-right { margin-left: auto; font-size: 11px; font-weight: 700; }
.card-body { flex: 1; padding: 8px 10px 10px; }

/* ===== Buttons: saturated 2005-portal style, so they stand out from the pastel cards ===== */
/* Main buttons use the saturated colour of their card (--btn); .btn-plain is the quiet secondary button. */
.btn, .signup {
  display: inline-block;
  font: 700 13px/1.2 var(--font);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
  text-align: center;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--btn, #2f7fe8) 82%, #fff) 0%, var(--btn, #2f7fe8) 100%);
  border: 1px solid color-mix(in srgb, var(--btn, #2f7fe8) 62%, #000);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.btn { margin: 2px; padding: 6px 16px; }
.signup { margin-left: auto; padding: 1px 10px; font-size: 12px; }
.btn:hover, .signup:hover { color: #fff; filter: brightness(1.1); }
.btn:active, .signup:active { filter: brightness(0.92); transform: translateY(1px); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
/* secondary: white with a grey outline */
.btn-plain { color: #222; text-shadow: none; background: linear-gradient(#fff, #eceff3); border-color: #8c96a5; box-shadow: none; }
.btn-plain:hover { color: #000; filter: none; background: #fff; border-color: #444; }

/* ===== 3. "Now reviving" link grid ===== */
.links4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 12px;
  font-size: 13px;
}
.links4 a { text-decoration: none; }
.links4 a:hover { text-decoration: underline; }
.links4 .all { font-weight: 700; }

/* ===== 4. Story ===== */
.placeholder {
  display: grid;
  place-items: center;
  color: #666;
  font-size: 12px;
  background: #e8eef7;
  border: 1px solid var(--blue-line);
}
.story { display: flex; flex-direction: column; padding-top: 16px; } /* room above the picture */
.story-img { border: 1px solid var(--line); width: 100%; flex: 1 1 0; height: 0; min-height: 160px; max-height: 280px; margin-bottom: 16px; object-fit: cover; display: block; }
.story h3 { margin: 0 0 4px; font-size: 16px; }
.story p { margin: 0 0 8px; }
.story p:last-child { margin-bottom: 0; }

/* ===== 5. Form ===== */
.form-lead { margin: 0 0 10px; }
/* Form compartments: each part is separated by a divider that runs the full width of the card */
.card-body.flush { padding: 0; }
.card-body .part, .card-body fieldset.part { margin: 0; padding: 16px 10px; border: 0; border-top: 1px solid var(--line, #a8c4e6); min-width: 0; }
.card-body .form-lead.part, .card-body .tools-lead.part { border-top: 0; }
.card-body .part.actions { border-top: 0; padding-top: 0; } /* no divider above the button */
.field-row > div:nth-child(n+3) { grid-column: 1 / -1; } /* handle/website and the wish field are full width */
.fields .field-row:first-child { margin-top: 0; }
.actions .error { margin: 0 0 8px; }
.actions .form-actions { margin-top: 0; }
.card-body.flush .success { padding: 16px 10px; }
form label { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 700; }
.hint { font-weight: 400; color: #666; }
input[type="email"], input[type="text"], input[type="search"], select {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font: 13px var(--font);
  color: #111;
  background: #fff;
  border: 1px solid #8c9bb3;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
input::placeholder { color: #8a93a3; }
input:hover, select:hover { border-color: #5d6f8f; }
/* custom dropdown arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
}
@media (pointer: coarse) { input[type="email"], input[type="text"], input[type="search"], select { font-size: 16px; } }
input:focus, select:focus { outline: 0; border-color: var(--btn, #2f7fe8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--btn, #2f7fe8) 35%, #fff); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.fineprint { font-size: 11px; color: #666; }
.error { margin: 10px 0 0; padding: 5px 8px; font-size: 12px; font-weight: 700; color: #900; background: #ffe3e0; border: 1px solid #d33; }
/* after signing up the form vanishes and this message is centred in the card */
.success { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; }
.success p { margin: 0; }
.success:focus { outline: none; } /* focus moves here for screen readers; no visible box */
.success-share { margin-top: 18px !important; }
.success-big { margin: 0 0 8px !important; font-size: 24px; font-weight: 700; color: #1c3f94; }

/* Avatar picker */
.avatar-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.avatar-pick legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 700; } /* floated so it sits inside the section, not on the divider */
.avatar-pick .avatar-wrap { clear: both; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 58px); justify-content: space-between; gap: 14px 8px; clear: both; } /* 15 faces on 2 rows (8 + 7) */
.av-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.av-opt > span { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid transparent; transition: transform 0.1s; }
.av-opt:hover > span { transform: scale(1.1); border-color: #8c9bb3; }
.av-opt input:checked + span { border-color: var(--btn, #2f7fe8); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--btn, #2f7fe8); }
.av-opt input:focus-visible + span { outline: 2px solid #111; outline-offset: 4px; }
.av { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Profile pictures are circles everywhere */
.teaser-faces span, .id-photo, .mq-item .av { border-radius: 50%; overflow: hidden; }
.teaser-faces span { width: 32px; height: 32px; margin-left: -8px; padding: 0; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #000; }
.id-photo { padding: 0; width: 108px; height: 108px; border: 4px solid var(--tone); background: var(--tone); }

/* ===== 7. Tools ===== */
.tools-lead { margin: 0 0 10px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line, #a8c4e6); } /* compartments: dividers run the full height of the card */
.tool { display: flex; flex-direction: column; padding: 14px 12px 12px; }
.tool + .tool { border-left: 1px solid var(--line, #a8c4e6); } /* no box: the text sits straight on the card colour */
.tool-img { display: block; width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border: 1px solid var(--line); }
.tool-img.placeholder { box-shadow: none; }
.tool-text { padding: 16px 2px 0; }
.num { margin: 0; font-size: 11px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: 0.06em; }
.tool h3 { display: inline-block; margin: 0 0 4px; padding: 0; } /* lettering is the shared rainbow style */
.tool h3::after { padding: 0; }
.tool p { margin: 0 0 4px; font-size: 12px; }
.chip {
  align-self: flex-start;
  margin: auto 0 0 !important;
  padding: 0 6px;
  font-size: 11px !important;
  font-weight: 700;
  color: #6b5200;
  background: #e3effc;
  border: 1px solid #8fb4e6;
}

/* ===== 6. Stats ===== */
.stats { text-align: center; }
.stat-big { margin: 2px 0 8px; }
.stat-big b { display: block; font-family: "Cascadia Mono", Consolas, Menlo, "DejaVu Sans Mono", monospace; font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: 0.04em; color: #111; }
.stat-big span { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #5a4a2a; }
.stats-btn { margin: 8px 0 0; }

/* ===== 8. Share card ===== */

/* ===== The ID card (share card + members page) ===== */
.id-card {
  --tone: #cfe3f8;
  position: relative;
  width: min(200px, 100%);
  padding: 0 0 8px;
  text-align: center;
  background: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.15s;
}
.id-card:hover { transform: rotate(0) translateY(-2px); }
.tone-0 { --tone: #cfe3f8; }
.tone-1 { --tone: #fbeaa0; }
.tone-2 { --tone: #f8d3e3; }
.tone-3 { --tone: #d4efd0; }
.tone-4 { --tone: #fbdcb8; }
.tone-5 { --tone: #e2d6f5; }
.id-hole { width: 40px; height: 8px; margin: 7px auto 0; background: #fff; border: 1px solid #777; border-radius: 4px; }
.id-top {
  margin-top: 7px;
  padding: 3px 6px;
  background: var(--tone);
  border-block: 1px solid #555;
  font: 700 12px/1.15 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.id-top small { display: block; font-size: 9px; letter-spacing: 0.2em; opacity: 0.75; }
.id-photo { width: 104px; height: 104px; margin: 10px auto 8px; padding: 8px; background: var(--tone); border: 1px solid #555; }
.id-name { margin: 0; padding: 0 8px; font: 700 18px/1.15 var(--font); overflow-wrap: anywhere; }
.id-no { margin: 2px 0 0; font: 700 12px var(--font); color: #1c3f94; letter-spacing: 0.06em; }
.id-meta { margin: 4px 8px 8px; font-size: 11px; color: #555; }
.id-bars {
  height: 20px;
  margin: 0 14px;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px);
}
.id-stamp { display: none; }
.is-sample .id-stamp {
  display: block;
  position: absolute;
  top: 46%;
  left: 50%;
  padding: 0 8px;
  transform: translate(-50%, -50%) rotate(-14deg);
  font: 700 24px var(--font);
  letter-spacing: 0.1em;
  color: var(--red);
  border: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.75);
}
.is-sample .id-photo .av { opacity: 0.55; filter: grayscale(0.6); }

/* ===== 11. Fun stuff ===== */
.construction {
  margin: 0 0 10px;
  padding: 3px;
  text-align: center;
  font: 700 11px var(--font);
  letter-spacing: 0.08em;
  background: repeating-linear-gradient(-45deg, #ffd84a 0 10px, #222 10px 20px);
}
.construction span { display: block; padding: 1px 6px; background: #ffd84a; }
.blinkies { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.b88 {
  width: 124px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  text-align: center;
  text-decoration: none;
  font: 700 11px/1.1 var(--font);
  color: #111;
  border: 2px outset rgba(255, 255, 255, 0.8);
  outline: 1px solid #333;
}
.b88-a { background: #9ccaf2; }
.b88-b { background: #cfe3f8; }
.b88-c { background: #7fb0ec; }
.b88-d { background: #9366cc; color: #fff; }
.b88-e { background: #2f5fd0; color: #fff; }
a.b88:hover { filter: brightness(1.08); color: #111; }
.gif-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gif-slot { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #8a88a0; }
.gif-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }

/* ===== 12. Notice board ===== */
.notice { padding: 8px 10px 10px; }
.notice-date { display: inline-block; margin: 0 0 4px; } /* lettering (font, size, colours, shine) is shared with the Just joined label above */
/* copying the coloured text picks up only one copy of the words */
[data-rainbow] > [aria-hidden="true"] { user-select: none; -webkit-user-select: none; }
.notice-text { margin: 0; }

/* ===== 13. Members teaser ===== */
.teaser-faces { display: flex; justify-content: center; padding-left: 8px; margin-bottom: 4px; }

/* ===== 9 & 10. About + social ===== */
.about-photo { width: 84px; height: 84px; float: left; margin: 0 10px 4px 0; object-fit: cover; font-size: 11px; }
.about p { margin: 0 0 6px; }
.about-name { font-weight: 700; font-size: 14px; }
.about::after { content: ""; display: block; clear: both; }
.card-body.social { display: flex; align-items: center; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } /* contact buttons sit side by side */
.social-list .btn { margin: 0; padding: 5px 10px; font-size: 12px; }

/* ===== Footer ===== */
.site-foot { max-width: 1224px; margin: 0 auto; padding: 8px 12px 24px; text-align: center; font-size: 11px; color: #666;  }
.site-foot p { margin: 0 0 3px; }

/* ===== Members page ===== */
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.member-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 14px;
  background: #f4f8fd;               /* slight blue body */
  border: 1px solid #a8c4e6;         /* border only, no shadow */
}
.member-pic { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #fff; }
.member-name { max-width: 100%; text-align: center; font-weight: 700; overflow-wrap: anywhere; }
.mem-note { margin: 0 0 12px; padding: 3px 8px; font-size: 11px; background: #e3effc; border: 1px solid #8fb4e6; }
.mem-empty { margin: 20px 0; text-align: center; font-weight: 700; }

/* ===== Tablet / phone: one column, in the order you'd read it ===== */
@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1; }
  .pair { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .masthead { grid-template-columns: 1fr 1fr; grid-template-areas: "logo logo" "left right"; padding-top: 10px; }
  .masthead .logo { grid-area: logo; }
  .masthead .mast-side:first-child { grid-area: left; }
  .masthead .mast-side:last-child { grid-area: right; }
  .mast-side a { width: 54px; }
  .mi { width: 42px; height: 42px; }
  .logo-top { font-size: 38px; }
  .logo-bot { font-size: 28px; }
  .strip { margin-inline: 12px; }
  .links4 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .tool + .tool { border-left: 0; border-top: 1px solid var(--line, #a8c4e6); }
  .avatar-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .head-right { display: none; }
  .signup { margin-left: auto; }
}

/* ===== People who prefer less motion ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { display: none; }
  .marquee-static { display: block; }
  .blink, .blink2 { animation: none; }
  .id-card { transition: none; }
}
