/* Ménil — local, quiet, legible. No remote fonts or UI framework. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #173c56;
  --green: #39664a;
  --sky: #eef5f8;
  --line: #d4dee2;
  --muted: #526775;
  --leaf: #edf5ed;
  --error: #9f302b;
  --error-bg: #fff1ef;
  --focus: #a45b00;
  --radius: 6px;
  --page-width: 1160px;
  --space: clamp(1rem, 3.5vw, 3rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; overflow-wrap: anywhere; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin-block: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 22ch; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 650; }
p + p { margin-top: .8rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }
img, svg { display: block; max-width: 100%; }
small, .small { font-size: .9rem; }
strong { font-weight: 650; }
.container { max-width: var(--page-width); margin-inline: auto; padding-inline: var(--space); }
.narrow { max-width: 860px; }
.reading { max-width: 68ch; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1.3rem; }
.skip-link { position: absolute; z-index: 10; left: 1rem; top: -120px; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); background: white; }
.header-inner { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-symbol { width: 42px; height: 46px; }
.brand-name { font-family: Georgia, serif; font-size: 1.85rem; line-height: 1; display: block; letter-spacing: -.04em; }
.brand-description { font-size: .75rem; color: var(--muted); display: block; margin-top: .3rem; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem .8rem; text-decoration: none; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sky); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.account-bar { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; align-items: center; padding-block: .4rem; font-size: .9rem; }
.account-bar form { margin: 0; }
.link-button { background: transparent; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; min-height: 48px; padding: .25rem .5rem; }
main { min-height: 50vh; padding-bottom: 4rem; }
.hero { background: var(--sky); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem; padding-top: 2.8rem; padding-bottom: 2.5rem; }
.hero h1 { max-width: 15ch; }
.hero p { max-width: 43ch; margin-top: 1rem; }
.hero-art { align-self: end; width: 100%; }
.hero .button { margin-top: 1.3rem; }
.home-content { padding-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 3rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.meeting-feature { border-block: 1px solid var(--line); padding-block: 1.5rem; }
.meeting-feature h3 { font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.meeting-feature > * + * { margin-top: .7rem; }
.date-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; color: var(--muted); }
.date-line svg { width: 20px; height: 20px; }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 4px; background: var(--sky); font-size: .9rem; font-weight: 600; max-width: 100%; }
.status.open { background: var(--leaf); color: var(--green); }
.status.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 50px; padding: .65rem 1.15rem; border: 2px solid var(--ink); border-radius: var(--radius); color: white; background: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.button:hover { background: #265773; border-color: #265773; text-decoration: none; }
.button.secondary { color: var(--ink); background: white; border-color: #9db0bc; }
.button.secondary:hover { background: var(--sky); border-color: var(--ink); }
.button.danger { color: var(--error); border-color: var(--error); background: white; }
.button[aria-disabled="true"], .button:disabled { opacity: .65; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.actions form { margin: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; }
.help-aside { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.help-aside h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.help-aside p { margin-top: .5rem; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; padding-left: 2.5rem; margin-bottom: 1.2rem; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--sky); border-radius: 50%; display: grid; place-items: center; font-size: .9rem; font-weight: 600; }
.steps p { font-size: .95rem; color: var(--muted); }
.pilot-note { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--green); background: var(--leaf); font-size: .95rem; }
.breadcrumb { padding-top: 1.1rem; margin-bottom: 1.2rem; }
.breadcrumb a { display: inline-flex; min-height: 48px; align-items: center; gap: .55rem; }
.page-heading { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-heading > * + * { margin-top: 1rem; }
.page-heading .intro { font-size: 1.1rem; max-width: 60ch; color: var(--muted); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 3rem; align-items: start; }
.content-section + .content-section { margin-top: 2.5rem; }
.content-section > h2 { margin-bottom: 1.1rem; }
.prose { overflow-wrap: anywhere; max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: .6rem; }
.question-list, .meeting-list { padding: 0; list-style: none; margin: 0; }
.list-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.list-item:first-child { border-top: 1px solid var(--line); }
.list-item + .list-item { margin-top: 0; }
.list-item h3 { margin: .5rem 0; }
.list-item h3 a { display: inline-block; padding-block: .25rem; }
.list-item p { color: var(--muted); }
.empty-state { padding: 1.5rem; background: var(--sky); border-radius: var(--radius); }
.empty-state h3 { margin-bottom: .5rem; }
.media-unavailable { background: var(--sky); border-radius: var(--radius); padding: 1.5rem; }
.media-unavailable .media-icon { width: 42px; height: 42px; margin-bottom: 1rem; color: var(--muted); }
.media-unavailable h2 { font-size: 1.4rem; margin-bottom: .7rem; }
.media-unavailable p { color: var(--muted); font-size: .95rem; }
.media-unavailable .text-link { margin-top: .5rem; }
.message { padding: 1rem 1.2rem; border-left: 4px solid var(--ink); background: var(--sky); margin: 1rem 0; overflow-wrap: anywhere; }
.message.success { border-color: var(--green); background: var(--leaf); }
.message.error, .message.warning { border-color: var(--error); background: var(--error-bg); }
.message strong { display: block; }
.form-panel { max-width: 720px; }
.form-panel .field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 650; margin-bottom: .4rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { display: block; width: 100%; min-height: 52px; padding: .7rem .8rem; background: white; border: 1.5px solid #788f9d; border-radius: var(--radius); color: var(--ink); }
.field textarea { resize: vertical; min-height: 150px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field .helptext, .field-help { display: block; color: var(--muted); margin-top: .4rem; font-size: .95rem; }
.errorlist { color: var(--error); padding-left: 1.2rem; margin: .4rem 0; font-weight: 600; }
.field-error { color: var(--error); font-weight: 600; margin-top: .4rem; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; margin-bottom: 1rem; padding: 0; font-size: 1.15rem; }
.choice-list { display: grid; gap: .75rem; margin-top: 1rem; }
.choice { display: flex; align-items: flex-start; gap: .85rem; min-height: 66px; padding: 1rem; border: 1.5px solid #99aeb9; border-radius: var(--radius); background: white; cursor: pointer; }
.choice:hover { background: var(--sky); border-color: var(--ink); }
.choice:has(input:checked) { background: var(--sky); border: 2px solid var(--ink); padding: calc(1rem - .5px); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.choice input { flex-shrink: 0; width: 24px; height: 24px; margin: .2rem 0 0; accent-color: var(--ink); }
.choice span { overflow-wrap: anywhere; }
.choice input:focus-visible { outline: none; }
.ballot-rules { color: var(--muted); margin-bottom: 1.5rem; }
.ballot-confirmation { border: 1px solid #b0c7b4; border-left: 5px solid var(--green); background: var(--leaf); padding: 1.3rem 1.5rem; margin-bottom: 1.8rem; }
.ballot-confirmation h2 { font-size: 1.6rem; margin-bottom: .8rem; color: var(--green); }
.ballot-confirmation ul { margin: .4rem 0; }
.ballot-confirmation + details { margin-bottom: 1.5rem; }
.form-panel + .muted { margin-top: 1.2rem; }
.result-list { padding: 0; margin: 1.2rem 0; list-style: none; }
.result-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.result-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.result-label span { overflow-wrap: anywhere; }
.result-label strong { flex-shrink: 0; }
.result-bar { display: block; width: 100%; height: 10px; margin-top: .7rem; border: 0; border-radius: 3px; background: var(--sky); appearance: none; }
.result-bar::-webkit-progress-bar { background: var(--sky); border-radius: 3px; }
.result-bar::-webkit-progress-value { background: var(--green); border-radius: 3px; }
.result-bar::-moz-progress-bar { background: var(--green); border-radius: 3px; }
.live-status { padding: .6rem 0; color: var(--muted); font-size: .9rem; }
.refresh-notice { padding: 1rem; background: var(--sky); border-left: 3px solid var(--ink); margin: 1rem 0; }
.refresh-notice .button { margin-top: .7rem; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 3rem; }
.login-intro { padding: 1.8rem; background: var(--sky); align-self: start; border-radius: var(--radius); }
.login-intro img { margin-top: 1.5rem; }
.login-form h1 { font-size: 2.4rem; }
.login-form > p { margin-top: 1rem; margin-bottom: 1.7rem; }
.login-form .button { width: 100%; }
.login-form .field { margin-bottom: 1.1rem; }
.password-row { display: flex; gap: .5rem; align-items: center; }
.password-row input { min-width: 0; }
.password-toggle { min-height: 52px; border: 1px solid #788f9d; border-radius: var(--radius); background: white; color: var(--ink); padding-inline: .7rem; font-size: .9rem; }
.help-section { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-top: 2rem; }
.help-section h2 { font-size: 1.6rem; margin-bottom: .8rem; }
.help-index { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; padding-bottom: 1rem; }
.help-index a { display: inline-flex; align-items: center; min-height: 48px; }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 56px; padding-block: .8rem; cursor: pointer; font-weight: 600; }
details > .detail-content { padding: .2rem 0 1.3rem; }
.organizer-area { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.organizer-area h2 { font-size: 1.5rem; }
.organizer-note { color: var(--muted); margin: .7rem 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.admin-actions form { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.8rem; background: #fafcfd; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { max-width: 58ch; color: var(--muted); font-size: .9rem; }
.footer-brand { font-family: Georgia, serif; font-size: 1.4rem; margin-bottom: .4rem; display: block; }
.footer-links { display: flex; gap: .5rem 1.3rem; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { display: inline-flex; min-height: 48px; align-items: center; }
@media (max-width: 850px) {
  .header-inner { gap: .8rem; }
  .main-nav a { padding-inline: .55rem; }
  .home-content, .page-layout { gap: 1.8rem; }
  .login-layout { gap: 2rem; }
  .brand-description { display: none; }
}
@media (max-width: 650px) {
  .header-inner { min-height: auto; flex-direction: column; align-items: flex-start; padding-top: 1rem; gap: .7rem; }
  .brand-name { font-size: 1.7rem; }
  .brand-symbol { width: 34px; height: 38px; }
  .brand-description { display: block; font-size: .75rem; }
  .main-nav { width: 100%; gap: .15rem; border-top: 1px solid var(--line); padding-block: .35rem; }
  .main-nav a { padding-inline: .6rem; font-size: .95rem; }
  .account-bar { justify-content: space-between; gap: .2rem .7rem; font-size: .8rem; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 1.8rem; padding-bottom: 0; gap: 1.1rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { max-width: 35ch; }
  .hero-art { width: min(100%, 370px); justify-self: end; max-height: 145px; object-fit: contain; object-position: bottom; }
  .home-content, .page-layout, .login-layout { grid-template-columns: 1fr; gap: 2rem; }
  .home-content { padding-top: 1.7rem; }
  .help-aside { padding-left: 0; padding-top: .5rem; border-left: 0; }
  .page-heading { padding-bottom: 1.4rem; margin-bottom: 1.5rem; }
  .page-heading h1 { font-size: 2rem; }
  .login-layout { padding-top: 1.7rem; }
  .login-intro { order: 2; padding: 1.3rem; }
  .login-intro img { max-height: 120px; margin-left: auto; }
  .login-form h1 { font-size: 2.1rem; }
  .footer-inner { flex-direction: column; gap: .7rem; }
  .ballot-confirmation { padding: 1rem; }
  .actions .button { flex-grow: 1; }
}
@media (max-width: 360px) {
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: .3rem; font-size: .9rem; }
  .password-row { flex-wrap: wrap; }
  .password-row input { flex-basis: 100%; }
  .password-toggle { width: 100%; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; padding-block: 1.4rem; }
  .hero-art { max-height: 190px; }
  .header-inner { min-height: 75px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print {
  .site-header, .site-footer, .breadcrumb, .actions, .media-unavailable, .refresh-notice, .organizer-area { display: none; }
  body { font-size: 12pt; color: black; }
  .container { max-width: none; padding: 0; }
  .page-layout { display: block; }
  main { padding: 0; }
}
