: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; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-logo { flex: none; width: 3.4rem; height: 3.4rem; }
.brand-top { font: 900 1.05rem/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; }
.adminbar { flex: 1 0 100%; width: 0; min-width: 100%; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; font-size: .85rem; } /* administrators: shortcuts on their own row under the menu, right-aligned */
.acct { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; font-size: .85rem; }
.topmenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 1rem; margin-left: auto; max-width: 100%; } /* menu and log in/out stay together, flush right, wherever they wrap */
.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); }
.foot .version { margin-top: .6rem; font-size: .8rem; opacity: .7; }
.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 { align-items: center; }
.ed-sec-label { font: 700 .75rem var(--font-body); padding: .25rem .5rem; background: #111827; color: #fff; }
.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; }
/* the menu has dropped under the logo: line it up on the left instead */
.topbar.wrapped .topmenu { margin-left: 0; justify-content: flex-start; }
.topbar.wrapped .adminbar { justify-content: flex-start; }
@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; margin-left: 0; justify-content: flex-start; 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; justify-content: flex-start; margin-left: 0; }
  .adminbar { flex: 0 0 auto; justify-content: flex-start; font-size: 1rem; gap: .6rem; }
  .adminbar .btn, .adminbar .admin-link, .adminbar .who { padding-top: .6rem; padding-bottom: .6rem; }
  .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-logo { width: 2.8rem; height: 2.8rem; }
  .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 .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:nth-last-child(-n+3) > .ed-pop { left: auto; right: 0; } /* the menu is right-aligned, so the last items' pop-ups open leftward */
.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-has-img { grid-column: 1 / -1; display: flex; align-items: stretch; width: fit-content; max-width: 100%; padding: 0; } /* the text keeps a normal card width; the picture is added beside it */
.card-has-img .card-body { flex: 0 1 22rem; min-width: 0; padding: 1.25rem 1.4rem; }
.card-img { order: 2; flex: 0 0 9.5rem; /* width is set from the picture's shape by site.js */ position: relative; display: block; }
.card-img img, .sec .card-img img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; display: block; }
@media (max-width: 40rem) {
  .card-has-img { flex-direction: column; width: auto; }
  .card-has-img .card-body { flex: none; }
  .card-img { order: 2; flex: none !important; }
  .card-img img, .sec .card-img img { position: static; height: auto; }
}
.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; }
.meta .map-links { font-size: 1.05rem; font-weight: 500; }
.meta .map-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sec-inner.narrow-wide { max-width: 62rem; } /* forms keep a readable width but start at the same left edge as other sections */
.sec-inner.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-ai summary { cursor: pointer; font: 900 1.2rem var(--font-display); text-transform: uppercase; }
.ed-ai textarea { width: 100%; box-sizing: border-box; font: inherit; }
.ed-ai-list li { margin: .5rem 0; }
.ed-ai .bad { color: #8f1d2c; font-weight: 700; }
.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: 62rem; } /* same left edge as every other section */
.sec-inner.page-acct.wide { max-width: 72rem; } /* admin tables get the extra room */
.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; align-items: flex-end; } /* the search box has no label, so line it up with the bottom of the labelled dropdowns */
.people-toolbar input[type=search], .people-toolbar select { box-sizing: border-box; height: 2.75rem; }
.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; width: 100%; }
.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;
}

/* A video placed inside the writing; in edit mode it is shown as a labelled link. */
.sec .video-wrap { margin: 1rem 0; }
body.editing p.vid::before { content: "\25B6  Video or audio: "; font-weight: 800; }
body.editing p.vid { background: rgba(255,191,71,.25); padding: .4rem .6rem; }

/* Post editor: the headline and summary are edited where they appear. */
body.editing .item-head h1[contenteditable="true"] { outline: 3px dashed #ffbf47; outline-offset: 6px; cursor: text; min-height: 1.1em; }
.ed-postmeta { max-width: 62rem; margin: 1rem auto 0; padding: 0 clamp(1rem, 5vw, 4rem); box-sizing: content-box; }
.ed-postmeta > input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.1rem; padding: .7rem .8rem; border: 2px solid #8b95a7; border-radius: 2px; background: #fff; color: var(--ink); }
.ed-metarow { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; margin: .6rem 0 0; font-weight: 700; }
.ed-metarow select { font: inherit; padding: .35rem .5rem; }
.ed-more { margin-top: 1.25rem; border-top: 1px solid #d7dcea; padding-top: .75rem; }
.ed-more > summary { cursor: pointer; font: 800 1rem var(--font-display); text-transform: uppercase; }
.ed-details:not(:has(h2)) { border: 0; padding-top: 0; margin-top: .5rem; }

.sec video.media { display: block; width: 100%; max-width: 100%; margin: 1rem 0; background: #000; }
.sec audio.media { display: block; width: 100%; margin: 1rem 0; }

/* Documents (PDF, Word, Excel, PowerPoint) */
body.editing p.doc::before { content: "\1F4C4  Document: "; font-weight: 800; }
body.editing p.doc { background: rgba(255,191,71,.25); padding: .4rem .6rem; }
p.doc { margin: 1rem 0; }
.sec p.doc a.doclink { display: flex; align-items: center; gap: .9rem; max-width: 34rem; margin: 0; padding: .7rem 1rem; background: var(--white); color: var(--navy) !important; border: 2px solid var(--navy); text-decoration: none; font: 800 1.05rem var(--font-body); text-transform: none; letter-spacing: 0; text-align: left; }
.sec p.doc a.doclink:hover, .sec p.doc a.doclink:focus-visible { background: #eef2fb; }
.sec p.doc.al-center a.doclink { margin-left: auto; margin-right: auto; } /* a centered document button */
.doc-kind { flex: none; min-width: 3.4rem; padding: .35rem .5rem; text-align: center; background: var(--red); color: #fff; font-size: .85rem; letter-spacing: .05em; }
.doc-name { flex: 1; overflow-wrap: anywhere; }
.doc-act { flex: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; }

/* Photo albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.4rem; }
.album-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--navy); background: var(--white); border: 2px solid var(--navy); padding: .6rem .6rem 1rem; }
.album-card:hover, .album-card:focus-visible { border-color: var(--red); box-shadow: 0 .4rem 1.2rem rgba(11,31,75,.25); }
.montage { display: grid; gap: 3px; aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; }
.sec .montage img, .montage img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; display: block; min-height: 0; }
.montage.m2 { grid-template-columns: 1fr 1fr; }
.montage.m3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.montage.m3 img:first-child { grid-row: 1 / 3; }
.montage.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.montage.m0 { place-items: center; color: #dbe3f5; font-weight: 800; }
.album-title { font: 800 1.35rem/1.15 var(--font-display); text-transform: uppercase; padding: 0 .3rem; }
.album-meta { padding: 0 .3rem; font-size: .95rem; color: #3a4a6e; }
.album-draft { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; background: rgba(255,191,71,.5); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.album-new { margin: 0 0 1.2rem; display: none; }
body.editing .album-new { display: block; }
body:not(.album-editing) .album-admin, body:not(.album-editing) .album-tools { display: none; }
.album-date { font-weight: 800; color: var(--red); margin-top: 0; }
.crumb { margin: 0 0 .6rem; }
.album-admin { background: #eef2fb; }
.album-admin form { max-width: 40rem; }
.album-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.album-img { margin: 0; position: relative; }
.album-tools { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.album-tools .btn { font-size: .8rem; padding: .3rem .5rem; }
.hint { font-size: .95rem; }
/* the title block and the photos are both white sections; keep the gap between them small */
.album-head { padding-top: 1.5rem; padding-bottom: 1rem; }
.album-grid { padding-top: 1rem; }

/* Announcement bar (scrolling entries under the menu; every entry is its own link) */
.ticker { position: relative; display: flex; align-items: stretch; background: var(--red); color: #fff; overflow: hidden; padding: .7rem 0; font: 900 1.15rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker-scroll var(--ticker-time, 60s) linear infinite; will-change: transform; }
.ticker-group { display: inline-flex; flex: none; }
.ticker-item { padding: 0 1.2rem; color: #fff; text-decoration: none; }
.ticker-item:hover, .ticker-item:focus-visible { text-decoration: underline; }
.ticker-item:focus-visible { outline: 3px solid #ffbf47; outline-offset: -3px; }
.ticker-star { color: #ffbf47; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { /* no movement: show each entry once, wrapped, still clickable */
  .ticker-track { animation: none; white-space: normal; }
  .ticker-group:nth-child(2) { display: none; }
  .ticker-dup { display: none; }
  .ticker { padding: .7rem 1rem; }
}
@media (max-width: 860px) { .ticker { font-size: 1rem; padding: .6rem 0; } }

/* round icons beside the values in "What we stand for" */
.sec-panel li:has(> img) { display: flex; align-items: center; gap: 1rem; }
.sec-panel li > img[src^="/img/roles/"] { width: 5.2rem; height: 5.2rem; border-radius: 0; object-fit: contain; }
.sec ul.al-left, .sec ul.al-center, .sec li.al-left, .sec li.al-center { margin-left: 0; margin-right: 0; } /* auto margins would shrink the cards to their text */
@media (max-width: 40rem) { .sec-panel li.al-center:has(> img) { justify-content: flex-start; text-align: left; } } /* on phones the value cards keep the icon on the left, like Ways to help */
.sec-panel li > img.al-left, .sec-panel li > img.al-center { margin: 0; }
.sec-panel li > img { flex: none; width: 3.6rem; height: 3.6rem; margin: 0; border-radius: 50%; }
