:root {
  --green: #1d3b2a;
  --green-2: #26503a;
  --gold: #c8a24a;
  --ink: #1c2420;
  --muted: #66706a;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e3ded2;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { font-size: 30px; margin: 26px 0 6px; }
a { color: var(--green-2); }
.site-header { background: var(--green); color: #fff; }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font-family: Georgia, serif; color: var(--gold); font-size: 17px;
}
.brand-text { font-family: Georgia, serif; font-size: 20px; }
.brand-text em { color: var(--gold); font-style: normal; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { color: #e9e4d8; text-decoration: none; font-size: 14.5px; }
.site-header nav a:hover { color: var(--gold); }
.site-header .who { color: var(--gold); font-size: 14.5px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.search { display: flex; gap: 10px; margin: 18px 0 12px; }
.search input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; background: var(--card);
}
button, .button {
  background: var(--green); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 18px; font-size: 15px; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { background: var(--green-2); }
.search .clear { align-self: center; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 20px; }
.letters a {
  padding: 4px 8px; border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--green-2);
}
.letters a:hover { background: #eee9db; }
.letters a.on { background: var(--green); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
}
.card:hover { border-color: var(--gold); box-shadow: 0 4px 18px rgba(29,59,42,.08); }
.card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin-bottom: 8px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--gold); font-family: Georgia, serif;
  font-size: 28px; margin-bottom: 8px;
}
.avatar.big { width: 220px; height: 220px; font-size: 64px; border-radius: 18px; }
.card-name { font-family: Georgia, serif; font-size: 17.5px; }
.card-sub { color: var(--muted); font-size: 13.5px; }
.card.inline { flex-direction: row; align-items: center; gap: 14px; }
.card.inline img, .card.inline .avatar { width: 52px; height: 52px; font-size: 18px; margin: 0; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 26px 0; }
.empty { color: var(--muted); }
.crumb { margin-top: 20px; }
.profile { display: flex; gap: 34px; margin: 14px 0 40px; flex-wrap: wrap; }
.profile-photo img { width: 220px; height: 220px; object-fit: cover; border-radius: 18px; }
.profile-main { flex: 1; min-width: 280px; }
.profile-main h1 { margin-top: 0; }
.org { color: var(--muted); margin-top: -2px; }
dl { display: grid; grid-template-columns: 130px 1fr; row-gap: 9px; margin: 20px 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.spouse { margin-top: 26px; }
.login-card {
  max-width: 440px; margin: 56px auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px;
}
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.login-card input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.stat .num { font-family: Georgia, serif; font-size: 30px; color: var(--green); }
.stat span:last-child { color: var(--muted); font-size: 13.5px; }
.foot { color: var(--muted); font-size: 13px; padding: 26px 20px 34px; }
@media (max-width: 640px) {
  .header-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  dl { grid-template-columns: 1fr; row-gap: 2px; }
  dd { margin-bottom: 8px; }
}

/* v2 additions (CGORG-5 fixes) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.login-card label { display: block; font-weight: 600; margin-bottom: 6px; text-align: left; }
.login-card .help { color: var(--muted); font-size: 14px; margin-top: 16px; }
.choose-btn { display: block; width: 100%; margin: 8px 0; padding: 12px; font-size: 16px; }
.card-contact { font-size: 12.5px; color: var(--green-2); letter-spacing: .02em; }
.card-contact.none { color: var(--muted); font-style: italic; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7a5c14; background: #f3e5bb; border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.empty-state { border: 1px dashed var(--gold); background: #fdf6e0; border-radius: 6px; padding: 12px 16px; margin: 14px 0; }
.empty-state p { margin: 0; }
