/* ==========================================================================
   INTERNATIONAL INSTITUTE FOR PERSON-CENTERED SCIENCE (IIPCS)
   Royal Navy, Warm Parchment Ivory & Antique Gold Editorial Design System
   ========================================================================== */

:root {
  --paper:        #FAF8F3;
  --paper-tint:   #F2EEE4;
  --white:        #FFFFFF;
  --ink:          #0F1E36;
  --ink-soft:     #2B384E;
  --muted:        #5D6878;
  --line:         #DDD5C5;
  --line-strong:  #C2B59B;
  --royal:        #0D1B30;
  --royal-mid:    #152947;
  --royal-deep:   #081120;
  --gold:         #A68246;
  --gold-bright:  #DFC082;
  --gold-soft:    #F6EFE0;
  --wash:         #F4EFE3;
  --danger:       #8B1E1E;

  --serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --radius: 2px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--royal-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .16s ease;
}
a:hover { color: var(--gold); }

::selection { background: var(--royal); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.014em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.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;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  padding: .65rem 1rem; background: var(--royal); color: var(--paper);
  font-size: .86rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* Scroll-reveal subtle motion */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
html.js-reveal [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(14px);
}

/* --------------------------------------------------------------------------
   INSTITUTIONAL STRIP & HEADER
   -------------------------------------------------------------------------- */
.inst-bar {
  background: var(--royal-deep);
  color: #C8D1E0;
  border-bottom: 1px solid rgba(197, 160, 89, .32);
  font-size: .7rem;
}

.inst-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: .32rem;
}

.inst-bar-left {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .64rem;
  font-weight: 600;
  color: #D8DFEC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inst-bar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.inst-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .24rem .78rem;
  border: 1px solid rgba(223, 192, 130, .65);
  border-radius: 2px;
  background: rgba(223, 192, 130, .14);
  color: var(--gold-bright) !important;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.inst-bar-cta:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #091326 !important;
}
.sep { opacity: .45; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(166, 130, 70, .14);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-crest { width: 52px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: .05rem; line-height: 1.12; }
.brand-kicker {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-inner { position: relative; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.header-join {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .62rem 1.05rem;
  border: 1px solid #C9A75F;
  border-radius: 2px;
  background: linear-gradient(135deg, #E6CA8E 0%, #C49A51 100%);
  box-shadow: 0 5px 14px rgba(15, 30, 54, .12);
  color: #0A1526 !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.header-join:hover {
  background: #EDD6A2;
  box-shadow: 0 7px 18px rgba(15, 30, 54, .18);
  color: #0A1526 !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: var(--gold-soft); }
.nav-toggle-icon {
  position: relative;
  width: 15px;
  height: 11px;
  display: inline-block;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 0;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 5px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: min(860px, calc(100vw - 3rem));
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--royal);
  box-shadow: 0 24px 60px rgba(8, 17, 32, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nav-group {
  padding: 1.35rem 1.45rem 1.45rem;
  border-right: 1px solid var(--line);
}
.nav-group:last-child { border-right: 0; }
.nav-group-title {
  margin: 0 0 .55rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .43rem 0;
  border-bottom: 1px solid rgba(221, 213, 197, .6);
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
}
.nav-group a:last-child { border-bottom: 0; }
.nav-group a:hover, .nav-group a[aria-current="page"] { color: var(--ink); }
.nav-group a[aria-current="page"] { font-weight: 700; }
.nav-group a[aria-current="page"]::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: .1rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.nav-group a[aria-current="page"] { justify-content: flex-start; }
.nav-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.45rem;
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
}
.nav-panel-foot a { color: var(--royal-mid); font-weight: 600; text-decoration: none; }
.nav-panel-foot a:hover { color: var(--gold); }

.nav-count {
  font-family: var(--sans);
  font-size: .62rem;
  padding: .02rem .34rem;
  border-radius: 999px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   BUTTONS, LABELS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.btn-primary { background: var(--royal); color: var(--paper); border-color: var(--royal); }
.btn-primary:hover { background: var(--royal-mid); border-color: var(--gold); color: var(--gold-bright); }

.btn-gold {
  background: linear-gradient(135deg, #DFC082 0%, #B8924E 100%);
  color: #091326;
  border-color: #DFC082;
  font-weight: 700;
}
.btn-gold:hover {
  background: #EAD19B;
  color: #091326;
}

.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--royal-mid); }

.btn-outline-light {
  background: rgba(15, 30, 54, .45);
  border-color: rgba(223, 192, 130, .48);
  color: var(--paper);
}
.btn-outline-light:hover {
  border-color: var(--gold-bright);
  background: rgba(223, 192, 130, .14);
  color: var(--gold-bright);
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-mini:hover { border-color: var(--gold); color: var(--ink); }

.text-link {
  display: inline-block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--royal-mid);
  text-decoration: none;
}
.text-link:hover { color: var(--gold); text-decoration: underline; }
.text-link-muted { color: var(--muted); font-weight: 500; }

.section-label {
  margin: 0 0 .55rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label-light { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   ROYAL HERO WITH CONSTELLATION MOTION & VIDEO LAYER
   -------------------------------------------------------------------------- */
.royal-hero {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 0 4.2rem;
  background: radial-gradient(circle at 20% 20%, #193259 0%, #0D1C33 55%, #07101F 100%);
  color: var(--paper);
  border-bottom: 2px solid var(--gold);
}

.royal-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
  pointer-events: none;
}
.royal-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(30%) contrast(110%);
}

.royal-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.royal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8, 17, 32, .72) 0%, rgba(13, 27, 48, .52) 60%, rgba(8, 17, 32, .82) 100%);
  pointer-events: none;
}

.royal-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, .82fr);
  gap: 3.4rem;
  align-items: start;
}

.royal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .28rem .72rem;
  border: 1px solid rgba(223, 192, 130, .38);
  background: rgba(15, 30, 54, .58);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.royal-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.55rem, 5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--paper);
}

.royal-subtitle {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-style: italic;
  line-height: 1.44;
  color: var(--gold-bright);
  max-width: 60ch;
}

.royal-lede {
  max-width: 64ch;
  margin-top: 1.2rem;
  font-size: .98rem;
  line-height: 1.72;
  color: #D7DFEC;
}
.royal-lede strong { color: var(--white); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}

.royal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(223, 192, 130, .32);
}

.royal-metric-cell {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.royal-metric-val {
  font-family: var(--display);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-bright);
}
.royal-metric-lbl {
  font-size: .7rem;
  font-weight: 500;
  color: #C4CFE0;
}

.royal-hero-crest-card {
  padding: 1.8rem 1.85rem;
  background: rgba(11, 22, 41, .84);
  border: 1px solid rgba(223, 192, 130, .48);
  box-shadow: inset 0 0 0 4px rgba(15, 30, 54, .9), inset 0 0 0 5px rgba(223, 192, 130, .22);
  border-radius: 2px;
}

.crest-card-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.crest-card-seal img {
  width: 146px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}
.crest-card-kicker {
  margin: 0 0 .3rem;
  text-align: center;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold-bright);
}
.crest-card-title {
  text-align: center;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--paper);
  margin-bottom: .65rem;
}
.crest-card-text {
  font-size: .86rem;
  line-height: 1.6;
  color: #CBD4E4;
  text-align: center;
  margin-bottom: 1.15rem;
}
.crest-card-hubs { margin: 0; }
.crest-card-hubs > div {
  padding: .62rem 0;
  border-top: 1px solid rgba(223, 192, 130, .22);
}
.crest-card-hubs dt {
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.crest-card-hubs dd {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: #DCE3EF;
}

/* --------------------------------------------------------------------------
   SECTIONS, GRIDS & PILLARS
   -------------------------------------------------------------------------- */
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section-tint { background: var(--paper-tint); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 2.65rem);
  font-weight: 600;
}
.section-sub {
  max-width: 68ch;
  margin-top: .55rem;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 3.5rem;
  align-items: start;
}
.split-head h2 { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; }
.split-note {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
}
.split-actions { margin-top: 1.4rem; }

.prose { max-width: 68ch; color: var(--ink-soft); font-size: 1rem; }
.prose p + p { margin-top: 1.05rem; }

.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

.pillar-card {
  padding: 1.7rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
}
.pillar-num {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
}
.pillar-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.pillar-card p { font-size: .91rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   FOUNDING SCHOLARS & DOSSIERS
   -------------------------------------------------------------------------- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.founder-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.founder-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.founder-card-top {
  display: flex;
  justify-content: flex-start;
  padding: 1.45rem 1.5rem 0;
  text-decoration: none;
}

.founder-portrait {
  position: relative;
  width: 118px;
  height: 136px;
  aspect-ratio: 4 / 4.6;
  background: #EAE4D7;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.founder-portrait--monogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  background: radial-gradient(circle at 50% 30%, #193158 0%, #0D1B30 100%);
}
.founder-portrait--dossier {
  width: 164px;
  height: 190px;
  margin-inline: auto;
}

.founder-roman {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--gold-bright);
  margin-bottom: .35rem;
}
.founder-initials {
  font-family: var(--display);
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--paper);
}
.founder-country-tag {
  margin-top: .5rem;
  padding: .14rem .55rem;
  border: 1px solid rgba(223, 192, 130, .4);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #D7E0EE;
}

.founder-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}
.founder-kicker {
  margin: 0 0 .25rem;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}
.founder-name {
  font-family: var(--display);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: .25rem;
}
.founder-name a { color: var(--ink); text-decoration: none; }
.founder-name a:hover { color: var(--gold); }
.founder-role {
  margin: 0 0 .45rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--royal-mid);
}
.founder-affil {
  margin: 0 0 .7rem;
  font-size: .82rem;
  line-height: 1.52;
  color: var(--muted);
}
.founder-focus {
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

.founder-ids {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}
.id-pill {
  display: inline-flex;
  align-items: center;
  padding: .18rem .52rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.id-pill:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }

.founder-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

/* Full dossiers on people.php & who-we-are.php */
.founder-dossiers, .directorate-rows { display: grid; gap: 2rem; }

.founder-dossier, .directorate-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2.2rem;
  padding: 2.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
  scroll-margin-top: 96px;
}

.founder-dossier-ids {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.aside-title {
  margin: 0 0 .7rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dossier-id-list {
  list-style: none;
  display: grid;
  gap: .55rem;
  font-size: .78rem;
}
.dossier-id-list li {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  padding-bottom: .48rem;
  border-bottom: 1px solid var(--line);
}
.dossier-id-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dossier-id-list span {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier-id-list a { font-family: var(--mono); font-size: .74rem; word-break: break-all; }
.dossier-extra-ids {
  margin-top: .7rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
}

.founder-dossier-main h3, .directorate-row-meta h3 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.directorate-row-meta h3 a { color: var(--ink); text-decoration: none; }
.directorate-roman {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: .3rem;
}
.directorate-role { font-family: var(--serif); font-style: italic; color: var(--royal-mid); margin-bottom: .4rem; }
.directorate-affil { font-size: .86rem; color: var(--muted); }

.dossier-focus-box {
  padding: .75rem 1rem;
  margin: .9rem 0 1.1rem;
  background: var(--gold-soft);
  border: 1px solid #DFC99B;
  font-size: .9rem;
  color: var(--ink);
}
.dossier-subblock {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.dossier-subblock h4 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}
.directorate-edu {
  padding-left: 1.15rem;
  display: grid;
  gap: .35rem;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   HOMEPAGE FIVE-PUBLICATION SPOTLIGHT
   -------------------------------------------------------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 2.6rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.spotlight-list { display: grid; }

.spotlight-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "year title"
    "year journal";
  gap: .18rem .8rem;
  width: 100%;
  padding: 1rem .5rem 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.spotlight-item-year {
  grid-area: year;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding-top: .28rem;
}
.spotlight-item-title {
  grid-area: title;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.32;
  color: var(--ink-soft);
}
.spotlight-item-journal {
  grid-area: journal;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}
.spotlight-item:hover .spotlight-item-title,
.spotlight-item.is-active .spotlight-item-title { color: var(--ink); }
.spotlight-item.is-active .spotlight-item-title { font-weight: 600; }
.spotlight-item.is-active .spotlight-item-year { color: var(--gold); font-weight: 700; }

.spotlight-stage {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
  overflow: hidden;
}

.spotlight-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 1.7rem;
  padding: 1.7rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .38s ease, transform .38s ease, visibility .38s ease;
}
.spotlight-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: spotlightFade .55s ease;
}
@keyframes spotlightFade {
  from { background: #FFFBF0; }
  to   { background: var(--white); }
}

.spotlight-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--wash);
  border: 1px solid var(--line);
  overflow: hidden;
}
.spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.spotlight-panel.is-active .spotlight-visual img { transform: scale(1.025); }
.spotlight-visual--blank { display: grid; place-items: center; }
.spotlight-visual-mark {
  font-family: var(--display);
  font-size: 5rem;
  color: var(--line-strong);
  line-height: 1;
}
.spotlight-visual-year {
  position: absolute;
  bottom: .55rem;
  left: .55rem;
  padding: .16rem .42rem;
  background: rgba(15, 30, 54, .92);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--gold-bright);
}

.spotlight-content { display: flex; flex-direction: column; min-width: 0; }
.spotlight-meta {
  margin: 0 0 .4rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
}
.spotlight-cites { color: var(--muted); font-weight: 500; }
.spotlight-title { font-size: 1.48rem; line-height: 1.24; margin-bottom: .55rem; }
.spotlight-title a { color: var(--ink); text-decoration: none; }
.spotlight-title a:hover { color: var(--royal-mid); }
.spotlight-authors {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: .85rem;
}
.spotlight-abstract {
  font-size: .91rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.spotlight-abstract p {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   RESEARCH STREAM CARDS & EXPANDABLE ACCORDION
   -------------------------------------------------------------------------- */
.stream-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.stream-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.65rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.stream-card:hover { border-color: var(--royal); color: inherit; transform: translateY(-2px); }

.stream-card-num {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
}
.stream-card-title {
  font-family: var(--display);
  font-size: 1.44rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
}
.stream-card-summary {
  font-size: .92rem;
  line-height: 1.62;
  color: var(--ink-soft);
  flex: 1;
}
.stream-card-methods {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--royal-mid);
  padding: .35rem .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stream-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .4rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
}

.stream-list { border-top: 1px solid var(--line); }
.stream { border-bottom: 1px solid var(--line); }
.stream:target { scroll-margin-top: 100px; }

.stream-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.35rem .25rem;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.stream-index { font-family: var(--mono); font-size: .74rem; font-weight: 600; color: var(--gold); }
.stream-heading { display: flex; flex-direction: column; gap: .15rem; }
.stream-title {
  font-family: var(--display);
  font-size: 1.46rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
}
.stream-count {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stream-head:hover .stream-title { color: var(--gold); }

.stream-icon {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
}
.stream-icon::before,
.stream-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .3s ease;
}
.stream-icon::before { width: 14px; height: 1.5px; top: 6px; left: 0; }
.stream-icon::after  { width: 1.5px; height: 14px; top: 0; left: 6px; }
.stream.is-open .stream-icon::after { transform: rotate(90deg); }

.stream-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s ease;
}
.stream.is-open .stream-body { grid-template-rows: 1fr; }
.stream-body-inner { overflow: hidden; }

.stream-summary {
  max-width: 74ch;
  margin: 0;
  padding: 0 0 .85rem 4.7rem;
  font-size: .96rem;
  line-height: 1.66;
  color: var(--ink-soft);
}
.stream-methods-bar {
  margin: 0 0 1rem 4.7rem;
  padding: .48rem .75rem;
  background: var(--gold-soft);
  border: 1px solid #DFC99B;
  font-size: .8rem;
  color: var(--ink);
  max-width: 74ch;
}
.stream-pub-list {
  list-style: none;
  display: grid;
  gap: .55rem;
  margin: 0 0 1.5rem 4.7rem;
  padding: 0;
}
.stream-pub-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .1rem .75rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.stream-pub-year {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  padding-top: .18rem;
}
.stream-pub-list a {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}
.stream-pub-list a:hover { color: var(--gold); text-decoration: underline; }
.stream-pub-journal {
  grid-column: 2;
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.stream-empty { padding: 0 0 1.4rem 4.7rem; font-size: .86rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   BOOKS, MONOGRAPHS & INSTRUMENTS
   -------------------------------------------------------------------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.book-card-cover {
  aspect-ratio: 3 / 3.7;
  max-height: 250px;
  background: var(--royal);
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.45rem 1.45rem;
}
.book-card-cat {
  margin: 0 0 .35rem;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-card-title {
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: .35rem;
}
.book-card-title a { color: var(--ink); text-decoration: none; }
.book-card-title a:hover { color: var(--gold); }
.book-card-authors { font-size: .82rem; font-weight: 600; color: var(--royal-mid); margin-bottom: .55rem; }
.book-card-summary { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.book-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.book-card-pub { font-size: .72rem; color: var(--muted); }

.books-showcase { display: grid; gap: 1.6rem; }
.book-feature-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.book-feature-cover {
  border: 1px solid var(--line);
  background: var(--royal);
  align-self: start;
}
.book-feature-body h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.book-feature-authors { font-size: .92rem; font-weight: 600; color: var(--royal-mid); margin-bottom: .4rem; }
.book-feature-pub { font-size: .84rem; color: var(--muted); margin-bottom: .8rem; }
.book-feature-summary { font-size: .95rem; line-height: 1.66; color: var(--ink-soft); }
.mono-inline { font-family: var(--mono); font-size: .76rem; }

/* --------------------------------------------------------------------------
   DUAL ROYAL CTA BAND & PARTICIPATION / JOIN FORMS
   -------------------------------------------------------------------------- */
.dual-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}
.royal-cta-card {
  display: flex;
  flex-direction: column;
  padding: 2.3rem 2.4rem;
  border-radius: 2px;
}
.royal-cta-card h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 600;
  margin-bottom: .75rem;
}
.royal-cta-card--navy {
  background: linear-gradient(145deg, #122544 0%, #0A162A 100%);
  color: var(--paper);
  border: 1px solid var(--gold);
}
.royal-cta-card--navy h2 { color: var(--paper); }
.royal-cta-card--navy .royal-cta-text { color: #D7E0EE; }
.royal-cta-card--navy .royal-cta-list { color: #E5ECF6; }

.royal-cta-card--ivory {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
}
.royal-cta-text { font-size: .95rem; line-height: 1.66; margin-bottom: 1rem; }
.royal-cta-list {
  padding-left: 1.15rem;
  display: grid;
  gap: .4rem;
  font-size: .86rem;
  margin-bottom: 1.5rem;
}
.royal-cta-actions { margin-top: auto; }

.participation-band {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 2.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
}
.participation-band h2 { font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.55rem); }
.participation-lede { max-width: 62ch; margin-top: .75rem; font-size: .96rem; color: var(--ink-soft); }
.participation-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }

.participate-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 3.8rem;
  align-items: start;
}
.participate-info h2 { font-family: var(--display); font-size: clamp(1.85rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.participate-info > p { color: var(--ink-soft); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0;
  display: grid;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: .18rem;
}
.steps li strong { display: block; font-size: .95rem; margin-bottom: .12rem; }
.steps li span { font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }

.participate-contact {
  padding: 1.15rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.participate-contact p { font-size: .86rem; color: var(--ink-soft); }

.participate-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
  scroll-margin-top: 100px;
}
.participate-form { padding: 2rem; }
.participate-form h2 { font-family: var(--display); font-size: 1.7rem; margin-bottom: 1.4rem; }

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field em { color: var(--danger); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .62rem .72rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 400;
}
.form-field textarea { line-height: 1.58; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
}

.consent-block {
  margin-top: .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.consent-title {
  margin: 0 0 .55rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.consent-text {
  max-height: 190px;
  overflow: auto;
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-check input { margin-top: .25rem; flex-shrink: 0; }
.participate-submit { width: 100%; margin-top: 1.2rem; }

.form-errors {
  padding: .9rem 1.1rem;
  margin-bottom: 1.2rem;
  background: #FBF3F3;
  border: 1px solid #D8B4B4;
  font-size: .84rem;
  color: #7A1D1D;
}
.form-errors ul { margin: 0; padding-left: 1.1rem; }

.panel-success { padding: 2.4rem; }
.panel-success h2 { font-family: var(--display); font-size: 1.9rem; margin-bottom: .8rem; }
.panel-success p { font-size: .94rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   PEOPLE CARDS (FELLOWS, CURRENT & FORMER STUDENTS)
   -------------------------------------------------------------------------- */
.people-group { margin-top: 2.6rem; }
.people-group:first-of-type { margin-top: 0; }
.people-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .55rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.people-group-head h3 {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.people-group-head span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.person-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: var(--royal);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}
.person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.03);
  transition: filter .45s ease, transform .7s ease;
}
.person-card:hover .person-media img {
  filter: grayscale(0);
  transform: scale(1.025);
}
.person-media--blank { display: grid; place-items: center; }
.person-initials {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: .04em;
}
.person-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.3rem 1.4rem;
}
.person-status {
  margin: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.person-name {
  font-family: var(--display);
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.2;
  margin: .2rem 0 .15rem;
}
.person-role { margin: 0; font-size: .83rem; font-weight: 600; color: var(--royal-mid); }
.person-affil { margin: .25rem 0 0; font-size: .78rem; color: var(--muted); }
.person-thesis { margin: .5rem 0 0; font-size: .85rem; line-height: 1.55; color: var(--ink-soft); }

.person-pubs {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin: .85rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px solid var(--line);
}
.person-pubs li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .45rem;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.person-pubs li > span { font-family: var(--mono); font-size: .68rem; color: var(--muted); padding-top: .12rem; }
.person-pubs a { color: var(--ink-soft); text-decoration: none; }
.person-pubs a:hover { color: var(--gold); text-decoration: underline; }

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 600;
}
.person-links a { text-decoration: none; }
.person-links a:hover { text-decoration: underline; }

.empty-note {
  padding: 1.5rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .92rem;
}

/* --------------------------------------------------------------------------
   PUBLICATION REPOSITORY & ENTRIES (LARGER TYPE, SIMPLE BORDERED BOXES)
   -------------------------------------------------------------------------- */
.id-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .36rem .78rem;
  background: rgba(15, 30, 54, .65);
  border: 1px solid rgba(223, 192, 130, .45);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .72rem;
  color: #E3EAF5;
  text-decoration: none;
}
.id-chip strong { font-family: var(--sans); color: var(--gold-bright); }
.id-chip:hover { border-color: var(--gold-bright); color: var(--white); }

.pub-controls {
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
}

.pub-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  margin-bottom: 1rem;
}

.pub-search-input,
.pub-sort-select {
  width: 100%;
  padding: .7rem .95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .93rem;
}
.pub-search-input:focus,
.pub-sort-select:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
}

.pub-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-bottom: 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill span { font-family: var(--mono); font-size: .68rem; opacity: .75; }
.filter-pill:hover { border-color: var(--gold); color: var(--ink); }
.filter-pill.is-active {
  background: var(--royal);
  border-color: var(--royal);
  color: var(--paper);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: .34rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.toc a {
  padding: .24rem .58rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.toc a:hover { border-color: var(--gold); color: var(--ink); background: var(--paper); }
.toc-cnt { opacity: .6; }

.pub-results-status { margin: .85rem 0 0; font-size: .82rem; color: var(--muted); }
.pub-list { display: grid; gap: .95rem; }

.pub-entry {
  padding: 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .16s ease;
}
.pub-entry:hover { border-color: var(--line-strong); }

.pub-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
  margin-bottom: .55rem;
}

.pub-year-tag {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .44rem;
  border-radius: 2px;
  background: var(--paper-tint);
  color: var(--ink);
}

.pub-journal-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--royal-mid);
}

.pub-flag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .1rem .46rem;
  border: 1px solid #D8C49A;
  border-radius: 2px;
  background: var(--gold-soft);
  color: #6E5120;
}

.pub-founder-tag {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .1rem .44rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-soft);
}

.pub-q-badge {
  font-size: .65rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 2px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: #705324;
}

.pub-cite-count {
  font-family: var(--mono);
  font-size: .67rem;
  padding: .1rem .45rem;
  border-radius: 2px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}

.pub-entry .pub-title {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.3;
  margin: .45rem 0 .48rem;
}
.pub-entry .pub-title a { color: var(--ink); text-decoration: none; }
.pub-entry .pub-title a:hover { color: var(--royal-mid); text-decoration: underline; }

.pub-authors {
  margin: 0 0 .95rem;
  font-size: .96rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.author-self {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}
.pub-biblio-detail { color: var(--muted); }

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .48rem;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .36rem .76rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pub-btn:hover { border-color: var(--royal); color: var(--royal); background: var(--white); }

.pub-btn-pdf { border-color: var(--royal); color: var(--royal); }
.pub-btn-pdf:hover { background: var(--royal); border-color: var(--royal); color: var(--paper); }

.pub-btn-doi { font-family: var(--mono); font-size: .74rem; }

/* --------------------------------------------------------------------------
   MEDIA / SYMPOSIA, CONTACT & ARTICLE PAGES
   -------------------------------------------------------------------------- */
.media-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.media-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-cat { color: var(--gold); }
.media-outlet { color: var(--muted); }
.media-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.26;
}
.media-title a { color: var(--ink); text-decoration: none; }
.media-title a:hover { color: var(--gold); }
.media-authors { font-size: .82rem; font-weight: 600; color: var(--royal-mid); margin: 0; }
.media-summary { font-size: .91rem; color: var(--ink-soft); margin: 0; }
.media-links {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: .6rem;
}

.page-hero {
  padding: 3.8rem 0 2.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-hero--royal {
  background: linear-gradient(135deg, #0D1C33 0%, #152A4A 65%, #091326 100%);
  color: var(--paper);
  border-bottom: 2px solid var(--gold);
}
.page-hero--royal h1 { color: var(--paper); font-family: var(--display); font-weight: 600; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.page-lede { max-width: 68ch; margin-top: 1rem; font-size: 1.04rem; color: var(--ink-soft); }
.page-lede-light { color: #D7E0EE; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
}
.page-hero-seal img {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}

.page-body { padding: 3.5rem 0 4.5rem; }

.year-block { margin-bottom: 3.2rem; scroll-margin-top: 95px; }
.year-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.year-head h2 { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--royal); }
.year-head p { margin: 0; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.65rem; background: var(--white); border: 1px solid var(--line); border-radius: 2px;
}
.contact-card .label { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact-card a { font-family: var(--display); font-size: 1.32rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }
.contact-card p { margin-top: .3rem; font-size: .87rem; color: var(--muted); }

.post-list { display: grid; gap: 1.25rem; max-width: 900px; }

.article { max-width: 780px; margin-inline: auto; }
.article-paper { max-width: 840px; }
.article-header { padding-bottom: 1.8rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); line-height: 1.14; }
.article-meta { margin-top: 1rem; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 1.6rem; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--gold); }

.note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .84rem;
  color: var(--muted);
}

.paper-head { display: grid; gap: 2rem; }
.paper-head--with-cover { grid-template-columns: minmax(0, 1fr) 190px; }
.paper-cover { align-self: start; border: 1px solid var(--line); background: var(--wash); }
.paper-cover img { width: 100%; height: auto; }

.paper-section { margin-top: 2.2rem; }
.paper-section-title {
  margin: 0 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.paper-abstract { font-family: var(--serif); font-size: 1.08rem; line-height: 1.74; color: var(--ink-soft); }
.paper-abstract p + p { margin-top: 1rem; }
.paper-streams { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.paper-streams a {
  display: inline-block;
  padding: .36rem .74rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .82rem;
  text-decoration: none;
}
.paper-streams a:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   CITATION MODAL
   -------------------------------------------------------------------------- */
.cite-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 17, 32, .68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.cite-modal-backdrop[hidden] { display: none !important; }

.cite-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 1.65rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.cite-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cite-modal-head h3 { font-size: 1.32rem; }
.cite-close {
  border: 1px solid var(--line);
  background: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}
.cite-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.cite-block:last-child { margin-bottom: 0; }
.cite-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .6rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cite-block-tools { display: flex; gap: .4rem; }
.cite-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.56;
  color: var(--ink);
}
.cite-pre-mono { font-family: var(--mono); font-size: .76rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 4rem 0 2.2rem;
  background: var(--royal-deep);
  color: #C7D0E0;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 2.8rem;
  padding-bottom: 2.6rem;
}
.footer-crest-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .9rem;
}
.footer-kicker {
  margin: 0 0 .2rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold-bright);
}
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--paper);
}
.footer-note { font-size: .84rem; line-height: 1.62; color: #9BA7BC; }
.footer-contact-line { margin-top: .85rem; font-size: .84rem; }
.footer-contact-line a { color: var(--gold-bright); text-decoration: none; font-weight: 600; }
.footer-heading {
  margin: 0 0 .9rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer-links { list-style: none; display: grid; gap: .48rem; font-size: .83rem; }
.footer-links a { color: #C7D0E0; text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-founder-lbl { display: block; color: var(--paper); font-size: .8rem; margin-bottom: .1rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(223, 192, 130, .22);
  font-size: .76rem;
  color: #9BA7BC;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #C7D0E0; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-sep { margin: 0 .5rem; opacity: .45; }

/* --------------------------------------------------------------------------
   ADMINISTRATION PANEL
   -------------------------------------------------------------------------- */
body.admin-body { background: var(--paper); }

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 25%, #162B4D 0%, #091326 100%);
}
.admin-login {
  width: 100%;
  max-width: 380px;
  padding: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 22px 48px rgba(0,0,0,.42);
}
.admin-login-crest {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: .32rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: .58rem .68rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
}
.admin-field textarea { line-height: 1.55; resize: vertical; }
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--royal);
}

.admin-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.admin-login-btn { width: 100%; margin-top: .3rem; }
.admin-login-msg {
  padding: .7rem .85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .82rem;
  color: var(--ink-soft);
}
.admin-login-msg.is-err {
  border-color: #D8B4B4;
  background: #FBF3F3;
  color: #7A1D1D;
}

.admin-top {
  border-bottom: 2px solid var(--gold);
  background: var(--royal-deep);
  color: var(--paper);
}
.admin-top-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--paper);
}
.admin-top-nav { display: flex; align-items: center; gap: 1.2rem; }
.admin-top-nav a { font-size: .8rem; font-weight: 600; text-decoration: none; color: #C8D1E0; }
.admin-top-nav a:hover { color: var(--gold-bright); }

.admin-shell { max-width: 1240px; margin-inline: auto; padding: 1.6rem 1.5rem 5rem; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.admin-tabs a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .64rem .82rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.admin-tabs a span {
  font-family: var(--mono);
  font-size: .63rem;
  padding: .04rem .34rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--muted);
}

.admin-flash {
  padding: .85rem 1.1rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.admin-flash-ok { border-color: #C9C0AE; background: #FBF7EE; color: var(--ink); }
.admin-flash-err { border-color: #D8B4B4; background: #FBF3F3; color: #7A1D1D; }

.admin-back { margin: 0 0 1rem; font-size: .8rem; }
.admin-back a { text-decoration: none; color: var(--muted); }
.admin-back a:hover { color: var(--ink); }

.admin-section-head { margin-bottom: 1.4rem; }
.admin-section-head h1 { font-family: var(--display); font-size: 2.05rem; font-weight: 600; }
.admin-section-head p { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); }

.admin-panel {
  padding: 1.55rem 1.65rem;
  margin-bottom: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.admin-panel h2 {
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.admin-panel-quiet { background: var(--paper-tint); }

.admin-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.admin-grid-top { align-items: start; margin-bottom: 1.4rem; }

.admin-hint { font-size: .82rem; line-height: 1.58; color: var(--muted); }
.admin-mono { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.admin-rule { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

.admin-checks { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1rem 0; }
.admin-checks label,
.admin-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.admin-check { margin: .5rem 0; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.2rem;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-search {
  width: 320px;
  max-width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: .85rem;
}
.admin-search:focus { outline: none; border-color: var(--royal); background: var(--white); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.admin-table th {
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.admin-table td { padding: .68rem .65rem; border-bottom: 1px solid #ECE6D9; vertical-align: top; }
.admin-table a { color: var(--ink); text-decoration: none; }
.admin-table a:hover { color: var(--gold); text-decoration: underline; }
.admin-sub { display: block; margin-top: .15rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.admin-flags { display: flex; flex-wrap: wrap; gap: .25rem; }

.flag {
  padding: .08rem .34rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.flag-home { border-color: #D8C9A8; background: #FBF6EA; color: #785A29; }
.flag-pdf { border-color: #B4C3D8; color: var(--royal); }

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  white-space: nowrap;
}
.admin-row-actions form { display: inline; }
.admin-row-actions a,
.admin-link-danger {
  padding: 0;
  border: 0;
  background: none;
  color: var(--royal-mid);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.admin-row-actions a:hover,
.admin-link-danger:hover { text-decoration: underline; }
.admin-link-danger { color: var(--danger); }

.admin-people-list, .admin-simple-list { display: grid; }
.admin-person-row, .admin-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.admin-person-row:first-child, .admin-simple-row:first-child { border-top: 0; }

.admin-person-thumb {
  display: grid;
  place-items: center;
  width: 42px; height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--royal);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.admin-person-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-person-info { flex: 1; display: flex; flex-direction: column; gap: .12rem; font-size: .84rem; }
.admin-person-info span { font-size: .72rem; color: var(--muted); }
.admin-simple-row > div:first-child { display: flex; flex-direction: column; gap: .12rem; font-size: .84rem; }
.admin-simple-row > div:first-child span { font-size: .72rem; color: var(--muted); }

.admin-fieldset { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); }
.admin-fieldset legend {
  padding: 0 .4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-multiselect {
  width: 100%;
  padding: .3rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: .82rem;
}
.admin-current-image {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: .5rem 0 1rem;
  font-size: .74rem;
  color: var(--muted);
}
.admin-current-image img { width: 70px; border: 1px solid var(--line); }
.admin-inline-form { display: inline; margin-right: .5rem; }

.admin-people-group { margin-top: 1.6rem; }
.admin-people-group:first-of-type { margin-top: 0; }
.admin-people-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0 .45rem;
  margin-bottom: .2rem;
  border-bottom: 1px solid var(--line);
}
.admin-people-group-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.admin-people-group-head span { font-family: var(--mono); font-size: .66rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .brand-sub { display: none; }
  .nav-panel { width: min(780px, calc(100vw - 2.5rem)); }
}

@media (max-width: 1020px) {
  .royal-hero-grid, .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .royal-metrics { grid-template-columns: repeat(2, 1fr); }
  .founders-grid, .books-grid, .grid-3 { grid-template-columns: 1fr; }
  .founder-dossier, .directorate-row { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; gap: 1.6rem; }
  .spotlight-stage { order: -1; }
  .stream-cards, .dual-cta-grid { grid-template-columns: 1fr; }
  .participation-band { grid-template-columns: 1fr; gap: 1.6rem; padding: 2rem; }
  .participate-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .inst-bar-right { display: none; }
  .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .pub-search-row { grid-template-columns: 1fr; }
  .spotlight-panel { grid-template-columns: 140px minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem; }
  .paper-head--with-cover, .book-feature-row, .page-hero-grid { grid-template-columns: 1fr; }
  .paper-cover, .book-feature-cover { max-width: 185px; }
  .stream-summary, .stream-methods-bar, .stream-pub-list, .stream-empty { margin-left: 0; padding-left: 0; }
}

@media (max-width: 680px) {
  .royal-hero { padding: 3.4rem 0 3rem; }
  .section { padding: 3.2rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .people-grid, .form-row, .spotlight-panel { grid-template-columns: 1fr; }
  .spotlight-visual { max-width: 190px; }
  .footer-bottom { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   INSTITUTIONAL HISTORY TIMELINE & BYLAWS CHARTER (who-we-are.php)
   -------------------------------------------------------------------------- */
.iipcs-timeline {
  display: grid;
  gap: 1.35rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.85rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--royal);
  border-radius: 2px;
}

.timeline-card--active {
  border-left-color: var(--gold);
  box-shadow: 0 8px 24px rgba(15, 30, 54, .06);
}

.timeline-year-col {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
}

.timeline-badge {
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline-year {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.timeline-body-col h3 {
  font-family: var(--display);
  font-size: 1.52rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink);
}

.timeline-body-col p {
  font-size: .95rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.bylaws-sheet {
  max-width: 980px;
  margin-inline: auto;
  padding: 3rem 3.2rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--royal);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line);
  border-radius: 2px;
}

.bylaws-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--royal);
}

.bylaws-header h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
}

.bylaws-sub {
  margin: .35rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--muted);
}

.bylaws-preamble {
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  background: var(--gold-soft);
  border: 1px solid #DFC99B;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink);
}

.bylaws-articles {
  display: grid;
  gap: 1.6rem;
}

.bylaw-art {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.bylaw-art:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bylaw-art h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--ink);
}

.bylaw-art h3 span {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .16rem .5rem;
  background: var(--royal);
  color: var(--gold-bright);
  border-radius: 2px;
}

.bylaw-art p {
  font-size: .94rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin-bottom: .65rem;
}

@media (max-width: 860px) {
  .timeline-card {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .timeline-year-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: .6rem;
  }
  .bylaws-sheet {
    padding: 1.8rem 1.4rem;
  }
  .bylaws-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --------------------------------------------------------------------------
   CONSULTING, COURSES & OPPORTUNITIES
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.service-card {
  padding: 1.7rem 1.7rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 2px;
}
.service-num {
  display: block;
  margin-bottom: .55rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: .55rem;
}
.service-card p { font-size: .9rem; line-height: 1.62; color: var(--ink-soft); }

.engagement-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem 2.6rem;
  background: var(--royal);
  color: var(--paper);
  border: 1px solid rgba(223, 192, 130, .38);
  border-top: 3px solid var(--gold);
}
.engagement-band h2 {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}
.engagement-band p { color: #D3DBE8; font-size: .95rem; }
.engagement-band .section-label { color: var(--gold-bright); }
.engagement-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.store-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.store-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.store-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 30% 20%, #1B3358 0%, #0B172A 70%);
  overflow: hidden;
}
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-cover-mark {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--gold-bright);
  letter-spacing: .08em;
}
.store-mode {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  padding: .2rem .55rem;
  background: rgba(8, 17, 32, .82);
  border: 1px solid rgba(223, 192, 130, .5);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.store-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.4rem;
}
.store-cat {
  margin: 0 0 .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.store-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .2rem;
}
.store-subtitle {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--royal-mid);
}
.store-desc { font-size: .87rem; line-height: 1.6; color: var(--ink-soft); }
.store-features {
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .28rem;
}
.store-features li {
  position: relative;
  padding-left: .8rem;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--muted);
}
.store-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.store-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.store-price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.store-price small { display: block; margin-top: .15rem; font-family: var(--sans); font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.store-foot .btn { padding: .55rem .8rem; font-size: .76rem; }

.opp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.opp-toolbar p { margin: 0; font-size: .78rem; color: var(--muted); }
.opp-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.opp-filter {
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.opp-filter:hover, .opp-filter.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

.opp-list { display: grid; gap: .9rem; }
.opp-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--royal);
}
.opp-card:hover { border-left-color: var(--gold); }
.opp-date { display: flex; flex-direction: column; gap: .2rem; }
.opp-date strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}
.opp-date span { font-size: .68rem; color: var(--muted); }
.opp-kicker {
  margin: 0 0 .2rem;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.opp-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .3rem;
}
.opp-title a { color: var(--ink); text-decoration: none; }
.opp-title a:hover { color: var(--gold); }
.opp-meta { margin: 0; font-size: .78rem; line-height: 1.55; color: var(--muted); }
.opp-summary { margin: .4rem 0 0; font-size: .83rem; line-height: 1.55; color: var(--ink-soft); }
.opp-side { text-align: right; }
.opp-deadline {
  display: inline-block;
  padding: .2rem .55rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.opp-source { display: block; margin-top: .35rem; font-size: .62rem; color: var(--muted); }

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  background: var(--gold-soft);
  border: 1px solid #DFC99B;
}
.support-band p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.support-band strong { color: var(--ink); }

@media (max-width: 1020px) {
  .store-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagement-band { grid-template-columns: 1fr; gap: 1.4rem; }
  .engagement-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-panel-grid { grid-template-columns: 1fr; }
  .nav-group { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 1.2rem; }
  .nav-group:last-child { border-bottom: 0; }
  .nav-panel { max-height: calc(100vh - 145px); overflow-y: auto; }
  .opp-card { grid-template-columns: 1fr; gap: .65rem; }
  .opp-side { text-align: left; }
}

@media (max-width: 680px) {
  .store-grid, .service-grid { grid-template-columns: 1fr; }
  .header-join { padding: .52rem .65rem; font-size: .72rem; }
  .header-join .header-join-long { display: none; }
  .nav-toggle { padding: .52rem .65rem; font-size: .72rem; }
  .brand-name { font-size: 1.1rem; white-space: normal; }
  .brand-crest { width: 42px; }
  .support-band { grid-template-columns: 1fr; }
  .engagement-band { padding: 1.8rem 1.4rem; }
}


/* --------------------------------------------------------------------------
   CLINICAL APPLICATION FIELDS & STORE FORM NOTES
   -------------------------------------------------------------------------- */
.form-intro {
  margin: -.35rem 0 1.1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-privacy-note {
  margin: .85rem 0 0;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-privacy-note a { color: var(--royal-mid); font-weight: 600; }
.clinical-fields {
  margin: 1rem 0 1.2rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--gold-soft);
  border: 1px solid #DFC99B;
  border-left: 3px solid var(--gold);
}
.clinical-notice { margin-bottom: 1rem; }
.clinical-notice .section-label { margin-bottom: .25rem; }
.clinical-notice p { font-size: .84rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: .4rem; }
.clinical-fields[hidden] { display: none; }

/* --------------------------------------------------------------------------
   ADMIN HOMEPAGE SPOTLIGHT
   -------------------------------------------------------------------------- */
.admin-spot-list { display: grid; gap: 1.1rem; }
.admin-spot-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.admin-spot-thumb {
  position: relative;
  align-self: start;
  aspect-ratio: 16 / 10;
  background: var(--royal);
  border: 1px solid var(--line);
  overflow: hidden;
}
.admin-spot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-spot-thumb--blank { display: flex; align-items: center; justify-content: center; }
.admin-spot-thumb--blank span { font-size: .68rem; color: #B9C4D6; letter-spacing: .08em; text-transform: uppercase; }
.admin-spot-thumb em {
  position: absolute;
  left: .4rem;
  bottom: .4rem;
  padding: .16rem .45rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-spot-thumb em.is-on { background: var(--gold); color: #0A1526; }
.admin-spot-thumb em.is-off { background: rgba(8, 17, 32, .85); color: #E8D8B4; border: 1px solid rgba(223, 192, 130, .4); }
.admin-spot-main h3 {
  margin: .18rem 0 .28rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
}
.admin-inline-link { font-size: .76rem; font-weight: 600; color: var(--royal-mid); text-decoration: none; }
.admin-inline-link:hover { color: var(--gold); }
.admin-spot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .7rem 1rem;
  align-items: end;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--line);
}
.admin-spot-form .admin-checks { grid-column: 1 / -1; margin: .2rem 0 0; }
.admin-spot-form .admin-actions { grid-column: 1 / -1; margin: 0; }
.admin-spot-form .admin-field { margin: 0; }

@media (max-width: 760px) {
  .admin-spot-item { grid-template-columns: 1fr; }
  .admin-spot-thumb { max-width: 260px; }
  .admin-spot-form { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   MONETIZATION, SUPPORT BAND & CONSENT BANNER
   -------------------------------------------------------------------------- */
.footer-support { margin-bottom: 2rem; }
.support-band--site {
  background: rgba(223, 192, 130, .12);
  border-color: rgba(223, 192, 130, .38);
}
.site-footer .support-band--site p { color: #D8DFEC; }
.site-footer .support-band--site strong { color: var(--gold-bright); }

.ad-slot {
  margin: 1.6rem 0;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.ad-slot[hidden] { display: none; }
.ad-slot-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 960px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  background: var(--royal);
  color: var(--paper);
  border: 1px solid rgba(223, 192, 130, .55);
  box-shadow: 0 18px 46px rgba(7, 16, 31, .35);
}
.consent-banner[hidden] { display: none; }
.consent-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.consent-banner p { margin: 0; font-size: .8rem; line-height: 1.5; color: #D8DFEC; max-width: 64ch; }
.consent-banner strong { color: var(--gold-bright); }
.consent-banner a { color: var(--gold-bright); }
.consent-banner-actions { display: flex; gap: .5rem; flex-shrink: 0; }


/* --------------------------------------------------------------------------
   CART & PAYPAL CHECKOUT
   -------------------------------------------------------------------------- */
.cart-wrap { max-width: 1080px; margin-inline: auto; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .86rem; }
.cart-table th { background: var(--royal); color: var(--paper); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.cart-table tfoot td { border-bottom: 0; background: rgba(223,192,130,.1); }
.cart-item { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.cart-item img { width: 52px; height: 52px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.cart-qty { display: flex; align-items: center; gap: .45rem; }
.cart-qty input { width: 62px; padding: .35rem .4rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.btn-small { padding: .35rem .7rem; font-size: .7rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: .95rem; }
.add-to-cart { display: inline-block; margin-right: .55rem; }
.checkout-panel { margin-top: 1.6rem; padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; background: rgba(223,192,130,.12); border: 1px solid rgba(223,192,130,.4); }
.checkout-panel > div { flex: 1 1 320px; }
.checkout-panel h2 { margin: .2rem 0 .5rem; }
.checkout-panel p { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--muted); }
.paypal-form { flex: 0 0 auto; text-align: center; }
.paypal-note { margin-top: .6rem !important; font-size: .68rem !important; }
