:root {
  --parchment: #fcfaf7;
  --champagne: #f1e9db;
  --midnight: #0f172a;
  --slate: #334155;
  --stone: #78716c;
  --gold: #b08d57;
  --deep-blue: #003087;
  --navy: #425772;
  --burgundy: #8d3c3d;
  --burgundy-deep: #572526;
  --olive: #576045;
  --mustard: #b99a45;
  --ink: #1a120c;
  --cream-ink: #f7f3ea;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.3);
  --cream: #f7f3ea;
  --g1: #007c85;
  --g2: #335c81;
  --g3: #7d337d;
  --g4: #d11c7a;
  --audience-col: 18.75rem;
  --head: "Readex Pro", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--midnight);
  font-family: var(--text);
  container-name: portal;
  container-type: inline-size;
}

a { color: var(--deep-blue); }
button, input { font-family: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.15; }
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; line-height: 1.55; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--midnight);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  z-index: 40;
}
.skip:focus { top: 0.5rem; }

.caps {
  font-family: var(--head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.muted { color: var(--stone); }
.lead { margin-top: 0.7rem; }

#top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.55rem 0;
  background: rgba(252, 250, 247, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
  display: flex;
  line-height: 0;
  border-radius: 4px;
}
.brand img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.brand:hover,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-open {
  display: none;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--midnight);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.menu-open:hover,
.menu-open:focus-visible,
.menu-open[aria-expanded="true"] {
  background: var(--midnight);
  color: #fff;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(15, 23, 42, 0.28);
  border: 0;
}

.sheet-label {
  margin: 0.85rem 0.75rem 0.15rem;
  font-family: var(--head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
}

#nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-wrap: nowrap;
  width: min(68rem, calc(100% - 8.5rem));
  padding: 0 1.5rem;
}

.lang-wrap {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
}

.corp-lang-select {
  font-family: var(--text);
  font-size: 0.88rem;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  background: var(--parchment);
  color: var(--midnight);
  border-radius: 4px;
  max-width: 8.5rem;
  cursor: pointer;
}

.corp-lang-select:not(.corp-lang-select--expanded) {
  max-width: 3.25rem;
  min-width: 2.75rem;
  padding: 6px 4px;
  text-align: center;
  text-align-last: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.corp-lang-select.corp-lang-select--expanded {
  max-width: 8.5rem;
  min-width: 0;
  padding: 6px 10px;
  text-align: start;
  text-align-last: start;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: normal;
}

.corp-lang-select:hover,
.corp-lang-select:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#nav > a,
.nav-btn {
  white-space: nowrap;
  text-decoration: none;
  color: var(--slate);
  background: transparent;
  border: 0;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

#nav > a.on,
.nav-btn.on,
#nav > a:hover,
.nav-btn:hover,
#nav > a:focus-visible,
.nav-btn:focus-visible {
  background: var(--midnight);
  color: #fff;
}

#nav > a.closed {
  color: var(--stone);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
#nav > a.closed.on,
#nav > a.closed:hover,
#nav > a.closed:focus-visible {
  background: var(--midnight);
  color: #fff;
  box-shadow: none;
}

.menu { position: relative; }

.drop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 16rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.35rem;
  box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.45);
}

.drop a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: var(--midnight);
  font-family: var(--head);
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
}
.drop a:hover,
.drop a:focus-visible,
.drop a.on {
  background: var(--midnight);
  color: #fff;
}
.drop a.closed { color: var(--stone); }
.drop a.closed:hover,
.drop a.closed:focus-visible,
.drop a.closed.on {
  background: var(--midnight);
  color: #fff;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}

.account-dock {
  position: fixed;
  left: max(1.75rem, env(safe-area-inset-left, 0px));
  bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.account {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  background: var(--midnight);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.7);
}
.account img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account:hover,
.account:focus-visible {
  background: var(--midnight);
  color: #fff;
  box-shadow: 0 0 0 3px var(--midnight);
}

.account-panel {
  width: min(18rem, calc(100vw - 2rem));
  background: #fff;
  color: var(--midnight);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.45);
}
.account-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
}
.account-note { margin-top: 0.45rem; font-size: 0.88rem; }
.account.account-signed-out { color: #fff; }
.account span,
.account { font-family: var(--head); font-weight: 700; }

.account-panel label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-family: var(--head);
  font-size: 0.75rem;
  font-weight: 600;
}
.account-panel input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: var(--midnight);
  font: inherit;
}
.auth-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: var(--midnight);
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.auth-btn:hover,
.auth-btn:focus-visible {
  background: var(--deep-blue);
  color: #fff;
}
.auth-google {
  background: #fff;
  color: var(--midnight);
  border: 1px solid var(--border-strong);
}
.auth-google:hover,
.auth-google:focus-visible {
  background: var(--midnight);
  color: #fff;
}
.auth-text {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--deep-blue);
  font-family: var(--head);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.auth-text:hover,
.auth-text:focus-visible {
  text-decoration: underline;
}
.auth-error {
  margin-top: 0.55rem;
  color: #8d3c3d;
  font-size: 0.85rem;
}
.account-panel { width: min(22rem, calc(100vw - 2rem)); }

#app {
  flex: 1;
  width: min(76rem, 100%);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 6.5rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0.8rem;
  min-height: 15rem;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
  color: #fff;
  background: var(--midnight);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.85));
  pointer-events: none;
}
.hero .caps { color: rgba(255, 255, 255, 0.85); }
.hero h1 { margin: 0.3rem 0 0.4rem; }
.hero p { max-width: 40rem; color: rgba(255, 255, 255, 0.92); }

.sub-page { width: 100%; max-width: 48rem; }
.sub-page h1 { font-size: 2rem; margin: 0; }
.sub-panel {
  margin-top: 1.15rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
}
.sub-panel h2 { margin: 0; font-size: 1.25rem; }
.sub-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}
.sub-panel--waived {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, #fff), #fff 3.2rem);
  box-shadow: inset 4px 0 0 var(--gold);
}
.sub-panel--note { border-left: 4px solid var(--navy); }
.sub-panel--missing {
  border-color: color-mix(in srgb, var(--burgundy) 45%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--burgundy) 10%, #fff), #fff 3.2rem);
  box-shadow: inset 4px 0 0 var(--burgundy);
}
.sub-panel--missing .sub-kicker { color: var(--burgundy); }
.sub-panel--missing a {
  color: var(--navy);
  font-weight: 650;
  text-underline-offset: 0.15em;
}
.sub-panel--missing a:hover,
.sub-panel--missing a:focus-visible {
  background: var(--navy);
  color: var(--cream);
}
.sub-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.sub-lead {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.sub-copy { margin: 0.65rem 0 0; color: var(--stone); max-width: 38rem; }
.sub-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--navy);
  font-family: var(--head);
  font-size: 0.78rem;
  font-weight: 700;
}
.sub-status.is-active { background: #e7efe4; color: #3d4a32; }
.sub-status.is-due { background: #f8ecec; color: var(--burgundy); }
.sub-status.is-cancel { background: #f8f1e4; color: #6b5424; }
.sub-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 1.15rem 0 0;
}
.sub-facts div { margin: 0; }
.sub-facts dt {
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.sub-facts dd { margin: 0.2rem 0 0; font-size: 1.05rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.sub-actions .profile-add,
.sub-actions .entry-remove { margin-top: 0; }
.sub-alert {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #f8f1e4;
  border: 1px solid var(--border);
}
.sub-alert.is-error { background: #f8ecec; color: var(--burgundy); }
.sub-table-wrap { overflow-x: auto; margin-top: 0.6rem; }
.sub-table { width: 100%; border-collapse: collapse; }
.sub-table th,
.sub-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sub-table th {
  font-family: var(--head);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.sub-dialog {
  border: 1px solid var(--border);
  background: var(--parchment, #fcfaf7);
  color: var(--midnight);
  padding: 1.25rem;
  max-width: 32rem;
}
.sub-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.sub-dialog h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
@media (max-width: 720px) {
  .sub-facts { grid-template-columns: 1fr; }
}

.uploads-page { width: 100%; }
.uploads-hero {
  position: relative;
  overflow: hidden;
  margin: -1.6rem -1.5rem 1.5rem;
  padding: 2.1rem 1.5rem 2.35rem;
  background: linear-gradient(135deg, #0f1f4d 0%, #1a3278 55%, #243d8f 100%);
  color: #fff;
}
.uploads-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -4%;
  width: min(42%, 16rem);
  aspect-ratio: 1;
  background: conic-gradient(
    from 200deg,
    #c4f542 0deg 55deg,
    #9b8cff 55deg 120deg,
    #5ec8f8 120deg 185deg,
    #7d9a72 185deg 250deg,
    #c4b6e0 250deg 310deg,
    transparent 310deg
  );
  opacity: 0.85;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  pointer-events: none;
}
.uploads-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.uploads-hero-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4f542;
}
.uploads-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: #fff;
}
.uploads-hero-lead {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.94);
}
.uploads-hero-lead a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.uploads-hero-lead a:hover,
.uploads-hero-lead a:focus-visible {
  background: #c4f542;
  color: #0f1f4d;
  outline: 2px solid #c4f542;
  outline-offset: 2px;
}
@media (max-width: 1260px) {
  .uploads-hero {
    margin-left: -6rem;
    margin-right: -1.5rem;
    padding-left: 6rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 720px) {
  .uploads-hero {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .uploads-hero::after { width: 7.5rem; opacity: 0.55; }
}
.uploads-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 24rem);
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin-top: 1.15rem;
}
.uploads-list-col h2 { margin: 0 0 0.7rem; font-size: 1.35rem; }
.uploads-add-col .upload-form {
  margin-top: 0;
  position: sticky;
  top: 4.6rem;
  grid-template-columns: 1fr;
}
.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}
.upload-form h2 { grid-column: 1 / -1; margin: 0; font-size: 1.2rem; }
.upload-form label { display: block; font-family: var(--head); font-weight: 600; font-size: 0.85rem; }
.upload-form label.wide { grid-column: 1 / -1; }
.upload-form input,
.upload-form select,
.upload-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--midnight);
  font: inherit;
}
.upload-form .profile-add { justify-self: start; }
.upload-form .muted { grid-column: 1 / -1; margin: 0; }
.upload-status { margin: 0.8rem 0 0; color: var(--navy); }
.upload-list, .sheet-uploads { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.upload-row, .sheet-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.sheet-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sheet-upload {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  align-items: flex-start;
}
.upload-kind {
  font-family: var(--head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--burgundy);
}
.upload-pending {
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone);
}
.upload-row .entry-remove { margin-left: auto; }
@media (max-width: 900px) {
  .uploads-split { grid-template-columns: 1fr; }
  .uploads-add-col .upload-form { position: static; }
}
@media (max-width: 720px) {
  .upload-form, .sheet-uploads { grid-template-columns: 1fr; }
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
}
.sec { margin-top: 1rem; }

.pill {
  display: inline-block;
  font-family: var(--head);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--slate);
}
.pill.gold { background: var(--gold); color: #fff; }

.profile-form { width: 100%; }
.entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}
.entry-field:has(textarea),
.entry-check,
.entry-actions,
.entry .chips,
.entry-legend { grid-column: 1 / -1; }
.q-head {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) var(--audience-col);
  align-items: center;
  gap: 0.75rem 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.save-mark {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  min-height: 1.1em;
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  color: var(--stone);
}
.save-mark.is-saved { color: #0d6b4d; letter-spacing: 0; text-transform: none; }
.save-tick { font-size: 1rem; line-height: 1; }
.save-mark.is-error { color: var(--burgundy); text-transform: none; letter-spacing: 0; }
.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;
}
.profile-form h1 { font-size: 2rem; }
.profile-lead { margin: 0.45rem 0 0.2rem; }
.profile-lead a { font-weight: 600; color: var(--deep-blue); }
.profile-lead a:hover,
.profile-lead a:focus-visible {
  background: var(--deep-blue);
  color: var(--cream-ink);
}
.q {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.q label,
.q-label {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
}
.q-line {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) var(--audience-col);
  align-items: center;
  gap: 0.75rem 0.35rem;
  margin-top: 0.45rem;
}
.q-line-solo { grid-template-columns: 4.75rem minmax(0, 1fr); }
.q input:not([type="file"]),
.q textarea,
.q select,
.entry input:not([type="checkbox"]),
.entry textarea,
.entry select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  color: var(--midnight);
  font: inherit;
}
.entry input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: var(--navy);
}
.q textarea { resize: vertical; min-height: 7rem; }
.q input::placeholder,
.q textarea::placeholder,
.entry input::placeholder,
.entry textarea::placeholder {
  color: #9c968e;
  font-style: italic;
  opacity: 1;
}
.upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
}
.upload-preview {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--champagne);
  color: var(--navy);
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-doc { border-radius: 0.45rem; }
.upload-copy { min-width: 0; }
.upload-name,
.upload-hint,
.upload-status { margin: 0; }
.upload-name { font-weight: 600; }
.upload-hint { margin-top: 0.15rem; color: var(--stone); font-size: 0.85rem; }
.upload-status { margin-top: 0.25rem; color: var(--burgundy); font-size: 0.85rem; }
.upload-btn {
  position: relative;
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--head);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.upload-btn:hover,
.upload-btn:focus-within {
  background: var(--navy);
  color: var(--cream-ink);
}
.upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.audience {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  background: var(--champagne);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.audience button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--stone);
  font-family: var(--head);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.38rem 0.4rem;
  white-space: nowrap;
  cursor: pointer;
}
.audience button:hover,
.audience button:focus-visible {
  background: #fff;
  color: var(--midnight);
}
.audience button[aria-pressed="true"]::before {
  content: "✓";
  margin-right: 0.28em;
  font-weight: 700;
}
.audience button[data-audience="private"][aria-pressed="true"],
.audience button[data-audience="private"][aria-pressed="true"]:hover,
.audience button[data-audience="private"][aria-pressed="true"]:focus-visible {
  background: var(--olive);
  color: var(--cream-ink);
}
.audience button[data-audience="fellows"][aria-pressed="true"],
.audience button[data-audience="fellows"][aria-pressed="true"]:hover,
.audience button[data-audience="fellows"][aria-pressed="true"]:focus-visible {
  background: var(--navy);
  color: var(--cream-ink);
}
.audience button[data-audience="public"][aria-pressed="true"],
.audience button[data-audience="public"][aria-pressed="true"]:hover,
.audience button[data-audience="public"][aria-pressed="true"]:focus-visible {
  background: var(--burgundy);
  color: var(--cream-ink);
}
.audience button:disabled,
.audience button:disabled:hover,
.audience button:disabled:focus-visible {
  background: transparent;
  color: #b7b0a6;
  cursor: not-allowed;
  box-shadow: none;
}

.profile-progress {
  position: relative;
  margin: 1.35rem 0 0.35rem;
}
.profile-progress ol {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.profile-progress li { flex: 1; min-width: 0; }
.profile-progress a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--stone);
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.profile-progress a[aria-current="step"] { color: var(--burgundy); }
.progress-mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
}
.profile-progress a.is-done .progress-mark {
  background: var(--navy);
  color: var(--cream-ink);
  border-color: var(--navy);
}
.profile-progress a[aria-current="step"] .progress-mark {
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--mustard);
  box-shadow: 0 0 0 4px #f3e6c8;
}
.profile-progress a:hover .progress-mark,
.profile-progress a:focus-visible .progress-mark {
  background: var(--navy);
  color: var(--cream-ink);
  border-color: var(--navy);
}
.profile-progress a[aria-current="step"]:hover .progress-mark,
.profile-progress a[aria-current="step"]:focus-visible .progress-mark {
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--mustard);
}
.profile-progress a[aria-current="step"] { color: var(--burgundy); }
.progress-rail {
  position: absolute;
  z-index: 0;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 0.9rem;
  height: 3px;
  background: var(--champagne);
  border-radius: 999px;
}
.progress-rail span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--burgundy));
  border-radius: 999px;
}
.profile-save-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}
.profile-save {
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--navy);
  color: var(--cream-ink);
  font-family: var(--head);
  font-weight: 700;
  cursor: pointer;
}
.profile-save:hover,
.profile-save:focus-visible {
  background: var(--midnight);
  color: var(--cream-ink);
}
.profile-save:disabled { cursor: wait; opacity: 0.72; }
.profile-save-status { margin: 0; color: var(--navy); font-weight: 600; }
.profile-save-status.is-error { color: var(--burgundy); }
.profile-next {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.4rem 0 0.4rem;
}
.profile-back,
.profile-forward {
  text-decoration: none;
  border-radius: 0.85rem;
}
.profile-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.65rem 0.95rem;
  background: #fff;
  color: var(--midnight);
  border: 1px solid var(--border-strong);
  font-family: var(--head);
  font-weight: 600;
}
.profile-back-name {
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 500;
}
.profile-back:hover,
.profile-back:focus-visible {
  background: var(--navy);
  color: var(--cream-ink);
  border-color: var(--navy);
}
.profile-back:hover .profile-back-name,
.profile-back:focus-visible .profile-back-name { color: var(--cream-ink); }
.profile-forward {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  margin-left: auto;
  min-width: min(16rem, 70%);
  padding: 0.75rem 1.1rem;
  background: var(--burgundy);
  color: var(--cream-ink);
}
.profile-forward-kicker {
  font-family: var(--head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3d6d2;
}
.profile-forward-name {
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 700;
}
.profile-forward:hover,
.profile-forward:focus-visible {
  background: var(--burgundy-deep);
  color: var(--cream-ink);
}
.profile-panel { margin-top: 0.35rem; }
.profile-panel h2 { margin: 0.85rem 0 0.15rem; color: var(--navy); }
.profile-sub {
  margin: 1.15rem 0 0.15rem;
  font-size: 1.05rem;
}
.q-hint { margin-top: 0.25rem; color: var(--stone); font-size: 0.85rem; }
.q-hint a { color: var(--deep-blue); font-weight: 600; }
.q-hint a:hover,
.q-hint a:focus-visible { text-decoration: underline; }
a.profile-add { display: inline-block; text-decoration: none; }
.offer-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.offer-list li { margin-top: 0.9rem; }
.offer-list a { font-family: var(--head); font-weight: 600; color: var(--deep-blue); }
.offer-list a:hover,
.offer-list a:focus-visible { text-decoration: underline; }
.offer-list p { margin: 0.2rem 0 0; color: var(--slate); }
.q-line-start { align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; min-width: 0; }
.q .chips label,
.entry .chips label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}
.entry .chips label:has(input:checked) {
  border-color: var(--navy);
  background: #eef2f6;
  color: var(--navy);
}
.entry {
  margin-top: 0.85rem;
  padding: 0.35rem 0.9rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}
.entry-field { display: block; margin-top: 0.7rem; }
.entry-field span,
.entry-legend {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--head);
  font-size: 0.85rem;
  font-weight: 600;
}
.entry-field {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  column-gap: 0.35rem;
  align-items: start;
}
.entry-field > :not(.save-mark) { grid-column: 2; }
.entry-check {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: center;
  margin-top: 0.35rem;
  grid-column: 1;
}
.entry-check .check-copy {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate);
  font-weight: 500;
}
.entry-actions { display: flex; justify-content: flex-end; margin-top: 0.7rem; }
.profile-add,
.entry-remove {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--midnight);
  font-family: var(--head);
  font-weight: 600;
  cursor: pointer;
}
.profile-add { margin-top: 0.85rem; padding: 0.45rem 0.9rem; }
.entry-remove { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.profile-add:hover,
.profile-add:focus-visible,
.entry-remove:hover,
.entry-remove:focus-visible {
  background: var(--navy);
  color: var(--cream-ink);
  border-color: var(--navy);
}
.resource-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.resource-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.ellipsis::after {
  content: "...";
  display: inline-block;
  width: 1.1em;
  animation: profile-dots 1.1s steps(4, end) infinite;
}
@keyframes profile-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

@media (max-width: 860px) {
  .entry { grid-template-columns: 1fr; }
  .q-line,
  .q-line-solo { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .q-line .audience { grid-column: 2; }
  .q-head { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .q-head .audience { grid-column: 2; }
  .audience { width: max-content; max-width: 100%; }
  .audience button { flex: none; padding: 0.38rem 0.72rem; }
}

@media (max-width: 1260px) {
  #top { justify-content: flex-start; padding-left: 4.4rem; padding-right: 4.6rem; }
  .menu-open { display: inline-flex; }
  #nav {
    display: none;
    width: auto;
    position: fixed;
    z-index: 24;
    left: 0.75rem;
    right: 0.75rem;
    top: 4.2rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    padding: 0.35rem 0.35rem 1rem;
    box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.55);
  }
  #nav.open { display: flex; width: auto; padding: 0.35rem 0.35rem 1rem; }
  #nav > a,
  .drop a {
    border-radius: 0.55rem;
  }
  .drop {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.2rem 0.35rem;
  }
  .hero h1 { font-size: 1.7rem; }
  #app { padding-left: 6rem; }
  .profile-next { flex-direction: column; }
  .profile-forward { min-width: 0; width: 100%; margin-left: 0; }
  .progress-label { font-size: 0.64rem; }
  .profile-view-bar { align-items: stretch; }
  .profile-edit { justify-content: center; }
}

.profile-edit-back { margin: 0 0 0.6rem; }
.profile-edit-back a { font-family: var(--head); font-weight: 600; color: var(--deep-blue); }
.profile-edit-back a:hover,
.profile-edit-back a:focus-visible { text-decoration: underline; }

.profile-view-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.accent-picker { position: relative; }
.accent-current {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--navy);
  font-family: var(--head);
  font-weight: 600;
  cursor: pointer;
}
.accent-current:hover,
.accent-current:focus-visible {
  border-color: var(--midnight);
  color: var(--navy);
  background: #fff;
}
.accent-choices {
  display: none;
  position: absolute;
  z-index: 6;
  top: 100%;
  right: 0;
  gap: 0.45rem;
  padding: 0.7rem 0.55rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(26, 18, 12, 0.12);
}
.accent-picker:hover .accent-choices,
.accent-picker:focus-within .accent-choices,
.accent-picker.is-open .accent-choices { display: flex; }
.accent-swatch {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.accent-current .accent-swatch { cursor: inherit; }
.accent-swatch[aria-pressed="true"] {
  outline: 2px solid var(--midnight);
  outline-offset: 3px;
}
.accent-swatch:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 3px;
}
.accent-swatch--navy { background: #425772; }
.accent-swatch--burgundy { background: #8d3c3d; }
.accent-swatch--olive { background: #576045; }
.accent-swatch--teal { background: #346470; }
.accent-swatch--purple { background: #5c3a5b; }
.accent-swatch--mustard { background: #b99a45; }
.accent-swatch--orange { background: #b4733d; }
.accent-name {
  font-family: var(--head);
  font-weight: 600;
  color: var(--navy);
}
.accent-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.accent-status.is-error {
  position: static;
  width: auto;
  height: auto;
  margin: 0.35rem 0 0;
  overflow: visible;
  clip: auto;
  color: var(--burgundy);
  font-size: 0.9rem;
}
.profile-view-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.view-as-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 18rem;
  min-width: 0;
}
.view-as-row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
}
.view-as {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--head);
  font-weight: 600;
}
.personal-url {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.45;
}
.personal-url a {
  font-family: var(--head);
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.personal-url a:hover,
.personal-url a:focus-visible {
  color: var(--deep-blue);
}
.view-as select {
  min-width: 16rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--midnight);
  font: inherit;
}
.profile-edit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.15rem;
  background: var(--burgundy);
  color: var(--cream-ink);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 700;
}
.profile-edit:hover,
.profile-edit:focus-visible {
  background: var(--burgundy-deep);
  color: var(--cream-ink);
}
.view-note {
  margin: 0 0 0.6rem;
  max-width: 24rem;
  color: var(--slate);
  line-height: 1.4;
}
.view-signin { margin: 0.7rem 0 0; }
.sheet-hero {
  --hero-scale: 0.8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(calc(36rem * var(--hero-scale)), calc(72vh * var(--hero-scale)));
  margin-top: 1rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--midnight);
}
.sheet-portrait {
  position: relative;
  min-height: min(calc(36rem * var(--hero-scale)), calc(72vh * var(--hero-scale)));
  background:
    linear-gradient(160deg, #6b705c 0%, #425772 55%, #0f172a 100%);
}
.sheet-portrait > img {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100%;
  height: calc(100% / var(--hero-scale));
  object-fit: cover;
  object-position: center 18%;
  transform: translate(-50%, -50%) scale(var(--hero-scale));
  transform-origin: center center;
}
.sheet-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-size: clamp(calc(4rem * var(--hero-scale)), calc(8vw * var(--hero-scale)), calc(7rem * var(--hero-scale)));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.88);
}
.sheet-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  column-gap: calc(1.15rem * var(--hero-scale));
  row-gap: calc(2.6rem * var(--hero-scale));
  min-height: min(calc(36rem * var(--hero-scale)), calc(72vh * var(--hero-scale)));
  padding: calc(2.4rem * var(--hero-scale)) calc(2.2rem * var(--hero-scale)) calc(2.4rem * var(--hero-scale)) 10%;
  color: var(--cream-ink);
  background: var(--midnight);
}
.sheet-identity-copy { display: contents; }
.sheet-person {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: calc(1.15rem * var(--hero-scale));
  min-width: 0;
}
.sheet-mark-slot {
  flex: none;
  min-height: 0;
}
.sheet-mark {
  display: block;
  width: calc(8.25rem * var(--hero-scale));
  height: auto;
}
.sheet-name-block {
  min-width: 0;
}
.sheet-grade {
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: calc(0.32rem * var(--hero-scale)) calc(0.75rem * var(--hero-scale)) calc(0.28rem * var(--hero-scale));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-grade, var(--gold)) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-grade, var(--gold)) 62%, transparent);
  font-family: var(--head);
  font-size: calc(0.72rem * var(--hero-scale));
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet-details {
  grid-column: 1 / -1;
  min-width: 0;
}
.sheet-identity h1 {
  margin: 0;
  font-size: clamp(calc(2.6rem * var(--hero-scale)), calc(4.6vw * var(--hero-scale)), calc(4.4rem * var(--hero-scale)));
  font-weight: 700;
  color: #fff;
  max-width: 12ch;
}
.sheet-role,
.sheet-identity .sheet-meta,
.sheet-identity .sheet-place,
.sheet-identity .sheet-web {
  grid-column: 1 / -1;
  margin: 0;
}
.sheet-role {
  font-size: calc(1.35rem * var(--hero-scale));
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.sheet-identity .sheet-meta {
  margin-top: 1.2rem;
  min-height: 1.45em;
  color: rgba(247, 243, 234, 0.86);
  line-height: 1.45;
}
.sheet-identity .sheet-web {
  margin-top: calc(0.45rem * var(--hero-scale));
  font-size: calc(1rem * var(--hero-scale));
  color: rgba(247, 243, 234, 0.86);
  line-height: 1.45;
}
.sheet-identity .sheet-place {
  display: flex;
  align-items: center;
  gap: calc(0.45rem * var(--hero-scale));
  margin-top: calc(0.65rem * var(--hero-scale));
  font-size: calc(1rem * var(--hero-scale));
  color: rgba(247, 243, 234, 0.86);
  line-height: 1.45;
}
.sheet-place .sheet-flag {
  display: block;
  flex: none;
  width: calc(1.25rem * var(--hero-scale));
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(247, 243, 234, 0.45);
}
.sheet-web a { color: var(--cream-ink); font-weight: 600; }
.sheet-web a:hover,
.sheet-web a:focus-visible { color: #fff; text-decoration: underline; }
.profile-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.profile-sheet:empty { display: none; }
.sheet-suggest {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid var(--burgundy);
  border-radius: 0;
  background: transparent;
  color: var(--slate);
}
.sheet-block {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.sheet-tone-about { padding: 0.15rem 0 0; }
.sheet-block h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.sheet-block h3 {
  margin: 1.5rem 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--burgundy);
}
.sheet-bio {
  margin-top: 0.7rem;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.sheet-chips, .sheet-history, .sheet-pubs {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.sheet-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sheet-chips li {
  padding: 0.28rem 0.7rem;
  border-radius: 0;
  background: var(--champagne);
  color: var(--midnight);
  font-size: 0.85rem;
}
.sheet-tone-forums .sheet-chips li {
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
}
.sheet-history, .sheet-pubs { margin-top: 0.85rem; }
.sheet-history li, .sheet-pubs li {
  margin: 0;
  padding: 0.95rem 0 1.05rem;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.sheet-history li:first-child,
.sheet-pubs li:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}
.sheet-events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.sheet-events-nav { display: flex; gap: 0.4rem; }
.sheet-events-scroll {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-events-scroll:hover,
.sheet-events-scroll:focus-visible {
  background: var(--navy);
  color: var(--cream-ink);
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.sheet-events-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  margin-top: 0.85rem;
}
.sheet-events-track:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.sheet-events {
  display: flex;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sheet-events li {
  flex: 0 0 12.5rem;
  scroll-snap-align: start;
  margin: 0;
  padding: 1rem 0.85rem;
  border: 2px solid var(--badge, var(--navy));
  border-radius: 0.5rem;
  background: var(--badge-soft, rgba(66, 87, 114, 0.1));
  text-align: center;
}
.sheet-event-year {
  display: block;
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--badge, var(--navy));
}
.sheet-events strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--midnight);
}
.sheet-event-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.sheet-history strong,
.sheet-pubs li {
  display: block;
  font-family: var(--head);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--midnight);
  overflow-wrap: anywhere;
}
.sheet-kicker {
  display: block;
  margin-top: 0.28rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.4;
}
.sheet-note {
  margin: 0.5rem 0 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.6;
}
.sheet-tags {
  margin: 0.45rem 0 0;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.45;
}
.sheet-employment {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.45;
}
.sheet-facts { margin: 0.35rem 0 0; }
.sheet-facts div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  margin: 0;
  padding: 0.72rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.sheet-facts div:first-child { border-top: 0; }
.sheet-facts dt {
  font-family: var(--head);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.sheet-facts dd {
  margin: 0;
  color: var(--midnight);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sheet-empty { margin-top: 1rem; color: var(--slate); }
.profile-view[data-accent="navy"] { --card: #425772; --card-ink: #f7f3ea; --card-grade: #e8d5a3; --badge: #425772; --badge-soft: rgba(66, 87, 114, 0.1); }
.profile-view[data-accent="burgundy"] { --card: #8d3c3d; --card-ink: #f7f3ea; --card-grade: #e8d5a3; --badge: #8d3c3d; --badge-soft: rgba(141, 60, 61, 0.1); }
.profile-view[data-accent="olive"] { --card: #576045; --card-ink: #f7f3ea; --card-grade: #e8d5a3; --badge: #576045; --badge-soft: rgba(87, 96, 69, 0.12); }
.profile-view[data-accent="teal"] { --card: #346470; --card-ink: #f7f3ea; --card-grade: #e8d5a3; --badge: #346470; --badge-soft: rgba(52, 100, 112, 0.1); }
.profile-view[data-accent="purple"] { --card: #5c3a5b; --card-ink: #f7f3ea; --card-grade: #e8d5a3; --badge: #5c3a5b; --badge-soft: rgba(92, 58, 91, 0.1); }
.profile-view[data-accent="mustard"] { --card: #b99a45; --card-ink: #f4f8ff; --card-grade: #e4eef8; --badge: #6e5420; --badge-soft: rgba(185, 154, 69, 0.18); }
.profile-view[data-accent="orange"] { --card: #b4733d; --card-ink: #fff; --card-grade: #f3e6c8; --badge: #8a4e22; --badge-soft: rgba(180, 115, 61, 0.14); }
.profile-view .sheet-identity,
.profile-view .sheet-tone-forums,
.profile-view .sheet-tone-work,
.profile-view .sheet-tone-contact {
  background: var(--card);
  color: var(--card-ink);
}
.profile-view .sheet-tone-forums,
.profile-view .sheet-tone-work,
.profile-view .sheet-tone-contact {
  padding: 1.4rem 1.5rem 1.5rem;
}
.profile-view .sheet-identity h1,
.profile-view .sheet-identity .sheet-role,
.profile-view .sheet-identity .sheet-meta,
.profile-view .sheet-identity .sheet-place,
.profile-view .sheet-identity .sheet-web,
.profile-view .sheet-identity .sheet-web a,
.profile-view .sheet-tone-forums h2,
.profile-view .sheet-tone-work h2,
.profile-view .sheet-tone-contact h2,
.profile-view .sheet-tone-forums strong,
.profile-view .sheet-tone-work strong,
.profile-view .sheet-tone-contact strong,
.profile-view .sheet-tone-forums .sheet-kicker,
.profile-view .sheet-tone-work .sheet-kicker,
.profile-view .sheet-tone-contact .sheet-kicker,
.profile-view .sheet-tone-forums .sheet-note,
.profile-view .sheet-tone-work .sheet-note,
.profile-view .sheet-tone-contact .sheet-note,
.profile-view .sheet-tone-forums .sheet-tags,
.profile-view .sheet-tone-work .sheet-employment,
.profile-view .sheet-tone-work .sheet-tags,
.profile-view .sheet-tone-contact .sheet-tags,
.profile-view .sheet-tone-contact .sheet-facts dt,
.profile-view .sheet-tone-contact .sheet-facts dd,
.profile-view .sheet-tone-forums a,
.profile-view .sheet-tone-work a,
.profile-view .sheet-tone-contact a {
  color: var(--card-ink);
}
.profile-view .sheet-identity .sheet-role {
  color: #fff;
  font-weight: 600;
}
.profile-view .sheet-identity .sheet-grade { color: var(--card-grade); }
.profile-view .sheet-identity .sheet-web a:hover,
.profile-view .sheet-identity .sheet-web a:focus-visible,
.profile-view .sheet-tone-forums a:hover,
.profile-view .sheet-tone-forums a:focus-visible,
.profile-view .sheet-tone-work a:hover,
.profile-view .sheet-tone-work a:focus-visible,
.profile-view .sheet-tone-contact a:hover,
.profile-view .sheet-tone-contact a:focus-visible {
  color: var(--card-ink);
  text-decoration: underline;
}
.place { position: relative; }
.place-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.45);
}
.place-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--midnight);
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.place-list button:hover,
.place-list button:focus-visible {
  background: var(--navy);
  color: var(--cream-ink);
}
.place-empty { padding: 0.45rem 0.55rem; color: var(--stone); }
.event-match {
  margin: 0.35rem 0 0;
  color: var(--slate);
  font-size: 0.88rem;
}
.event-match button {
  margin-left: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--deep-blue);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

@media (min-width: 1041px) {
  .profile-view .sheet-hero {
    width: 100cqw;
    max-width: 100cqw;
    margin-left: calc(50% - 50cqw);
    margin-right: calc(50% - 50cqw);
    border-radius: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36rem) minmax(0, 36rem) minmax(0, 1fr);
  }
  .profile-view .sheet-portrait { grid-column: 1 / 3; }
  .profile-view .sheet-identity {
    grid-column: 3 / 5;
    padding-left: calc(3.6rem * var(--hero-scale));
  }
  .profile-view .sheet-portrait > img {
    object-position: calc(50% + (50cqw - min(36rem, 50cqw)) / 2) 18%;
  }
}

@media (max-width: 1040px) {
  .sheet-hero { grid-template-columns: 1fr; min-height: 0; }
  .sheet-portrait {
    min-height: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: calc((100svh - 25rem) * var(--hero-scale));
  }
  .sheet-portrait > img { object-position: center 22%; }
  .sheet-identity {
    min-height: 0;
    column-gap: calc(0.85rem * var(--hero-scale));
    row-gap: calc(1.6rem * var(--hero-scale));
    padding: calc(1.35rem * var(--hero-scale)) calc(1.15rem * var(--hero-scale));
  }
  .sheet-identity .sheet-meta { margin-top: 0.7rem; }
  .sheet-identity .sheet-place { margin-top: calc(0.65rem * var(--hero-scale)); }
  .sheet-person { gap: calc(0.85rem * var(--hero-scale)); }
  .sheet-mark-slot { min-height: 0; }
  .sheet-mark { width: calc(5.5rem * var(--hero-scale)); }
  .sheet-identity h1 {
    font-size: clamp(calc(2.1rem * var(--hero-scale)), calc(9vw * var(--hero-scale)), calc(3rem * var(--hero-scale)));
    max-width: none;
  }
}

@media (max-width: 720px) {
  #app {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .sheet-facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}

body.is-staff {
  background: #0b2f6b;
  color: #f7f3ea;
}
body.is-staff #top {
  background: #0b2f6b;
  border-bottom-color: rgba(247, 243, 234, 0.22);
  flex-wrap: wrap;
  align-items: stretch;
}
body.is-staff .brand,
body.is-staff .lang-wrap {
  top: 1.55rem;
}
body.is-staff .staff-portal-name {
  flex: 1 1 100%;
  margin: 0.2rem 0 0.15rem;
  padding: 0 6rem;
  text-align: center;
  font-family: var(--head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f7f3ea;
}
body.is-staff .staff-portal-name::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin: 0.28rem auto 0;
  background: #e8d5a3;
}
body.is-staff a.staff-fellows {
  margin-right: 1.75rem;
  margin-left: 0.2rem;
  position: relative;
  color: #0b2f6b;
  background: #e8d5a3;
  border-radius: 0.35rem;
  font-weight: 600;
  box-shadow: none;
}
body.is-staff a.staff-fellows::before {
  content: "\2190";
  margin-right: 0.4rem;
}
body.is-staff a.staff-fellows::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(247, 243, 234, 0.45);
}
body.is-staff #nav > a.staff-fellows:hover,
body.is-staff #nav > a.staff-fellows:focus-visible {
  background: #f7f3ea;
  color: #0b2f6b;
  outline: 2px solid #e8d5a3;
  outline-offset: 3px;
  box-shadow: none;
}
body.is-staff #staff-subnav {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.4rem;
  width: 100%;
  padding: 0.35rem 1rem 0.55rem;
  border-top: 1px solid rgba(247, 243, 234, 0.22);
}
body.is-staff #staff-subnav.is-spread {
  justify-content: space-evenly;
  align-items: center;
  gap: 0.35rem 1.25rem;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.2rem 2.5rem;
  background: #123a7a;
  border-top: 1px solid rgba(247, 243, 234, 0.16);
}
body.is-staff #staff-subnav[hidden] {
  display: none;
}
body.is-staff #staff-subnav a,
body.is-staff #staff-subnav .sub-btn {
  color: #f7f3ea;
  background: transparent;
  text-decoration: none;
  font-family: var(--head);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
body.is-staff #staff-subnav .sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
body.is-staff #staff-subnav .sub-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
body.is-staff #staff-subnav .menu.open .sub-btn::after {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}
body.is-staff #staff-subnav .staff-subnav-solo {
  position: relative;
  margin-right: 0.6rem;
}
body.is-staff #staff-subnav .staff-subnav-solo::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: rgba(247, 243, 234, 0.5);
}
body.is-staff #staff-subnav a:hover,
body.is-staff #staff-subnav a:focus-visible,
body.is-staff #staff-subnav a.on,
body.is-staff #staff-subnav .sub-btn:hover,
body.is-staff #staff-subnav .sub-btn:focus-visible,
body.is-staff #staff-subnav .sub-btn.on {
  background: transparent;
  color: #e8d5a3;
  box-shadow: inset 0 -2px 0 #e8d5a3;
  outline: 2px solid transparent;
  outline-offset: 3px;
}
body.is-staff #staff-subnav a:focus-visible,
body.is-staff #staff-subnav .sub-btn:focus-visible {
  outline-color: #e8d5a3;
}
body.is-staff #staff-subnav .drop a:hover,
body.is-staff #staff-subnav .drop a:focus-visible,
body.is-staff #staff-subnav .drop a.on {
  background: transparent;
  color: #e8d5a3;
  border-radius: 0.2rem;
  box-shadow: inset 3px 0 0 #e8d5a3;
}
body.is-staff #staff-subnav .drop {
  min-width: 15rem;
  padding: 0.4rem;
  background: #123a7a;
  border-color: rgba(247, 243, 234, 0.35);
}
body.is-staff #staff-subnav .drop a {
  border-radius: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}
body.is-staff #staff-subnav .menu:nth-last-child(-n + 2) .drop {
  left: auto;
  right: 0;
}
body.is-staff #nav {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 0.15rem;
  box-sizing: border-box;
  min-height: 3.25rem;
  width: 100%;
  max-width: none;
  padding: 0.2rem 1.25rem;
}
body.is-staff #nav > a,
body.is-staff .nav-btn,
body.is-staff .sheet-label {
  color: #f7f3ea;
  background: transparent;
}
body.is-staff #nav > a.staff-fellows {
  margin-right: 1.75rem;
  margin-left: 0.2rem;
  color: #0b2f6b;
  background: #e8d5a3;
  border-radius: 0.35rem;
  font-weight: 600;
  box-shadow: none;
}
body.is-staff #nav > a.on,
body.is-staff .nav-btn.on,
body.is-staff #nav > a:hover,
body.is-staff .nav-btn:hover,
body.is-staff #nav > a:focus-visible,
body.is-staff .nav-btn:focus-visible,
body.is-staff .drop a:hover,
body.is-staff .drop a:focus-visible,
body.is-staff .drop a.on,
body.is-staff #nav > a.closed.on,
body.is-staff #nav > a.closed:hover,
body.is-staff #nav > a.closed:focus-visible,
body.is-staff .drop a.closed:hover,
body.is-staff .drop a.closed:focus-visible,
body.is-staff .drop a.closed.on {
  background: transparent;
  color: #e8d5a3;
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: inset 0 -2px 0 #e8d5a3;
}
body.is-staff #nav > a:focus-visible,
body.is-staff .nav-btn:focus-visible,
body.is-staff .drop a:focus-visible {
  outline-color: #e8d5a3;
}
body.is-staff .drop a:hover,
body.is-staff .drop a:focus-visible,
body.is-staff .drop a.on,
body.is-staff .drop a.closed:hover,
body.is-staff .drop a.closed:focus-visible,
body.is-staff .drop a.closed.on {
  box-shadow: inset 3px 0 0 #e8d5a3;
  border-radius: 0.2rem;
}
body.is-staff #nav > a.closed,
body.is-staff .drop a.closed {
  color: #f7f3ea;
  box-shadow: inset 0 0 0 1px rgba(247, 243, 234, 0.45);
}
body.is-staff .drop {
  background: #123a7a;
  border-color: rgba(247, 243, 234, 0.28);
  box-shadow: none;
  max-height: min(70vh, 28rem);
  overflow: auto;
}
body.is-staff .drop a {
  color: #f7f3ea;
}
body.is-staff .menu-open {
  background: transparent;
  color: #f7f3ea;
  border-color: rgba(247, 243, 234, 0.55);
}
body.is-staff .menu-open:hover,
body.is-staff .menu-open:focus-visible,
body.is-staff .menu-open[aria-expanded="true"] {
  background: #f7f3ea;
  color: #0b2f6b;
  outline: 2px solid #f7f3ea;
  outline-offset: 3px;
}
body.is-staff .corp-lang-select {
  background: transparent;
  color: #f7f3ea;
  border-color: rgba(247, 243, 234, 0.55);
}
body.is-staff .corp-lang-select:hover,
body.is-staff .corp-lang-select:focus-visible {
  background: #f7f3ea;
  color: #0b2f6b;
  border-color: #f7f3ea;
  outline-color: #f7f3ea;
}
body.is-staff .staff-page {
  max-width: 46rem;
  padding-top: 1.2rem;
}
body.is-staff #app:has(.staff-registry),
body.is-staff #app:has(.staff-registry-loading) {
  width: min(96rem, calc(100% - 1.5rem));
}
body.is-staff .staff-registry {
  margin: 0.4rem 0 2rem;
  padding: 0.2rem 0 1.6rem;
  background: transparent;
  color: #f7f3ea;
}
body.is-staff .staff-registry-loading {
  color: #f7f3ea;
  margin: 1.2rem 0;
}
body.is-staff .staff-registry button:focus-visible,
body.is-staff .staff-registry a:focus-visible,
body.is-staff .staff-registry select:focus-visible,
body.is-staff .staff-registry .country-group-header:focus-visible {
  outline: 2px solid #e8d5a3;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body.is-staff .staff-registry .turn-dot.red { animation: none; }
}
body.is-staff .staff-page.staff-directory {
  max-width: 72rem;
}
body.is-staff .staff-directory-lead {
  color: #f7f3ea;
  margin-top: 0.8rem;
}
body.is-staff .staff-directory-lead a {
  color: #f7f3ea;
  font-weight: 700;
}
body.is-staff .staff-directory-lead a:hover,
body.is-staff .staff-directory-lead a:focus-visible {
  background: #f7f3ea;
  color: #0b2f6b;
  outline: 2px solid #e8d5a3;
  outline-offset: 3px;
}
body.is-staff .staff-directory-panel {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 0.8rem;
  background: #fcfaf7;
  color: #1e293b;
}
body.is-staff .staff-directory-panel p,
body.is-staff .staff-directory-panel h2,
body.is-staff .staff-directory-panel dt,
body.is-staff .staff-directory-panel dd {
  color: #1e293b;
  max-width: none;
}
body.is-staff .staff-directory-panel h2 {
  margin: 0 0 0.8rem;
  font-family: var(--head);
}
body.is-staff .staff-dir-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1rem;
}
body.is-staff .staff-dir-views {
  display: flex;
  gap: 0.4rem;
}
body.is-staff .staff-dir-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #425772;
  border-radius: 999px;
  background: #fff;
  color: #0b2f6b;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
body.is-staff .staff-dir-btn.is-on,
body.is-staff .staff-dir-btn:hover,
body.is-staff .staff-dir-btn:focus-visible {
  background: #0b2f6b;
  color: #f7f3ea;
  border-color: #0b2f6b;
  outline: 2px solid #e8d5a3;
  outline-offset: 2px;
}
body.is-staff .staff-dir-search {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 16rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}
body.is-staff .staff-dir-search input {
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #425772;
  border-radius: 0.5rem;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-weight: 500;
}
body.is-staff .staff-dir-count {
  margin: 0;
  font-weight: 700;
}
body.is-staff .staff-dir-head,
body.is-staff .staff-dir-row {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) 8rem 8rem minmax(8rem, 1.2fr) auto;
  gap: 0.6rem;
  align-items: center;
}
body.is-staff .staff-dir-head {
  padding: 0.35rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #425772;
}
body.is-staff .staff-dir-country,
body.is-staff .staff-dir-bucket {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0.85rem 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0.4rem;
  background: #e7eef6;
  color: #0b2f6b;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
body.is-staff .staff-dir-country:hover,
body.is-staff .staff-dir-country:focus-visible {
  background: #0b2f6b;
  color: #f7f3ea;
  outline: 2px solid #e8d5a3;
  outline-offset: 2px;
}
body.is-staff .staff-dir-country[aria-expanded="true"] .staff-dir-chevron {
  transform: rotate(90deg);
}
body.is-staff .staff-dir-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
  body.is-staff .staff-dir-chevron { transition: transform 0.15s linear; }
}
body.is-staff .staff-dir-school {
  border-top: 1px solid #e2e8f0;
}
body.is-staff .staff-dir-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
body.is-staff .staff-dir-name a {
  color: #0b2f6b;
  font-weight: 700;
}
body.is-staff .staff-dir-name a:hover,
body.is-staff .staff-dir-name a:focus-visible {
  background: #0b2f6b;
  color: #f7f3ea;
  outline: 2px solid #e8d5a3;
  outline-offset: 2px;
}
body.is-staff .staff-dir-name span,
body.is-staff .staff-dir-status {
  color: #334155;
}
body.is-staff .staff-dir-turn--action { font-weight: 700; }
body.is-staff .staff-dir-detail {
  padding: 0.2rem 0.2rem 0.9rem;
}
body.is-staff .staff-dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.is-staff .staff-dir-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem 1.2rem;
  margin: 0 0 1rem;
}
body.is-staff .staff-dir-facts div { margin: 0; }
body.is-staff .staff-dir-facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #425772;
}
body.is-staff .staff-dir-facts dd { margin: 0.15rem 0 0; }
body.is-staff .staff-directory-panel a:not(.staff-dir-btn) {
  color: #0b2f6b;
  font-weight: 700;
}
body.is-staff .staff-directory-panel a:not(.staff-dir-btn):hover,
body.is-staff .staff-directory-panel a:not(.staff-dir-btn):focus-visible {
  background: #0b2f6b;
  color: #f7f3ea;
  outline: 2px solid #e8d5a3;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  body.is-staff .staff-dir-head { display: none; }
  body.is-staff .staff-dir-row {
    grid-template-columns: 1fr;
  }
  body.is-staff .staff-dir-row > span:nth-child(2),
  body.is-staff .staff-dir-row > span:nth-child(3) {
    display: none;
  }
}
body.is-staff .staff-kicker {
  font-family: var(--head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f7f3ea;
}
body.is-staff .staff-page h1 {
  color: #f7f3ea;
  margin-top: 0.35rem;
}
body.is-staff .staff-page p {
  color: #f7f3ea;
  margin-top: 0.8rem;
  max-width: 40rem;
}
body.is-staff .staff-page.staff-directory .staff-directory-panel,
body.is-staff .staff-page.staff-directory .staff-directory-panel p,
body.is-staff .staff-page.staff-directory .staff-directory-panel h2,
body.is-staff .staff-page.staff-directory .staff-directory-panel dt,
body.is-staff .staff-page.staff-directory .staff-directory-panel dd,
body.is-staff .staff-page.staff-directory .staff-dir-count,
body.is-staff .staff-page.staff-directory .staff-dir-status {
  color: #1e293b;
  max-width: none;
}
@media (max-width: 1260px) {
  body.is-staff #nav {
    background: #123a7a;
    color: #f7f3ea;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  body.is-staff a.staff-fellows {
    margin: 0.35rem 0.35rem 0.85rem;
    border-radius: 0.35rem;
  }
  body.is-staff a.staff-fellows::after {
    display: none;
  }
  body.is-staff .staff-portal-name {
    font-size: 1.05rem;
    padding-left: 4.8rem;
    padding-right: 5.6rem;
  }
  body.is-staff #staff-subnav.is-spread {
    justify-content: flex-start;
    gap: 0.35rem 0.7rem;
    min-height: 3.25rem;
    padding: 0.2rem 0.85rem;
  }
  body.is-staff #staff-subnav .staff-subnav-solo {
    margin-right: 0.2rem;
  }
  body.is-staff #staff-subnav .staff-subnav-solo::after {
    display: none;
  }
}
