/* Design inspired by the "Student Alumni Meet" template: white ground, pastel colour blocks
   (periwinkle, pink, peach), bubbly multicolour letters, bold serif headings with a coral word,
   navy square-ish buttons, countdown chips, slate-blue footer. One centred column (max 72rem). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --ink: #1d2650;
  --muted: #5d6585;
  --line: #e3e7f2;
  --brand: #1f2b5c;        /* navy: buttons, links */
  --brand-ink: #ffffff;
  --brand-soft: #e7ecfb;
  --coral: #ee5a5f;
  --orange: #f39a2b;
  --blue: #3d6ff2;
  --periwinkle: #c9d5fb;
  --pink: #fbd2da;
  --peach: #fde3c3;
  --slate: #57788c;      /* template footer blue-grey, darkened for white text contrast */
  --accent: var(--orange);
  --accent-ink: #2b1a00;
  --ok: #1f8a5b;
  --ok-soft: #dff3e8;
  --danger: #d63c3f;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-fun: "Fredoka", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-display); margin: 0 0 .5rem; }
h1 em, h2 em { font-style: normal; color: var(--coral); }
p { margin: 0 0 .75rem; }
.mono, .promo { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.selectable { user-select: all; word-break: break-word; }
.eyebrow { font: 800 .75rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--coral); margin: 0 0 .5rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.main { flex: 1; padding-block: 2rem 4rem; display: flex; flex-direction: column; gap: 2.25rem; }
.main > * { min-width: 0; }
.narrow { max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1rem 2rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-word { font: 700 1.6rem/1 var(--font-fun); letter-spacing: -.01em; }
.brand-word span:nth-child(1) { color: var(--orange); }
.brand-word span:nth-child(3) { color: var(--blue); }
.brand-word span:nth-child(5) { color: var(--coral); }
.brand-sub { font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .25rem 1.4rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; white-space: nowrap; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--coral); }
.nav a[aria-current] { border-bottom-color: var(--coral); }
.nav a.btn { color: var(--brand-ink); border: 0; padding: .45rem 1rem; }
.nav-sep { width: 1px; height: 1.4rem; background: var(--line); flex: none; }
.nav-me { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 760px) { .nav { width: 100%; padding-bottom: .25rem; } }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: .98rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.linklike:hover { color: var(--danger); }
.banner { background: var(--peach); color: var(--ink); font-weight: 700; padding-block: .55rem; font-size: .95rem; }
.banner a { color: var(--ink); }

/* ---------- Buttons, pills, avatars ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand);
  font: 700 .98rem/1.2 var(--font-body); padding: .75rem 1.5rem; border-radius: 4px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: var(--brand-ink); background: #2b3a78; border-color: #2b3a78; transform: translateY(-1px); }
.btn-sm { padding: .4rem .85rem; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.btn-danger { background: transparent; color: var(--danger); border-color: currentColor; }
.btn-danger:hover { background: #fdeaea; color: var(--danger); border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.pill {
  display: inline-block; font: 700 .74rem/1 var(--font-body); padding: .38rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.pill-accent { background: var(--peach); color: #8a4b00; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-kind { background: var(--periwinkle); color: var(--brand); }
.avatar {
  flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--periwinkle); color: var(--brand); font: 600 1.05rem var(--font-fun);
}
.avatar.sm { width: 1.8rem; height: 1.8rem; font-size: .75rem; }
.avatar.lg { width: 5.5rem; height: 5.5rem; font-size: 1.9rem; background: var(--pink); color: var(--coral); }

/* ---------- Cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.stack { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-page { display: flex; flex-direction: column; gap: 1.5rem; max-width: 46rem; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
legend { font: 700 1.15rem var(--font-display); margin-bottom: .75rem; padding: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field-label { font-weight: 700; font-size: .95rem; }
.field-label abbr { color: var(--coral); text-decoration: none; }
.field-hint { font-size: .85rem; color: var(--muted); display: block; }
.field-error { font-size: .875rem; color: var(--danger); font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px;
  padding: .6rem .75rem; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: #fff; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .3rem; accent-color: var(--brand); flex: none; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius); font-weight: 700; margin: 0; background: var(--ok-soft); color: var(--ok); border-left: 4px solid var(--ok); }
.flash-error { background: #fdecec; color: var(--danger); border-left-color: var(--danger); }

/* ---------- Page structure ---------- */
.page-head { display: flex; flex-direction: column; gap: .3rem; }
.page-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-title { font-size: 1.5rem; margin-bottom: 1.1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head a { font-weight: 700; }
.crumbs { margin: 0; font-size: .92rem; font-weight: 700; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.empty { text-align: left; }
.empty-inline { padding: 1rem 0; }
.result-count { margin: 0; font-size: .9rem; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }

/* ---------- Decorations ---------- */
.dots { background-image: radial-gradient(var(--pink) 28%, transparent 30%); background-size: 16px 16px; }
.ring { border-radius: 50%; border: 14px solid var(--coral); opacity: .85; }

/* ---------- Home: hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; margin-top: .5rem; }
.hero-art { position: relative; min-height: 25rem; display: grid; grid-template-columns: 1fr .45fr; grid-template-rows: 1fr auto; }
.art-blue { grid-column: 1; grid-row: 1 / span 2; background: var(--periwinkle); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.art-pink { grid-column: 2; grid-row: 1 / span 2; background: var(--pink); }
.art-peach { position: absolute; right: -2.5rem; bottom: -2.5rem; width: 8.5rem; height: 8.5rem; background: var(--peach); z-index: 0; }
.bubbles { font: 700 clamp(4.5rem, 3rem + 6vw, 8.5rem)/.82 var(--font-fun); letter-spacing: -.02em; display: grid; grid-template-columns: repeat(3, auto); gap: .1em .02em; transform: rotate(-3deg); }
.bubbles span { display: inline-block; text-shadow: 0 .04em 0 rgb(29 38 80 / .12); }
.bubbles span:nth-child(2n) { transform: translateY(.05em) rotate(4deg); }
.bubbles span:nth-child(3n) { transform: translateY(-.04em) rotate(-5deg); }
.b-orange { color: var(--orange); }
.b-blue { color: var(--blue); }
.b-white { color: #ffffff; }
.b-red { color: var(--coral); }
.hero-copy { position: relative; z-index: 1; align-self: start; background: var(--surface); margin-left: -18%; margin-top: 0; padding: 2.5rem 2rem 2.25rem 2.5rem; display: flex; flex-direction: column; gap: .5rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; margin-bottom: .75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-ring { position: absolute; width: 5.5rem; height: 5.5rem; right: 1rem; bottom: -1.5rem; z-index: 2; border-width: 12px; }
.hero-dots { position: absolute; left: -1rem; bottom: -3rem; width: 7rem; height: 6rem; z-index: -1; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 16rem; }
  .hero-copy { margin: -3rem 1rem 0; padding: 1.75rem 1.5rem; box-shadow: 0 12px 30px rgb(29 38 80 / .08); }
  .art-peach { right: 0; bottom: auto; top: -1.5rem; width: 5rem; height: 5rem; }
  .hero-ring { display: none; }
}

/* ---------- Home: stats, features, steps, partner ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.stats div { padding: 1.1rem 1.25rem; border-radius: var(--radius); }
.stats div:nth-child(1) { background: var(--peach); }
.stats div:nth-child(2) { background: var(--pink); }
.stats div:nth-child(3) { background: var(--periwinkle); }
.stats div:nth-child(4) { background: var(--surface-2); }
.stats dt { font-weight: 700; font-size: .9rem; color: var(--ink); }
.stats dd { margin: 0; font: 700 2.2rem/1.1 var(--font-fun); color: var(--ink); font-variant-numeric: tabular-nums; }
.band { padding-top: .5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; }
.features article { display: flex; flex-direction: column; gap: .4rem; }
.features article p { color: var(--muted); margin: 0; }
.feature-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: .4rem; }
.features article:nth-child(1) .feature-icon { background: var(--periwinkle); }
.features article:nth-child(2) .feature-icon { background: var(--peach); }
.features article:nth-child(3) .feature-icon { background: var(--pink); }
.features article:nth-child(4) .feature-icon { background: var(--surface-2); }
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.1rem var(--font-fun); margin-bottom: .6rem; }
.steps li:nth-child(2)::before { background: var(--coral); }
.steps li:nth-child(3)::before { background: var(--orange); }
.steps p { color: var(--muted); margin: 0; }
.partner-band { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 2.25rem; }
.partner-band::after { content: ""; position: absolute; right: -2.5rem; top: -2.5rem; width: 9rem; height: 9rem; border-radius: 50%; border: 18px solid var(--coral); opacity: .55; }
.partner-band .eyebrow { color: var(--peach); }
.partner-band h2 { color: #fff; margin-bottom: .75rem; }
.partner-band p { max-width: 62ch; margin: 0; color: #dfe4f5; }

/* ---------- Home: upcoming event with countdown ---------- */
.upcoming { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1rem 0; }
.upcoming h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); }
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 1.25rem; }
.countdown span { font: 700 .95rem var(--font-body); padding: .45rem .75rem; border-radius: 3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown span:nth-child(1) { background: var(--peach); }
.countdown span:nth-child(2) { background: var(--pink); }
.countdown span:nth-child(3) { background: var(--periwinkle); }
.countdown em { font-style: normal; color: var(--muted); font-weight: 600; }
.upcoming-art { display: flex; justify-content: center; }
.upcoming-art svg { width: 100%; max-width: 24rem; height: auto; }
@media (max-width: 760px) { .upcoming { grid-template-columns: minmax(0, 1fr); } .upcoming-art { order: -1; } .upcoming-art svg { max-width: 15rem; } }

/* ---------- Directory & profiles ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; background: var(--surface-2); border-color: transparent; }
.filters input:not([type=checkbox]), .filters select { background: #fff; }
.filters .check { align-self: center; }
.filters-actions { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 860px) { .filters { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.member {
  display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; color: var(--ink); text-decoration: none; position: relative; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.member:hover { color: var(--ink); border-color: var(--periwinkle); box-shadow: 0 8px 22px rgb(29 38 80 / .07); }
.member-grid .member:nth-child(3n+2) .avatar { background: var(--pink); color: var(--coral); }
.member-grid .member:nth-child(3n) .avatar { background: var(--peach); color: #a35a00; }
.member-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .95rem; }
.member-body strong { font: 700 1.08rem var(--font-display); }
.member .pill { position: absolute; top: .8rem; right: .8rem; }
.promo { font-size: .74rem; letter-spacing: .03em; color: var(--coral); font-weight: 600; }
.profile { display: flex; flex-direction: column; gap: 2rem; }
.profile-head { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; padding: 1.75rem; background: linear-gradient(90deg, var(--periwinkle) 0 62%, var(--pink) 62% 100%); border-radius: var(--radius); }
.profile-head > div { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; min-width: 0; }
.profile-head p { margin: 0; }
.profile-head .lede, .profile-head .muted { color: var(--ink); }
.profile-head .avatar.lg { background: #fff; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 2rem; align-items: start; }
@media (max-width: 820px) { .profile-body { grid-template-columns: 1fr; } }
.prose { max-width: 65ch; min-width: 0; overflow-wrap: break-word; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { background: var(--surface-2); border-radius: 3px; padding: .2rem .6rem; font-size: .9rem; font-weight: 600; }
.tags li:nth-child(3n+1) { background: var(--periwinkle); }
.tags li:nth-child(3n+2) { background: var(--pink); }
.tags li:nth-child(3n) { background: var(--peach); }
.contact { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.contact dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.contact dd { margin: 0; min-width: 0; }

/* ---------- Jobs ---------- */
.tabs { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); align-items: baseline; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 700; padding-block: .5rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--coral); }
.tabs .tabs-aside { margin-left: auto; font-weight: 600; font-size: .9rem; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.job {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--periwinkle); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0;
}
.job:hover { color: var(--ink); border-top-color: var(--coral); box-shadow: 0 8px 22px rgb(29 38 80 / .07); }
.job strong { font: 700 1.08rem var(--font-display); }
.job-top { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .25rem; }
.job.is-closed { opacity: .6; }

/* ---------- Events ---------- */
.event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.event-row {
  display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.event-row:hover { color: var(--ink); border-color: var(--periwinkle); box-shadow: 0 8px 22px rgb(29 38 80 / .07); }
.event-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.event-row strong { font: 700 1.05rem var(--font-display); }
.event-list.past .event-row { opacity: .65; }
.date-chip {
  flex: none; width: 3.6rem; text-align: center; border-radius: 4px; background: var(--peach); color: var(--ink);
  font: 700 .74rem/1.1 var(--font-body); text-transform: uppercase; padding: .5rem 0; letter-spacing: .04em;
}
.date-chip b { display: block; font: 700 1.5rem/1 var(--font-fun); }
.date-chip.is-tbc { background: var(--pink); color: var(--coral); }
.attendees { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .4rem; }
.attendees li { display: flex; justify-content: space-between; gap: .5rem; }
.attendees a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--ink); }

/* ---------- Date poll ---------- */
.poll { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; border-top: 4px solid var(--pink); }
.poll-table th[scope=row] { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); background: none; white-space: normal; font-weight: 700; }
.poll-table th[scope=row]::first-letter { text-transform: uppercase; }
.poll-table tr.is-leader th[scope=row], .poll-table tr.is-leader td { background: #fff6ea; }
.vote-cell { text-align: center; width: 5.5rem; }
.vote-cell label { display: block; padding: .35rem; cursor: pointer; }
.vote-cell input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }
.tally { min-width: 12rem; font-size: .85rem; }
.bar { display: block; width: 100%; height: 6px; border-radius: 3px; margin-bottom: .3rem; }
.bar-bg { fill: var(--surface-2); }
.bar-yes { fill: var(--ok); }
.bar-maybe { fill: var(--orange); }
.voters { margin: .5rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; font-size: .95rem; }
.voters strong::first-letter { text-transform: uppercase; }
details summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.option-admin { display: flex; flex-direction: column; gap: .75rem; }
.ext-form { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: end; }
.ext-form .field { width: 6rem; }
.ext-form .field-hint { width: 100%; }

/* ---------- Payments ---------- */
#paiement { border-top: 4px solid var(--peach); }
.pay-buttons { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.pay-buttons form { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.pay-buttons .btn { width: 100%; }
.paid-badge { background: var(--ok-soft); color: var(--ok); font-weight: 800; padding: .65rem .85rem; border-radius: 4px; margin-bottom: .5rem; }
.notice { background: #fff6ea; border-radius: 4px; padding: .75rem; margin-bottom: .75rem; }
.notice p { margin-bottom: .5rem; }

/* ---------- Mentorship ---------- */
.request { display: flex; flex-direction: column; gap: .75rem; }
.request-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.request-head .small { margin-left: auto; }
.person { display: inline-flex; gap: .5rem; align-items: center; color: var(--ink); text-decoration: none; }

/* ---------- Admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 0; }
.kpis div { border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface-2); }
.kpis div:nth-child(1) { background: var(--peach); }
.kpis div:nth-child(2) { background: var(--pink); }
.kpis div:nth-child(3) { background: var(--periwinkle); }
.kpis dt { font-size: .85rem; color: var(--ink); font-weight: 700; }
.kpis dd { margin: 0; font: 700 1.9rem/1.15 var(--font-fun); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.mono { font-variant-numeric: tabular-nums; }
.inline-search { display: flex; gap: .5rem; align-items: end; }
.inline-search .field-label { position: absolute; left: -999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #fff; padding-block: 2.5rem; font-size: .95rem; }
.footer-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } }
.footer-row h2 { color: #fff; font: 700 1rem var(--font-body); margin-bottom: .6rem; }
.footer-row p, .footer-row li { color: #f1f5f8; margin: 0 0 .35rem; }
.footer-row ul { list-style: none; padding: 0; margin: 0; }
.footer-row a { color: #fff; }
.footer-brand { font: 700 1.5rem/1 var(--font-fun); color: #fff; margin-bottom: .6rem; display: block; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .3); font-size: .85rem; color: #eef3f6; }

/* ---------- Brand name, charter ---------- */
.brand-pre { font: 700 1.05rem/1 var(--font-display); color: var(--ink); }
.brand { gap: .45rem; }
.charter { max-width: 48rem; display: flex; flex-direction: column; gap: 1.25rem; }
.charter-status { background: #fff6ea; border-left: 4px solid var(--orange); padding: .85rem 1.1rem; border-radius: var(--radius); margin: 0; font-weight: 600; }
.charter-article { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .25rem 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.charter-num { font: 700 1.6rem/1 var(--font-fun); color: var(--coral); }
.charter-article h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.charter-article h3 { font-size: 1rem; margin: .75rem 0 .35rem; }
.charter-article ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.charter-option { border: 1px dashed var(--periwinkle); background: var(--surface-2); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .6rem; }
.charter-option .pill { margin-bottom: .45rem; }
.charter-option p:last-child, .charter-option ul:last-child { margin-bottom: 0; }
.status-line { font-size: .85rem; }
.sanction summary { color: var(--danger); font-size: .88rem; }
.sanction[open] { flex-basis: 100%; background: #fff7f7; border: 1px solid #f6d3d4; border-radius: var(--radius); padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.sanction .form { gap: .6rem; }
