/* ============================================================
   ETSU CBAT -- Research and Creative Activities
   Ported from the one-file prototype. Changes from it are marked
   "Not in the prototype" with the reason beside them.
   ============================================================ */

:root {
  --ink: #06213F;
  --ink-soft: #10344F;
  --paper: #ECEFF3;
  --card: #FFFFFF;
  --gold: #FFC72C;
  --gold-deep: #8A6400;
  --slate: #56697B;
  --line: #D3DBE3;
  --line-soft: #E4E9EF;
  --focus: #0B6FB8;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 44px);
}

* { box-sizing: border-box }
/* A URL or an address typed into any free-text field is one long token, and one
   in a story body pushed the page to 535px inside a 390px phone -- the whole
   document, not just that paragraph, because nothing above it could shrink.
   Only `.card p.contact` set this before, which covered the one place somebody
   had noticed. RCA1 in the September 2026 review. */
* { overflow-wrap: break-word }
html { scroll-behavior: smooth }
/* The masthead sticks, so anything scrolled to -- a #fragment, a focused field --
   would otherwise stop underneath it. 116px tall on a laptop, 157px on a tablet. */
html { scroll-padding-top: 140px }
@media (min-width: 681px) and (max-width: 1000px) { html { scroll-padding-top: 180px } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit }
/* Any display rule on a class (.btn is inline-block) beats the browser's own
   rule for [hidden], and the element shows anyway. */
[hidden] { display: none !important }
button { font: inherit; color: inherit }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* The skip link sends focus to <main>; a ring round the whole page says nothing. */
#main:focus { outline: none }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut) }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 200; font-family: var(--display); font-size: 14px;
}
.skip:focus { left: 8px; top: 8px }

/* ---------- masthead ---------- */
.masthead {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.mark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; margin-right: auto }
.mark .u {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.mark .n {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -.025em; margin-top: 5px;
}
nav.sections ul { display: flex; gap: 2px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 }
nav.sections a {
  display: block;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 2px;
  color: #CBD8E4;
  white-space: nowrap;
}
nav.sections a:hover { color: #fff; background: rgba(255, 255, 255, .09) }
nav.sections a[aria-current="page"] { color: var(--ink); background: var(--gold); font-weight: 700 }

/* ---------- page head ---------- */
.pagehead { padding: clamp(34px, 6vw, 62px) 0 26px }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep);
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 180px }
h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-size: clamp(34px, 6.2vw, 62px);
  margin: 0 0 18px;
  max-width: 16ch;
}
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%); padding: 0 2px }
.lede {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- the sentence filter ----------
   Not in the prototype: it no longer sticks while scrolling. It was meant to
   sit under the masthead at 66px, but the masthead's nav wraps to a second
   line at every width, making it 116px tall at a desktop and 157px on a tablet,
   so the first line of the sentence slid underneath it. Pinned correctly it
   would have covered a third of a laptop screen. */
.sentence {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 15px;
  margin: 0 0 30px;
}
.sentence-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 6px;
  font-family: var(--display);
  /* 2.4vw pinned at the 23px maximum from 958px up, so at 1024 the sentence
     wanted 1007px inside a 927px container and wrapped mid-clause -- "about /
     any topic" -- although the notes said it fits on one line. 2vw reaches 23px
     at 1152 instead, so a wide screen is unchanged and the type gives way only
     where the container cannot hold it. Shrinking the sentence also loses less
     of a long department name than tightening the select cap would: the name
     needs 434px and had 345, and at 2vw it has 300 rather than the 253 an 11em
     cap would leave. RCA11 in the September 2026 review. */
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500; letter-spacing: -.015em;
}
.sentence .word { color: var(--slate) }
.blank { position: relative; display: inline-flex; align-items: center }
.blank select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0;
  border-bottom: 2.5px solid var(--gold);
  font-family: var(--display);
  font-size: inherit; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink);
  padding: 1px 20px 2px 3px;
  cursor: pointer;
  /* Not in the prototype: capped, so one long department name doesn't push
     the sentence onto a second line. The chosen name still reads in full in
     the open list. */
  max-width: min(60vw, 15em);
  text-overflow: ellipsis;
}
.blank::after {
  content: ""; position: absolute; right: 5px; top: 52%;
  width: 7px; height: 7px; border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: translateY(-60%) rotate(45deg); pointer-events: none;
}
.blank select:hover { background: rgba(255, 199, 44, .18) }

.searchrow { display: flex; gap: 10px 14px; align-items: center; margin-top: 13px; flex-wrap: wrap }
.search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 12px;
}
.search input {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; flex: 1; min-width: 0;
  font-family: var(--body); font-size: 16px; color: var(--ink);
}
.search input:focus { outline: none }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px }
.search svg { flex: none; opacity: .5 }
.count {
  margin: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); white-space: nowrap;
}
.reset {
  font-family: var(--display); font-size: 13px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  padding: 2px 0; color: var(--slate);
}
.reset:hover { color: var(--ink); border-color: var(--gold) }

/* ---------- story feed ---------- */
/* Not in the prototype: each story draws its own grid lines. The prototype
   painted them with the grid's background, which also filled every empty cell,
   so a search with one result showed a grey slab beside it. */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px }
.story {
  position: relative;
  background: var(--card);
  outline: 1px solid var(--line-soft);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .18s ease;
}
.story:hover { background: #FBFCFD }
.story::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold);
  transition: width .28s ease;
}
.story:hover::before, .story:focus-within::before { width: 100% }
/* The headline is the link, stretched over the card, so the whole card can be
   clicked while a screen reader hears one short link rather than the card's
   every word. */
.story-title a { color: inherit; text-decoration: none }
.story-title a::after { content: ""; position: absolute; inset: 0 }
.story-title a:focus-visible { outline: none }
.story:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; z-index: 1 }
.story .kicker {
  margin: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.story .kicker .dept { color: var(--slate) }
.story .kicker .dot { width: 3px; height: 3px; background: var(--line); border-radius: 50% }
.story-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.14;
  font-size: 20px; margin: 0;
}
.story p.summary { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5 }
.story .byline {
  margin: auto 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--slate); text-transform: uppercase;
}
.story.lead { grid-column: span 2; grid-row: span 2; padding: 34px 32px 36px }
.story.lead .story-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.035em; line-height: 1.03 }
.story.lead p.summary { font-size: 18px; max-width: 52ch }
.story.lead .art {
  height: 180px; border-radius: 2px; margin-bottom: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 199, 44, .5) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--ink) 0%, #0E4670 100%);
}
.topics { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 }
.tp {
  font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  background: #EFF3F7; color: var(--ink-soft); padding: 3px 8px; border-radius: 2px;
}

.empty {
  background: var(--card); border: 1px dashed var(--line);
  padding: 46px 26px; text-align: center;
}
.empty-title { font-family: var(--display); font-size: 20px; margin: 0 0 8px; letter-spacing: -.02em }
.empty p { margin: 0 0 16px; color: var(--slate) }

/* ---------- section blocks ---------- */
.band { padding: clamp(38px, 6vw, 64px) 0; border-top: 1px solid var(--line) }
.band.tight { padding-top: 8px; border-top: 0 }
.section-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; line-height: 1.08;
}
.intro { max-width: 62ch; color: var(--ink-soft); margin: 0 0 28px }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.card.accent { border-top: 4px solid var(--gold) }
.card .tag {
  margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.card-title { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 19px; margin: 0 }
.card p { margin: 0; font-size: 16px; color: var(--ink-soft) }
.card .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--slate); text-transform: uppercase;
}
.card .rule { height: 2px; background: var(--gold); width: 38px; margin: 2px 0 }

.linkout {
  font-family: var(--display); font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid var(--gold); align-self: flex-start; padding-bottom: 1px; margin-top: 4px;
}
.linkout:hover { background: rgba(255, 199, 44, .25) }

/* ---------- experts ---------- */
.label {
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 12px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none }
.chip {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px;
}
.chip:hover { border-color: var(--ink) }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
}
.avatar {
  width: 64px; height: 64px; border-radius: 2px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -.03em;
}
.person-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.025em; margin: 0 }
.person .title { font-size: 15px; color: var(--slate); margin: 2px 0 10px }
.person .bio { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 12px }
.person .topics { margin-bottom: 10px }
.formats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; list-style: none }
.fmt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 3px 7px; color: var(--slate);
}
.btn {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: var(--ink); color: #fff; border: 0; border-radius: 2px;
  padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--ink-soft) }
.btn.gold { background: var(--gold); color: #2A1F00 }
.btn.gold:hover { background: #F0B70E }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink) }
.btn.ghost:hover { background: var(--ink); color: #fff }
.btn.small { padding: 8px 13px; font-size: 13px }

/* ---------- request and inquiry forms ---------- */
.formcard { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: clamp(22px, 4vw, 34px) }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px }
.field { display: flex; flex-direction: column; gap: 6px }
.field.full { grid-column: 1 / -1 }
.field label { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .01em }
.field label .opt { color: var(--slate); font-weight: 400 }
.field input:not([type="checkbox"]), .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #FBFCFD; border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 104px; resize: vertical }
.hint { font-size: 13.5px; color: var(--slate); margin: 10px 0 0 }
.sent {
  margin: 20px 0 0; background: #0E4B2E; color: #fff; padding: 16px 18px;
  font-family: var(--display); font-size: 15px; font-weight: 600;
}
/* Present from the start so a screen reader announces the message when it
   arrives, but taking no room until then. */
.sent:empty { margin: 0; padding: 0 }

/* ---------- events ---------- */
.eventlist {
  display: flex; flex-direction: column; gap: 1px; list-style: none; margin: 0; padding: 0;
  background: var(--line-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.event {
  background: var(--card); display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center;
  padding: 20px 22px;
}
.date { border: 1px solid var(--line); text-align: center; padding: 8px 4px; display: block }
.date .m {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.date .d {
  display: block; font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -.04em;
  line-height: 1.05;
}
.event-title { font-family: var(--display); font-weight: 700; font-size: 18.5px; letter-spacing: -.02em; margin: 0 0 5px }
.event p { margin: 0; font-size: 15.5px; color: var(--ink-soft) }
.event p.meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); margin-top: 7px;
}
.event p.aud {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line); white-space: nowrap; color: var(--ink);
}
.event p.aud.community { background: var(--gold); border-color: var(--gold); color: #2A1F00 }

/* ---------- research support ---------- */
/* No `overflow: hidden` here. It was clipping the focus ring off the two
   links inside -- the ring sits 2px outside the box and is 3px wide, so all
   5px of it landed outside this container and was cut. What the clipping
   bought was the active link's background squaring off a 2px corner radius,
   which nobody can see. RCA2. */
.toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 2px; margin-bottom: 26px }
.toggle a {
  padding: 10px 20px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
}
.toggle a[aria-current="true"] { background: var(--ink); color: #fff }

.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0 }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line) }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--gold-deep); letter-spacing: .1em; padding-top: 4px }
.step-title { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin: 0 0 6px }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px }

/* ---------- impact strip ---------- */
.strip { background: var(--ink); color: #fff; padding: clamp(30px, 5vw, 48px) 0; margin-top: 56px }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px }
.stat p { margin: 0 }
.stat .v {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em;
  color: var(--gold); line-height: 1;
}
.stat .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #B9CBDB;
  margin-top: 9px;
}

/* ---------- footer ---------- */
footer { background: var(--ink); color: #C6D5E2; padding: 44px 0 30px; border-top: 3px solid var(--gold) }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px }
footer .wrap.with-editors { grid-template-columns: 1.4fr 1fr 1fr 1fr }
footer h2 { font-family: var(--display); font-size: 14px; letter-spacing: .02em; color: #fff; margin: 0 0 12px }
footer ul { list-style: none; margin: 0; padding: 0 }
footer a { color: #C6D5E2; text-decoration: none; font-size: 15px; display: block; padding: 3px 0 }
footer a:hover { color: var(--gold) }
footer address { font-style: normal; font-size: 15px; line-height: 1.5 }
footer .fine {
  grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .16); margin: 14px 0 0; padding-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: #8FA6BA;
}
/* The editors' way in, on the same line. Sign out is a button in a form,
   because Django signs out on POST only; it is drawn as a link beside it. */
footer .fine a, footer .fine button {
  display: inline; padding: 0; font: inherit; letter-spacing: inherit; color: #C6D5E2;
  text-decoration: underline; text-underline-offset: 2px;
}
footer .fine button { background: none; border: 0; cursor: pointer }
footer .fine a:hover, footer .fine button:hover { color: var(--gold) }
footer .fine form.signout { display: inline }

/* ---------- narrower screens ---------- */
@media (max-width: 960px) {
  .feed { grid-template-columns: repeat(2, 1fr) }
  .story.lead { grid-column: span 2; grid-row: auto }
  .grid3 { grid-template-columns: repeat(2, 1fr) }
  .people { grid-template-columns: 1fr }
  .strip .wrap { grid-template-columns: repeat(2, 1fr) }
  footer .wrap { grid-template-columns: 1fr 1fr }
}
@media (max-width: 680px) {
  .masthead .wrap { min-height: 0 }
  nav.sections { width: 100% }
  /* This one has to scroll -- the sections do not fit a phone -- so the ring
     cannot be let out of it. Drawn inside the link instead, which is the one
     place on this site a ring is inset, because the alternative is a keyboard
     user not being able to see where they are. RCA2. */
  nav.sections ul { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px }
  nav.sections a:focus-visible { outline-offset: -3px }
  .feed { grid-template-columns: 1fr }
  .story.lead { grid-column: span 1; padding: 26px 22px 28px }
  .grid2, .grid3 { grid-template-columns: 1fr }
  .fields { grid-template-columns: 1fr }
  .event { grid-template-columns: 64px 1fr; gap: 14px }
  .event p.aud { grid-column: 2; justify-self: start }
  .date .d { font-size: 22px }
  .strip .wrap { grid-template-columns: 1fr 1fr }
  footer .wrap { grid-template-columns: 1fr }
  .blank select { max-width: 78vw }
}

/* ---------- story page ---------- */
.wrap.narrow { max-width: calc(780px + 2 * var(--gut)) }
.story-headline { max-width: none; font-size: clamp(32px, 5vw, 50px) }
.pagehead .byline {
  margin: 18px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--slate); text-transform: uppercase;
}
.storybody { padding-bottom: clamp(38px, 6vw, 64px) }
.storybody p { font-size: 18.5px; line-height: 1.65; margin: 0 0 1.1em; max-width: 68ch }
.storybody .label { margin-top: 30px }
.storybody a.tp { text-decoration: none; display: inline-block }
.storybody a.tp:hover { background: #DDE6EE }
.storybody .back { margin-top: 34px }
.notice {
  background: #FFF8E2; border: 1px solid var(--gold); padding: 11px 14px; margin: 0 0 18px;
  font-size: 16px; color: var(--ink);
}
.notice a { font-weight: 600 }

/* ---------- editors ---------- */
.editor-links {
  margin: 18px 0 0; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--slate);
}
.editor-links a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px }
.strip-missing { margin: 40px auto 0 }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 22px 0 0 }
.messages { list-style: none; margin: 22px 0 0; padding: 0 }
.messages li {
  background: #E6F2EA; border-left: 4px solid #0E4B2E; padding: 12px 16px;
  font-family: var(--display); font-size: 15px; font-weight: 600;
}
/* Both names on purpose. Django's own tag is "error"; the hub's settings
   rename it to "danger" through MESSAGE_TAGS, which this site inherits while it
   lives here and will not once it moves. Styling one of them meant the "still
   in use" refusal came out in the success green. RCA7 in the September 2026
   review. */
.messages li.error,
.messages li.danger { background: #FBEAEA; border-left-color: #A4262C }

.form-errors { background: #FBEAEA; border: 1px solid #A4262C; border-left-width: 4px; padding: 14px 18px; margin: 0 0 22px }
.form-errors:focus { outline: none }
.form-errors-title { margin: 0 0 6px; font-family: var(--display); font-weight: 700 }
.form-errors ul { margin: 0; padding-left: 20px }
.form-errors a { color: #7A1B20 }
.errorlist { list-style: none; margin: 0; padding: 0; color: #A4262C; font-size: 15px; font-weight: 600 }

.field .hint { margin: 0 }
.checks { border: 0; padding: 0; margin: 0; min-width: 0 }
.checks legend { font-family: var(--display); font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0 }
.checklist { display: flex; flex-wrap: wrap; gap: 8px 22px }
.check { display: inline-flex; gap: 8px; align-items: center; font-family: var(--body); font-size: 16px; font-weight: 400 }
.check input { width: 18px; height: 18px; accent-color: var(--ink) }
fieldset.figure { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 22px }
fieldset.figure:first-of-type { border-top: 0; padding-top: 0 }
fieldset.figure legend { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 0 0 10px }

.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.inline input { flex: 1; min-width: 12em }
.addterm { margin-bottom: 26px }
/* position: relative makes this the containing block for the visually hidden
   labels inside the table. Without it they are placed against the page, escape
   the scrolling, and widen a phone's page to the table's full width. */
.tablewrap { overflow-x: auto; position: relative }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 16px }
table.list th, table.list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle }
table.list thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  font-weight: 500; background: #F6F8FA;
}
table.list tbody th { font-family: var(--display); font-weight: 600 }
table.list .nowrap { white-space: nowrap }
table.list input[type="text"] { font-family: var(--body); font-size: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 2px }
.state { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line) }
.state-published { background: #E6F2EA; border-color: #B7D8C2 }
.state-scheduled { background: #FFF8E2; border-color: var(--gold) }
.linkbutton {
  background: none; border: 0; padding: 0; cursor: pointer; color: #A4262C;
  font-family: var(--display); font-weight: 600; font-size: 14px; text-decoration: underline;
}
.addterm .field input { max-width: 28em }

@media (max-width: 960px) {
  footer .wrap.with-editors { grid-template-columns: 1fr 1fr }
}
@media (max-width: 680px) {
  footer .wrap.with-editors { grid-template-columns: 1fr }
}

/* ---------- experts and speaker requests ---------- */
.form-sent:focus { outline: none }
.tabs ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0 }
.tabs a {
  display: inline-block; padding: 8px 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 2px;
  background: var(--card); font-family: var(--display); font-size: 14px; font-weight: 600;
}
.tabs a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff }
table.list .sub { display: block; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--slate) }
.state-new { background: #FFF8E2; border-color: var(--gold) }
.state-arranged { background: #E6F2EA; border-color: #B7D8C2 }
.state-declined { background: #F2F4F7 }
.sub-inline { font-size: 15px; color: var(--slate) }
.details { display: grid; grid-template-columns: 12em 1fr; gap: 10px 20px; margin: 0 0 30px; font-size: 17px }
.details dt { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--slate); padding-top: 3px }
.details dd { margin: 0 }
@media (max-width: 680px) {
  .details { grid-template-columns: 1fr; gap: 2px }
  .details dd { margin-bottom: 12px }
}

/* ---------- events ---------- */
.event .cancelled {
  display: inline-block; margin: 0 0 6px; padding: 2px 8px; background: #A4262C; color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.event.is-cancelled .event-title, .event.is-cancelled p:not(.cancelled):not(.aud) { color: var(--slate) }
.event p.event-link { margin-top: 8px }
.state-submitted { background: #FFF8E2; border-color: var(--gold) }
.state-listed { background: #E6F2EA; border-color: #B7D8C2 }
.state-cancelled { background: #FBEAEA; border-color: #E3B5B8 }
.review-note { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft) }

/* ---------- centers ---------- */
.card p.contact { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; overflow-wrap: anywhere }
.card p.contact a { color: var(--ink) }
.state-talking { background: #FFF8E2; border-color: var(--gold) }
.state-closed { background: #F2F4F7 }

/* ---------- research support ---------- */
.support-steps-title { margin-top: 48px }
.support-office { margin-top: 34px }
