/* ============================================================
   Red River County Events — Design System
   Type:  Newsreader (display serif) + Public Sans (UI/body)
   Brand: Deep Red #9B1C1C · Navy #1E3A5F · warm light palette
   ============================================================ */

:root {
  /* brand */
  --red:        #9B1C1C;
  --red-700:    #7e1515;
  --red-50:     #f7e9e7;
  --navy:       #1E3A5F;
  --navy-700:   #16293f;
  --navy-50:    #e9eef4;

  /* warm neutrals */
  --paper:      #FAF7F1;   /* page background, warm off-white */
  --paper-2:    #F2ECE1;   /* sunken sections */
  --surface:    #FFFFFF;
  --ink:        #20242B;   /* primary text */
  --ink-2:      #4a4f57;
  --muted:      #7c776c;   /* warm muted */
  --line:       #E7E0D3;   /* warm hairline */
  --line-2:     #d8d0bf;

  /* category accents (soft, consistent chroma via oklch) */
  --c-festival:   oklch(0.55 0.16 25);    /* red-orange */
  --c-community:  oklch(0.52 0.10 250);   /* navy-blue  */
  --c-school:     oklch(0.55 0.11 155);   /* green      */
  --c-government: oklch(0.52 0.04 260);   /* slate      */
  --c-sports:     oklch(0.62 0.15 55);    /* amber      */
  --c-fundraiser: oklch(0.52 0.12 320);   /* plum       */
  --c-music:      oklch(0.55 0.15 350);   /* magenta    */
  --c-holiday:    oklch(0.62 0.12 90);    /* gold       */

  --shadow-sm: 0 1px 2px rgba(32,36,43,.06), 0 1px 3px rgba(32,36,43,.05);
  --shadow:    0 4px 14px rgba(32,36,43,.07), 0 2px 5px rgba(32,36,43,.05);
  --shadow-lg: 0 18px 50px rgba(30,58,95,.14), 0 6px 16px rgba(32,36,43,.07);

  --r-sm: 8px;
  --r:    13px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--navy); letter-spacing: -0.01em; }
.display { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 3vw, 36px); }
.h3 { font-size: 22px; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.navy { color: var(--navy); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(155,28,28,.22); }
.btn-primary:hover { background: var(--red-700); box-shadow: 0 8px 22px rgba(155,28,28,.28); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(30,58,95,.20); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-2);
  transition: .14s; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .01em;
}
.cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cat-festival   { color: var(--c-festival);   background: oklch(0.55 0.16 25 / .10); }
.cat-community  { color: var(--c-community);  background: oklch(0.52 0.10 250 / .10); }
.cat-school     { color: var(--c-school);     background: oklch(0.55 0.11 155 / .10); }
.cat-government { color: var(--c-government); background: oklch(0.52 0.04 260 / .12); }
.cat-sports     { color: var(--c-sports);     background: oklch(0.62 0.15 55 / .12); }
.cat-fundraiser { color: var(--c-fundraiser); background: oklch(0.52 0.12 320 / .10); }
.cat-music      { color: var(--c-music);      background: oklch(0.55 0.15 350 / .10); }
.cat-holiday    { color: var(--c-holiday);    background: oklch(0.62 0.12 90 / .14); }

.pin {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
  color: var(--muted); font-weight: 500;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--navy); display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.brand .mark svg { width: 24px; height: 24px; }
.brand .name { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--navy); line-height: 1.05; white-space: nowrap; }
.brand .sub  { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 9px; transition: .14s;
}
.nav-links a:hover { color: var(--navy); background: var(--navy-50); }
.nav-links a.active { color: var(--red); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(30,58,95,.82) 0%, rgba(30,58,95,.55) 42%, rgba(155,28,28,.32) 100%),
    url('hero-courthouse.jpg') center/cover no-repeat;
}
.hero-inner { position: relative; padding: 92px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.88); margin: 18px 0 30px; max-width: 600px; }
.hero .eyebrow { color: #ffd9b0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* search bar */
.searchbar {
  margin-top: 34px; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center;
  padding: 7px 7px 7px 20px; gap: 10px; max-width: 620px;
}
.searchbar input {
  flex: 1; border: 0; outline: 0; font-family: var(--sans); font-size: 16px;
  color: var(--ink); background: transparent;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar .sicon { color: var(--muted); flex: none; }

/* ---------- section scaffolding ---------- */
.section { padding: 64px 0; }
.section.sunken { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 540px; }

/* ---------- generic cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* image placeholder */
.img-ph {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(30,58,95,.05), rgba(155,28,28,.05)),
    repeating-linear-gradient(45deg, #efe9dd 0 14px, #f6f1e7 14px 28px);
  display: grid; place-items: center;
}
.img-ph::after {
  content: attr(data-label);
  font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(255,255,255,.7); padding: 4px 9px; border-radius: 6px;
}

/* ---------- event card (list) ---------- */
.event-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex;
  transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card .ec-date {
  flex: none; width: 92px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 0;
}
.event-card .ec-date .mo { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd9b0; }
.event-card .ec-date .dy { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.event-card .ec-date .wd { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .08em; text-transform: uppercase; }
.event-card .ec-body { padding: 16px 20px; flex: 1; min-width: 0; }
.event-card .ec-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); margin: 6px 0 8px; }
.event-card .ec-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.event-card .ec-desc { color: var(--ink-2); font-size: 14.5px; }
.event-card.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }

/* featured tile (image-led) */
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat .feat-img { aspect-ratio: 16/10; }
.feat .feat-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat .feat-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.12; }
.feat .feat-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 6px; }

/* ---------- calendar ---------- */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cal-head .mo-title { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-nav button {
  width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--navy); display: grid; place-items: center; transition: .14s;
}
.cal-nav button:hover { border-color: var(--navy); background: var(--navy-50); }
.cal-dow { display: grid; grid-template-columns: repeat(7,1fr); padding: 0 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cal-dow span { text-align: center; padding: 11px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell {
  min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 9px 10px 8px; position: relative; cursor: pointer; transition: background .12s;
  display: flex; flex-direction: column; gap: 5px;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--paper); }
.cal-cell.out { background: #fbfaf6; cursor: default; }
.cal-cell.out .dn { color: #cfc9bc; }
.cal-cell.out:hover { background: #fbfaf6; }
.cal-cell .dn { font-size: 14px; font-weight: 700; color: var(--ink-2); width: 28px; height: 28px; display: grid; place-items: center; }
.cal-cell.today .dn { background: var(--red); color: #fff; border-radius: 50%; }
.cal-cell.sel { background: var(--navy-50); box-shadow: inset 0 0 0 2px var(--navy); }
.cal-ev {
  font-size: 11.5px; font-weight: 600; line-height: 1.2; padding: 3px 7px; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid currentColor;
}
.cal-ev.e-festival   { color: var(--c-festival);   background: oklch(0.55 0.16 25 / .09); }
.cal-ev.e-community  { color: var(--c-community);  background: oklch(0.52 0.10 250 / .09); }
.cal-ev.e-school     { color: var(--c-school);     background: oklch(0.55 0.11 155 / .09); }
.cal-ev.e-government { color: var(--c-government); background: oklch(0.52 0.04 260 / .10); }
.cal-ev.e-sports     { color: var(--c-sports);     background: oklch(0.62 0.15 55 / .11); }
.cal-ev.e-fundraiser { color: var(--c-fundraiser); background: oklch(0.52 0.12 320 / .09); }
.cal-ev.e-music      { color: var(--c-music);      background: oklch(0.55 0.15 350 / .09); }
.cal-ev.e-holiday    { color: var(--c-holiday);    background: oklch(0.62 0.12 90 / .13); }
.cal-ev .ev-txt { color: var(--ink); font-weight: 600; }
.cal-more { font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 2px; }

/* day detail panel */
.day-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.day-panel .dp-date { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.day-panel .dp-count { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dp-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dp-item .cat { flex: none; align-self: flex-start; }
.dp-item:last-child { border-bottom: 0; }
.dp-item .dp-time { flex: none; width: 78px; font-weight: 700; color: var(--navy); font-size: 13.5px; }
.dp-item .dp-name { font-weight: 600; color: var(--ink); }
.dp-item .dp-loc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 34px 38px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.field .req { color: var(--red); }
.field .hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.input, .textarea, .select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; transition: .14s; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px var(--navy-50); }
.textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 18px; }
.dropzone {
  border: 2px dashed var(--line-2); border-radius: 12px; padding: 30px; text-align: center;
  color: var(--muted); background: var(--paper); transition: .14s;
}
.dropzone:hover { border-color: var(--navy); color: var(--navy); }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick .chip[data-on="1"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* progress / steps */
.steps { display: flex; gap: 0; margin-bottom: 30px; }
.steps .step { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); position: relative; padding-bottom: 14px; }
.steps .step.active { color: var(--red); }
.steps .step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); border-radius: 3px; }
.steps .step.active::after { background: var(--red); }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 26px 18px; }
.admin-side .a-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.admin-side .a-brand .name { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.admin-side .a-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.78); margin-bottom: 3px; transition: .14s; }
.admin-side .a-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side .a-link.active { background: rgba(255,255,255,.14); color: #fff; }
.admin-side .a-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.admin-main { padding: 32px 38px; background: var(--paper); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.stat-card .num { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--navy); line-height: 1; }
.stat-card .num.red { color: var(--red); }
.stat-card .lab { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.stat-card .delta { font-size: 12.5px; font-weight: 700; color: var(--c-school); margin-top: 8px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--paper); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--c-sports); background: oklch(0.62 0.15 55 / .13); }
.status.live { color: var(--c-school); background: oklch(0.55 0.11 155 / .12); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line-2); background: #fff; display: inline-grid; place-items: center; color: var(--ink-2); transition: .14s; }
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn.approve:hover { border-color: var(--c-school); color: var(--c-school); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* ---------- "Three ways to follow" join section ---------- */
.join {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 72px 0 64px;
  position: relative;
}
.join::before {
  /* hairline rule with a center break — newspaper section divider */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--red);
}
.join-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.join-h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 10px 0 12px;
}
.join-lede {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
}
.join-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.join-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.join-card:hover {
  border-color: var(--navy-50);
  box-shadow: 0 10px 28px rgba(30,58,95,.08);
}
.join-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.join-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.join-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 10px;
}
.join-card-body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
}
.join-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.join-input {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  outline: none;
  transition: .15s;
  font-family: inherit;
}
.join-input::placeholder { color: var(--muted); }
.join-input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,58,95,.08);
}
.join-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.join-fineprint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.join-fineprint em { font-style: italic; color: var(--ink-2); }

/* ---------- PWA "How do I install" modal ---------- */
.join-modal {
  position: fixed;
  inset: 0;
  background: rgba(30,58,95,.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}
.join-modal[hidden] { display: none; }
.join-modal-card {
  background: #fff;
  border-radius: var(--r);
  padding: 28px 28px 24px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.join-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.join-modal-close:hover { color: var(--ink); background: var(--paper); }

@media (max-width: 1100px) {
  .join-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .join-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .join { padding: 56px 0 48px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; padding: 5px 0; font-size: 14.5px; transition: .14s; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand .name { font-family: var(--serif); font-size: 21px; color: #fff; }
.site-footer .f-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; margin: 10px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }
/* Links in the bottom strip flow inline — the block-level rule above is for the nav columns. */
.footer-bottom a { display: inline; padding: 0; }
.f-credit a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  text-underline-offset: 3px;
  transition: .14s;
}
.f-credit a:hover { color: #fff; text-decoration-color: #fff; }

/* breadcrumb */
.crumb { font-size: 14px; color: var(--muted); padding: 22px 0 0; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--navy); }

/* utilities */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .admin-side .a-brand { margin-bottom: 0; margin-right: auto; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn span.hide-sm { display: none; }
  .nav-toggle { display: inline-grid; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cal-cell { min-height: 64px; }
  .cal-ev .ev-txt-long { display: none; }
}
@media (max-width: 600px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .event-card { flex-direction: column; }
  .event-card .ec-date { width: 100%; flex-direction: row; gap: 10px; padding: 10px; }
}
