/* Officer area — matches the "Officer area" boards on the design canvas.
   Big type, big buttons (44px+), works at phone width. */

:root {
  --navy: #11243C;
  --navy-deep: #0C1A2B;
  --paper: #F4F1E9;
  --sand: #EDE8DB;
  --accent: #C0301F;
  --accent-dark: #A6291B;
  --brass: #E0A23C;
  --green: #1F6F63;
  --body: #2C3A4B;
  --muted: #4C5560;
  --line: #DDD7C9;
  --field: #9AA3AE;
  --on-navy-dim: #A9B6C6;
  --display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); }
a:hover { color: #7E1D13; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.ico { flex-shrink: 0; }

/* ---------- Top bar ---------- */
.abar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px 40px; background: var(--navy); flex-wrap: wrap; }
.abar__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.abar__mark, .gate__mark { display: block; width: 46px; height: 46px; flex-shrink: 0; }
.abar__text { display: flex; flex-direction: column; gap: 2px; }
.abar__title { font-family: var(--display); font-size: 23px; font-weight: 800; line-height: 1; text-transform: uppercase; color: #fff; }
.abar__sub { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-dim); }
.abar__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.abar__who { font-size: 14px; color: var(--on-navy-dim); }
.abar__btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 2px solid #6E7F93; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.abar__btn:hover { border-color: #fff; color: #fff; }
.abar__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); text-decoration: none; cursor: pointer; }
.abar__link:hover { color: #fff; }
.abar__out { margin: 0; }
.arule { height: 4px; background: var(--accent); }

/* ---------- Page ---------- */
.apage { display: flex; flex-direction: column; gap: 28px; max-width: 1280px; padding: 34px 40px 56px; }
.ahead { display: flex; flex-direction: column; gap: 10px; }
.ah1 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 52px); font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--navy); }
.ah2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--navy); }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.warn { font-weight: 600; color: var(--accent-dark); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); text-decoration: none; align-self: flex-start; }

/* ---------- Buttons ---------- */
.abtn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 2px solid transparent; border-radius: 3px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; }
.abtn--accent { background: var(--accent); color: #fff; }
.abtn--accent:hover { background: var(--accent-dark); color: #fff; }
.abtn--navy { background: var(--navy); color: #fff; }
.abtn--navy:hover { background: var(--navy-deep); color: #fff; }
.abtn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.abtn--outline:hover { background: var(--navy); color: #fff; }
.abtn--quiet { border-color: var(--field); color: var(--navy); background: transparent; }
.abtn--quiet:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.abtn--sm { min-height: 48px; padding: 0 20px; font-size: 13px; }
.abtn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Form fields ---------- */
.afield { display: flex; flex-direction: column; gap: 8px; }
.afield label { font-size: 16px; font-weight: 700; color: var(--navy); }
.afield input, .afield textarea, .linkbox input { width: 100%; height: 56px; padding: 0 16px; font-family: var(--sans); font-size: 17px; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 3px; }
.afield textarea { height: auto; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.afield input:focus, .afield textarea:focus, .linkbox input:focus { border-color: var(--navy); outline: 3px solid var(--brass); outline-offset: 0; }

.notice { padding: 14px 18px; border-radius: 3px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.notice--ok { background: #E3EFE9; color: #164F45; }
.notice--err { background: #F7E2DE; color: #7E1D13; }

/* ---------- Sign-in screens ---------- */
.admin--bare { background: var(--navy); }
.gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; min-height: 100vh; padding: 40px 16px; }
.gate__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gate__mark { width: 68px; height: 68px; }
.gate__title { margin: 0; font-family: var(--display); font-size: clamp(34px, 6vw, 40px); font-weight: 800; line-height: 1; text-transform: uppercase; color: #fff; }
.gate__sub { font-size: 15px; color: var(--on-navy-dim); }
.gate__card { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 460px; padding: 34px; background: #fff; border-radius: 4px; }
.gate__card--wide { max-width: 560px; }
.gate__alt { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

/* ---------- Main menu ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 3px; color: var(--navy); text-decoration: none; }
a.tile:hover { border-color: var(--navy); color: var(--navy); }
.tile--primary { border-left: 6px solid var(--accent); }
.tile__label { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.02; text-transform: uppercase; color: var(--navy); }
.tile__text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile--soon { background: var(--sand); }
.tile--soon .tile__label, .tile--soon .ico { opacity: 0.6; }
.tag { align-self: flex-start; padding: 5px 11px; background: var(--brass); border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.tag--quiet { display: inline-block; margin-left: 8px; padding: 3px 8px; background: var(--sand); font-size: 11px; vertical-align: middle; }
.callout { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: var(--sand); border: 1px solid var(--line); border-radius: 3px; font-size: 16px; line-height: 1.5; color: var(--body); }
.callout .ico { color: var(--muted); }

/* ---------- Lists + side card ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.rows { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.row__main { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.row__title { font-size: 19px; font-weight: 700; color: var(--navy); }
.row__meta { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.row__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row__actions form { margin: 0; }
.card { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }

/* ---------- Saved / confirm screens ---------- */
.done, .confirm { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.done { align-items: flex-start; }
.done__mark { display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; background: var(--green); border-radius: 50%; color: #fff; }
.linkbox { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.linkbox label { font-size: 16px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.linkbox__row { display: flex; gap: 10px; }
.linkbox input { font-size: 14px; }

/* ---------- More type + buttons ---------- */
.ah1--xl { font-size: clamp(42px, 6vw, 58px); }
.ah3 { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.abtn--lg { min-height: 60px; padding: 0 34px; }
.empty { font-size: 16px; color: var(--muted); }
.ahead--split { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.notice--action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; }

/* ---------- Date badge ---------- */
.abadge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 66px; height: 74px; background: var(--navy); border-radius: 2px; flex-shrink: 0; }
.abadge__mon { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--brass); }
.abadge__day { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; color: #fff; }
.abadge--past { background: var(--muted); }
.abadge--past .abadge__mon { color: #E9E4D7; }

/* ---------- Grouped lists ---------- */
.group { display: flex; flex-direction: column; gap: 14px; }
.group__head { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--navy); }
.group__rule { width: 36px; height: 4px; background: var(--accent); flex-shrink: 0; }
.group__rule--brass { background: var(--brass); }
.group__rule--grey { background: var(--field); }
.row--bin { background: var(--sand); }

/* ---------- Add / change form page ---------- */
.formpage { display: grid; grid-template-columns: minmax(0, 760px) 372px; gap: 36px; align-items: start; }
.formpage__main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.formpage__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.card--form { gap: 24px; padding: 32px; }
.afield-row { display: flex; gap: 18px; }
.afield--grow { flex-grow: 1; }
.afield--time { width: 240px; }
.afield__label { font-size: 16px; font-weight: 700; color: var(--navy); }
.afield select { width: 100%; height: 56px; padding: 0 14px; font-family: var(--sans); font-size: 17px; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 3px; }
.afield select:focus { border-color: var(--navy); outline: 3px solid var(--brass); outline-offset: 0; }
.afield [aria-invalid="true"] { border-color: var(--accent); }
.field-err { font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.more-opt { margin-top: -10px; }
.more-opt summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.more-opt[open] summary { margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; color: var(--navy); cursor: pointer; }
.check input { width: 22px; height: 22px; }

/* Bold / italic / link editor */
.rte__bar { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--paper); border: 2px solid var(--field); border-bottom: none; border-radius: 3px 3px 0 0; flex-wrap: wrap; }
.rte__bar[hidden] { display: none; }
.rte__bar button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border: 1px solid #C9C2B2; border-radius: 2px; font-family: var(--sans); font-size: 16px; color: var(--navy); cursor: pointer; }
.rte__bar button:hover, .rte__bar button[aria-pressed="true"] { border-color: var(--navy); background: #E9EDF2; }
.rte__note { margin-left: 8px; font-size: 13px; color: var(--muted); }
.rte textarea, .rte__edit { width: 100%; min-height: 168px; padding: 14px 16px; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 3px; }
.rte--on textarea { display: none; }
.rte--on .rte__edit { border-radius: 0 0 3px 3px; overflow-wrap: anywhere; }
.rte__edit:focus { border-color: var(--navy); outline: 3px solid var(--brass); outline-offset: 0; }
.rte__edit:empty::before { content: attr(data-placeholder); color: #8A929C; }
.rte__edit p { margin: 0 0 10px; }
.rte__edit a { color: var(--accent-dark); }

/* Picture chooser */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 168px; padding: 20px; background: var(--paper); border: 2px dashed #6E7F93; border-radius: 3px; color: var(--navy); text-align: center; cursor: pointer; }
.drop:hover, .drop--over { border-color: var(--navy); background: #EBE6D8; }
.drop__title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.drop__input, .afield .drop__input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }
.drop__input:focus-visible + .field-err, .drop__input:focus-visible { outline: none; }
.afield:focus-within .drop { outline: 3px solid var(--brass); outline-offset: 2px; }
.current-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.current-photo img { width: 160px; height: 110px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }

/* Live preview + side note */
.preview { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--navy); border-radius: 3px; }
.preview__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.preview__card { display: flex; gap: 14px; padding: 16px; background: #fff; border-radius: 3px; }
.preview__card .abadge { width: 64px; height: 72px; }
.preview__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.preview__kind { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }
.preview__kind:empty { display: none; }
.preview__title { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.preview__meta { font-size: 13px; line-height: 1.4; color: var(--muted); }
.preview__note { font-size: 14px; line-height: 1.55; color: var(--on-navy-dim); }
.side-note { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--sand); border: 1px solid var(--line); border-radius: 3px; }
.side-note p { font-size: 15px; line-height: 1.6; color: var(--body); }
.danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border: 1px solid var(--line); border-radius: 3px; font-size: 16px; color: var(--muted); }

/* ---------- News ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.tabs__tab { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin-bottom: -2px; border-bottom: 4px solid transparent; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.tabs__tab:hover { color: var(--navy); }
.tabs__tab.is-active { border-bottom-color: var(--accent); color: var(--navy); }
.row__thumb { width: 96px; height: 66px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.row__thumb--empty { display: flex; align-items: center; justify-content: center; background: var(--sand); color: var(--muted); }
.preview__story { display: flex; flex-direction: column; background: #fff; border-radius: 3px; overflow: hidden; }
.preview__photo { width: 100%; height: 150px; object-fit: cover; }
.preview__photo[hidden] { display: none; }
.preview__photo--empty { display: flex; align-items: center; justify-content: center; background: #E9E4D7; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #6E6858; }
.preview__text--pad { padding: 16px; }

/* ---------- Officers & pages ---------- */
.split--officers { grid-template-columns: minmax(0, 1fr) 420px; }
.mover { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.mover button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--paper); border: 1px solid #C9C2B2; border-radius: 2px; color: var(--navy); cursor: pointer; }
.mover button svg { transform: rotate(90deg); }
.mover button:hover:not(:disabled) { border-color: var(--navy); background: #E9EDF2; }
.mover button:disabled { opacity: 0.35; cursor: default; }
.row__face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--sand); }
.row--editing { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--brass); }
.drop--small { min-height: 96px; }
.council { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
fieldset.card--form { margin: 0; min-width: 0; }
fieldset.card--form legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; }
fieldset.card--form legend + * { clear: both; }
.page-edit { max-width: 860px; }
.page-edit .rte textarea, .page-edit .rte__edit { min-height: 340px; }
.locals-edit { display: flex; flex-direction: column; gap: 8px; }
.locals-edit__head, .locals-edit__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.locals-edit__head span { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.locals-edit__row input { width: 100%; height: 48px; padding: 0 12px; font-family: var(--sans); font-size: 16px; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 3px; }
.locals-edit__row input:focus { border-color: var(--navy); outline: 3px solid var(--brass); outline-offset: 0; }
[data-add-local] { align-self: flex-start; }
[data-add-local][hidden] { display: none; }

/* ---------- Repeating events ---------- */
.series-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #E9EDF2; border-radius: 3px; font-size: 16px; line-height: 1.5; color: var(--navy); }
.series-note .ico { color: var(--navy); margin-top: 2px; }
.repeat-until { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px 16px; background: var(--paper); border-radius: 3px; }
.repeat-until[hidden] { display: none; }
.repeat-until label { font-size: 15px; font-weight: 700; color: var(--navy); }
.rows > .row:has(+ .series-row) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.series-row { display: flex; flex-direction: column; gap: 6px; margin: -15px 0 0; padding: 10px 22px 12px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 3px 3px; font-size: 15px; color: var(--muted); }
.series-row__what { font-weight: 600; color: var(--navy); }
.series-row__more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.series-row__more ul { margin: 4px 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.series-row__more a { display: inline-flex; min-height: 32px; align-items: center; }

/* ---------- Website email + messages ---------- */
.status-card { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; padding: 20px 24px; border-radius: 3px; border: 1px solid var(--line); background: #fff; }
.status-card p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.status-card strong { font-size: 18px; color: var(--navy); }
.status-card--ok { border-left: 6px solid var(--green); }
.status-card--ok .ico { color: var(--green); }
.status-card--warn { border-left: 6px solid var(--brass); }
.status-card--warn .ico { color: #8A5A0B; }
.email-card { max-width: 760px; }
.email-card .abtn { align-self: flex-start; }
.row--msg { align-items: flex-start; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 15px; }
.msg dt { font-weight: 700; color: var(--muted); }
.msg dd { margin: 0; color: var(--navy); overflow-wrap: anywhere; }

/* ---------- Photos & recap ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile--waiting { border-left: 6px solid var(--brass); }
.tag--solid { display: inline-block; align-self: flex-start; padding: 5px 11px; margin: 0; font-size: 12px; }
.row--flag { border-left: 6px solid var(--brass); }
.row__meta--ok { font-weight: 600; color: var(--green); }
.notice--draft { background: #FBF0D9; color: #6B4A0E; font-weight: 500; }
.notice ul { margin: 6px 0; padding-left: 22px; }
.recap { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.pics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.drop--big { min-height: 150px; }
.uploads { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.uploads:empty { display: none; }
.upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-size: 15px; }
.upload__name { font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__state { font-size: 14px; font-weight: 700; color: var(--muted); }
.upload__state--ok { color: var(--green); }
.upload__state--err { color: var(--accent-dark); }
.upload__bar { grid-column: 1 / -1; height: 6px; background: #DDD7C9; border-radius: 3px; overflow: hidden; }
.upload__bar span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .2s; }
.upload__err { grid-column: 1 / -1; font-size: 14px; color: var(--accent-dark); }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pic { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--sand); }
.pic input[type="text"] { width: 100%; height: 48px; padding: 0 12px; font-family: var(--sans); font-size: 15px; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 3px; }
.pic input[type="text"]:focus { border-color: var(--navy); outline: 3px solid var(--brass); outline-offset: 0; }
.pic__new { align-self: flex-start; padding: 4px 8px; background: var(--brass); border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.pic__remove { position: absolute; top: 8px; right: 8px; min-height: 44px; padding: 0 14px; background: rgba(12, 26, 43, 0.82); border: 0; border-radius: 3px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; cursor: pointer; }
.pic__remove:hover { background: var(--accent); }
.pics--removed .pic img { opacity: 0.6; }
.removed summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.removed[open] summary { margin-bottom: 12px; }
.callout--small { padding: 14px 18px; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; background: var(--navy); color: #fff; border-radius: 3px; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,0.25); z-index: 20; }
.toast button { min-height: 44px; padding: 0 16px; background: transparent; border: 2px solid var(--brass); border-radius: 3px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); cursor: pointer; }

.done--center { align-items: center; text-align: center; margin: 40px auto 0; }
.done--center .lead { max-width: 640px; }
.done--center .btn-row { justify-content: center; }

/* ---------- Phone ---------- */
@media (max-width: 1100px) {
  .formpage { grid-template-columns: 1fr; }
  .formpage__side { position: static; order: -1; }
  .side-note { display: none; }
}
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--officers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .abar { padding: 12px 16px; }
  .abar__sub, .abar__who { display: none; }
  .abar__links { gap: 14px; }
  .apage { padding: 22px 16px 44px; gap: 22px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 22px; }
  .row { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .row__actions > *, .row__actions .abtn { flex: 1; }
  .row__actions .abtn { width: 100%; }
  .gate__card { padding: 24px; }
  .btn-row .abtn { width: 100%; }
  .linkbox__row { flex-direction: column; }
  .card--form { padding: 20px; }
  .afield-row { flex-direction: column; }
  .afield--time { width: 100%; }
  .preview { padding: 18px; }
  .ahead--split .abtn { width: 100%; }
  .row .abadge { width: 56px; height: 62px; }
  .row:has(.abadge) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .row:has(.abadge) .row__actions { grid-column: 1 / -1; }
  .row:has(.row__thumb) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .row:has(.row__thumb) .row__actions { grid-column: 1 / -1; }
  .row:has(.mover) { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .row:has(.mover) .row__actions { grid-column: 1 / -1; }
  .row__face { width: 48px; height: 48px; }
  .locals-edit__head, .locals-edit__row { grid-template-columns: 1fr; gap: 6px; }
  .locals-edit__head { display: none; }
  .locals-edit__row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .row__thumb { width: 72px; height: 54px; }
  .pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pic__remove { padding: 0 10px; font-size: 12px; }
  .toast { left: 16px; right: 16px; transform: none; justify-content: space-between; }
}

/* Home page photo chosen on the About the council editor, shown before saving. */
.hero-preview:not([hidden]) { display: block; width: 100%; max-width: 520px; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 12px; border-radius: 3px; border: 1px solid var(--line); }
