/* LSO Bencher Election
   Palette starts from the Law Society's own burgundy (#6A0032) and magenta
   (#B21E5E) and adds warm ivory paper and a restrained gold. */
:root {
  --wine-950: #2a0716;
  --wine-900: #3d0a20;
  --wine-800: #52102c;
  --wine: #6a0032;
  --rose: #b21e5e;
  --rose-soft: #f8e9ef;
  --gold: #b08d57;
  --gold-soft: #eadfcb;
  --ivory: #faf6f0;
  --paper: #ffffff;
  --ink: #1d1418;
  --ink-soft: #5a4a52;
  --ink-faint: #8a7b82;
  --line: #e7ddd6;
  --ok: #1f6b4a;
  --warn: #8a5a00;
  --danger: #a3172d;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(42, 7, 22, .06), 0 2px 8px rgba(42, 7, 22, .04);
  --shadow-md: 0 2px 4px rgba(42, 7, 22, .05), 0 12px 32px rgba(42, 7, 22, .09);
  --shadow-lg: 0 4px 8px rgba(42, 7, 22, .06), 0 28px 64px rgba(42, 7, 22, .16);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine); }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 560; line-height: 1.12;
  letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 18px rgba(106, 0, 50, .26); }
.btn-primary:hover { background: var(--rose); color: #fff; box-shadow: 0 10px 26px rgba(178, 30, 94, .3); }
.btn-ghost { background: transparent; color: var(--wine); border-color: rgba(106, 0, 50, .28); }
.btn-ghost:hover { border-color: var(--wine); background: rgba(106, 0, 50, .05); color: var(--wine); }
.btn-gold { background: linear-gradient(180deg, #d8bd8c, #b9965e); color: var(--wine-950); box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.btn-gold:hover { color: var(--wine-950); filter: brightness(1.06); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7f0f21; color: #fff; }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--rose); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.linklike:hover { color: var(--wine); }

/* Top strip + nav */
.topstrip { background: var(--wine-950); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topstrip a { color: var(--gold-soft); text-decoration: none; }
.topstrip a:hover { color: #fff; }
.topstrip__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .88); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand__name em { font-style: normal; color: var(--wine); }
.brand__sub { display: block; margin-top: .3rem; font: 600 .62rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.nav__links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { position: relative; display: block; padding: .55rem .72rem; color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; border-radius: 8px; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: .72rem; right: .72rem; bottom: .22rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav__links a:not(.btn):hover { color: var(--wine); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--wine); }
.nav__cta { margin-left: .6rem; }
.nav__badge { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; margin-left: .35rem; border-radius: 999px; background: var(--gold); color: var(--wine-950); font-size: .7rem; font-weight: 700; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--wine); }
.nav__toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1080px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.25rem; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* Flash messages */
.flashes { padding-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .85rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; box-shadow: var(--shadow-sm); }
.flash--success { border-color: #bfe0d0; background: #f0f9f4; color: var(--ok); }
.flash--error { border-color: #f1c2c9; background: #fdf1f3; color: var(--danger); }
.flash--warning { border-color: #ecd9ae; background: #fdf8ea; color: var(--warn); }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(178, 30, 94, .5), transparent 62%),
    radial-gradient(700px 480px at 6% 96%, rgba(176, 141, 87, .22), transparent 60%),
    linear-gradient(160deg, var(--wine-950) 0%, var(--wine-800) 48%, var(--wine) 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(6rem, 12vw, 10rem); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 540; margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 420; color: var(--gold-soft); }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold); }
.hero__lede { font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: rgba(255, 255, 255, .82); max-width: 56ch; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(48px, 8vw, 120px); display: block; }
.hero__divider path { fill: var(--ivory); }

.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: 0 30px 70px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.glass h2 { color: #fff; font-size: 1.05rem; font-family: var(--body); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; }
.glass h2 a { font-size: .78rem; letter-spacing: .04em; text-transform: none; font-weight: 600; color: var(--gold-soft); }
.countdown { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.2rem; }
.countdown__item { padding: 1.1rem 1rem; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .12); }
.countdown__num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-weight: 520; color: #fff; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.countdown__label { margin-top: .55rem; font-weight: 600; font-size: .98rem; }
.countdown__date { font-size: .86rem; color: rgba(255, 255, 255, .7); }
.glass__list { list-style: none; margin: 0; padding: 0; }
.glass__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.glass__list span:last-child { color: rgba(255, 255, 255, .72); white-space: nowrap; }
.glass__note { margin: 1rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .62); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(5rem, 16vw, 7rem); }
}
@media (max-width: 640px) {
  .hero__divider { height: 40px; }
  .countdown__item { padding: .9rem .8rem; }
}

/* Page header (inner pages) */
.page-head { position: relative; color: #fff; overflow: hidden; background: radial-gradient(700px 300px at 85% 0%, rgba(178, 30, 94, .45), transparent 65%), linear-gradient(160deg, var(--wine-950), var(--wine-800) 60%, var(--wine)); }
.page-head__inner { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(4rem, 8vw, 6rem); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: .35em; }
.page-head .eyebrow { color: var(--gold-soft); }
.page-head p { color: rgba(255, 255, 255, .8); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 64ch; margin: 0; }
.page-head__divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(28px, 4.5vw, 64px); display: block; }
.page-head__divider path { fill: var(--ivory); }
.crumbs { font-size: .88rem; color: rgba(255, 255, 255, .66); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }

/* Cards and grids */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
a.card, .card--link { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(106, 0, 50, .3); color: inherit; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__kicker { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: .6rem; display: block; }
.card__more { display: inline-flex; gap: .4rem; margin-top: 1rem; font-weight: 700; font-size: .92rem; color: var(--wine); }
.card__more::after { content: '\2192'; transition: transform .2s ease; }
a.card:hover .card__more::after { transform: translateX(4px); }
.card--feature { border-top: 3px solid var(--gold); }

.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; background: var(--rose-soft); color: var(--wine); border: 1px solid rgba(106, 0, 50, .12); }
.tag--gold { background: #f6efe1; color: #6d5326; border-color: #e6d6b4; }
.tag--plain { background: #f3efeb; color: var(--ink-soft); border-color: var(--line); }
.tag--ok { background: #edf7f2; color: var(--ok); border-color: #c9e5d7; }
.tag--warn { background: #fdf6e3; color: var(--warn); border-color: #ecd9ae; }
.tag--slate::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--slate, var(--wine)); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Candidate cards */
.candidate-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.candidate-card__photo { position: relative; aspect-ratio: 4 / 3.4; background: linear-gradient(150deg, var(--wine-800), var(--wine)); display: grid; place-items: center; overflow: hidden; }
.candidate-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.candidate-card__initials { font-family: var(--display); font-size: 3.2rem; color: rgba(255, 255, 255, .9); letter-spacing: .02em; }
.candidate-card__photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(42, 7, 22, .55)); }
.candidate-card__ribbon { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.candidate-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.candidate-card__body h3 { margin: 0; font-size: 1.25rem; }
.candidate-card__firm { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.candidate-card__meta { margin-top: auto; padding-top: .8rem; }

.avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--wine-800), var(--rose)); color: #fff; font-weight: 700; font-size: .95rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--member { background: linear-gradient(150deg, #6b5a62, #3d3237); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.filters label { display: grid; gap: .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); flex: 1 1 160px; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; padding: .78rem .95rem; border: 1px solid #d9cdc5; border-radius: 10px; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--body); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.55; }
textarea.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(178, 30, 94, .14); }
input[type=color] { width: 4rem; height: 2.6rem; padding: .2rem; border: 1px solid #d9cdc5; border-radius: 10px; background: #fff; }
input[type=file] { font: inherit; max-width: 100%; }
.field { display: grid; gap: .38rem; margin-bottom: 1.15rem; }
.field > label { font-weight: 700; font-size: .93rem; }
.field--check { display: flex; align-items: flex-start; gap: .65rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .28rem; accent-color: var(--wine); flex-shrink: 0; }
.field--check label { font-weight: 500; }
.field__help { font-size: .86rem; color: var(--ink-soft); }
.field__error, .errorlist { color: var(--danger); font-size: .88rem; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 1.2rem; }
.auth { max-width: 500px; margin-inline: auto; }

/* Notices */
.notice { padding: 1.1rem 1.3rem; border-radius: 12px; border: 1px solid var(--gold-soft); background: #fdf9f0; border-left: 4px solid var(--gold); }
.notice p:last-child { margin: 0; }
.notice--rose { border-color: #efd0dc; background: var(--rose-soft); border-left-color: var(--rose); }

/* Dates */
.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.date-row { display: grid; grid-template-columns: 86px 1fr; gap: 1.2rem; align-items: start; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.date-row.is-past { opacity: .55; }
.date-row.is-key { border-left: 4px solid var(--gold); }
.date-chip { text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.date-chip__month { display: block; background: var(--wine); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .25rem 0; }
.date-chip__day { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.15; font-weight: 560; }
.date-chip__year { display: block; font-size: .72rem; color: var(--ink-faint); padding-bottom: .3rem; }
.date-row h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.date-row p { margin: 0 0 .35rem; color: var(--ink-soft); font-size: .97rem; }

/* Seats comparison */
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.4rem; }
.seats__col { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); }
.seats__col--alt { background: linear-gradient(165deg, var(--wine-900), var(--wine)); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.seats__col--alt h3, .seats__col--alt .seats__big { color: #fff; }
.seats__col--alt .muted, .seats__col--alt .card__kicker { color: var(--gold-soft); }
.seats__big { font-family: var(--display); font-size: clamp(3.4rem, 7vw, 4.8rem); line-height: 1; font-weight: 520; color: var(--wine); font-variant-numeric: tabular-nums; }
.seats__rows { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.seats__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.seats__col--alt .seats__rows li { border-color: rgba(255, 255, 255, .18); }
.seats__rows strong { font-variant-numeric: tabular-nums; }

/* Prose */
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.25rem; font-style: italic; color: var(--wine); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: #f6f0ea; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* Profile (candidate / event detail) */
.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(-5rem, -7vw, -3rem); position: relative; z-index: 2; }
.profile__side { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.profile__photo { aspect-ratio: 4 / 4.6; border-radius: 18px; overflow: hidden; background: linear-gradient(150deg, var(--wine-800), var(--wine)); display: grid; place-items: center; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.profile__photo span { font-family: var(--display); font-size: 5rem; color: rgba(255, 255, 255, .9); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list dt, .contact-list .label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.contact-list a { word-break: break-word; font-weight: 600; }
.profile__main { padding-top: clamp(5.5rem, 8vw, 4rem); display: grid; gap: 2.4rem; min-width: 0; }
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.issue-list li { display: flex; gap: .8rem; align-items: baseline; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.issue-list li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; position: relative; top: -2px; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; margin-top: -3rem; }
  .profile__side { position: static; }
  .profile__photo { max-width: 300px; }
  .profile__main { padding-top: 0; }
}

/* Events */
.event-card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.event-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--wine-900), var(--rose)); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__media .date-chip { position: absolute; top: .9rem; left: .9rem; width: 64px; box-shadow: var(--shadow-md); }
.event-card__body { padding: 1.25rem 1.35rem 1.45rem; display: grid; gap: .45rem; align-content: start; }
.event-card__body h3 { margin: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .92rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0; }
.facts div { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }

/* Boards */
.board-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.board-row__count { text-align: right; font-family: var(--display); font-size: 1.6rem; color: var(--wine); line-height: 1; }
.board-row__count small { display: block; font: 600 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.thread-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.thread-list li + li { border-top: 1px solid var(--line); }
.thread-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.25rem; align-items: center; text-decoration: none; color: inherit; transition: background-color .15s ease; }
.thread-row:hover { background: #fdf9f5; color: inherit; }
.thread-row__title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.thread-row__meta { font-size: .88rem; color: var(--ink-soft); }
.thread-row__count { font-weight: 700; color: var(--wine); white-space: nowrap; font-size: .92rem; }
.post { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 100px; }
.post + .post { margin-top: 1rem; }
.post.is-hidden { opacity: .55; border-style: dashed; }
.post.is-candidate { border-left: 4px solid var(--gold); }
.post__head { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin-bottom: .5rem; }
.post__author { font-weight: 700; color: var(--ink); text-decoration: none; }
.post__time { font-size: .85rem; color: var(--ink-faint); }
.post__quote { margin: 0 0 .8rem; padding: .55rem .85rem; border-left: 3px solid var(--gold-soft); background: #faf6f0; border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--ink-soft); }
.post__body p:last-child { margin: 0; }
.post__body { overflow-wrap: anywhere; }
.post__actions { display: flex; gap: 1rem; margin-top: .9rem; font-size: .88rem; }
.mention { color: var(--wine); font-weight: 700; background: var(--rose-soft); padding: 0 .25rem; border-radius: 4px; }
.reply-box { margin-top: 2rem; }
.reply-to { display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; margin-bottom: .8rem; background: var(--rose-soft); border-radius: 8px; font-size: .92rem; }
.reply-to.is-on { display: flex; }
details.report summary { cursor: pointer; color: var(--ink-faint); list-style: none; }
details.report summary::-webkit-details-marker { display: none; }
details.report[open] { flex-basis: 100%; }
details.report form { margin-top: .6rem; display: grid; gap: .5rem; max-width: 420px; }

/* Two-column with sidebar */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.aside { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* Ads */
.ad { text-align: center; }
.ad__label { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.ad a { display: inline-block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.ad img { max-width: 100%; height: auto; }
.ad--leaderboard { padding: 1rem 0 0; }
.ad--inline { padding: 0 0 clamp(2rem, 4vw, 3rem); }
.ad-house { display: grid; gap: .5rem; padding: 1.4rem; border: 1px dashed #d7c7b0; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #fdf9f2, #fdf9f2 12px, #faf3e7 12px, #faf3e7 24px); text-align: center; text-decoration: none; color: var(--ink-soft); }
.ad-house strong { font-family: var(--display); font-size: 1.2rem; color: var(--wine); font-weight: 560; }
.ad-house span { font-size: .9rem; }

/* CTA band */
.band { position: relative; color: #fff; background: radial-gradient(700px 320px at 12% 0%, rgba(178, 30, 94, .5), transparent 65%), linear-gradient(150deg, var(--wine-950), var(--wine)); border-radius: 26px; padding: clamp(2.2rem, 5vw, 4rem); overflow: hidden; box-shadow: var(--shadow-lg); }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); max-width: 56ch; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 220px; border-color: transparent; }
.band .small { color: rgba(255, 255, 255, .6); margin: .8rem 0 0; }
@media (max-width: 820px) { .band__grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--gold-soft); }
.steps li::before { content: '0' counter(step); display: block; font-family: var(--display); font-size: 1.6rem; color: var(--gold); margin-bottom: .4rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* Footer */
.site-footer { position: relative; margin-top: clamp(3rem, 6vw, 5rem); background: var(--wine-950); color: rgba(255, 255, 255, .74); padding: clamp(5rem, 9vw, 7rem) 0 2rem; font-size: .96rem; }
.site-footer__curve { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(24px, 4vw, 56px); display: block; }
.site-footer__curve path { fill: var(--ivory); }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-grid h4 { color: #fff; font: 700 .76rem var(--body); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: var(--gold-soft); }
.footer-disclaimer { padding: 1.6rem 0; font-size: .86rem; color: rgba(255, 255, 255, .58); max-width: 92ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .86rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Tables (dashboard) */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #faf6f1; white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fdfaf7; }
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; font-size: .95rem; }

/* Dashboard shell */
.dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: #f6f1ea; }
.dash__side { background: var(--wine-950); color: rgba(255, 255, 255, .78); padding: 1.4rem 1rem 2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash__side .brand { padding: 0 .5rem 1.2rem; margin-bottom: .6rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dash__side .brand__name { color: #fff; font-size: 1.1rem; }
.dash__side .brand__name em { color: var(--gold-soft); }
.dash__side .brand__sub { color: rgba(255, 255, 255, .5); }
.dash__group { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .42); padding: 1.1rem .7rem .4rem; }
.dash__side a.dash__link { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 8px; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; font-size: .95rem; }
.dash__side a.dash__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dash__side a.dash__link.is-active { background: rgba(176, 141, 87, .22); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.dash__main { padding: clamp(1.2rem, 3vw, 2.4rem); min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.dash__top h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.dash__menu { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat__num { font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--wine); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.panel h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush > h2 { padding: 1.2rem 1.4rem 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: .7rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.list-plain li:first-child { border-top: 0; padding-top: 0; }
.unread { font-weight: 700; }
.dropzone { display: grid; place-items: center; gap: .6rem; padding: 2.6rem 1.5rem; border: 2px dashed #cdb9a2; border-radius: 18px; background: #fdf9f3; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dropzone.is-over { border-color: var(--rose); background: var(--rose-soft); }
.dropzone strong { font-family: var(--display); font-size: 1.35rem; color: var(--wine); font-weight: 560; }
.dropzone input { display: none; }
.dropzone__files { font-size: .92rem; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: .25rem .9rem; font-size: .93rem; margin: 0; }
.kv dt { color: var(--ink-faint); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .15rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
  .dash__side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .dash__menu { display: inline-flex; }
}

/* Messaging */
.bubble { max-width: 76%; padding: .7rem 1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); margin-bottom: .6rem; }
.bubble--mine { margin-left: auto; background: var(--wine); color: #fff; border-color: transparent; }
.bubble__meta { font-size: .76rem; opacity: .7; margin-bottom: .15rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-header, .topstrip, .site-footer, .ad, .ad-house, .dash__side { display: none !important; } }

@media (max-width: 640px) {
  .topstrip .wrap { flex-direction: column; gap: .15rem; }
  .topstrip__note { white-space: normal; }
}
