/* =========================================================
   Provincial Grand Lodge of Midlothian — shared stylesheet
   One file for every page. Colours and fonts live in :root.
   ========================================================= */

:root {
  --green-950: #081d16;
  --green-900: #0d2c21;
  --green-800: #133a2c;
  --green-700: #1b4f3c;
  --green-600: #256a50;
  --green-100: #e3eee8;
  --gold: #b88a2e;
  --gold-light: #dcc07a;
  --gold-pale: #f4ead0;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #1b2420;
  --muted: #5a665f;
  --line: #e2ddd0;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 44, 33, .06), 0 8px 24px rgba(13, 44, 33, .08);
  --shadow-lg: 0 2px 4px rgba(13, 44, 33, .08), 0 18px 40px rgba(13, 44, 33, .14);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--green-950); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .75rem;
}

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--white { background: var(--paper); }
.section--green { background: var(--green-900); color: #e8efe9; }
.section--green h2, .section--green h3 { color: #fff; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-light); color: var(--green-950); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--green-700); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__badge {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--cream); padding: 4px; box-shadow: 0 0 0 2px var(--gold);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand__sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__toggle {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: #e7efe9; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.nav__link:hover, .nav__toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link[aria-current="page"] { color: var(--gold-light); }
.nav__toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }

.nav__item--has-menu { position: relative; }
.nav__menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: none;
}
.nav__item--has-menu.is-open .nav__menu { display: block; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__menu a:hover { background: var(--green-100); color: var(--green-900); }

.nav__social { display: inline-flex; padding: 8px; color: #e7efe9; border-radius: 6px; }
.nav__social:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__social svg { width: 22px; height: 22px; fill: currentColor; }

.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 6px; }
.menu-btn svg { width: 28px; height: 28px; stroke: currentColor; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 79px 0 0 0; background: var(--green-900);
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; width: 100%; text-align: left; }
  .nav__menu { position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; }
  .nav__menu a { color: #cfdcd4; }
  .nav__menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav__social { margin-top: 16px; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand__title { font-size: 1.1rem; }
  .brand__badge { width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--green-950); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,29,22,.92) 0%, rgba(8,29,22,.72) 45%, rgba(8,29,22,.25) 100%),
    linear-gradient(0deg, rgba(8,29,22,.6) 0%, rgba(8,29,22,0) 40%);
}
.hero__content { position: relative; z-index: 1; padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; color: #dde7e1; max-width: 34em; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { background: var(--green-900); color: #dde7e1; padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(220,192,122,.18); box-shadow: 0 0 0 40px rgba(220,192,122,.04), 0 0 0 80px rgba(220,192,122,.03);
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 42em; font-size: 1.1rem; margin: 0; }

/* ---------- This week strip ---------- */
.week-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.week-strip__inner { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.week-strip h2 { font-size: 1.5rem; margin: 0 0 4px; }
.week-strip__meta { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.meet {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
}
.meet:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.meet__date { flex: none; width: 50px; text-align: center; background: var(--green-800); color: #fff; border-radius: 6px; padding: 4px 0; line-height: 1.1; }
.meet__date b { display: block; font-size: 1.25rem; font-family: var(--font-display); }
.meet__date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.meet__crest { width: 36px; height: 36px; object-fit: contain; flex: none; }
.meet__name { font-weight: 600; line-height: 1.25; display: block; }
.meet__info { font-size: .88rem; color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--gold-pale); color: #7a5a14; margin-left: 4px; vertical-align: 1px; }
.empty-note { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .week-strip__inner { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.welcome__photo { position: relative; }
.welcome__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; }
.welcome__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.welcome blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; color: var(--green-900); }
.welcome blockquote p { margin-bottom: .8em; }
.welcome__sig { margin-top: 1.25rem; font-weight: 600; }
.welcome__sig span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__photo { max-width: 320px; }
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--gold-light); line-height: 1; margin-bottom: 8px; font-weight: 600; }
.stat span { font-size: .95rem; color: #c9d6ce; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__body .link-arrow { margin-top: auto; color: var(--green-700); }

/* News cards */
.news-card .card__body time { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.news-card .card__img { background: var(--green-100); }
.news-card .card__img--placeholder { display: grid; place-items: center; }
.news-card .card__img--placeholder img { width: 72px; opacity: .5; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:last-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; color: #fff; font-size: .9rem; background: linear-gradient(0deg, rgba(8,29,22,.8), transparent); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery figure:last-child { grid-column: span 2; }
}

/* ---------- Lodges page ---------- */
.finder { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); margin-top: -40px; position: relative; z-index: 2; }
.finder__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 800px) { .finder__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid #cfc8b8; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font: 600 .9rem var(--font-body); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #cfc8b8; background: var(--paper); color: var(--ink);
}
.chip:hover { border-color: var(--green-600); }
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.finder__results { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.finder__results h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--green-800); }
.disclaimer { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

.results-count { color: var(--muted); margin: 0; }

.lodge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.lodge-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lodge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-pale); }
.lodge-card__head { display: flex; gap: 14px; align-items: center; }
.lodge-card__crest { width: 64px; height: 64px; object-fit: contain; flex: none; }
.lodge-card__num { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lodge-card h3 { margin: 0; font-size: 1.35rem; }
.lodge-card__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.lodge-card__meta li { display: flex; gap: 8px; }
.lodge-card__meta svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--green-600); fill: none; stroke-width: 2; }
.lodge-card__next { font-size: .92rem; background: var(--green-100); color: var(--green-900); padding: 8px 12px; border-radius: var(--radius-sm); }
.lodge-card__next b { font-weight: 700; }
.lodge-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.icon-links { display: flex; gap: 6px; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--green-800); }
.icon-link:hover { background: var(--green-800); color: #fff; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Lodge dialog */
dialog.lodge-dialog {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--paper);
}
dialog.lodge-dialog::backdrop { background: rgba(8, 29, 22, .6); backdrop-filter: blur(2px); }
.dlg__head { background: var(--green-900); color: #fff; padding: 24px 56px 24px 24px; display: flex; gap: 16px; align-items: center; position: sticky; top: 0; z-index: 1; }
.dlg__head img { width: 72px; height: 72px; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 6px; flex: none; }
.dlg__head h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dlg__head p { margin: 0; color: var(--gold-light); font-size: .9rem; }
.dlg__close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.dlg__close:hover { background: rgba(255,255,255,.2); }
.dlg__body { padding: 24px; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 24px; }
.facts dt { font-weight: 700; color: var(--green-800); font-size: .9rem; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.dlg__actions .btn { font-size: .92rem; padding: .65em 1.1em; }
.history h3 { font-size: 1.35rem; border-top: 1px solid var(--line); padding-top: 20px; }
.history p { color: #37433d; }

/* ---------- Calendar page ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tab {
  font: 600 1rem var(--font-body); padding: 12px 18px; background: none; border: 0; cursor: pointer; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--green-800); }
.tab[aria-selected="true"] { color: var(--green-900); border-bottom-color: var(--gold); }
.cal-frame { background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-frame iframe { display: block; width: 100%; height: min(78vh, 820px); border: 0; }
.cal-note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b9c8bf; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe8e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.site-footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); padding: 4px; flex: none; }
.site-footer__brand p { margin: 0; }
.site-footer__motto { font-family: var(--font-display); font-style: italic; color: var(--gold-light); font-size: 1.1rem; margin-top: 6px !important; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Roll of Honour ---------- */
.honours-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin: 24px 0 16px; }
.honours-bar .field { min-width: min(260px, 100%); }
.honours-bar__filters { display: flex; gap: 12px; flex-wrap: wrap; }
.table-wrap { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--green-100); color: var(--green-900); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; position: sticky; top: 0; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
table.data th button:focus-visible { outline: 2px solid var(--gold); }
table.data th[aria-sort="ascending"] button::after { content: "▲"; font-size: .7em; }
table.data th[aria-sort="descending"] button::after { content: "▼"; font-size: .7em; }
table.data tbody tr:hover { background: #fbf8f0; }
table.data td.year { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--green-800); width: 90px; }
table.data td.lodge a { font-weight: 600; text-decoration: none; }
table.data tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.stat-card b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--green-800); line-height: 1; }
.stat-card span { color: var(--muted); font-size: .92rem; }
.bar { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.bar__fill { height: 10px; border-radius: 5px; background: var(--green-600); }
.bar__val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2ch; }

/* ---------- People (contacts) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.person { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.person img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); margin-bottom: 14px; }
.person__role { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.person h3 { font-size: 1.3rem; margin: 0 0 12px; }
.person__lines { list-style: none; padding: 0; margin: 0 0 16px; font-size: .95rem; color: var(--muted); display: grid; gap: 4px; }
.person__lines a { text-decoration: none; word-break: break-word; }
.person .btn { margin-top: auto; font-size: .9rem; padding: .6em 1.1em; }
.people-group { margin-bottom: 48px; }
.people-group > h2 { font-size: 1.7rem; margin-bottom: 20px; }

/* ---------- About / prose ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; color: #2e3a34; }
.prose .lead { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--green-900); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--green-800); line-height: 1.2; }
.timeline span { color: var(--muted); font-size: .96rem; }
.aside-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 100px; }
.aside-card h2 { font-size: 1.6rem; }
.honours-bar__filters .field { width: 240px; min-width: 0; }
@media (max-width: 600px) { .honours-bar__filters, .honours-bar__filters .field { width: 100%; } }
.person { padding: 24px 14px; }
.person__lines { font-size: .9rem; }
