/* ==========================================================================
   REX SPORT — design system
   Source: "Rex Sport Website Design Direction" (Saleoution, 28 Oct 2026)
   This same file ships in the WP child theme (rexsport-child/assets/rex.css).
   In Elementor: Site Settings → Global Colors / Fonts mirror these tokens.
   ========================================================================== */

:root {
  /* Colours */
  --rex-forest: #10361F;  /* primary · headings, buttons, footer */
  --rex-green:  #2F6B48;  /* links and secondary text */
  --rex-gold:   #E0A33B;  /* accent · highlights, map pins */
  --rex-sage:   #7FA88E;  /* map and quiet details */
  --rex-paper:  #FBFAF7;  /* page background */
  --rex-stone:  #F0EEE5;  /* highlighted sections */
  --rex-ink:    #45534A;  /* body text */
  --rex-line:   #E4E2DA;  /* dividers and borders */
  --rex-white:  #FFFFFF;
  --rex-photo:  #E6E8E2;  /* image placeholder */
  --rex-map-bg: #0E2E1B;
  --rex-map-land: #1F5233;

  /* Type */
  --rex-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --rex-sans:  "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --rex-max: 1180px;
  --rex-gutter: 24px;
  --rex-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rex, .rex-scope {
  margin: 0;
  background: var(--rex-paper);
  color: var(--rex-ink);
  font-family: var(--rex-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.rex img { max-width: 100%; display: block; }
.rex a { color: var(--rex-green); text-decoration: none; }
.rex a:hover { color: var(--rex-forest); }

/* ---------- Typography ---------- */
.rex h1, .rex h2, .rex h3, .rex h4, .rex .serif {
  font-family: var(--rex-serif);
  color: var(--rex-forest);
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
.rex h1 { font-size: clamp(40px, 5.6vw, 68px); }
.rex h2 { font-size: clamp(30px, 3.6vw, 42px); }
.rex h3 { font-size: 24px; font-weight: 400; }
.rex h4 { font-size: 20px; font-weight: 400; }
.rex p { margin: 0 0 1em; }
.rex .lead { font-size: 17px; max-width: 620px; }

.eyebrow {
  display: block;
  font-family: var(--rex-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7D8780;
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--rex-gold); }
.eyebrow.sage { color: var(--rex-sage); }
.muted { color: #7D8780; font-size: 13px; }
.ph { color: #8A938C; } /* [placeholder] text */

/* ---------- Layout ---------- */
.wrap { max-width: var(--rex-max); margin: 0 auto; padding: 0 var(--rex-gutter); }
.section { padding: var(--rex-section) 0; }
.section.tight { padding: 56px 0; }
.section.stone { background: var(--rex-stone); }
.section.forest { background: var(--rex-forest); color: #C9D6CD; }
.section.forest h2, .section.forest h3 { color: #F3F1EA; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.link-under { font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.forest .link-under { color: #DCE6DF; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --rex-section: 64px; --rex-gutter: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Header ---------- */
.rex-header { background: var(--rex-paper); border-bottom: 1px solid var(--rex-line); position: sticky; top: 0; z-index: 50; }
.rex-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.rex-logo { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; }
.rex-logo .dots { display: flex; gap: 4px; }
.rex-logo .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rex-gold); }
.rex-logo .word { font-family: var(--rex-sans); font-size: 17px; letter-spacing: 0.12em; color: var(--rex-forest); }
.rex-logo .word b { font-weight: 700; }
.rex-logo .word span { font-weight: 400; color: var(--rex-green); }
.footer .rex-logo .word, .footer .rex-logo .word span { color: #F3F1EA; }
.rex-nav { display: flex; gap: 28px; }
.rex-nav a { color: var(--rex-ink); font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.rex-nav a:hover { color: var(--rex-forest); }
.rex-nav a.active { color: var(--rex-forest); font-weight: 500; border-bottom-color: var(--rex-gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rex-line); padding: 8px 12px; font: inherit; color: var(--rex-forest); cursor: pointer; }
@media (max-width: 960px) {
  .rex-nav, .rex-header .btn { display: none; }
  .nav-toggle { display: block; }
  .rex-header.open .rex-nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0; background: var(--rex-paper); border-bottom: 1px solid var(--rex-line); padding: 8px var(--rex-gutter) 16px; }
  .rex-header.open .rex-nav a { padding: 12px 0; border-bottom: 1px solid var(--rex-line); }
}

/* ---------- Buttons & filters ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--rex-sans); font-size: 14px; font-weight: 500;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  text-decoration: none; line-height: 1.2;
}
.rex .btn-primary, .btn-primary { background: var(--rex-forest); color: #fff; }
.rex .btn-primary:hover { background: var(--rex-green); color: #fff; }
.rex .btn-secondary, .btn-secondary { background: transparent; color: var(--rex-forest); border-color: #CFCDC4; }
.rex .btn-secondary:hover { border-color: var(--rex-forest); color: var(--rex-forest); }
.rex .btn-outline { background: transparent; color: var(--rex-forest); border-color: var(--rex-forest); padding: 10px 16px; font-size: 13px; }
.rex .btn-outline:hover { background: var(--rex-forest); color: #fff; }
.rex .btn-accent, .btn-accent { background: var(--rex-gold); color: var(--rex-forest); }
.rex .btn-accent:hover { background: #ECB656; color: var(--rex-forest); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: 999px; border: 1px solid #CFCDC4;
  background: transparent; color: var(--rex-forest); cursor: pointer; font-family: var(--rex-sans);
}
.chip.active, .chip[aria-pressed="true"] { background: var(--rex-forest); border-color: var(--rex-forest); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 6px 14px; border: 1px solid var(--rex-line); border-radius: 999px; color: var(--rex-forest); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #7D8780; font-weight: 500; }
.rex input[type=text], .rex input[type=email], .rex input[type=search], .rex select, .rex textarea {
  width: 100%; font-family: var(--rex-sans); font-size: 14px; color: var(--rex-forest);
  background: #fff; border: 1px solid #D8D6CE; border-radius: 0; padding: 12px 14px; outline: none;
}
.rex textarea { min-height: 120px; resize: vertical; }
.rex select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rex-forest) 50%), linear-gradient(135deg, var(--rex-forest) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.rex input:focus, .rex select:focus, .rex textarea:focus { border-color: var(--rex-green); box-shadow: 0 0 0 3px rgba(47,107,72,.12); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Building blocks ---------- */
/* Section card / content teaser — rule on top */
.teaser { border-top: 2px solid var(--rex-forest); padding-top: 20px; }
.teaser h3 { margin-bottom: 10px; }
.teaser p { font-size: 14px; margin-bottom: 8px; }
.teaser .meta { font-size: 12px; color: #8A938C; }

/* Stone panel card */
.panel { background: var(--rex-stone); padding: 36px; }
.panel .more { font-size: 13px; font-weight: 500; color: var(--rex-green); }

/* Photo placeholder */
.photo { background: var(--rex-photo); position: relative; min-height: 160px; }
.photo::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Stat block */
.stats { display: flex; flex-direction: column; }
.stat { border-top: 1px solid var(--rex-line); padding: 18px 0; }
.stat:first-child { border-top: 2px solid var(--rex-forest); }
.stat .num { font-family: var(--rex-serif); font-size: 40px; font-weight: 300; color: var(--rex-forest); line-height: 1; }
.stat .lbl { font-size: 12px; color: #7D8780; margin-top: 6px; }

/* Member card */
.member-card { background: #fff; border: 1px solid var(--rex-line); display: flex; flex-direction: column; color: inherit; transition: box-shadow .2s, transform .2s; }
.member-card:hover { box-shadow: 0 12px 30px -18px rgba(16,54,31,.35); transform: translateY(-2px); }
.member-card .photo { aspect-ratio: 2 / 1; min-height: 0; }
.member-card .body { padding: 22px 20px; }
.member-card .country { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; display: flex; align-items: center; gap: 8px; }
.member-card .country::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rex-gold); }
.member-card h3 { font-size: 22px; margin: 6px 0 4px; }
.member-card .firm { font-size: 13px; }
.member-card .extra { border-top: 1px solid var(--rex-line); margin-top: 14px; padding-top: 12px; font-size: 12px; }
.member-card .extra div + div { color: #8A938C; }

/* Event row */
.event-list { border-top: 2px solid var(--rex-forest); }
.event-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rex-line); align-items: start; }
.event-row .date .d { font-family: var(--rex-serif); font-size: 32px; font-weight: 300; color: var(--rex-forest); line-height: 1; }
.event-row .date .m { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; }
.event-row .type { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--rex-gold); font-weight: 500; }
.event-row h3 { font-size: 22px; margin: 4px 0 6px; }
.event-row .where { font-size: 13px; }
.event-row .act { text-align: right; }
.event-row .price { font-size: 11px; color: #8A938C; margin-top: 8px; }
@media (max-width: 640px) { .event-row { grid-template-columns: 64px 1fr; } .event-row .act { grid-column: 2; text-align: left; } }

/* Year list (history / milestones) */
.year-list { border-top: 2px solid var(--rex-forest); }
.year-row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rex-line); }
.year-row .y { font-family: var(--rex-serif); font-size: 26px; font-weight: 300; color: var(--rex-forest); }
.year-row h4 { margin-bottom: 4px; }
.year-row p { font-size: 13px; margin: 0; }
.year-list.small { border-top: 1px solid var(--rex-line); }
.year-list.small .year-row { padding: 14px 0; grid-template-columns: 80px 1fr; align-items: baseline; }
.year-list.small .y { font-size: 20px; }

/* Publication row */
.pub-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rex-line); }
.pub-row h4 { margin-bottom: 4px; }
.pub-row .meta { font-size: 12px; color: #8A938C; }
.pub-row .read { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Person (board) */
.person .photo { aspect-ratio: 5 / 4; min-height: 0; }
.person h4 { margin-top: 14px; }
.person .role { font-size: 12px; color: #8A938C; }

/* CTA band */
.cta-band { background: var(--rex-forest); color: #C9D6CD; padding: 48px 52px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { color: #F3F1EA; font-size: 32px; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 14px; }
@media (max-width: 640px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* Newsletter band */
.news-band { background: var(--rex-stone); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.news-band form { display: flex; gap: 8px; }
.news-band form input { flex: 1; }
@media (max-width: 760px) { .news-band { grid-template-columns: 1fr; padding: 28px 20px; } }

/* Coordinator feature */
.feature { background: var(--rex-stone); padding: 36px; display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; }
.feature .photo { aspect-ratio: 1; min-height: 0; }
@media (max-width: 640px) { .feature { grid-template-columns: 1fr; } .feature .photo { max-width: 160px; } }

/* Split hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 32px; }
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { max-width: 760px; margin-bottom: 20px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Two column with sidebar */
.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } }
.aside-form { background: var(--rex-stone); padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* Split image + text */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.split .photo { aspect-ratio: 8 / 9; min-height: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.rex-map { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.rex-map .canvas { background: var(--rex-map-bg); min-height: 340px; position: relative; overflow: hidden; }
.rex-map svg { width: 100%; height: 100%; display: block; }
.rex-map .land { fill: var(--rex-map-land); stroke: var(--rex-map-bg); stroke-width: .5; transition: fill .15s; }
.rex-map .land.has { fill: #2A6A43; cursor: pointer; }
.rex-map .land.has:hover, .rex-map .land.sel { fill: #3B8257; }
.rex-map .pin { fill: var(--rex-sage); stroke: var(--rex-map-bg); stroke-width: 1.5; cursor: pointer; transition: r .15s; }
.rex-map .pin.sel { fill: var(--rex-gold); }
.rex-map .halo { fill: var(--rex-gold); opacity: .25; pointer-events: none; }
.rex-map .card { background: var(--rex-stone); padding: 26px; display: flex; flex-direction: column; color: var(--rex-ink); }
.rex-map .card h3, .section.forest .rex-map .card h3 { font-size: 26px; margin: 4px 0 2px; color: var(--rex-forest); }
.rex-map .card .firm { font-size: 12px; }
.rex-map .card hr { border: 0; border-top: 1px solid var(--rex-line); margin: 18px 0; width: 100%; }
.rex-map .card .k { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; }
.rex-map .card .v { font-size: 12px; margin-bottom: 10px; }
.rex-map .card .btn { margin-top: auto; width: 100%; }
.rex-map .card .pager { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 12px; }
.rex-map .card .pager button { background: none; border: 0; color: var(--rex-green); cursor: pointer; font: inherit; padding: 4px; }
.rex-map .card .pager button:disabled { color: #B7BDB8; cursor: default; }
@media (max-width: 860px) { .rex-map { grid-template-columns: 1fr; } .rex-map .canvas { min-height: 220px; } }

/* ---------- Directory ---------- */
.dir-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-top: 32px; }
.dir-count { font-size: 12px; color: #8A938C; margin-top: 16px; }
.dir-empty { padding: 48px; text-align: center; background: var(--rex-stone); grid-column: 1 / -1; }
@media (max-width: 860px) { .dir-filters { grid-template-columns: 1fr 1fr; } .dir-filters .field:first-child { grid-column: 1 / -1; } }

/* Profile */
.profile { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--rex-line); }
.profile .photo { min-height: 380px; }
.profile .body { padding: 44px 40px; }
.profile h1 { font-size: 44px; margin: 8px 0 12px; }
.profile .chips { margin: 18px 0; }
.profile .kv { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.profile .kv .k { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .photo { min-height: 260px; } .profile .body { padding: 28px 20px; } }

/* Contact info row */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .info-row { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--rex-line); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-card h3 { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--rex-forest); color: #A9BCAF; padding: 56px 0; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer .addr { margin-top: 14px; line-height: 1.8; font-size: 12px; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .cols a { display: block; color: #C9D6CD; font-size: 12px; line-height: 2.1; }
.footer .cols a:hover { color: #fff; }

/* Legal text pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 28px; margin: 40px 0 12px; }

/* Utility */
.mt-0 { margin-top: 0 } .mt-8 { margin-top: 8px } .mt-16 { margin-top: 16px } .mt-24 { margin-top: 24px } .mt-40 { margin-top: 40px } .mt-64 { margin-top: 64px }
.mb-0 { margin-bottom: 0 } .mb-24 { margin-bottom: 24px }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   v2 (8 Nov 2026) — real content: full-bleed hero, intro + video, longform,
   member photos, Anna page. Hero image: assets/img/hero-desktop.jpg / hero-mobile.jpg
   ========================================================================== */

/* Full-bleed hero with typography */
.hero-full { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #F3F1EA; background: var(--rex-forest); overflow: hidden; }
.hero-full picture, .hero-full picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-full::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6,9,8,.92) 0%, rgba(6,9,8,.78) 34%, rgba(6,9,8,.15) 68%, rgba(6,9,8,0) 100%),
  linear-gradient(0deg, rgba(6,9,8,.65) 0%, rgba(6,9,8,0) 40%); }
.hero-full .wrap { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 96px; }
.hero-full .inner { max-width: 640px; }
.rex .hero-full h1 { color: #F8F6EF; font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; margin-bottom: 28px; }
.rex .hero-full h1 em { font-style: italic; color: var(--rex-gold); font-weight: 300; }
.hero-full .rule { width: 72px; height: 3px; background: var(--rex-gold); margin-bottom: 22px; }
.hero-full .eyebrow { color: #C9D6CD; }
.hero-full .btn-secondary { color: #F3F1EA; border-color: rgba(243,241,234,.45); }
.rex .hero-full .btn-secondary:hover { color: #fff; border-color: #fff; }
.hero-full .scroll-cue { position: absolute; right: 32px; bottom: 32px; z-index: 1; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #C9D6CD; writing-mode: vertical-rl; }
@media (max-width: 760px) {
  .hero-full { min-height: 92svh; }
  .hero-full picture img { object-position: 50% 30%; }
  .hero-full::after { background: linear-gradient(0deg, rgba(6,9,8,.96) 0%, rgba(6,9,8,.85) 42%, rgba(6,9,8,.15) 75%, rgba(6,9,8,.35) 100%); }
  .hero-full .wrap { padding-bottom: 48px; }
  .hero-full .scroll-cue { display: none; }
  .hero-full .btn-row .btn { flex: 1 1 100%; }
}
/* transparent header over hero */
.rex-header.over { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(243,241,234,.14); }
.rex-header.over .rex-nav a, .rex-header.over .word span, .rex-header.over .word { color: #F3F1EA; }
.rex-header.over .rex-nav a.active { color: #fff; }
.rex-header.over .btn-outline { color: #F3F1EA; border-color: rgba(243,241,234,.6); }
.rex .rex-header.over .btn-outline:hover { background: var(--rex-gold); border-color: var(--rex-gold); color: var(--rex-forest); }
.rex-header.over .nav-toggle { color: #F3F1EA; border-color: rgba(243,241,234,.4); }
.rex-header.over.open { background: var(--rex-forest); }
.rex-header.over.open .rex-nav { background: var(--rex-forest); border-color: rgba(243,241,234,.14); }
.rex-header.over.open .rex-nav a { border-color: rgba(243,241,234,.14); }

/* Intro + video (replaces the stats column) */
.intro-video { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }
.intro-video .lead-xl { font-family: var(--rex-serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--rex-forest); margin: 0 0 28px; }
.video-frame { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; background: var(--rex-forest); box-shadow: 0 40px 80px -40px rgba(16,54,31,.55); outline: 1px solid rgba(224,163,59,.35); outline-offset: 10px; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .sound { position: absolute; right: 12px; bottom: 12px; background: rgba(16,54,31,.75); color: #F3F1EA; border: 1px solid rgba(243,241,234,.35); font: 500 12px var(--rex-sans); padding: 8px 12px; cursor: pointer; }
@media (max-width: 860px) { .intro-video { grid-template-columns: 1fr; gap: 48px; } .video-frame { width: min(320px, 86%); } }

/* Feature card with image (education card on Home) */
.feature-wide { display: grid; grid-template-columns: 1fr 1fr; background: var(--rex-stone); }
.feature-wide .media { min-height: 360px; background-size: cover; background-position: center; }
.feature-wide .txt { padding: 56px; }
.feature-wide h2 { margin-bottom: 16px; }
@media (max-width: 860px) { .feature-wide { grid-template-columns: 1fr; } .feature-wide .media { min-height: 220px; } .feature-wide .txt { padding: 32px 24px; } }

/* Longform narrative (About) */
.longform { max-width: 700px; }
.longform p { font-size: 18px; line-height: 1.75; margin-bottom: 1.1em; }
.longform p.drop::first-letter { font-family: var(--rex-serif); float: left; font-size: 72px; line-height: .9; padding: 6px 10px 0 0; color: var(--rex-gold); }
.pullquote { font-family: var(--rex-serif); font-weight: 300; font-style: italic; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; color: var(--rex-forest); border-left: 3px solid var(--rex-gold); padding-left: 28px; margin: 48px 0; max-width: 760px; }
.memoriam { border-top: 1px solid var(--rex-line); margin-top: 32px; padding-top: 24px; font-size: 16px; }

/* Member photos */
.photo.portrait { aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; }
.member-card .photo.portrait { aspect-ratio: 4 / 4.2; }
.photo img { object-position: 50% 22%; }
.photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--rex-serif); font-weight: 300; font-size: 64px; color: var(--rex-sage); background: linear-gradient(160deg, #E9ECE5, #DDE3DB); }
.member-card .country b { color: var(--rex-gold); font-weight: 500; }
.person .photo { overflow: hidden; }
.rex-map .card .who { display: flex; gap: 14px; align-items: center; }
.rex-map .card .who img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; flex: none; }

/* Profile v2 */
.profile .contact-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.profile .contact-list a { font-size: 13px; border: 1px solid var(--rex-line); padding: 7px 14px; color: var(--rex-forest); }
.profile .contact-list a:hover { border-color: var(--rex-forest); }
.profile .meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--rex-line); border-bottom: 1px solid var(--rex-line); padding: 18px 0; margin: 22px 0; font-size: 14px; }
.profile .meta-grid .k { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8A938C; margin-bottom: 4px; }
.profile .bio { font-size: 16px; line-height: 1.75; }
@media (max-width: 760px) { .profile .meta-grid { grid-template-columns: 1fr; } }

/* Anna page */
.person-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.person-hero .photo { aspect-ratio: 4 / 5; min-height: 0; }
.person-hero .standfirst { font-family: var(--rex-serif); font-weight: 300; font-size: 24px; line-height: 1.4; color: var(--rex-forest); }
.cv-block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--rex-line); }
.cv-block h3 { font-size: 26px; font-weight: 300; }
.cv-block p { font-size: 16px; line-height: 1.75; }
@media (max-width: 860px) { .person-hero, .cv-block { grid-template-columns: 1fr; gap: 24px; } }

/* Teaching institutions list */
.inst-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.inst-list span { border: 1px solid var(--rex-line); background: #fff; padding: 10px 16px; font-size: 14px; color: var(--rex-forest); }

/* WP admin bar avatar has class "photo" — keep it out of the photo-frame styles */
#wpadminbar img.photo { position: static; min-height: 0; background: none; display: inline-block; }

/* ---------- WordPress / Elementor integration (v1.2) ---------- */
/* Elementor sets .elementor img { height:auto } — keep our cover-fit frames */
body.rex .photo img, body.rex .hero-full picture img { height: 100%; max-width: none; }
body.rex .rex-map .card .who img { height: 64px; }
/* Layout blocks written by Tools → REX Pages: one container + text editor per section */
.e-con.rex-block { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; padding: 0; }
.rex-block .elementor-widget-text-editor { color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; }
.rex-block .elementor-widget-text-editor > .elementor-widget-container > p:empty { display: none; }
.elementor-page .site-main { max-width: none; padding: 0; }
/* Contact form messages */
.form-note { padding: 12px 16px; font-size: 14px; border-left: 3px solid var(--rex-green); background: #EEF4EF; color: var(--rex-forest); }
.form-note.err { border-color: #B4472F; background: #FBEDEA; color: #7A2A1A; }
.form-card { position: relative; }

/* Logged-in admin bar: push the transparent header below it */
.admin-bar .rex-header.over { top: 32px; }
@media (max-width: 782px) { .admin-bar .rex-header.over { top: 46px; } }

/* Map v1.3: zoom controls, taller canvas */
.rex-map .canvas { min-height: 420px; cursor: grab; touch-action: none; }
.rex-map .canvas:active { cursor: grabbing; }
.rex-map .map-ctrl { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.rex-map .map-ctrl button { background: rgba(243,241,234,.92); color: var(--rex-forest); border: 0; font: 500 12px var(--rex-sans); padding: 8px 12px; min-width: 34px; cursor: pointer; }
.rex-map .map-ctrl button:hover { background: var(--rex-gold); }
.rex-map .land { stroke-width: .6; }
@media (max-width: 860px) { .rex-map .canvas { min-height: 300px; } }

/* Header v1.2.3 — sticky over the hero + readable over bright photos */
.rex-header.over { position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(6,9,8,.82) 0%, rgba(6,9,8,.45) 65%, rgba(6,9,8,0) 100%);
  border-bottom-color: transparent; transition: background .3s, box-shadow .3s, border-color .3s; }
.rex-header.over .rex-nav a, .rex-header.over .rex-logo, .rex-header.over .btn-outline { text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.rex-header.over.scrolled { background: rgba(16,54,31,.97); border-bottom-color: rgba(243,241,234,.12); box-shadow: 0 8px 30px -18px rgba(0,0,0,.6); }
.rex-header.over.scrolled .rex-nav a, .rex-header.over.scrolled .rex-logo, .rex-header.over.scrolled .btn-outline { text-shadow: none; }
@supports (backdrop-filter: blur(8px)) { .rex-header.over.scrolled { background: rgba(16,54,31,.9); backdrop-filter: blur(8px); } }
/* extra darkening at the very top of the hero, under the header */
.hero-full::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,9,8,.55), rgba(6,9,8,0)); }
.hero-full .wrap, .hero-full .scroll-cue { z-index: 2; }
/* sticky header on inner pages: keep it above content */
.rex-header { z-index: 100; }

/* ==========================================================================
   v1.3 — Native Elementor widgets (Tools → REX Pages). Classes set on widgets/containers:
   rex-section · rex-dark · rex-eyebrow(.gold) · rex-h · rex-text · rex-lead · rex-lead-xl
   rex-btn(-primary|-secondary|-accent|-light) · rex-photo(-portrait|-square|-wide|-tall)
   rex-teaser · rex-person · rex-pub(s) · rex-cv · rex-longform · rex-pullquote · rex-meta
   ========================================================================== */
body.rex .elementor-widget-heading .elementor-heading-title { font-family: var(--rex-serif); font-weight: 300; color: var(--rex-forest); line-height: 1.12; letter-spacing: -0.01em; }
body.rex .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(40px, 5.6vw, 68px); }
body.rex .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(30px, 3.6vw, 42px); }
body.rex .elementor-widget-heading h3.elementor-heading-title { font-size: 24px; font-weight: 400; }
body.rex .elementor-widget-heading h4.elementor-heading-title { font-size: 20px; font-weight: 400; }
body.rex .elementor-widget-heading h4.elementor-heading-title a { color: inherit; }
body.rex .rex-page-title .elementor-heading-title { max-width: 820px; }
body.rex .rex-h-lg .elementor-heading-title { font-size: 28px; font-weight: 300; }
body.rex .rex-eyebrow .elementor-heading-title { font-family: var(--rex-sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #7D8780; line-height: 1.5; }
body.rex .rex-eyebrow.gold .elementor-heading-title { color: var(--rex-gold); }
body.rex .rex-lead-xl .elementor-heading-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; }
body.rex .rex-text, body.rex .rex-text p { font-family: var(--rex-sans); color: var(--rex-ink); font-size: 16px; line-height: 1.7; }
body.rex .rex-text p { margin: 0 0 1em; }
body.rex .rex-text p:last-child { margin-bottom: 0; }
body.rex .rex-lead p { font-size: 17px; max-width: 640px; }
body.rex .rex-longform p { font-size: 18px; line-height: 1.75; max-width: 700px; }
body.rex .rex-memoriam { border-top: 1px solid var(--rex-line); padding-top: 22px; }
body.rex .rex-memoriam p { font-size: 16px; }
body.rex .rex-standfirst p { font-family: var(--rex-serif); font-weight: 300; font-size: 24px; line-height: 1.4; color: var(--rex-forest); }
body.rex .rex-meta p, body.rex .rex-small p { font-size: 13px; color: #8A938C; }
body.rex .rex-small p { color: var(--rex-ink); }
body.rex .rex-pullquote .elementor-heading-title { font-style: italic; font-size: clamp(26px, 3vw, 38px); border-left: 3px solid var(--rex-gold); padding-left: 28px; margin: 24px 0; }
body.rex .rex-rule .rule { width: 72px; height: 3px; background: var(--rex-gold); }
body.rex .rex-link a.link-under { font-size: 13px; color: var(--rex-green); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Dark sections (forest background set on the container) */
body.rex .rex-dark .elementor-heading-title { color: #F3F1EA; }
body.rex .rex-dark .rex-eyebrow:not(.gold) .elementor-heading-title { color: #C9D6CD; }
body.rex .rex-dark .rex-text, body.rex .rex-dark .rex-text p { color: #C9D6CD; }
body.rex .rex-dark .rex-link a.link-under { color: #DCE6DF; }
body.rex .rex-dark .rex-map .card .elementor-heading-title, body.rex .rex-dark .rex-map .card h3 { color: var(--rex-forest); }

/* Buttons (Elementor Button widget) */
body.rex .rex-btn .elementor-button { font-family: var(--rex-sans); font-size: 14px; font-weight: 500; line-height: 1.2; padding: 13px 24px; border-radius: 0; border: 1px solid transparent; background: var(--rex-forest); color: #fff; fill: #fff; transition: background .15s, color .15s, border-color .15s; }
body.rex .rex-btn .elementor-button:hover { background: var(--rex-green); color: #fff; }
body.rex .rex-btn-secondary .elementor-button { background: transparent; color: var(--rex-forest); border-color: #CFCDC4; }
body.rex .rex-btn-secondary .elementor-button:hover { background: transparent; color: var(--rex-forest); border-color: var(--rex-forest); }
body.rex .rex-btn-accent .elementor-button { background: var(--rex-gold); color: var(--rex-forest); }
body.rex .rex-btn-accent .elementor-button:hover { background: #ECB656; color: var(--rex-forest); }
body.rex .rex-btn-light .elementor-button { background: transparent; color: #F3F1EA; border-color: rgba(243,241,234,.5); }
body.rex .rex-btn-light .elementor-button:hover { background: transparent; color: #fff; border-color: #fff; }
body.rex .rex-btns { margin-top: 8px; }
@media (max-width: 760px) { body.rex .hero-full .rex-btns > .elementor-element, body.rex .hero-full .rex-btn .elementor-button { width: 100%; } }

/* Photos (Elementor Image widget) */
body.rex .rex-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; background: var(--rex-photo); display: block; }
body.rex .rex-photo-square img { aspect-ratio: 1; }
body.rex .rex-photo-wide img { aspect-ratio: 16 / 10; object-position: 50% 50%; }
body.rex .rex-photo-tall img { aspect-ratio: 8 / 9; }
body.rex .rex-photo-portrait img { aspect-ratio: 4 / 5; }
body.rex .rex-person { color: inherit; }

/* Cards / rows */
body.rex .rex-teaser { border-top: 2px solid var(--rex-forest); padding-top: 20px; }
body.rex .rex-dark .rex-teaser { border-top-color: var(--rex-gold); }
body.rex .rex-pubs > .e-con-inner, body.rex .rex-pubs { gap: 0; }
body.rex .rex-pub { padding: 22px 0; border-bottom: 1px solid var(--rex-line); }
body.rex .rex-cv { padding: 36px 0; border-top: 1px solid var(--rex-line); }

/* Hero container (background image set in Elementor) */
body.rex .e-con.hero-full { display: flex; color: #F3F1EA; }
body.rex .e-con.hero-full > .e-con-inner { position: relative; z-index: 2; }
body.rex .hero-full .rex-hero-inner { max-width: 660px; }
body.rex .hero-full .rex-hero-title .elementor-heading-title { color: #F8F6EF; font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; }
body.rex .hero-full .rex-hero-title em { font-style: italic; color: var(--rex-gold); font-weight: 300; }
body.rex .hero-full .rex-eyebrow .elementor-heading-title { color: #C9D6CD; }

/* Video (Elementor Video widget) in a 9:16 frame */
body.rex .video-frame { aspect-ratio: auto; background: none; box-shadow: none; outline: none; align-self: center; }
body.rex .video-frame .rex-video { width: min(360px, 100%); margin: 0 auto; box-shadow: 0 40px 80px -40px rgba(16,54,31,.55); outline: 1px solid rgba(224,163,59,.35); outline-offset: 10px; }
body.rex .video-frame .rex-video .elementor-wrapper, body.rex .video-frame .rex-video video { aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover; display: block; background: var(--rex-forest); }
