/* City of Buffalo, KS — follows the Buffalo Style Guide (Cinzel / Libre Caslon Text; cream, navy, gold). */
:root {
  --navy: #1f2a44;
  --navy-deep: #17203a;
  --navy-hover: #2a3656;
  --navy-rule: #3a4666;
  --cream: #f4ecd8;
  --cream-2: #e6dcc4;
  --paper: #fbf8f0;
  --gold: #c9a24a;
  --gold-ink: #8a6a24;
  --rule: #e2dccb;
  --rule-soft: #efe9da;
  --ink-2: #3a4256;
  --ink-3: #4a5064;
  --field-border: #9a9486;
  --danger: #9b2c1f;
  --ok-bg: #e8f1e2;
  --ok: #4c7a3a;
  --notice-bg: #fff7e0;
  --display: 'Cinzel', Georgia, serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
}

* { box-sizing: border-box; }
html.big-text body { zoom: 1.18; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--serif); }
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--gold-ink); }
input, textarea, button { font-family: inherit; color: inherit; }
img { max-width: 100%; }
.seal { display: block; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--gold); color: var(--navy); padding: 12px 18px; font-weight: 700; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---- layout helpers ---- */
.stack-6, .stack-8, .stack-10, .stack-12, .stack-14, .stack-16, .stack-18, .stack-20, .stack-22, .stack-24 { display: flex; flex-direction: column; }
.stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; } .stack-12 { gap: 12px; } .stack-14 { gap: 14px; }
.stack-16 { gap: 16px; } .stack-18 { gap: 18px; } .stack-20 { gap: 20px; } .stack-22 { gap: 22px; } .stack-24 { gap: 24px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.align-center { align-items: center; }
.align-start { align-items: start; }
.self-start { align-self: flex-start; }
.grid { display: grid; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.two-up { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.members { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.info { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.admin-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; align-items: start; }
.when-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.narrow { max-width: 760px; width: 100%; margin: 0 auto; }

/* ---- type ---- */
.h-hero { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: .03em; }
.h-page { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: .04em; }
.h-admin { font-family: var(--display); font-weight: 700; font-size: 36px; }
.h-section { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .05em; }
.h-group { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.h-card-xl { font-family: var(--display); font-weight: 700; font-size: 28px; }
.h-card-lg { font-family: var(--display); font-weight: 700; font-size: 26px; }
.h-card { font-family: var(--display); font-weight: 700; font-size: 24px; }
@media (max-width: 480px) { .h-hero { font-size: 36px; } .h-page { font-size: 32px; } }
.eyebrow { font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.eyebrow-light { color: var(--gold-ink); }
.eyebrow-sm { font-family: var(--display); font-size: 14px; letter-spacing: .18em; color: var(--gold-ink); }
.lede { font-size: 20px; line-height: 1.6; max-width: 720px; text-wrap: pretty; }
.hero-text { font-size: 21px; line-height: 1.6; max-width: 560px; text-wrap: pretty; }
.body-17 { font-size: 17px; line-height: 1.6; }
.body-18 { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.body-19 { font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.body-20 { font-size: 20px; line-height: 1.5; }
.strong { font-size: 19px; font-weight: 700; }
.normal { font-weight: 400; }
.muted { font-size: 17px; color: var(--ink-2); }
.meta { font-size: 16px; color: var(--ink-3); }
.hint { font-size: 16px; font-style: italic; color: var(--ink-3); }
.form-error { color: var(--danger); font-size: 18px; font-weight: 700; }
.form-error-sm { color: var(--danger); font-size: 16px; }
.link-light { color: var(--cream); }
.link-light:hover { color: var(--gold); }
.link-danger { color: var(--danger) !important; font-size: 17px !important; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; border-radius: 6px; border: 2px solid var(--navy);
  font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-hover); color: var(--cream); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #d6b25e; color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--gold); font-weight: 400; font-size: 17px; }
.btn-ghost-light:hover { background: var(--navy-hover); color: var(--cream); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: #fbeeec; color: var(--danger); }
.btn-sm { min-height: 48px; padding: 10px 16px; font-size: 17px; }
.btn-lg { min-height: 60px; padding: 14px 24px; font-size: 20px; }
.btn-xl { min-height: 64px; padding: 18px 24px; font-size: 21px; }
.btn-link { background: transparent; border: none; padding: 8px 0; font-size: 18px; text-decoration: underline; color: var(--navy); cursor: pointer; }

/* ---- header ---- */
.topbar { background: var(--navy-deep); color: var(--cream); font-size: 16px; }
.topbar-inner { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.text-size { background: transparent; color: var(--cream); border: 2px solid var(--gold); border-radius: 6px; padding: 8px 16px; font-size: 16px; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.text-size:hover { background: var(--navy-hover); }
.aa { font-family: var(--display); font-weight: 700; }
.aa-big { font-size: 20px; }
.masthead { background: var(--navy); color: var(--cream); border-bottom: 4px solid var(--gold); }
.masthead .wrap { padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; gap: 18px; align-items: center; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: .04em; line-height: 1; }
.brand-state { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .32em; color: var(--gold); margin-top: 4px; }
@media (max-width: 480px) { .brand-name { font-size: 26px; } .brand .seal { width: 60px; height: 60px; } }

.nav { background: var(--cream); border-bottom: 1px solid var(--rule); }
.nav-inner { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.nav-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 14px 22px; border: 2px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); font-size: 19px; font-weight: 700; text-decoration: none; }
.nav-btn:hover { border-color: var(--gold); color: var(--navy); }
.nav-btn[aria-current="page"] { background: var(--navy); color: var(--cream); }
@media (max-width: 600px) { .nav-btn { flex: 1 1 calc(50% - 10px); justify-content: center; text-align: center; padding: 12px; font-size: 18px; } }

/* ---- main ---- */
.main { flex: 1; padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; outline: none; }
.page-head { display: flex; flex-direction: column; gap: 12px; border-bottom: 2px solid var(--gold); padding-bottom: 20px; }
.admin-head { flex-direction: row; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

.card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 28px; }
.card-sm { padding: 16px 18px; }
.card-dark { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 28px; }
@media (max-width: 480px) { .card, .card-dark { padding: 22px 18px; } }
.notice { background: var(--notice-bg); border: 2px solid var(--gold); border-radius: 6px; padding: 18px 22px; font-size: 19px; line-height: 1.5; }
.success { background: var(--ok-bg); border: 2px solid var(--ok); border-radius: 6px; padding: 18px 22px; font-size: 19px; line-height: 1.5; }
.callout { background: var(--cream); border-radius: 8px; padding: 24px; font-size: 19px; line-height: 1.6; }
.callout-gold { border: 2px solid var(--gold); border-radius: 6px; padding: 20px; }
.callout-sm { border-radius: 6px; padding: 16px 18px; font-size: 17px; }
.placeholder { display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 13px; color: #6b6760; background: repeating-linear-gradient(135deg, var(--rule-soft) 0 10px, #f6f1e4 10px 20px); }
.placeholder-dark { color: var(--gold); font-size: 14px; background: repeating-linear-gradient(135deg, var(--navy-hover) 0 10px, #25304e 10px 20px); }

/* home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: center; }
.hero-seal { display: flex; justify-content: center; }
.tile { background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--navy); min-height: 140px; text-decoration: none; }
.tile:hover { background: var(--cream); border-color: var(--gold); color: var(--navy); }
.tile-label { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .03em; }
.tile-sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.meeting-when { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.card-dark .btn { margin-top: 6px; }
.mini-event { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--rule-soft); padding-top: 14px; }
.mini-date { width: 64px; flex: none; text-align: center; border: 2px solid var(--navy); border-radius: 6px; padding: 6px 0; }
.mini-mon { font-family: var(--display); font-size: 13px; letter-spacing: .12em; color: var(--gold-ink); }
.mini-day { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }

/* council */
.mayor { background: var(--navy); color: var(--cream); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.mayor-photo { width: 100%; height: 100%; min-height: 260px; max-height: 420px; object-fit: cover; display: block; }
.mayor-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.mayor-body .eyebrow { font-size: 16px; letter-spacing: .22em; }
.mayor-name { font-family: var(--display); font-weight: 700; font-size: 36px; }
.mayor-term { font-size: 18px; color: var(--cream-2); }
.member { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.member-photo { width: 100%; height: 240px; object-fit: cover; display: block; }
.member-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.member-name { font-family: var(--display); font-weight: 700; font-size: 24px; }
.member-about { font-size: 17px; line-height: 1.6; border-top: 1px solid var(--rule-soft); padding-top: 10px; margin-top: 4px; text-wrap: pretty; }
.preview { max-width: 360px; }

/* events */
.event { padding: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); overflow: hidden; }
.date-block { background: var(--navy); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 6px; gap: 4px; }
.date-mon { font-family: var(--display); font-size: 15px; letter-spacing: .14em; color: var(--gold); }
.date-day { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1; }
.date-dow { font-size: 15px; }
.event-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.event-title-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-title { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: .02em; }
.tag { background: var(--cream); border: 1px solid var(--gold); border-radius: 20px; padding: 3px 12px; font-size: 15px; }
.event-when { font-size: 19px; line-height: 1.55; }
.event-desc { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.event .btn { margin-top: 4px; }
.cal-picker { background: var(--cream); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 480px) {
  .event { grid-template-columns: 72px minmax(0, 1fr); }
  .date-day { font-size: 32px; }
  .event-body { padding: 18px 16px; }
  .event-title { font-size: 22px; }
}

/* seniors */
.info-card { border-top: 4px solid var(--navy); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.info-contact { font-size: 19px; font-weight: 700; margin-top: auto; }
.phone-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--navy-rule); padding-top: 12px; font-size: 20px; }
.phone-row a { color: var(--cream); font-weight: 700; font-size: 22px; }

/* records */
.list { padding: 0; }
.list-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 22px; }
.list-row + .list-row { border-top: 1px solid var(--rule-soft); }
.list-row .btn { padding: 12px 24px; }

/* contact */
.contact-phone { color: var(--cream); font-family: var(--display); font-weight: 700; font-size: 34px; text-decoration: none; }
.contact-phone:hover { color: var(--gold); }
.emergency { border-top: 1px solid var(--navy-rule); padding-top: 16px; font-size: 18px; line-height: 1.5; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 19px; font-weight: 700; }
.field input, .field textarea { font-size: 20px; padding: 14px; border: 2px solid var(--field-border); border-radius: 6px; font-weight: 400; min-height: 56px; background: #fff; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--gold); outline-offset: 0; }
.field-sm { font-size: 17px; font-weight: 400; gap: 6px; }
.field-sm input { font-size: 19px; padding: 12px; }
.file-pick { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; cursor: pointer; position: relative; }
.file-btn { background: var(--cream); color: var(--navy); border: 2px dashed var(--navy); border-radius: 6px; padding: 14px 22px; font-size: 19px; font-weight: 700; min-height: 58px; display: flex; align-items: center; }
.file-pick:hover .file-btn { border-color: var(--gold); }
.file-pick:focus-within .file-btn { outline: 3px solid var(--gold); outline-offset: 2px; }
.thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; border: 2px solid var(--navy); display: flex; font-size: 12px; }
.confirm { align-items: center; font-size: 17px; gap: 10px; }
.demo-box { border: 2px dashed var(--gold); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* footer */
.footer { background: var(--navy); color: var(--cream); border-top: 4px solid var(--gold); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer-addr { display: flex; gap: 20px; align-items: center; font-size: 17px; line-height: 1.6; }

/* manage people */
.access-btn { flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; width: 100%; }
.access-sub { font-size: 16px; font-weight: 400; opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.is-off { background: #f6f3ec; }
.tag-off { border-color: var(--danger); color: var(--danger); background: #fff; }
.gap-8 { gap: 8px; }

/* seniors page editor */
.between { justify-content: space-between; }
.edit-item { border-left: 4px solid var(--gold); }
.phone-edit { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
