/* ==========================================================================
   The Aeternum Review — editorial design system
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #101827;
  --navy-90: #1b2333;
  --navy-80: #2a3241;
  --burgundy: #6E2335;
  --burgundy-dark: #58192a;
  --ivory: #F7F4EE;
  --ivory-deep: #EFEAE1;
  --white: #FFFFFF;
  --charcoal: #202124;
  --muted: #6D7077;
  --muted-light: #94969C;
  --gold: #B8975A;
  --gold-soft: #d9c9a5;
  --rule: #DDD7CC;
  --rule-soft: #E8E3D9;
  --rule-dark: rgba(255, 255, 255, 0.14);

  --serif: 'Fraunces', 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 1180px;
  --measure-wide: 1400px;
  --measure-text: 680px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(16, 24, 39, 0.04), 0 12px 32px -12px rgba(16, 24, 39, 0.12);
  --shadow-lift: 0 2px 6px rgba(16, 24, 39, 0.06), 0 28px 60px -20px rgba(16, 24, 39, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0 0 1.15em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.9rem 1.4rem;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 2rem; }
.wrap-wide { width: 100%; max-width: var(--measure-wide); margin: 0 auto; padding: 0 2rem; }
.wrap-text { width: 100%; max-width: var(--measure-text); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) { .wrap, .wrap-wide, .wrap-text { padding: 0 1.25rem; } }

.section { padding: 5.5rem 0; }
.section-lg { padding: 7rem 0; }
.section-sm { padding: 3.5rem 0; }
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4rem 0; }
}
.bg-ivory { background: var(--ivory); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: block;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--burgundy { color: var(--burgundy); }
.eyebrow--light { color: rgba(255,255,255,0.55); }

.eyebrow-rule {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.eyebrow-rule--light { color: rgba(255,255,255,0.6); }
.eyebrow-rule--light::after { background: var(--rule-dark); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.028em; color: var(--navy); }
.h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.14; letter-spacing: -0.024em; color: var(--navy); }
.h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.22; letter-spacing: -0.018em; color: var(--navy); }
.h4 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; color: var(--navy); }
.bg-navy .display, .bg-navy .h1, .bg-navy .h2, .bg-navy .h3, .bg-navy .h4 { color: #fff; }

.section-head { margin-bottom: 3.25rem; }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.section-head--split .h2 { margin: 0; }
.section-intro { font-size: 1.05rem; color: var(--muted); max-width: 44ch; margin: 0.9rem 0 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--navy-80);
  letter-spacing: -0.01em;
}
.body-copy { font-size: 1.06rem; line-height: 1.78; color: #33353a; max-width: 72ch; }
.body-copy--full { max-width: none; }
.body-copy p { margin-bottom: 1.5em; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy strong { font-weight: 600; color: var(--navy); }
.body-copy--drop > p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.06em 0.09em 0 0;
  color: var(--burgundy);
  font-weight: 400;
}
.meta {
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.meta-sep { color: var(--rule); margin: 0 0.5rem; }
.small { font-size: 0.86rem; color: var(--muted); }
.tiny { font-size: 0.74rem; color: var(--muted); }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-burgundy { color: var(--burgundy); }
.serif { font-family: var(--serif); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.7rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--burgundy); position: relative; padding-bottom: 3px;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .ar { transition: transform 0.35s var(--ease); }
.link-arrow:hover .ar { transform: translateX(4px); }
.link-arrow--light { color: var(--gold); }

.link-underline { border-bottom: 1px solid var(--rule); transition: border-color 0.25s var(--ease); }
.link-underline:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 1px 18px rgba(16,24,39,0.07); }
.masthead__rule {
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 33%, var(--burgundy) 33% 66%, var(--gold) 66% 100%);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--navy); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.brand:hover .brand__mark { background: var(--navy); color: var(--ivory); }
.brand__text { line-height: 1; }
.brand__name {
  display: block; font-family: var(--serif); font-size: 1.14rem;
  letter-spacing: -0.015em; color: var(--navy); white-space: nowrap;
}
.brand__sub {
  display: block; font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__link {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.055em;
  color: var(--charcoal); position: relative; padding: 0.35rem 0; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--burgundy); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--burgundy); }
.masthead__actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--navy);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--rule); color: var(--burgundy); }
.burger { display: none; }
@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: grid; }
}
/* Header CTA is redundant once the drawer carries it — hide it on narrow screens
   so it cannot overlap the burger control. */
@media (max-width: 860px) {
  .hidden-sm { display: none !important; }
}
@media (max-width: 420px) {
  .masthead__inner { height: 66px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { letter-spacing: 0.16em; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; padding: 0 1.25rem; border-bottom: 1px solid var(--rule); flex-shrink: 0;
}
.drawer__body { padding: 1.75rem 1.25rem 3rem; }
.drawer__link {
  display: block; font-family: var(--serif); font-size: 1.5rem;
  color: var(--navy); padding: 0.72rem 0; border-bottom: 1px solid var(--rule-soft);
  letter-spacing: -0.015em;
}
.drawer__link:last-of-type { border-bottom: 0; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(16, 24, 39, 0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 1.5rem 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  overflow-y: auto;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel { width: 100%; max-width: 780px; }
.search-field { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.28); padding-bottom: 1rem; }
.search-field input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: #fff; letter-spacing: -0.02em;
}
.search-field input::placeholder { color: rgba(255,255,255,0.32); }
.search-hints { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.search-hint {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.8rem; transition: all 0.25s var(--ease);
}
.search-hint:hover { border-color: var(--gold); color: var(--gold); }
.search-results { margin-top: 2.25rem; }
.sr-item {
  display: flex; gap: 1.1rem; align-items: center;
  padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sr-item:hover .sr-name { color: var(--gold); }
.sr-thumb { width: 46px; height: 58px; object-fit: cover; flex-shrink: 0; filter: grayscale(0.3); }
.sr-name { font-family: var(--serif); font-size: 1.12rem; color: #fff; transition: color 0.25s var(--ease); }
.sr-meta { font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ---------- Cover / Hero ---------- */
.cover { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cover::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 82% 22%, rgba(110, 35, 53, 0.4) 0%, transparent 62%),
    radial-gradient(90% 70% at 8% 90%, rgba(184, 151, 90, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cover__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 4.5rem; align-items: center;
  padding: 5.5rem 0 6rem;
}
.cover__issue {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2.4rem;
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.cover__issue::after { content: ''; flex: 1; max-width: 90px; height: 1px; background: rgba(184,151,90,0.4); }
.cover__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 5.4vw, 4.35rem); line-height: 1.02; letter-spacing: -0.032em;
  color: #fff; margin-bottom: 1.75rem;
}
.cover__sub { font-size: 1.06rem; line-height: 1.72; color: rgba(255,255,255,0.68); max-width: 52ch; margin-bottom: 2.6rem; }
.cover__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.cover__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem;
  padding-top: 2.4rem; border-top: 1px solid var(--rule-dark);
}
@media (max-width: 1180px) { .cover__stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; } }
.cover__stat-n { font-family: var(--serif); font-size: 1.85rem; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.cover__stat-l { font-size: 0.70rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 0.55rem; }

/* Cover feature card */
.cover-feature { position: relative; }
.cover-feature__frame { position: relative; overflow: hidden; background: #0b1120; }
.cover-feature__img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 1.1s var(--ease);
}
.cover-feature:hover .cover-feature__img { transform: scale(1.028); }
.cover-feature__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.94) 0%, rgba(11,17,32,0.5) 32%, transparent 62%);
}
.cover-feature__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 2.1rem; z-index: 2; }
.cover-feature__tag {
  font-size: 0.69rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem; display: block;
}
.cover-feature__name {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 0.7rem;
}
.cover-feature__cred { font-size: 0.8rem; color: rgba(255,255,255,0.72); line-height: 1.55; margin-bottom: 1rem; }
.cover-feature__quote {
  font-family: var(--serif); font-size: 0.98rem; font-style: italic; line-height: 1.5;
  color: rgba(255,255,255,0.86); padding-left: 0.9rem; border-left: 2px solid var(--gold);
}
.cover-feature__badge {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3;
  background: rgba(247,244,238,0.95); color: var(--navy);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 0.85rem;
}
@media (max-width: 980px) {
  .cover__inner { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 3.5rem; }
  .cover__stats { gap: 1.75rem 2.2rem; }
  .cover__stat-n { font-size: 1.5rem; }
}

/* ---------- Profile cards ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.profile-grid--2 { grid-template-columns: repeat(2, 1fr); }
.profile-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 1024px) { .profile-grid, .profile-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .profile-grid, .profile-grid--2, .profile-grid--4 { grid-template-columns: 1fr; gap: 2.25rem; }
}

.pcard { display: flex; flex-direction: column; height: 100%; }
.pcard__media { position: relative; overflow: hidden; background: var(--ivory-deep); margin-bottom: 1.35rem; }
.pcard__img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: grayscale(0.14) saturate(0.94);
  transition: transform 0.85s var(--ease), filter 0.6s var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.035); filter: grayscale(0) saturate(1); }
.pcard__cat {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: rgba(16, 24, 39, 0.88); color: #fff;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45rem 0.8rem;
}
.pcard__name {
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.16; letter-spacing: -0.018em;
  color: var(--navy); margin-bottom: 0.5rem; transition: color 0.28s var(--ease);
}
.pcard:hover .pcard__name { color: var(--burgundy); }
.pcard__qual { font-size: 0.84rem; color: var(--burgundy); font-weight: 500; margin-bottom: 0.5rem; line-height: 1.4; }
.pcard__inst {
  font-size: 0.72rem; letter-spacing: 0.055em; color: var(--muted);
  margin-bottom: 0.85rem; line-height: 1.5;
}
.pcard__inst-line { display: block; }
.pcard__sum {
  font-size: 0.9rem; line-height: 1.62; color: #4a4c52; margin-bottom: 1.1rem;
  /* Clamp to three lines so the footer rule sits on a shared baseline across a row */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(3 * 1.62em);
}
.pcard__foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--rule-soft); }

/* Compact list row (recently recognised) */
.rrow {
  display: grid; grid-template-columns: 82px 1fr auto; gap: 1.6rem; align-items: center;
  padding: 1.65rem 0; border-bottom: 1px solid var(--rule-soft);
  transition: background 0.3s var(--ease);
}
.rrow:first-child { border-top: 1px solid var(--rule-soft); }
.rrow:hover { background: rgba(255,255,255,0.55); }
.rrow__img {
  width: 82px; height: 100px; object-fit: cover;
  filter: grayscale(0.2); transition: filter 0.5s var(--ease);
}
.rrow:hover .rrow__img { filter: grayscale(0); }
.rrow__name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 0.3rem; }
.rrow:hover .rrow__name { color: var(--burgundy); }
.rrow__qual { font-size: 0.82rem; color: var(--burgundy); margin-bottom: 0.28rem; }
.rrow__inst { font-size: 0.74rem; letter-spacing: 0.05em; color: var(--muted); }
.rrow__date { text-align: right; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
@media (max-width: 720px) {
  .rrow { grid-template-columns: 64px 1fr; gap: 1.1rem; padding: 1.35rem 0; }
  .rrow__img { width: 64px; height: 80px; }
  .rrow__date { display: none; }
}

/* ---------- Featured story (magazine split) ---------- */
.feature-split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 4rem; align-items: center; }
.feature-split--rev { grid-template-columns: 1.08fr 0.92fr; }
.feature-split__media { position: relative; }
.feature-split__img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: saturate(0.94);
}
.feature-split__caption {
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted);
  margin-top: 0.85rem; line-height: 1.5; font-style: italic;
}
.feature-split__rule { width: 46px; height: 2px; background: var(--burgundy); margin: 0 0 1.75rem; }
@media (max-width: 900px) {
  .feature-split, .feature-split--rev { grid-template-columns: 1fr; gap: 2.5rem; }
}

.pullquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4; letter-spacing: -0.018em; color: var(--navy);
  padding-left: 1.6rem; border-left: 2px solid var(--gold);
  margin: 2.25rem 0;
}
.pullquote__attr {
  display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-top: 0.85rem;
}
.quote-band { background: var(--navy); color: #fff; text-align: center; }
.quote-band__mark { font-family: var(--serif); font-size: 4rem; line-height: 0.5; color: var(--gold); display: block; margin-bottom: 1.5rem; }
.quote-band__text {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.36;
  letter-spacing: -0.022em; color: #fff; max-width: 30ch; margin: 0 auto 1.9rem;
}
.quote-band__attr { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.quote-band__ctx {
  font-size: 0.92rem; color: rgba(255,255,255,0.72); margin-top: 0.9rem;
  font-style: italic; letter-spacing: 0;
}

/* ---------- Editor's selection (asymmetric) ---------- */
.selection { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; }
.selection__side { display: flex; flex-direction: column; justify-content: flex-start; }
.sel-lead__media { position: relative; overflow: hidden; margin-bottom: 1.5rem; }
.sel-lead__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.92); transition: transform 0.9s var(--ease);
}
.sel-lead:hover .sel-lead__img { transform: scale(1.03); }
.sel-lead__title {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.14;
  letter-spacing: -0.024em; color: var(--navy); margin: 0.65rem 0 0.9rem;
}
.sel-lead:hover .sel-lead__title { color: var(--burgundy); }
.sel-lead__stand { font-size: 0.98rem; line-height: 1.68; color: #4a4c52; margin-bottom: 1.1rem; }
.sel-item {
  display: grid; grid-template-columns: 1fr 96px; gap: 1.5rem;
  padding: 1.85rem 0; border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}
.sel-item:first-child { padding-top: 0; }
.sel-item:last-child { border-bottom: 0; }
.sel-item__title {
  font-family: var(--serif); font-size: 1.14rem; line-height: 1.26; letter-spacing: -0.015em;
  color: var(--navy); margin: 0.5rem 0 0.6rem;
}
.sel-item:hover .sel-item__title { color: var(--burgundy); }
.sel-item__img { width: 96px; height: 112px; object-fit: cover; filter: grayscale(0.2); }
.sel-item:hover .sel-item__img { filter: grayscale(0); }
@media (max-width: 900px) { .selection { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Discipline / category tiles ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 860px) { .disc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disc-grid { grid-template-columns: 1fr; } }
.disc-tile {
  background: var(--ivory); padding: 2rem 1.75rem; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.disc-tile:hover { background: var(--white); }
.disc-tile__n { font-size: 0.70rem; letter-spacing: 0.16em; color: var(--muted-light); margin-bottom: 1rem; }
.disc-tile__name {
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.18; letter-spacing: -0.018em;
  color: var(--navy); margin-bottom: 0.6rem;
}
.disc-tile:hover .disc-tile__name { color: var(--burgundy); }
.disc-tile__desc { font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.disc-tile__count { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 1.3rem; }

/* Editorial category list — deliberately different from the boxed discipline grid */
.cat-list { border-top: 1px solid var(--rule); }
.cat-row {
  display: grid; grid-template-columns: 62px 1fr 1.15fr auto; gap: 2rem; align-items: center;
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
  transition: padding-left 0.45s var(--ease);
}
.cat-row:hover { padding-left: 0.7rem; }
.cat-row__n { font-family: var(--serif); font-size: 1.02rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.cat-row__name {
  font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.18;
  letter-spacing: -0.018em; color: var(--navy);
}
.cat-row:hover .cat-row__name { color: var(--burgundy); }
.cat-row__desc { font-size: 0.9rem; line-height: 1.58; color: var(--muted); }
.cat-row__count {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-light); white-space: nowrap;
}
@media (max-width: 820px) {
  .cat-row { grid-template-columns: 40px 1fr auto; gap: 1.1rem; padding: 1.4rem 0; }
  .cat-row__desc { display: none; }
}

/* Qualification chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  border: 1px solid var(--rule); background: var(--white);
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem; color: var(--navy);
  transition: all 0.28s var(--ease);
}
.chip:hover, .chip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip__n { font-size: 0.68rem; color: var(--muted); }
.chip:hover .chip__n, .chip.is-active .chip__n { color: rgba(255,255,255,0.6); }

/* ---------- Global map / stats band ---------- */
.globe-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.globe-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 70% 50%, rgba(110,35,53,0.32) 0%, transparent 65%);
}
.globe-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(255,255,255,0.1); }
.stat-cell { background: var(--navy); padding: 2rem 1.75rem; }
.stat-cell__n {
  font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1;
  letter-spacing: -0.03em; color: #fff;
}
.stat-cell__l { font-size: 0.70rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.48); margin-top: 0.75rem; }
.country-list { display: flex; flex-wrap: wrap; gap: 0.45rem 0.5rem; margin-top: 2rem; }
.country-pill {
  font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.18); padding: 0.38rem 0.75rem;
  transition: all 0.25s var(--ease);
}
.country-pill:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 900px) { .globe-band__inner { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Institution cards ---------- */
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inst-grid { grid-template-columns: 1fr; } }
.inst-card {
  background: var(--white); border: 1px solid var(--rule); padding: 1.75rem 1.6rem;
  display: flex; flex-direction: column; height: 100%;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.inst-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.inst-crest {
  width: 46px; height: 46px; border: 1px solid var(--rule); color: var(--navy);
  display: grid; place-items: center; font-family: var(--serif); font-size: 0.98rem;
  letter-spacing: 0.04em; margin-bottom: 1.35rem; flex-shrink: 0;
}
.inst-card:hover .inst-crest { border-color: var(--gold); color: var(--burgundy); }
.inst-card__name { font-family: var(--serif); font-size: 1.1rem; line-height: 1.24; letter-spacing: -0.014em; color: var(--navy); margin-bottom: 0.5rem; }
.inst-card__loc { font-size: 0.74rem; letter-spacing: 0.05em; color: var(--muted); }
.inst-card__count { margin-top: auto; padding-top: 1.5rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Article cards ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 940px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .art-grid { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; height: 100%; }
.acard__media { overflow: hidden; margin-bottom: 1.25rem; background: var(--ivory-deep); }
.acard__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  filter: saturate(0.9); transition: transform 0.85s var(--ease);
}
.acard:hover .acard__img { transform: scale(1.04); }
.acard__kind { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 0.7rem; }
.acard__title {
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.018em;
  color: var(--navy); margin-bottom: 0.7rem;
}
.acard:hover .acard__title { color: var(--burgundy); }
.acard__stand { font-size: 0.92rem; line-height: 1.62; color: #4a4c52; margin-bottom: 1rem; }
.acard__foot { margin-top: auto; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Profile page ---------- */
.phero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.phero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 78% 18%, rgba(110,35,53,0.38) 0%, transparent 60%);
}
.phero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 4rem; align-items: center;
  padding: 4.5rem 0 5rem;
}
.phero__portrait { position: relative; }
.phero__img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: saturate(0.94);
}
.phero__badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(247,244,238,0.96); color: var(--navy);
  padding: 0.7rem 1rem; text-align: center;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.phero__name {
  font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.02;
  letter-spacing: -0.032em; color: #fff; margin-bottom: 1rem;
}
.phero__title { font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--gold-soft); margin-bottom: 0.5rem; font-style: italic; }
.phero__qual { font-size: 0.98rem; color: rgba(255,255,255,0.8); margin-bottom: 2.25rem; }
.phero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem;
  padding: 2rem 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  margin-bottom: 1.75rem;
}
.pfact__l { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 0.5rem; }
.pfact__v { font-size: 0.92rem; color: #fff; line-height: 1.45; }
.pfact__v a { border-bottom: 1px solid rgba(255,255,255,0.3); }
.pfact__v a:hover { color: var(--gold); border-color: var(--gold); }
.phero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.share-row { display: flex; align-items: center; gap: 0.4rem; }
.share-lbl { font-size: 0.69rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-right: 0.5rem; }
.share-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7);
  background: transparent; font-size: 0.78rem;
  transition: all 0.25s var(--ease);
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 900px) {
  .phero__inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .phero__portrait { max-width: 300px; }
  .phero__facts { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
}
@media (max-width: 480px) { .phero__facts { grid-template-columns: 1fr; } }

/* Profile body layout */
.playout { display: grid; grid-template-columns: 1fr 300px; gap: 4.5rem; align-items: start; }
@media (max-width: 1000px) { .playout { grid-template-columns: 1fr; gap: 3rem; } }
.psticky { position: sticky; top: 100px; }
@media (max-width: 1000px) { .psticky { position: static; } }

.pblock { padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--rule); }
.pblock:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pblock__head { margin-bottom: 2rem; }
.pblock__title {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.14;
  letter-spacing: -0.022em; color: var(--navy);
}
.pblock__num {
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold);
  display: block; margin-bottom: 0.7rem;
}

/* Timeline */
.tl { position: relative; padding-left: 2.25rem; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl__item { position: relative; padding-bottom: 2.1rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ''; position: absolute; left: -2.25rem; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold);
}
.tl__item--filled::before { background: var(--burgundy); border-color: var(--burgundy); }
.tl__year { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 0.4rem; }
.tl__title { font-family: var(--serif); font-size: 1.16rem; line-height: 1.28; color: var(--navy); margin-bottom: 0.35rem; }
.tl__sub { font-size: 0.86rem; color: var(--burgundy); margin-bottom: 0.3rem; }
.tl__inst { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.tl__desc { font-size: 0.9rem; line-height: 1.62; color: #4a4c52; margin-top: 0.6rem; }
@media (max-width: 560px) { .tl { padding-left: 1.7rem; } .tl__item::before { left: -1.7rem; } }

/* Research detail definition blocks */
.rdef { margin-bottom: 2.1rem; }
.rdef:last-child { margin-bottom: 0; }
.rdef__l {
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 0.7rem;
}
.rdef__v { font-size: 1rem; line-height: 1.75; color: #33353a; }
.research-title-card {
  background: var(--white); border-left: 2px solid var(--burgundy);
  padding: 1.9rem 2rem; margin-bottom: 2.5rem;
}
.research-title-card__t {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.26;
  letter-spacing: -0.018em; color: var(--navy);
}

/* Publications list */
.pub-item { padding: 1.6rem 0; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.pub-item:first-child { border-top: 1px solid var(--rule-soft); }
.pub-n {
  font-family: var(--serif); font-size: 0.9rem; color: var(--muted-light);
  width: 26px; padding-top: 2px;
}
.pub-kind { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.pub-title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.34; color: var(--navy); margin-bottom: 0.5rem; }
.pub-authors { font-size: 0.84rem; color: #4a4c52; margin-bottom: 0.35rem; }
.pub-venue { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.pub-links { display: flex; gap: 1.1rem; margin-top: 0.7rem; }
.pub-link { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); border-bottom: 1px solid var(--rule); }
.pub-link:hover { border-color: var(--burgundy); }

/* Metrics */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 760px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric-cell { background: var(--white); padding: 1.6rem 1.35rem; }
.metric-n { font-family: var(--serif); font-size: 1.85rem; line-height: 1; letter-spacing: -0.025em; color: var(--navy); }
.metric-l {
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: #5c5f66; margin-top: 0.6rem; line-height: 1.45;
}
.metric-cell { display: flex; flex-direction: column; }
.metric-cell--stack { justify-content: flex-start; }

/* Achievement grid */
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 680px) { .ach-grid { grid-template-columns: 1fr; } }
.ach-card {
  background: var(--white); border: 1px solid var(--rule); padding: 1.5rem 1.5rem;
  transition: border-color 0.3s var(--ease);
  height: 100%; display: flex; flex-direction: column;
}
.ach-grid { align-items: stretch; }
.ach-card:hover { border-color: var(--gold); }
.ach-type { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.ach-title { font-family: var(--serif); font-size: 1.04rem; line-height: 1.3; color: var(--navy); margin-bottom: 0.45rem; }
.ach-body { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.ach-desc { font-size: 0.86rem; color: #4a4c52; line-height: 1.6; margin-top: 0.6rem; }

/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gal-item { position: relative; overflow: hidden; cursor: zoom-in; background: var(--ivory-deep); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.gal-item--wide { grid-column: span 7; aspect-ratio: 3 / 2; }
.gal-item--tall { grid-column: span 5; aspect-ratio: 4 / 5; }
.gal-item--half { grid-column: span 6; aspect-ratio: 3 / 2; }
.gal-item--third { grid-column: span 4; aspect-ratio: 1 / 1; }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(16,24,39,0.9), transparent);
  color: rgba(255,255,255,0.92); font-size: 0.76rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-item--wide, .gal-item--tall, .gal-item--half, .gal-item--third { grid-column: span 1; aspect-ratio: 3 / 2; }
  .gal-cap { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 180; background: rgba(11,17,32,0.96);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox__cap { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: 0.84rem; padding: 0 2rem; }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.75rem; background: transparent; border: 0; color: #fff; font-size: 1.6rem; }

/* Sidebar modules */
.smod { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.smod:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.smod__t { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.smod__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.84rem; }
.smod__row dt { color: var(--muted); flex-shrink: 0; }
.smod__row dd { margin: 0; color: var(--navy); text-align: right; }
.ref-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule-soft); }
.ref-item:last-child { border-bottom: 0; }
.ref-label { font-size: 0.85rem; color: var(--navy); }
.ref-label:hover { color: var(--burgundy); }
.ref-id { font-size: 0.7rem; color: var(--muted-light); margin-top: 2px; }

/* Verification pills */
.vpill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.32rem 0.6rem; border: 1px solid; white-space: nowrap;
}
.vpill--verified { color: #1f5c3d; border-color: #a8ccb8; background: #eef6f1; }
.vpill--institutional { color: #2c4a72; border-color: #b3c6dd; background: #eef3f9; }
.vpill--external { color: #6b4a1f; border-color: #ddc9a4; background: #faf5ea; }
.vpill--publication { color: #52306b; border-color: #ccb6dd; background: #f6f0fa; }
.vpill--provided { color: #55575c; border-color: var(--rule); background: var(--ivory-deep); }

/* Badge medallion */
.medallion {
  border: 1px solid var(--gold); background: var(--white);
  padding: 1.85rem 1.5rem; text-align: center;
}
.medallion__ring {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 1.05rem;
}
.medallion__t { font-family: var(--serif); font-size: 1rem; color: var(--navy); margin-bottom: 0.4rem; }
.medallion__s { font-size: 0.7rem; color: var(--muted); line-height: 1.5; }

/* Citation box */
.cite-box { background: var(--white); border: 1px solid var(--rule); }
.cite-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.cite-tab {
  flex: 1; padding: 0.85rem 0.5rem; background: transparent; border: 0;
  font-size: 0.70rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: all 0.25s var(--ease);
}
.cite-tab:hover { color: var(--navy); }
.cite-tab.is-active { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.cite-body { padding: 1.5rem; }
.cite-text { font-size: 0.9rem; line-height: 1.7; color: #33353a; font-family: var(--serif); margin-bottom: 1.1rem; }

/* Notice / disclaimer */
.notice {
  background: var(--ivory-deep); border-left: 2px solid var(--gold);
  padding: 1.35rem 1.5rem; font-size: 0.86rem; line-height: 1.65; color: #4a4c52;
}
.notice--tight { padding: 1rem 1.2rem; font-size: 0.8rem; }
.notice__t { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }

/* Certificate */
.cert-sheet {
  background: var(--white); padding: 3.5rem 3rem 3rem; text-align: center;
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-lift);
  position: relative;
}
.cert-qr {
  width: 96px; height: 96px; padding: 7px; background: #fff;
  border: 1px solid var(--rule-soft); opacity: 0.86;
  transition: opacity 0.3s var(--ease);
}
.cert-qr:hover { opacity: 1; }
.cert-sheet::before {
  content: ''; position: absolute; inset: 14px; border: 1px solid var(--gold); opacity: 0.45; pointer-events: none;
}
.cert-inner { position: relative; z-index: 1; }
.cert-crest {
  width: 58px; height: 58px; margin: 0 auto 1.5rem; border: 1px solid var(--navy);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--navy);
}
.cert-pub { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.cert-line { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }
.cert-name { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.14; letter-spacing: -0.025em; color: var(--navy); margin-bottom: 1.1rem; }
.cert-rule { width: 70px; height: 1px; background: var(--gold); margin: 1.75rem auto; }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; }
.cert-meta__l { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 0.4rem; }
.cert-meta__v { font-size: 0.84rem; color: var(--navy); }
.cert-disclaimer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft);
  font-size: 0.72rem; line-height: 1.6; color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto;
}
@media (max-width: 600px) { .cert-sheet { padding: 2.25rem 1.4rem; } .cert-sheet::before { inset: 8px; } }

/* Byline */
.byline { display: flex; flex-wrap: wrap; gap: 2.25rem; }
.byline__unit { display: flex; align-items: center; gap: 0.85rem; }
.byline__img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.byline__l { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 0.25rem; }
.byline__n { font-size: 0.9rem; color: var(--navy); }
.byline__r { font-size: 0.74rem; color: var(--muted); }

/* ---------- Directory / filters ---------- */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.7rem; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--burgundy); }
.crumbs__sep { color: var(--rule); }

.filter-bar {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.75rem; margin: 0 0 3rem;
}
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__l { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.field__i, select.field__i, textarea.field__i {
  border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; padding: 0.62rem 0.1rem;
  font-size: 0.92rem; color: var(--charcoal); width: 100%;
  transition: border-color 0.25s var(--ease);
  border-radius: 0; appearance: none;
}
.field__i:focus { outline: none; border-bottom-color: var(--burgundy); }
.field__i::placeholder { color: var(--muted-light); }
/* Boxed variant for panels where a bordered field reads better */
.panel .field__i, .admin-main .field__i, .news-form input {
  border: 1px solid var(--rule); background: var(--ivory); padding: 0.68rem 0.8rem;
}
.panel .field__i:focus, .admin-main .field__i:focus { border-color: var(--navy); background: var(--white); }
select.field__i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236D7077' stroke-width='1.3'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.25rem center; background-size: 11px;
  padding-right: 1.8rem; cursor: pointer;
}
.panel select.field__i, .admin-main select.field__i { background-position: right 0.8rem center; padding-right: 2.2rem; }
textarea.field__i { min-height: 120px; resize: vertical; line-height: 1.6; }
.field__hint { font-size: 0.72rem; color: var(--muted-light); }
.filter-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-soft);
}
.filter-actions__left { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.result-count { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.afilter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff; font-size: 0.7rem; letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
}
.afilter a { color: rgba(255,255,255,0.65); }
.afilter a:hover { color: #fff; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3.5rem; }
.pager__btn {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule); font-size: 0.82rem; color: var(--navy); background: var(--white);
  transition: all 0.25s var(--ease); padding: 0 0.6rem;
}
.pager__btn:hover { border-color: var(--navy); }
.pager__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__btn.is-disabled { color: var(--rule); pointer-events: none; }

/* Empty state */
.empty { text-align: center; padding: 5rem 1rem; }
.empty__t { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.8rem; }

/* ---------- Article page ---------- */
.ahero { padding: 3.5rem 0 0; }
.ahero__title {
  font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--navy); margin: 1.25rem 0 1.5rem;
}
.ahero__stand { font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--navy-80); max-width: 60ch; }
.ahero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.ahero__fig { margin: 3rem 0 0; }
.ahero__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ahero__fig figcaption { font-size: 0.74rem; color: var(--muted); font-style: italic; margin-top: 0.85rem; }

.qa-item { padding: 2.5rem 0; border-bottom: 1px solid var(--rule-soft); }
.qa-item:last-child { border-bottom: 0; }
.qa-q {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.32;
  letter-spacing: -0.018em; color: var(--burgundy); margin-bottom: 1.1rem;
  display: flex; gap: 0.9rem;
}
.qa-q__mark { color: var(--gold); flex-shrink: 0; }
.qa-a { font-size: 1.04rem; line-height: 1.78; color: #33353a; padding-left: 2.15rem; }
@media (max-width: 560px) { .qa-a { padding-left: 0; } }

/* ---------- Forms ---------- */
.form-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.form-section:last-of-type { border-bottom: 0; }
.form-section__t { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin-bottom: 0.5rem; }
.form-section__d { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid--1 { grid-template-columns: 1fr; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 700px) {
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
.req { color: var(--burgundy); }
.check-row { display: flex; gap: 0.85rem; align-items: flex-start; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--burgundy); }
.check-row label { font-size: 0.88rem; line-height: 1.6; color: #4a4c52; }
.upload-note {
  border: 1px dashed var(--rule); background: var(--white); padding: 1.35rem 1.5rem;
  font-size: 0.86rem; color: var(--muted); line-height: 1.6;
}
.form-msg { padding: 1.1rem 1.35rem; font-size: 0.9rem; margin-bottom: 1.5rem; display: none; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #eef6f1; border-left: 2px solid #1f5c3d; color: #1f5c3d; }
.form-msg--err { background: #fbf0f0; border-left: 2px solid var(--burgundy); color: var(--burgundy); }

/* Workflow diagram */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.flow-step { background: var(--white); padding: 1.5rem 1.35rem; }
.flow-step__n { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); margin-bottom: 0.7rem; }
.flow-step__t { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; }
.flow-step__d { font-size: 0.8rem; line-height: 1.55; color: var(--muted); }

/* Status pills */
.spill {
  display: inline-flex; align-items: center; font-size: 0.69rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.33rem 0.62rem;
  border: 1px solid; white-space: nowrap;
}
.spill--submitted { color: #55575c; border-color: var(--rule); background: var(--ivory-deep); }
.spill--under_review { color: #2c4a72; border-color: #b3c6dd; background: #eef3f9; }
.spill--info_required { color: #8a5a12; border-color: #e2c893; background: #fdf6e8; }
.spill--credential_review { color: #52306b; border-color: #ccb6dd; background: #f6f0fa; }
.spill--approved, .spill--published { color: #1f5c3d; border-color: #a8ccb8; background: #eef6f1; }
.spill--scheduled { color: #1b4f63; border-color: #a5c9d5; background: #edf5f8; }
.spill--rejected { color: var(--burgundy); border-color: #ddb0bb; background: #fbf0f2; }
.spill--archived, .spill--draft { color: var(--muted); border-color: var(--rule); background: var(--ivory-deep); }
.spill--open { color: #8a5a12; border-color: #e2c893; background: #fdf6e8; }
.spill--closed { color: var(--muted); border-color: var(--rule); background: var(--ivory-deep); }

/* ---------- Newsletter ---------- */
.news-band { background: var(--ivory-deep); border-top: 1px solid var(--rule); }
.news-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 860px) { .news-inner { grid-template-columns: 1fr; gap: 2rem; } }
.news-form { display: flex; gap: 0.75rem; }
.news-form input {
  flex: 1; border: 1px solid var(--rule); background: var(--white);
  padding: 0.95rem 1rem; font-size: 0.9rem; border-radius: 0;
}
.news-form input:focus { outline: none; border-color: var(--navy); }
@media (max-width: 520px) { .news-form { flex-direction: column; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); }
.cta-band__bg { position: absolute; inset: 0; opacity: 0.2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); }
.cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,24,39,0.96) 0%, rgba(16,24,39,0.82) 45%, rgba(110,35,53,0.55) 100%);
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: rgba(255,255,255,0.62); padding: 4.5rem 0 0; }
.foot__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 3rem; padding-bottom: 3.5rem; }
@media (max-width: 1000px) { .foot__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; gap: 2rem; } }
.foot__brand-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 0.85rem; }
.foot__brand-txt { font-size: 0.88rem; line-height: 1.65; max-width: 34ch; }
.foot__ct { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.1rem; }
.foot__list li { list-style: none; margin-bottom: 0.62rem; }
.foot__list a { font-size: 0.86rem; color: rgba(255,255,255,0.68); transition: color 0.25s var(--ease); }
.foot__list a:hover { color: var(--gold); }
.foot__bottom {
  border-top: 1px solid var(--rule-dark); padding: 1.85rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  font-size: 0.76rem; color: rgba(255,255,255,0.42);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__legal a:hover { color: var(--gold); }
.foot__social { display: flex; gap: 0.5rem; }
.foot__social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.65);
  transition: all 0.25s var(--ease);
}
.foot__social a:hover { border-color: var(--gold); color: var(--gold); }
.foot__disclaimer {
  border-top: 1px solid var(--rule-dark); padding: 1.5rem 0 2.5rem;
  font-size: 0.74rem; line-height: 1.65; color: rgba(255,255,255,0.35); max-width: 90ch;
}

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { background: var(--navy); padding: 1.75rem 0; }
@media (max-width: 900px) { .admin-side { padding: 1rem 0; } }
.admin-brand { padding: 0 1.5rem 1.75rem; border-bottom: 1px solid var(--rule-dark); margin-bottom: 1.5rem; }
.admin-brand__n { font-family: var(--serif); font-size: 1.05rem; color: #fff; }
.admin-brand__s { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 5px; }
.admin-navgroup { margin-bottom: 1.5rem; }
.admin-navgroup__t { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.32); padding: 0 1.5rem; margin-bottom: 0.6rem; }
.admin-navlink {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.68);
  border-left: 2px solid transparent; transition: all 0.25s var(--ease);
}
.admin-navlink:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-navlink.is-active { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,0.06); }
.admin-main { background: var(--ivory); padding: 2.25rem 2.5rem 4rem; overflow-x: hidden; }
@media (max-width: 700px) { .admin-main { padding: 1.5rem 1.25rem 3rem; } }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.admin-title { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.022em; color: var(--navy); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 2.5rem; }
.kpi { background: var(--white); padding: 1.4rem 1.35rem; }
.kpi__n { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--navy); }
.kpi__l { font-size: 0.69rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; }
.panel { background: var(--white); border: 1px solid var(--rule); margin-bottom: 2rem; }
.panel__head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.panel__t { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.panel__body { padding: 1.5rem; }
.panel__body--flush { padding: 0; }
.table-scroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.dtable th {
  text-align: left; padding: 0.85rem 1rem; font-size: 0.69rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--ivory);
}
.dtable td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.dtable tbody tr:hover { background: var(--ivory); }
.dtable td.nowrap, .dtable th.nowrap { white-space: nowrap; }
.dt-name { font-family: var(--serif); font-size: 1rem; color: var(--navy); }
.dt-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.dt-thumb { width: 38px; height: 46px; object-fit: cover; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tiny-btn {
  font-size: 0.70rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border: 1px solid var(--rule); background: var(--white); color: var(--navy);
  transition: all 0.22s var(--ease);
}
.tiny-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.tiny-btn--danger:hover { border-color: var(--burgundy); background: var(--burgundy); }
.msg-thread { display: flex; flex-direction: column; gap: 1rem; }
.msg {
  padding: 1rem 1.2rem; font-size: 0.88rem; line-height: 1.65;
  border-left: 2px solid var(--rule); background: var(--ivory);
}
.msg--editorial { border-left-color: var(--navy); }
.msg--applicant { border-left-color: var(--gold); background: var(--white); border: 1px solid var(--rule); border-left: 2px solid var(--gold); }
.msg__head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.55rem; }
.msg__who { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--navy); }
.msg__when { font-size: 0.7rem; color: var(--muted-light); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 2rem; }
.admin-login__card { background: var(--ivory); padding: 2.75rem; width: 100%; max-width: 420px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 2.5rem; } .mb-6 { margin-bottom: 3rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.text-center { text-align: center; } .text-right { text-align: right; }
.hidden { display: none; } .block { display: block; }
.w-full { width: 100%; } .max-w-text { max-width: var(--measure-text); }
.mx-auto { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--rule); margin: 3rem 0; }
.divider--gold { background: var(--gold); width: 46px; height: 2px; }
.no-print { }
@media print {
  .masthead, .foot, .no-print, .search-overlay, .drawer { display: none !important; }
  body { background: #fff; }
  .cert-sheet { box-shadow: none; border: 1px solid #ccc; }
  .section, .section-lg { padding: 1.5rem 0; }
}

/* Screen-reader-only (used to keep heading hierarchy contiguous) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Sparse result sets: switch to a wider editorial row rather than a lonely card
   floating in a three-column grid. */
.profile-grid--sparse { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.profile-grid--single { grid-template-columns: 1fr; max-width: 560px; }
@media (max-width: 620px) {
  .profile-grid--sparse, .profile-grid--single { grid-template-columns: 1fr; max-width: none; }
}

/* Raise placeholder contrast inside admin/panel fields */
.panel .field__i::placeholder,
.admin-main .field__i::placeholder { color: #7b7e85; opacity: 1; }
