:root {
  --navy: #0b1f4b;
  --navy-2: #12327a;
  --red: #c8102e;
  --red-dark: #9d0c24;
  --white: #fff;
  --ink: #101828;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.35);
  --font-display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0; font-family: var(--font-body); line-height: 1.55; color: var(--ink); background: #f3f5fa;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
a { color: var(--navy-2); }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* Top bar: translucent, blurred, sticky */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center;
  padding: .6rem clamp(1rem, 4vw, 3rem); color: var(--white);
  background: linear-gradient(180deg, rgba(11,31,75,.92), rgba(11,31,75,.78));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--red);
}
.brand { display: flex; flex-direction: column; color: var(--white); text-decoration: none; line-height: 1.1; margin-right: auto; }
.brand-top { font: 900 1.15rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.brand-tag { font: 700 .7rem var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: #ffd0d8; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font: 800 .9rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; padding: .5rem .25rem; display: inline-block; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 14rem; list-style: none; margin: 0; padding: .5rem; background: rgba(11,31,75,.97); border: 1px solid var(--glass-line); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.acct { display: flex; gap: .5rem; align-items: center; font-size: .85rem; }
.topmenu { display: contents; }
.menu-toggle { display: none; align-items: center; gap: .55rem; background: transparent; color: var(--white); border: 2px solid var(--glass-line); padding: .55rem .9rem; font: 800 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 1.3rem; height: 3px; background: var(--white); position: relative; transition: transform .2s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; } .menu-toggle .bars::after { top: 7px; }
.topbar.open .menu-toggle .bars { background: transparent; }
.topbar.open .menu-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.topbar.open .menu-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }
.who { opacity: .85; }

/* Buttons */
.btn { display: inline-block; cursor: pointer; border: 0; padding: .8rem 1.4rem; font: 900 .95rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--white); background: var(--red); text-decoration: none; border-radius: 2px; }
.btn:hover { background: var(--red-dark); }
.btn-small { padding: .4rem .8rem; font-size: .75rem; }
.btn-ghost { background: transparent; border: 2px solid currentColor; }

/* Sections */
.sec { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem); }
.sec-inner { max-width: 62rem; margin: 0 auto; }
.sec-inner.narrow { max-width: 28rem; }
.sec h1, .sec h2, .sec h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 1.02; margin: 0 0 .6em; }
.sec h1 { margin-bottom: .2em; } /* extra space is added with blank lines, which the editor keeps */
.sec h1 { font-weight: 900; font-size: calc(clamp(2.4rem, 9vw, 6.5rem) * var(--k, 1)); letter-spacing: -.01em; }
.sec h2 { font-weight: 900; font-size: calc(clamp(1.6rem, 4.5vw, 3rem) * var(--k, 1)); }
.sec h3 { font-weight: 800; font-size: calc(1.3rem * var(--k, 1)); }
.sec h4 { font-family: var(--font-display); text-transform: uppercase; font-size: calc(1.1rem * var(--k, 1)); margin: 0 0 .5em; }
.sec p, .sec li, .sec blockquote { font-size: calc(1.15rem * var(--k, 1)); }

.sec-hero {
  color: var(--white); min-height: 60vh; display: flex; align-items: center;
  background:
    url("/img/stars.svg") no-repeat left 4.5rem center / auto 92%, /* a field of stars on the left, like the corner of a flag */
    linear-gradient(90deg, rgba(11,31,75,.96) 0 62%, rgba(11,31,75,.55) 100%),
    repeating-linear-gradient(90deg, var(--navy-2) 0 3rem, var(--navy) 3rem 6rem);
}
.sec-hero::before { /* red-and-white stripe accent, as on the party mailers */
  content: ""; position: absolute; left: clamp(.5rem, 3vw, 2rem); top: 0; bottom: 0; width: 1.1rem;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--white) 40% 60%, var(--red) 60%);
}
.sec-hero a:not(.btn) { color: var(--white); display: inline-block; margin-top: .5rem; padding: .8rem 1.4rem; background: var(--red); text-decoration: none; font: 900 .95rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.sec-hero a:not(.btn):hover { background: var(--red-dark); }
.sec-hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.sec-text { background: var(--white); }
.sec-panel { color: var(--white); background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.sec-panel ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.sec-panel li { padding: 1.1rem 1.2rem; font: 800 1.1rem var(--font-display); text-transform: uppercase; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-left: 8px solid var(--red); max-width: none; }
.sec-banner { color: var(--white); background: var(--red); text-align: center; }
.sec-banner .sec-inner { max-width: 52rem; }
.sec-banner a { color: var(--white); }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 700; }
.form input { font: inherit; padding: .7rem; border: 2px solid #8b95a7; border-radius: 2px; }
.error { color: var(--red-dark); font-weight: 700; }

.foot { padding: 1.5rem clamp(1rem, 5vw, 4rem) 2.5rem; background: var(--navy); color: #dbe3f5; text-align: center; font-size: .95rem; }
.foot a { color: var(--white); }
.disclaimer { display: inline-block; border: 1px solid var(--glass-line); padding: .5rem 1rem; margin-bottom: .75rem; }

/* ---------- Inline editing ---------- */
body.editing .sec { outline: 2px dashed rgba(255,255,255,.0); }
body.editing .sec-inner[contenteditable="true"] { outline: 3px dashed #ffbf47; outline-offset: 6px; cursor: text; min-height: 3rem; }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem 1rem; background: #111827; color: #fff; border-top: 3px solid #ffbf47; font: 600 .85rem var(--font-body); }
.ed-bar button, .ed-bar select { font: inherit; padding: .4rem .7rem; border: 1px solid #4b5563; background: #1f2937; color: #fff; cursor: pointer; border-radius: 3px; }
.ed-bar button:hover { background: #374151; }
.ed-bar .primary { background: #1a7f37; border-color: #1a7f37; }
.ed-bar .danger { background: #8f1d2c; border-color: #8f1d2c; }
.ed-bar .sep { width: 1px; align-self: stretch; background: #4b5563; margin: 0 .3rem; }
.ed-bar .status { margin-left: auto; opacity: .9; }
.ed-sec-tools { position: absolute; right: .75rem; top: .5rem; z-index: 5; display: flex; gap: .25rem; }
.ed-sec-tools button { font: 700 .75rem var(--font-body); padding: .25rem .5rem; background: #111827; color: #fff; border: 1px solid #4b5563; cursor: pointer; }
body.can-edit { padding-bottom: 4.5rem; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 5rem; z-index: 70; background: #111827; color: #fff; padding: .7rem 1.2rem; border-radius: 4px; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: .5rem 1rem; }
  .brand { flex: 1 1 0; margin-right: 0; min-width: 0; }
  .menu-toggle { display: inline-flex; flex: 0 0 auto; }
  .topmenu { display: none; flex: 1 0 100%; flex-direction: column; gap: 1rem; padding: .5rem 0 1rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
  .topbar.open .topmenu { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav > li { border-top: 1px solid var(--glass-line); }
  .nav a { display: block; padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 0; }
  .nav a[aria-current="page"] { color: #ffd0d8; }
  .has-sub:hover > .sub, .sub { display: block; position: static; background: transparent; border: 0; padding: 0 0 .4rem 1rem; min-width: 0; }
  .sub a { font-size: .95rem; padding: .6rem .25rem; }
  .acct { flex-wrap: wrap; gap: .6rem; font-size: 1rem; }
  .acct .btn, .admin-link, .who { padding-top: .6rem; padding-bottom: .6rem; }
}
@media (max-width: 640px) {
  html { font-size: 106%; }
  .brand-top { font-size: .95rem; }
  .brand-tag { font-size: .62rem; letter-spacing: .1em; }
  .sec-hero { min-height: 50vh; padding-left: 2.2rem; background-size: auto 34%, auto, auto; background-position: left 1.4rem top .8rem, 0 0, 0 0; }
  .sec-hero::before { left: 0; width: .8rem; }
  .sec { padding-left: 1rem; padding-right: 1rem; }
  .sec-hero h1 { overflow-wrap: anywhere; }
}
@media (max-width: 430px) { .brand-tag { display: none; } }
@media (prefers-reduced-motion: no-preference) { .btn, .nav a { transition: background .15s, border-color .15s; } }

.ed-mode[aria-pressed="true"] { background: #1a7f37; }
.ed-hidden { opacity: .55; text-decoration: line-through; }
.ed-nav-btn { font: 700 .75rem var(--font-body); min-width: 1.6rem; padding: .15rem .3rem; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); cursor: pointer; border-radius: 2px; }
.ed-nav-btn:hover { background: var(--red); }
body.editing .nav { gap: .5rem 1.25rem; }
body.editing .topbar nav { order: 5; flex-basis: 100%; }
body.editing .nav { align-items: flex-start; }
.ed-nav-item > a { padding: .25rem .1rem; }

/* Edit mode menu: looks like the live menu; tools appear on hover or keyboard focus */
.ed-nav-item { position: relative; display: flex; align-items: center; gap: .35rem; }
.ed-pop { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; z-index: 40; padding: .35rem; background: rgba(11,31,75,.97); border: 1px solid var(--glass-line); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ed-nav-item:hover > .ed-pop, .ed-nav-item:focus-within > .ed-pop { display: block; }
.ed-nav-tools { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.ed-sub { list-style: none; margin: .4rem 0 0; padding: .4rem 0 0; border-top: 1px solid var(--glass-line); }
.ed-child { flex-wrap: wrap; margin: .25rem 0; }
.ed-child a { font-size: .8rem; }
.ed-tag { font: 800 .6rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: .1rem .4rem; background: #ffbf47; color: #111; border-radius: 2px; }
.ed-nav-item > a::after { content: ""; }

/* Editor-controlled text size (sz-5 is the default), alignment and picture width */
.sz-1 { --k: .6; } .sz-2 { --k: .7; } .sz-3 { --k: .8; } .sz-4 { --k: .9; } .sz-6 { --k: 1.15; } .sz-7 { --k: 1.3; }
.sz-8 { --k: 1.5; } .sz-9 { --k: 1.75; } .sz-10 { --k: 2; } .sz-11 { --k: 2.5; } .sz-12 { --k: 3; }
.sec .al-left { text-align: left; margin-left: 0; margin-right: auto; }
.sec .al-center { text-align: center; margin-left: auto; margin-right: auto; }
.sec img { display: block; max-width: 100%; height: auto; margin: .75rem 0; }
.sec img.al-center { margin-left: auto; margin-right: auto; }
.img-w-10{width:10%}.img-w-15{width:15%}.img-w-20{width:20%}.img-w-25{width:25%}.img-w-30{width:30%}.img-w-35{width:35%}
.img-w-40{width:40%}.img-w-45{width:45%}.img-w-50{width:50%}.img-w-55{width:55%}.img-w-60{width:60%}.img-w-65{width:65%}
.img-w-70{width:70%}.img-w-75{width:75%}.img-w-80{width:80%}.img-w-85{width:85%}.img-w-90{width:90%}.img-w-95{width:95%}.img-w-100{width:100%}
.sec img.img-round { border-radius: 1.25rem; }
.sec img.img-border { border: 4px solid #fff; box-shadow: 0 0 0 2px var(--navy), 0 6px 18px rgba(0,0,0,.25); }
.sec img.ed-sel { outline: 3px solid #ffbf47; outline-offset: 3px; cursor: pointer; }
body.editing .sec-inner img { cursor: pointer; }
.ed-imgpop { position: fixed; z-index: 80; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem .7rem; background: #111827; color: #fff; border: 2px solid #ffbf47; border-radius: 4px; font: 600 .85rem var(--font-body); max-width: calc(100vw - 16px); }
.ed-imgpop button { font: inherit; padding: .3rem .6rem; border: 1px solid #4b5563; background: #1f2937; color: #fff; cursor: pointer; border-radius: 3px; }
.ed-imgpop button[aria-pressed="true"] { background: #ffbf47; color: #111827; border-color: #ffbf47; }
.ed-imgpop .danger { background: #8f1d2c; border-color: #8f1d2c; }
.ed-bar button[aria-pressed="true"] { background: #ffbf47; color: #111; border-color: #ffbf47; }

/* ---------- News and events ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; margin: 1rem 0 2rem; }
.card { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid #d7dcea; border-left: 8px solid var(--red); box-shadow: 0 6px 18px rgba(11,31,75,.08); }
.card h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: .3rem 0; }
.card-meta { font-weight: 700; color: #4a5568; font-size: .95rem !important; }
.card-draft { opacity: .8; border-left-color: #ffbf47; background: #fffbea; }
.cards-past .card { border-left-color: #8b95a7; box-shadow: none; }
.past-h { margin-top: 2rem; }
.item-head { min-height: 38vh; }
.item-head h1 { font-size: clamp(2rem, 6vw, 4.5rem); }
.kicker { font: 800 .9rem var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: #ffd0d8; margin: 0 0 .5rem !important; }
.kicker a { color: #ffd0d8 !important; background: none !important; padding: 0 !important; margin: 0 !important; font-size: inherit !important; letter-spacing: inherit !important; }
.meta { font-size: 1.3rem !important; font-weight: 600; }
.narrow-wide { max-width: 40rem; }
.sec-panel .form label, .sec-panel .form legend { color: #fff; }
.sec-panel .form input[type="text"], .sec-panel .form input:not([type="radio"]) { color: var(--ink); background: #fff; }
.cats { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; gap: .6rem; }
.cats legend { font: 800 1rem var(--font-display); text-transform: uppercase; padding: 0 0 .4rem; }
.cat { display: flex !important; flex-direction: row; gap: .7rem; align-items: flex-start; font-weight: 400 !important; padding: .7rem .9rem; background: var(--glass); border: 1px solid var(--glass-line); }
.cat input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reg-msg { padding: .7rem 1rem; background: #fff; color: var(--red-dark); font-weight: 700; }
.reg-msg.ok { color: #14532d; background: #dcfce7; }

/* Details panel (edit mode) */
.ed-details { max-width: 62rem; margin: 1.25rem auto; padding: 1.25rem 1.5rem; background: #fff; color: var(--ink); border: 3px dashed #ffbf47; }
.ed-details h2 { margin: 0 0 .5rem; font: 900 1.4rem var(--font-display); text-transform: uppercase; }
.ed-details h3 { font: 800 1.1rem var(--font-display); text-transform: uppercase; margin: 1.25rem 0 .25rem; }
.ed-note { margin: .25rem 0 1rem; color: #4a5568; font-size: .95rem; }
.ed-f { display: grid; gap: .25rem; margin: .6rem 0; font-weight: 700; }
.ed-f input { font: inherit; padding: .5rem .6rem; border: 2px solid #8b95a7; border-radius: 2px; }
.ed-f small { font-weight: 400; color: #4a5568; }
.ed-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.ed-check { display: flex; gap: .5rem; align-items: center; }
.ed-cat { display: grid; grid-template-columns: 2fr 1fr 1.5fr auto; gap: .5rem; margin: .4rem 0; }
.ed-cat input { font: inherit; padding: .45rem; border: 2px solid #8b95a7; }
.ed-details button { font: 700 .9rem var(--font-body); padding: .45rem .8rem; cursor: pointer; border: 1px solid #4b5563; background: #f3f4f6; }
.ed-details .primary { background: #1a7f37; color: #fff; border-color: #1a7f37; }
.ed-details .danger { background: #8f1d2c; color: #fff; border-color: #8f1d2c; }
.ed-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.ed-msg { font-weight: 700; color: #14532d; }
.ed-regs { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #d7dcea; overflow-x: auto; }
.ed-regs table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.ed-regs th, .ed-regs td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #e5e7eb; }
.ed-cancelled { opacity: .5; text-decoration: line-through; }
@media (max-width: 640px) { .ed-cat { grid-template-columns: 1fr 1fr; } }
.ed-vol .ed-cat { display: flex; flex-wrap: wrap; align-items: center; }
.ed-vol .ed-cat input { flex: 1 1 14rem; }
.ed-vol table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .9rem; }
.ed-vol th, .ed-vol td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #d1d5db; }
.who { color: #fff; font-weight: 700; text-decoration: underline; margin-right: .4rem; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.check input { width: 1.3rem; height: 1.3rem; }
.btn-danger { background: #8f1d2c; }
.people-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.people-row input, .people-row select, .people-table select { font: inherit; padding: .5rem; border: 2px solid #8b95a7; }
.table-wrap { overflow-x: auto; }
.people-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.people-table th, .people-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #d1d5db; }
.page-acct h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-acct h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.sec-inner.wide { max-width: 72rem; }
.people-invite textarea, .people-invite > input { display: block; width: 100%; max-width: 40rem; box-sizing: border-box; font: inherit; padding: .6rem; margin: .4rem 0; border: 2px solid #8b95a7; }
.people-invite { margin-bottom: 1.5rem; }
.ed-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(5,12,32,.7); display: grid; place-items: center; padding: 1rem; }
.ed-modal { background: #fff; color: var(--ink); width: min(32rem, 100%); padding: 1.25rem 1.5rem; border: 3px solid #ffbf47; display: grid; gap: .8rem; }
.ed-modal h2 { margin: 0; font: 900 1.4rem var(--font-display); text-transform: uppercase; }
.ed-modal input[type=text], .ed-modal input:not([type]) { font: inherit; padding: .6rem; border: 2px solid #8b95a7; }
.ed-choice { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem; border: 1px solid #d1d5db; cursor: pointer; }
.ed-choice input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; }
.ed-modal button { font: 800 1rem var(--font-body); padding: .65rem 1.1rem; cursor: pointer; border: 1px solid #4b5563; background: #f3f4f6; }
.ed-modal button.primary { background: #1b7f3b; border-color: #1b7f3b; color: #fff; }
.people-toolbar { margin-bottom: .6rem; }
.people-toolbar input[type=search] { flex: 1 1 18rem; font: inherit; padding: .5rem; border: 2px solid #8b95a7; }
.people-filter { display: grid; gap: .15rem; font: 700 .8rem var(--font-body); }
.people-filter select { font: 400 1rem var(--font-body); padding: .45rem; border: 2px solid #8b95a7; }
.people-count { margin: .25rem 0 .6rem; color: #4b5563; font-size: 1rem !important; }
.people-actions { white-space: nowrap; }
.people-actions .btn { margin-right: .3rem; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 2px solid #4b5563; }
.btn-ghost-dark:hover { background: #e5e7eb; }
.people-detail { background: #f3f4f6; padding: 1rem !important; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.people-grid h3 { font-size: 1rem; margin: 0 0 .4rem; }
.people-grid label { display: grid; gap: .15rem; font-weight: 700; margin-bottom: .5rem; }
.people-grid input { font: inherit; padding: .45rem; border: 2px solid #8b95a7; }
.people-grid ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.people-grid li, .people-grid p { font-size: 1rem; }
.people-invite { margin: 1.25rem 0; border: 1px solid #d1d5db; padding: .6rem 1rem; }
.people-invite summary { font: 800 1.1rem var(--font-display); text-transform: uppercase; cursor: pointer; }
.ed-hist { width: min(64rem, 100%); max-height: 92vh; overflow: hidden; grid-template-rows: auto auto 1fr auto; }
.ed-hist-body { display: grid; grid-template-columns: 17rem 1fr; gap: 1rem; min-height: 0; overflow: hidden; }
.ed-hist-list { overflow-y: auto; display: grid; gap: .4rem; align-content: start; max-height: 55vh; }
.ed-hist-item { text-align: left; display: grid; gap: .1rem; padding: .5rem .6rem !important; background: #fff !important; border: 1px solid #d1d5db !important; }
.ed-hist-item.on { border: 2px solid #c8102e !important; background: #fdecee !important; }
.ed-hist-item small { color: #4b5563; font-weight: 400; }
.ed-hist-preview { overflow: auto; max-height: 55vh; border: 1px solid #d1d5db; padding: .5rem; background: #f3f4f6; }
.ed-hist-page { zoom: .5; pointer-events: none; background: #fff; }
.ed-hist-page .sec { padding: 1.5rem 2rem; }
@media (max-width: 720px) { .ed-hist-body { grid-template-columns: 1fr; } .ed-hist-list { max-height: 22vh; } .ed-hist-preview { max-height: 30vh; } }
.form select, .form textarea { font: inherit; padding: .7rem; border: 2px solid #8b95a7; border-radius: 2px; color: var(--ink); background: #fff; }
.map-sec .map { width: 100%; height: 22rem; border: 3px solid var(--navy); margin: .5rem 0 1rem; display: block; }
.map-links .btn { margin: 0 .4rem .4rem 0; }
.ed-msgs { display: grid; gap: .75rem; }
.ed-msg-card { border: 1px solid #d1d5db; padding: .75rem 1rem; background: #fff; }
.ed-msg-card.done { opacity: .6; }
.ed-msg-card p { white-space: pre-wrap; margin: .4rem 0; font-size: 1rem; }
.ed-msg-card small { color: #4b5563; }
.vote-map { height: 28rem; border: 3px solid var(--navy); margin: 1rem 0 1.5rem; z-index: 0; }
.vote-warning { background: #fff7e0; border-left: 8px solid #ffbf47; padding: .8rem 1rem; max-width: none !important; }
.vote-group { margin-top: 1.5rem; }
.vote-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.vote-card { border: 1px solid #d1d5db; border-left: 8px solid var(--red); padding: .8rem 1rem; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.vote-card h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.vote-card p { margin: .25rem 0; font-size: 1rem; }
.vote-kind { color: var(--red); font-weight: 800; text-transform: uppercase; font-size: .8rem !important; letter-spacing: .05em; }
.ed-vote-row { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr 1fr 1fr auto auto auto auto; gap: .4rem; align-items: center; margin: .4rem 0; }
.ed-vote-row input, .ed-vote-row select { font: inherit; padding: .4rem; border: 2px solid #8b95a7; min-width: 0; }
.ed-vote-pin { font-size: .85rem; color: #4b5563; }
@media (max-width: 900px) { .ed-vote-row { grid-template-columns: 1fr 1fr; } }
.chair-search { display: grid; gap: .3rem; font-weight: 700; max-width: 28rem; margin: .5rem 0; }
.chair-search input { font: inherit; padding: .7rem; border: 2px solid #8b95a7; }
.chair-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.chair-card { border: 1px solid #d1d5db; border-left: 8px solid var(--red); padding: .7rem .9rem; background: #fff; }
.chair-card.vacant { border-left-color: #9ca3af; background: #f9fafb; }
.chair-card p { margin: .15rem 0; font-size: 1rem; }
.chair-card[hidden] { display: none; }
.chair-area { font: 900 1.05rem var(--font-display); text-transform: uppercase; color: var(--navy); }
.chair-name { font-weight: 700; }
.chair-role { color: #4b5563; font-size: .9rem !important; }
.officials-table { width: 100%; border-collapse: collapse; }
.officials-table th, .officials-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #d1d5db; font-size: 1.05rem; }
.lookup-result { margin-top: 1rem; }
.lookup-card { background: var(--glass); border: 1px solid var(--glass-line); padding: 1rem 1.2rem; border-left: 8px solid var(--red); }
.lookup-card h3 { margin: .2rem 0 .4rem; }
.lookup-list { padding-left: 1.2rem; }
.lookup-note { font-size: .95rem !important; opacity: .9; }
.ed-dir-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.4fr auto auto; gap: .4rem; margin: .4rem 0; align-items: center; }
.ed-dir-row input, .ed-dir-row select { font: inherit; padding: .4rem; border: 2px solid #8b95a7; min-width: 0; }
.ed-widget-tag { background: #ffbf47; color: #111827; padding: .2rem .5rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.sec-widget { background: repeating-linear-gradient(45deg, #fff7e0, #fff7e0 12px, #fff 12px, #fff 24px); color: var(--ink); }
@media (max-width: 900px) { .ed-dir-row { grid-template-columns: 1fr 1fr; } }
.foot-hq { margin: .6rem 0; }
.foot-social { margin: .6rem 0; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.foot-social a { border: 1px solid var(--glass-line); padding: .35rem .8rem; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.admin-link { color: #fff; font-weight: 700; text-decoration: underline; margin-right: .4rem; font-size: .85rem; }
.share-sec { padding-top: 1rem; padding-bottom: 2rem; }
.share-sec h2 { font-size: 1.3rem; }
.share-row .btn { margin: 0 .4rem .4rem 0; }
.ed-regs textarea { width: 100%; max-width: 40rem; box-sizing: border-box; font: inherit; padding: .5rem; border: 2px solid #8b95a7; }
/* Photo galleries and videos */
.sec-gallery { background: var(--white); }
.sec-gallery .sec-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem; }
.sec-gallery .sec-inner p { grid-column: 1 / -1; margin: 0; }
.sec-gallery img { width: 100% !important; height: 12rem !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; cursor: zoom-in; display: block; }
body.editing .sec-gallery img { cursor: pointer; }
.sec-video { background: #0b1f4b; }
.video-wrap { position: relative; padding-top: 56.25%; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,12,32,.93); display: grid; place-items: center; grid-template-rows: 1fr auto; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox p { color: #fff; margin: .5rem 0 0; font-size: 1rem; text-align: center; }
.lightbox button { position: absolute; font: 800 1rem var(--font-body); padding: .8rem 1.2rem; background: #fff; border: 0; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }
.archive-link { margin-top: 1.5rem; }
.field-row { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.field-row input { flex: 1 1 8rem; }
.btn-ghost { background: transparent; border: 2px solid currentColor; }
.outbox-ok { background: #e7f6ec; border-left: 8px solid #1b7f3b; padding: .6rem 1rem; max-width: none !important; }
.outbox-warn { background: #fdecee; border-left: 8px solid var(--red); padding: .6rem 1rem; font-weight: 700; max-width: none !important; }
.outbox-stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: .8rem 0; font-size: 1.05rem; }
.outbox-stats .bad { color: var(--red); }
.badge { display: inline-block; padding: .15rem .55rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.badge-sent { background: #e7f6ec; color: #14532d; } .badge-pending { background: #fff7e0; color: #7a5200; } .badge-failed { background: #fdecee; color: #8f1d2c; }
.outbox-error { color: #8f1d2c; font-size: .85rem; margin-top: .25rem; max-width: 22rem; word-break: break-word; }
.outbox-body { white-space: pre-wrap; background: #fff; border: 1px solid #d1d5db; padding: .75rem; font: 400 .95rem/1.5 var(--font-body); max-height: 20rem; overflow: auto; }
.ed-import { border: 1px solid #d1d5db; padding: .5rem .8rem; margin: .8rem 0; background: #fff; }
.ed-import summary { font-weight: 800; cursor: pointer; }
.ed-import textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem; border: 2px solid #8b95a7; }
.ed-import-out .bad { color: #8f1d2c; }
.ed-import-out ul { max-height: 14rem; overflow: auto; font-size: .95rem; }
.fb-help { border: 1px solid #d1d5db; padding: .5rem .9rem; margin: .5rem 0 1rem; background: #fff; }
.fb-help summary { font-weight: 800; cursor: pointer; }
.fb-help li { font-size: 1rem; margin: .4rem 0; }

/* A herd of elephants marching toward you, behind the page header. The picture has a transparent background and
   is shown faintly, so the flag-like stripes of the header show through the gaps and through the elephants. */
.sec-hero { isolation: isolate; overflow: hidden; }
.sec-hero > .sec-inner { position: relative; z-index: 1; }
.sec-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/img/herd-march.webp") no-repeat center bottom / min(72rem, 100%) auto;
  opacity: .21;
}
