/* Layout: one 72rem column, photo-led sections, hi-vis band as the single bold motif (taken from the bike-bus marshal vests). */
:root {
  --paper: #f4f7f3;
  --surface: #ffffff;
  --ink: #12302b;
  --muted: #4c615c;
  --line: #d6e0da;
  --canal: #1d5c52;
  --canal-soft: #e2eeea;
  --hivis: #d9f13b;
  --hivis-ink: #12302b;
  --brick: #a8482a;
  --stripe: #c9d2cf;
  --foot-bg: #12302b;
  --foot-fg: #eef4f0;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.2vw, 2.8rem);
  --step-4: clamp(2.5rem, 6.5vw, 4.6rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1715; --surface: #13221f; --ink: #e6efe9; --muted: #a2b5ae; --line: #253b36;
    --canal: #7cc7b6; --canal-soft: #183530; --hivis: #d9f13b; --hivis-ink: #12302b; --brick: #e58a66; --stripe: #9aa7a3; --foot-bg: #071210; --foot-fg: #e6efe9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1715; --surface: #13221f; --ink: #e6efe9; --muted: #a2b5ae; --line: #253b36;
  --canal: #7cc7b6; --canal-soft: #183530; --hivis: #d9f13b; --hivis-ink: #12302b; --brick: #e58a66; --stripe: #9aa7a3; --foot-bg: #071210; --foot-fg: #e6efe9;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--canal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hivis); color: var(--hivis-ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 16px; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--brick); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 80px; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--hivis); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, var(--stripe) 58% 72%, transparent 72%); opacity: .9; }
.brand-mark span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: .78rem; color: var(--hivis-ink); letter-spacing: -.02em; }
.brand-logo { flex: none; height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 3px 5px; }
.foot-logo { height: 110px; padding: 5px 8px; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 750; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button { font: inherit; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .5rem .7rem; border-radius: 8px; border: 0; background: none; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--canal-soft); }
.nav a[aria-current="page"] { background: var(--canal-soft); font-weight: 700; }
.nav .cta { background: var(--hivis); color: var(--hivis-ink); font-weight: 700; }
.nav .cta:hover { background: var(--hivis); filter: brightness(.95); }
.more { position: relative; }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(560px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .35); padding: .75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
}
.more-panel[hidden] { display: none; }
.more-panel a { display: block; padding: .55rem .7rem; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700; padding: .55rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem clamp(16px, 4vw, 40px) 1.25rem; flex-direction: column; align-items: stretch; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .more > button { display: none; }
  .more-panel { position: static; display: grid !important; width: auto; box-shadow: none; border: 0; padding: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; }
  .brand-text small { display: none; }
}

/* Hi-vis band: the one bold motif */
.band { background: var(--hivis); color: var(--hivis-ink); position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--stripe); }
.band::before { top: 18px; } .band::after { bottom: 18px; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: #12302b; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 30 26 / .88) 0%, rgb(10 30 26 / .6) 55%, rgb(10 30 26 / .15) 100%); }
.hero-inner { padding-block: clamp(4rem, 11vw, 8.5rem); display: grid; gap: 1.4rem; max-width: 44rem; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--hivis); color: var(--hivis-ink); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { font-size: var(--step-1); color: #e4eeea; max-width: 38rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 700; text-decoration: none; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-hivis { background: var(--hivis); color: var(--hivis-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }

/* Page header for inner pages */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 1rem; }
.page-head p.lede { font-size: var(--step-1); color: var(--muted); max-width: 46rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: .7rem; margin-bottom: 2rem; max-width: 46rem; }
.section-head p { color: var(--muted); font-size: var(--step-0); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.split .media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.stack { display: grid; gap: 1.1rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: .6rem; align-content: start; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .meta { font-size: var(--step--1); color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--canal); background: var(--canal-soft); padding: .15rem .55rem; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Features */
.features { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 2px solid var(--ink); }
.feature { padding: 1.4rem 1.4rem 1.6rem 0; display: grid; gap: .5rem; align-content: start; }
.feature + .feature { padding-left: 1.4rem; border-left: 1px solid var(--line); }
@media (max-width: 700px) { .feature + .feature { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.feature p { color: var(--muted); }
.step-no { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--brick); text-transform: uppercase; letter-spacing: .08em; }

/* Team */
.team { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem; justify-items: start; align-content: start; }
.person h3 + .role { margin-top: .35rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; background: var(--canal); color: var(--paper); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.vacant { background: var(--canal-soft); color: var(--muted); border: 2px dashed var(--line); }
.person .role { color: var(--muted); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; background: var(--canal-soft); }
.callout.alert { background: color-mix(in srgb, var(--brick) 12%, var(--surface)); border-left: 6px solid var(--brick); }
.callout strong { font-family: var(--font-display); }
.big-number { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.contacts { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.contact-line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .25rem; }
.contact-line .num { font-family: var(--font-display); font-weight: 750; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.contact-line small { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.3rem; display: grid; gap: .25rem; }
.stat span { color: var(--muted); font-size: var(--step--1); }

/* Gallery */
.gallery { columns: 3 18rem; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { border-radius: 10px; width: 100%; }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); padding-top: .35rem; }

/* Forms */
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--canal); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--canal) 25%, transparent); }
.field textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--canal); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; padding: .8rem 1rem; border-radius: 10px; }
.form-status.ok { background: var(--canal-soft); color: var(--ink); }
.form-status.err { background: color-mix(in srgb, var(--brick) 15%, var(--surface)); color: var(--ink); }

/* Embeds */
.embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.embed iframe { display: block; width: 100%; aspect-ratio: 16/10; border: 0; }
.embed .embed-foot { padding: .75rem 1rem; font-size: var(--step--1); border-top: 1px solid var(--line); }

/* Policy */
.policy { max-width: 70ch; display: grid; gap: 1rem; }
.policy h2 { font-size: var(--step-2); margin-top: 1.5rem; scroll-margin-top: 90px; }
.policy h3 { margin-top: .5rem; }
.policy ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.policy .in-short { color: var(--muted); font-style: italic; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .3rem; }

/* Social posts */
.posts { display: grid; gap: 1rem; max-width: 46rem; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: grid; gap: .7rem; }
.post p { white-space: pre-line; }
.post .meta { color: var(--muted); font-size: var(--step--1); }

/* Sponsors */
.sponsor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: .5rem; place-items: start; }

/* CTA strip */
.cta-strip .wrap { padding-block: clamp(3.5rem, 7vw, 5rem); display: grid; gap: 1.2rem; justify-items: start; }
.cta-strip h2 { max-width: 30ch; }
.cta-strip p { max-width: 52ch; font-size: var(--step-1); }

/* Footer */
.site-footer { background: var(--foot-bg); color: var(--foot-fg); margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer a { color: var(--foot-fg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2rem; }
.foot-grid > * { min-width: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; opacity: .75; font-family: var(--font-body); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-grid ul a { text-decoration: none; opacity: .9; }
.foot-grid ul a:hover { text-decoration: underline; opacity: 1; }
.foot-brand p { opacity: .8; margin-top: .8rem; max-width: 30ch; }
.foot-bottom { border-top: 1px solid color-mix(in srgb, var(--foot-fg) 18%, transparent); padding-block: 1.25rem 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: var(--step--1); }
.saltway { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--foot-fg) 30%, transparent); }
.saltway .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hivis); }

/* ---------- Shared helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.nowrap { white-space: nowrap; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.foot-right { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-link { opacity: .7; text-decoration: none; }
.admin-link:hover { opacity: 1; text-decoration: underline; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--canal-soft); color: var(--ink); white-space: nowrap; }
.pill.repeat { background: color-mix(in srgb, var(--hivis) 55%, var(--surface)); color: var(--hivis-ink); }
.pill.live { background: var(--canal-soft); color: var(--canal); }
.pill.draft { background: color-mix(in srgb, var(--brick) 15%, var(--surface)); color: var(--brick); }

/* ---------- Blog ---------- */
.card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--canal-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.card-ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(-45deg, var(--canal-soft) 0 14px, color-mix(in srgb, var(--canal-soft) 70%, var(--surface)) 14px 28px); }
.card-ph img { width: auto; height: 62%; aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px 6px; }
.filter-note { margin-bottom: 1.25rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-head .wrap { max-width: 52rem; }
.post-head .eyebrow a { color: inherit; text-decoration: none; }
.post-meta { color: var(--muted); }
.tags a.tag { text-decoration: none; }
.post-wrap { max-width: 52rem; padding-block: clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem; }
.post-hero { width: 100%; border-radius: var(--radius); max-height: 32rem; object-fit: cover; }
.post-body { font-size: 1.09rem; line-height: 1.7; display: grid; gap: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.post-body > * { margin: 0; max-width: 68ch; }
.post-body h2 { font-size: var(--step-2); margin-top: .8rem; }
.post-body h3, .post-body h4 { font-size: var(--step-1); margin-top: .6rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; display: grid; gap: .4rem; }
.post-body blockquote { border-left: 5px solid var(--hivis); padding: .4rem 0 .4rem 1.1rem; font-size: 1.15rem; color: var(--ink); }
.post-body figure, .post-body img { max-width: 100%; }
.post-body img { border-radius: 10px; height: auto; }
.post-body figure { display: grid; gap: .4rem; }
.post-body figcaption { color: var(--muted); font-size: var(--step--1); }
.post-body iframe { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.post-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: .4rem .6rem; }
.post-back { margin-top: 1rem; }

/* ---------- Events ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; scroll-margin-top: 100px; }
.cal-head h2 { font-size: var(--step-2); text-align: center; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; }
.cal th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.cal td { vertical-align: top; height: 6.2rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; }
.cal td:first-child { border-left: 0; }
.cal td.out { background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.cal td.out .num { opacity: .4; }
.cal-day { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .4rem .45rem; color: inherit; text-decoration: none; }
a.cal-day:hover { background: var(--canal-soft); }
.cal .num { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cal td.today .num { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center; align-self: flex-start; }
.chip { display: block; font-size: .76rem; line-height: 1.25; padding: .2rem .4rem; border-radius: 6px; background: var(--hivis); color: var(--hivis-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.cal-list-head { font-size: var(--step-2); }
.ev-day-group { scroll-margin-top: 100px; display: grid; gap: .75rem; }
.ev-day-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brick); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ev-item { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.ev-item > * { min-width: 0; }
.ev-date { display: grid; justify-items: center; align-content: start; align-self: start; background: var(--foot-bg); color: var(--foot-fg); border-radius: 12px; padding: .5rem .3rem .55rem; line-height: 1.05; text-align: center; }
.ev-dow, .ev-mon { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ev-dow { color: var(--hivis); }
.ev-day { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; }
.ev-info { display: grid; gap: .45rem; align-content: start; }
.ev-when { font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.ev-where { color: var(--muted); }
.ev-desc { display: grid; gap: .5rem; }
.ev-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.subscribe { margin-top: 2.5rem; background: var(--canal-soft); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.subscribe code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ev-item { grid-template-columns: 3.6rem 1fr; padding: 1rem; gap: .9rem; }
  .ev-day { font-size: 1.4rem; }
  .cal td { height: 4.2rem; }
  .cal { min-width: 0; }
  .cal .chip { font-size: 0; padding: 0; width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
  .cal-day { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: .2rem; padding: .3rem; }
  .cal .num { width: 100%; }
  .cal th { padding: .5rem .2rem; text-align: center; font-size: .7rem; letter-spacing: 0; }
  .cal-head h2 { font-size: var(--step-1); }
}

/* ---------- Admin ---------- */
body.admin { min-height: 100vh; display: flex; flex-direction: column; }
.admin-bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.admin-bar-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .5rem; }
.admin-bar .brand-logo { height: 48px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; margin-left: auto; }
.admin-nav a, .admin-nav button { font: inherit; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; border: 0; background: none; cursor: pointer; }
.admin-nav a:hover, .admin-nav button:hover, .admin-nav a[aria-current="page"] { background: var(--canal-soft); }
.admin-nav a[aria-current="page"] { font-weight: 700; }
.admin-main { flex: 1; padding-block: 2rem 4rem; }
.admin-main .wrap { display: grid; gap: 1.5rem; max-width: 64rem; }
.admin-foot { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.admin-foot .saltway { border-color: var(--line); color: var(--muted); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-head h1 { font-size: var(--step-3); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: .9rem; align-content: start; }
.panel h2 { font-size: var(--step-1); }
.panel.highlight { border: 2px solid var(--ink); }
.panel summary { cursor: pointer; font-weight: 700; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.admin-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.admin-stats .stat { color: inherit; text-decoration: none; }
.admin-stats .stat:hover { background: var(--canal-soft); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .65rem 0; border-top: 1px solid var(--line); align-items: center; }
.mini-list li:first-child { border-top: 0; }
.mini-list span { color: var(--muted); font-size: var(--step--1); }
.mini-list a { color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.admin-table td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table td a { color: var(--ink); }
.admin-table .tags { margin-top: .35rem; }
.admin-table .actions { white-space: nowrap; text-align: right; }
.admin-table .actions a { color: var(--canal); margin-left: .6rem; }
.admin-table .msg { white-space: pre-line; min-width: 16rem; }
.auth-card { max-width: 28rem; margin: 2rem auto; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.auth-card img { background: #fff; border-radius: 14px; padding: 6px 10px; }
.auth-card .form { width: 100%; text-align: left; }
.auth-card h1 { font-size: var(--step-2); }
code { font-size: .9em; background: var(--canal-soft); padding: .1rem .35rem; border-radius: 5px; }
.form.plain { border: 0; padding: 0; background: none; }
.title-input { font-size: 1.25rem !important; font-weight: 700; }
.label { font-weight: 700; font-size: .95rem; }
.group { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.2rem; display: grid; gap: 1rem; margin: 0; min-width: 0; }
.group legend { font-weight: 700; padding: 0 .4rem; font-family: var(--font-display); }
.inline-input { display: flex; align-items: center; gap: .6rem; }
.inline-input input { max-width: 6rem; }
.day-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-pick span { display: inline-block; padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; user-select: none; }
.day-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-pick input:focus-visible + span { outline: 3px solid var(--hivis); outline-offset: 2px; }
.slug-row { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; color: var(--muted); }
.slug-row input { flex: 1; min-width: 12rem; }
.image-pick { display: grid; gap: .75rem; justify-items: start; }
.image-pick img { max-width: min(100%, 26rem); border-radius: 10px; border: 1px solid var(--line); }
.file-btn, .tb-file { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input, .tb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.busy { opacity: .55; pointer-events: none; }
.busy::after { content: " …"; }
.editor { border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.editor:focus-within { border-color: var(--canal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--canal) 25%, transparent); }
.toolbar { display: flex; flex-wrap: wrap; gap: .2rem; padding: .45rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.toolbar button, .tb-file { font: inherit; font-size: .88rem; padding: .4rem .6rem; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; }
.toolbar button:hover, .tb-file:hover { background: var(--canal-soft); }
.toolbar .sep { width: 1px; background: var(--line); margin: .2rem .25rem; }
.editor-area { min-height: 22rem; padding: 1.1rem 1.2rem; outline: none; }
.editor-area:empty::before { content: "Start writing…"; color: var(--muted); }
.date-list { list-style: none; margin: 0; padding: 0; display: grid; }
.date-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .55rem 0; border-top: 1px solid var(--line); align-items: center; }
.date-list li.cancelled span { text-decoration: line-through; color: var(--muted); }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--canal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--brick); }
.danger-zone { padding-top: 1rem; border-top: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-danger:hover { background: var(--brick); color: #fff; }
details.field summary { cursor: pointer; font-weight: 700; }
details.field[open] { gap: 1rem; display: grid; }
.import-form { display: grid; gap: .8rem; max-width: 36rem; }

/* ---------- Authors & team ---------- */
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 112px; height: 112px; font-size: 2rem; }
.person-bio { color: var(--muted); font-size: .95rem; }
.author-card {
  display: inline-flex; align-items: center; gap: .9rem; margin-top: .4rem;
  padding: .85rem 1.6rem .85rem .9rem; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
  box-shadow: 0 3px 8px -2px rgb(0 0 0 / .22);
  max-width: 100%;
}
.author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--canal); color: var(--paper); font-family: var(--font-display); font-weight: 800; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-text { display: grid; gap: .1rem; min-width: 0; }
.author-name { font-size: 1.2rem; color: var(--ink); padding-bottom: .15rem; border-bottom: 2px solid color-mix(in srgb, var(--canal) 55%, #7fd6a3); justify-self: start; line-height: 1.25; }
.author-role { font-size: .82rem; color: var(--muted); padding-top: .15rem; }
.byline { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.avatar-sm { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--canal); color: var(--paper); font-size: .7rem; font-weight: 800; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm.vacant { background: var(--canal-soft); color: var(--muted); }
.team-row { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.member-photo { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.inline-form { display: inline; }
.icon-btn { font: inherit; width: 2.1rem; height: 2.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--canal-soft); }
.icon-btn:disabled { opacity: .35; cursor: default; }
a.author-card { text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
a.author-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgb(0 0 0 / .28); }
a.author-card:hover .author-name { border-bottom-color: var(--canal); }
.byline a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.byline a:hover span:last-child { text-decoration: underline; }
.person-link { color: inherit; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--canal) 55%, #7fd6a3); }
.person-link:hover { border-bottom-color: var(--canal); }
.author-head .wrap { gap: 1.4rem; }
.author-head .eyebrow a { color: inherit; text-decoration: none; }
.author-hero { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); flex-wrap: wrap; }
.author-avatar.xl { width: clamp(96px, 16vw, 140px); height: clamp(96px, 16vw, 140px); font-size: 2.4rem; box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px color-mix(in srgb, var(--canal) 55%, #7fd6a3); }
.author-hero-text { display: grid; gap: .35rem; min-width: 0; }
.author-hero-role { font-size: var(--step-1); color: var(--muted); }
.author-bio { max-width: 62ch; display: grid; gap: .9rem; font-size: var(--step-0); }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.sponsor-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sponsor-logo { background: #fff; display: flex; align-items: center; justify-content: center; height: 10rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.sponsor-logo img { max-height: 7.5rem; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor-initials { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--canal); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.sponsor-text { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: .55rem; align-content: start; }
.sponsor-text h2 { font-size: var(--step-1); }
.sponsor-text h2 a { color: var(--ink); text-decoration: none; }
.sponsor-text h2 a:hover { text-decoration: underline; }
.sponsor-text p { color: var(--muted); }
.sponsor-link { margin-top: .2rem; }
.logo-sm { flex: none; width: 44px; height: 32px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; overflow: hidden; font-size: .7rem; font-weight: 800; color: #12302b; }
.logo-sm img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box { width: 180px; height: 110px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: .6rem; color: #6b7c77; font-size: .9rem; }
.logo-box img { max-width: 100%; max-height: 94px; width: auto; height: auto; object-fit: contain; }
