/* ═══════════════════════════════════════════════════════════════════════════
   Eastside Mesh — shared stylesheet for every page.
   Change a colour or font here and the whole site follows.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FONTS ───────────────────────────────────────────────────────────────────
   Hosted here, in the fonts/ folder — nothing is loaded from Google.
   Files from google-webfonts-helper, renamed by deleting the "-vNN-latin" part.
   All four families are under the SIL Open Font License.                    */
@font-face { font-family: 'Black Ops One';    font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/black-ops-one-regular.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono';  font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/share-tech-mono-regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow';           font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/barlow-regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow';           font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/barlow-condensed-700.woff2') format('woff2'); }

:root {
  --bg:      #0d1117;
  --panel:   #161b22;
  --panel-2: #1c2330;
  --signal:  #00ffe1;
  --amber:   #f0a500;
  --rust:    #c0392b;   /* decorative only: too dark for text on --bg */
  --danger:  #ff6f5e;   /* readable red for "cancelled" text */
  --white:   #e8edf3;
  --text:    #b4bdcc;   /* body copy */
  --muted:   #8e99ab;   /* secondary copy, labels */
  --line:    rgba(255,255,255,0.08);
  --line-signal: rgba(0,255,225,0.22);

  --display: 'Black Ops One', 'Arial Black', Impact, sans-serif;
  --mono:    'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:    'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --page:    920px;
  --nav-h:   60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }
strong { color: var(--white); font-weight: 700; }

a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

#mesh-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wrapper { position: relative; z-index: 2; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--signal); color: var(--bg);
  font-family: var(--mono); font-size: 0.85rem; padding: 0.7rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 0.6rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Text links inside running copy */
/* :not(.btn) keeps these link colours off buttons, which set their own */
.prose a:not(.btn), .faq-a a:not(.btn), .card-link {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,225,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.prose a:not(.btn):hover, .faq-a a:not(.btn):hover, .card-link:hover { text-decoration-color: var(--signal); }
.prose p + p { margin-top: 1.1rem; }
.prose { max-width: 640px; }

/* Small mono label used above headings and inside cards */
.label, .eyebrow, .tag, .section-label, .group-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--signal);
  text-transform: uppercase;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(13,17,23,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,255,225,0.1);
}
.nav-logo, .footer-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--signal);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav-logo span, .footer-logo span { color: var(--amber); }

.nav-links { display: flex; gap: 0.4rem; list-style: none; }
.nav-links a {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--signal); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -0.6rem;
  background: none; border: none; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--signal);
  transition: transform 0.25s ease, opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0d1117;
    border-bottom: 1px solid rgba(0,255,225,0.15);
    padding: 0.4rem 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-fill { background: var(--signal); color: var(--bg); font-weight: 700; }
.btn-fill:hover { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.75rem; }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── HOME: HERO ──────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}
#hero .eyebrow { margin-bottom: 1.5rem; animation: up 0.7s 0.1s both; }
#hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  animation: up 0.7s 0.25s both;
}
h1 .top { color: var(--white); display: block; }
h1 .bot { color: var(--signal); display: block; text-shadow: 0 0 50px rgba(0,255,225,0.4); }
#hero .sub {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 520px;
  line-height: 1.6;
  animation: up 0.7s 0.4s both;
}
#hero .btn-row { margin-top: 2.2rem; justify-content: center; animation: up 0.7s 0.55s both; }

/* Next-meetup ticker under the hero buttons */
.ticker {
  margin-top: 2.6rem;
  display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-signal);
  background: rgba(22,27,34,0.8);
  padding: 0.7rem 1.1rem;
  animation: up 0.7s 0.7s both;
  transition: border-color 0.2s;
}
.ticker:hover { border-color: var(--signal); }
.ticker b { color: var(--amber); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
.ticker .go { color: var(--signal); }
.ticker[hidden] { display: none; }

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}
.section--home {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}
.tag { margin-bottom: 0.8rem; }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.6rem;
}
h3 { color: var(--white); }

.section-label, .group-label {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
}
.section-label::after, .group-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,255,225,0.3), transparent);
}

/* Fact strip on the home page */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin-top: 2.8rem; list-style: none;
}
.facts li { border-left: 2px solid var(--signal); padding-left: 1rem; }
.fact-n { font-family: var(--display); font-size: 2rem; color: var(--signal); line-height: 1.1; }
.fact-l {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase; margin-top: 0.3rem; line-height: 1.5;
}
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; } }

/* Get-started steps on the home page */
.start-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  list-style: none; counter-reset: step;
}
.start-grid li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.start-grid li::before {
  content: '0' counter(step);
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--amber);
}
.start-grid h3, .card h3, .expect-card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2;
}
.start-grid p { font-size: 1rem; line-height: 1.6; flex: 1; }
.card-link { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; }
@media (max-width: 760px) { .start-grid { grid-template-columns: 1fr; } }

/* Cards (connect, go deeper) */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
a.card:hover { border-color: rgba(0,255,225,0.4); background: var(--panel-2); transform: translateY(-2px); }
a.card:active { transform: translateY(0); }
.card .label { font-size: 0.72rem; }
.card p { font-size: 1rem; line-height: 1.6; flex: 1; }
.card .detail {
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.04em; overflow-wrap: anywhere; margin-top: 0.3rem;
  transition: color 0.2s;
}
a.card:hover .detail { color: var(--signal); }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ── INNER PAGE HEADER ───────────────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 3rem;
  max-width: var(--page);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  animation: up 0.7s 0.1s both;
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.page-header .sub {
  margin-top: 1.3rem;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 580px;
}

/* ── CONTACT PROMPT ──────────────────────────────────────────────────────── */
.contact-prompt { max-width: var(--page); margin: 3.5rem auto 4rem; padding: 0 1.5rem; }
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line-signal);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.contact-box > div { flex: 1 1 320px; }
.contact-box p { max-width: 520px; }
.cb-label {
  font-family: var(--display); font-size: 1.3rem; color: var(--white);
  text-transform: uppercase; margin-bottom: 0.4rem; line-height: 1.2;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 2.5rem 1.5rem 2rem;
  position: relative; z-index: 2;
  background: rgba(13,17,23,0.7);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2rem;
}
.footer-logo { font-size: 1.05rem; }
.site-footer p, .site-footer li, .site-footer dd, .site-footer dt {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); line-height: 1.9;
}
.site-footer h2 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--signal);
  margin-bottom: 0.6rem; line-height: 1.9;
}
.site-footer ul { list-style: none; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.site-footer dl { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; }
.site-footer dt { color: var(--amber); }
.site-footer dd a { text-decoration: underline; text-underline-offset: 3px; }
.footer-fine {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 2rem;
}
.footer-fine p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-tools {
  max-width: var(--page); margin: 0 auto; padding: 2rem 1.5rem 0;
  animation: up 0.7s 0.25s both;
}
.faq-search {
  display: block; width: 100%;
  font-family: var(--mono); font-size: 1rem; color: var(--white);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  -webkit-appearance: none; appearance: none;
}
.faq-search::placeholder { color: var(--muted); }
.faq-search:focus { outline: none; border-color: var(--signal); }
.categories { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cat-btn {
  min-height: 40px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cat-btn:hover, .cat-btn[aria-pressed="true"] {
  border-color: var(--signal); color: var(--signal); background: rgba(0,255,225,0.06);
}
.faq-container { max-width: var(--page); margin: 0 auto; padding: 2.5rem 1.5rem 2rem; }
.faq-group { margin-bottom: 3rem; }
.faq-group[hidden], .faq-item[hidden] { display: none; }
.faq-empty { padding: 1rem 0 3rem; }
.faq-empty[hidden] { display: none; }

.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(0,255,225,0.2); }
.faq-item[open] { border-color: rgba(0,255,225,0.35); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: block; position: relative;
  padding: 1.1rem 3.6rem 1.1rem 1.3rem;
  font-family: var(--cond); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.3px; line-height: 1.3;
  color: var(--white);
  transition: color 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q { -webkit-tap-highlight-color: transparent; }
.faq-item[open] .faq-q { color: var(--signal); }
.q-icon {
  position: absolute; right: 1.3rem; top: 50%; margin-top: -11px;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.q-icon::before, .q-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--muted);
  width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px;
}
.q-icon::after { transform: rotate(90deg); }
.faq-item[open] .q-icon { border-color: var(--signal); background: rgba(0,255,225,0.08); transform: rotate(45deg); }
.faq-item[open] .q-icon::before, .faq-item[open] .q-icon::after { background: var(--signal); }
.faq-a {
  padding: 1.1rem 1.3rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.75;
  animation: up 0.25s both;
}
.faq-a .highlight {
  display: block;
  background: rgba(0,255,225,0.08);
  border-left: 2px solid var(--signal);
  padding: 0.7rem 0.9rem;
  margin-top: 0.9rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; line-height: 1.6;
  color: var(--signal);
}
code {
  font-family: var(--mono); font-size: 0.9em; color: var(--white);
  background: rgba(255,255,255,0.07); padding: 0.1em 0.4em;
}
.faq-a .btn-row { margin: 0.9rem 0; }
.faq-link {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 0.4rem 0; margin-top: 0.8rem; display: block;
}
.faq-link:hover { color: var(--signal); }

/* ── MEETUPS ─────────────────────────────────────────────────────────────── */
.next-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-signal);
  padding: 2.2rem;
}
.next-panel::before, .next-panel::after {
  content: ''; position: absolute; width: 26px; height: 26px;
  border: 2px solid var(--signal); pointer-events: none;
}
.next-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.next-panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.status-line {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.3rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
  animation: pulse 2s infinite;
}
.status-line.live { color: var(--signal); }
.status-line.live .status-dot { background: var(--signal); box-shadow: 0 0 10px var(--signal); }

.next-panel.cancelled { border-color: rgba(192,57,43,0.6); }
.next-panel.cancelled::before, .next-panel.cancelled::after { border-color: var(--rust); }
.status-line.cancelled { color: var(--danger); }
.status-line.cancelled .status-dot { background: var(--danger); box-shadow: 0 0 10px var(--rust); }
.next-date.struck {
  color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--rust); text-decoration-thickness: 3px;
}
.next-time.cancelled { color: var(--danger); }
.next-up { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--signal); margin-top: 1.2rem; }

.next-date {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  line-height: 1.02; text-transform: uppercase; color: var(--white);
}
.next-time { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.16em; color: var(--signal); margin-top: 0.7rem; }
.next-place { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.place-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 0.4rem;
}
.place-name { font-family: var(--cond); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--white); }
.place-name.tba { color: var(--muted); }
.place-address { font-family: var(--mono); font-size: 0.88rem; color: var(--text); letter-spacing: 0.04em; margin-top: 0.4rem; }
.place-notes { color: var(--text); margin-top: 1rem; max-width: 600px; }

.countdown { display: flex; gap: 0.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.cd-unit {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.25);
  padding: 0.7rem 0.6rem; min-width: 72px; text-align: center;
}
.cd-n { font-family: var(--mono); font-size: 1.6rem; color: var(--signal); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-l { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 0.45rem; }
.cd-live {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.18em; color: var(--signal); text-transform: uppercase;
  border: 1px solid rgba(0,255,225,0.35); background: rgba(0,255,225,0.07); padding: 0.9rem 1.2rem;
}
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,0.1); background: #0b0f14; overflow: hidden;
}
@media (max-width: 560px) { .map-frame { aspect-ratio: 4 / 3; } }
/* Older Safari (before 15) has no aspect-ratio: give the map a height the old way. */
@supports not (aspect-ratio: 1 / 1) {
  .map-frame { height: 0; padding-bottom: 62.5%; }
  @media (max-width: 560px) { .map-frame { padding-bottom: 75%; } }
}
#map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #0b0f14; }
.map-fallback {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted); line-height: 1.8;
}
.map-fallback.show { display: flex; }
.leaflet-container { background: #0b0f14; font-family: var(--mono); }
/* Inverts the standard OSM tiles only, so the marker and controls keep their real colours. */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(0.7) brightness(0.95); }
.leaflet-bar { border: none; box-shadow: none; }
.leaflet-bar a, .leaflet-bar a:hover {
  background: rgba(13,17,23,0.92); color: var(--signal);
  border: 1px solid rgba(0,255,225,0.25); border-radius: 0;
  width: 36px; height: 36px; line-height: 34px;
}
.leaflet-bar a:hover { background: rgba(0,255,225,0.12); }
.leaflet-bar a:first-child { border-bottom: none; }
.leaflet-bar a.leaflet-disabled { color: #3c4655; background: rgba(13,17,23,0.92); }
.leaflet-control-attribution { background: rgba(13,17,23,0.85) !important; color: var(--muted); font-size: 0.7rem; }
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-div-icon { background: transparent; border: none; }
.mesh-marker { position: relative; }
.mesh-marker .dot, .mesh-marker .ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; }
.mesh-marker .dot {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--signal); box-shadow: 0 0 12px rgba(0,255,225,0.9);
}
.mesh-marker .ring {
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 2px solid var(--signal); animation: ping 2.4s ease-out infinite;
}
.map-caption {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted);
  padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.1); border-top: none;
  display: flex; justify-content: space-between; gap: 0.3rem 1rem; flex-wrap: wrap;
}
.map-empty {
  border: 1px solid rgba(255,255,255,0.1); background: var(--panel);
  min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase; padding: 2rem; line-height: 2;
}

.sched-row { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 1px solid var(--line); }
.sched-date {
  font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.12em; color: var(--signal);
  text-transform: uppercase; width: 140px; flex-shrink: 0;
}
.sched-body { flex: 1; min-width: 0; }
.sched-place { font-size: 1.15rem; color: var(--white); line-height: 1.4; }
.sched-place.tba { color: var(--muted); font-style: italic; }
.sched-meta { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.25rem; }
.sched-meta a { color: var(--text); text-underline-offset: 3px; }
.sched-meta a:hover { color: var(--signal); }
.sched-row.cancelled .sched-date { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rust); }
.sched-place.cancelled { color: var(--danger); text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; }
.sched-row.past .sched-date { color: var(--muted); }
.sched-row.past .sched-place { color: var(--text); font-size: 1.05rem; }
.sched-row.past .sched-place.cancelled { color: var(--danger); font-size: 1rem; }
.sched-recap { font-size: 0.98rem; color: var(--muted); line-height: 1.6; margin-top: 0.4rem; max-width: 600px; }
@media (max-width: 560px) {
  .sched-row { flex-direction: column; gap: 0.3rem; }
  .sched-date { width: auto; }
  .next-panel { padding: 1.5rem 1.2rem; }
  .cd-unit { min-width: 0; flex: 1; }
}

.expect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.expect-card { background: var(--panel); border: 1px solid var(--line); padding: 1.5rem; }
.expect-card h3 { margin-bottom: 0.6rem; }
.expect-card p { font-size: 1rem; line-height: 1.65; }
@media (max-width: 640px) { .expect-grid { grid-template-columns: 1fr; } }

/* ── BRIDGE GUIDE ────────────────────────────────────────────────────────── */
.bridge {
  --mt: #6fcb91;  --mt-soft: #1b3326;   /* Meshtastic = green */
  --mc: #86aeea;  --mc-soft: #1b2c49;   /* MeshCore   = blue  */
  --bridge: var(--amber);
}
.bridge h2 { margin-bottom: 1rem; }
.bridge h3 { font-family: var(--cond); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.5rem; }
.bridge p { margin-bottom: 1rem; }
.bridge .section { padding-top: 4rem; }

.routes {
  margin-top: 0.4rem; background: var(--panel); border: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 0.5rem;
}
.routes-head, .route-line {
  display: grid; grid-template-columns: 1fr minmax(5rem, 1.3fr) 1fr; gap: 0.75rem; align-items: center;
}
.routes-head {
  font-family: var(--cond); font-size: 1.4rem; font-weight: 700; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.routes-head .mt-h { color: var(--mt); }
.routes-head .mc-h { color: var(--mc); text-align: right; }
.routes-head .gw {
  text-align: center; color: var(--bridge);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
}
.route { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.route:last-child { border-bottom: 0; }
.chan {
  font-family: var(--mono); font-size: clamp(0.85rem, 2.6vw, 1.1rem);
  padding: 0.6rem 0.8rem; border: 2px solid; overflow-wrap: anywhere;
}
.chan.mt { color: var(--mt); border-color: var(--mt); background: var(--mt-soft); }
.chan.mc { color: var(--mc); border-color: var(--mc); background: var(--mc-soft); text-align: right; }
.bridge .route-note { margin: 0.7rem 0 0; color: var(--text); font-size: 1rem; line-height: 1.55; }

.wire { position: relative; height: 22px; }
.wire::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--bridge);
}
.tip { position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tip.r { right: 0; border-left: 11px solid var(--bridge); }
.tip.l { left: 0; border-right: 11px solid var(--bridge); }
.pulse-dot {
  position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--bridge); box-shadow: 0 0 0 4px rgba(240,165,0,0.25);
  animation: toRight 2.6s cubic-bezier(.45,.05,.55,.95) infinite;
}
.pulse-dot.back { animation-name: toLeft; animation-delay: 1.3s; }
.pulse-dot.late { animation-delay: 0.6s; }

.steps {
  list-style: none; counter-reset: s; margin-top: 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem;
}
.steps > li { counter-increment: s; position: relative; padding-top: 2.8rem; }
.steps > li::before {
  content: '0' counter(s); position: absolute; top: 0; left: 0;
  font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--bridge);
}
.bridge .steps p { margin: 0; }

.sample { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.bubble { padding: 0.9rem 1rem; border-left: 4px solid; background: var(--panel); }
.bubble.mt { border-color: var(--mt); }
.bubble.mc { border-color: var(--mc); }
.bubble .where { font-size: 0.9rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.bubble .msg { font-family: var(--mono); font-size: 0.95rem; color: var(--white); }
.bridge .fine { font-size: 0.92rem; color: var(--muted); margin-top: 0.75rem; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; margin-top: 2.5rem; }

.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.app { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.app-top { padding: 0.9rem 1.25rem; font-family: var(--cond); font-size: 1.6rem; font-weight: 700; color: #0d1117; line-height: 1.2; }
.app.mt .app-top { background: var(--mt); }
.app.mc .app-top { background: var(--mc); }
.rows { list-style: none; }
.rows li { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; }
.row-name { font-family: var(--mono); font-size: 1.15rem; color: var(--white); }
.bridge .row-desc { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.5; }
.dir { font-family: var(--mono); font-size: 0.8rem; color: var(--bridge); white-space: nowrap; }
.keyline { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.keyline .lbl { font-size: 0.9rem; color: var(--muted); }
.key {
  font-family: var(--mono); font-size: 1rem; color: var(--white);
  background: var(--bg); border: 1px solid rgba(255,255,255,0.16); padding: 0.2rem 0.6rem;
}
.keyline .plain { font-size: 0.92rem; color: var(--muted); font-style: italic; }
button.copy {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--white);
  background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.28); padding: 0.3rem 0.8rem; min-height: 2.25rem;
}
button.copy:hover { border-color: var(--signal); color: var(--signal); }
button.copy.done { border-color: var(--mt); color: var(--mt); }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.howto .mt-t { color: var(--mt); }
.howto .mc-t { color: var(--mc); }
ol.list { padding-left: 1.5rem; }
ol.list li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
ol.list li::marker { font-family: var(--mono); color: var(--muted); }
.callout {
  margin-top: 1.2rem; padding: 0.9rem 1rem;
  background: rgba(240,165,0,0.09); border-left: 2px solid var(--amber);
  font-size: 0.98rem; line-height: 1.6;
}
.notes { list-style: none; max-width: 46rem; }
.notes li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.notes li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 34rem) {
  .routes-head, .route-line { grid-template-columns: 1fr 3.2rem 1fr; gap: 0.5rem; }
  .routes-head .gw { font-size: 0; }
  .pulse-dot { display: none; }
  .chan { padding: 0.5rem 0.55rem; }
  .sheet, .howto { grid-template-columns: 1fr; }
}

/* ── MOTION ──────────────────────────────────────────────────────────────── */
@keyframes up    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ping  { 0% { transform: scale(0.4); opacity: 0.9; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes toRight { 0% { left: 8px; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 18px); opacity: 0; } }
@keyframes toLeft  { 0% { left: calc(100% - 18px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 8px; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse-dot { display: none; }
}

@media print {
  #mesh-bg, .site-nav, .nav-toggle, .faq-tools, .btn-row, .actions { display: none !important; }
  body { background: #fff; color: #000; }
  h1 .top, h1 .bot, h2, h3, strong, .faq-q { color: #000 !important; text-shadow: none !important; }
}

.gap-top { margin-top: 1.6rem; }

.bridge .page-header h1 { font-size: clamp(2.1rem, 7.5vw, 4.4rem); }

/* ── COVERAGE PAGE ───────────────────────────────────────────────────────── */
.embed-map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #0b0f14; }
.place-notes a { color: var(--signal); text-underline-offset: 3px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* Colour key under the coverage map */
.map-key { border: 1px solid rgba(255,255,255,0.1); border-top: none; padding: 1rem 1.1rem 0.9rem; background: var(--panel); }
.map-key ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 1.5rem; }
.map-key li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.map-key strong { display: block; font-size: 0.98rem; }
.map-key p { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.9rem; }
.key-swatch { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.2rem; border-radius: 50%; border: 2px solid #fff; }
.key-square { border-radius: 2px; border: none; background: #4f9a56; }
.key-green  { background: #5bb97b; }
.key-pink   { background: #ea4c9c; }
.key-grey   { background: #9aa3ad; }
.key-group  { background: #4aa3cb; color: #0d1117; font-family: var(--body); font-size: 0.68rem; font-weight: 700; line-height: 14px; text-align: center; }
@media (max-width: 640px) { .map-key ul { grid-template-columns: 1fr; } }

/* A highlighted note already has its own spacing; drop the blank lines that follow it */
.faq-a .highlight { margin-bottom: 1rem; }
.faq-a .highlight + br, .faq-a .highlight + br + br { display: none; }
