/* MOVE TOGETHER design tokens + components — shared visual language with the
   homepage (templates/index.html), used by templates/movetogether.html.
   Kept as a standalone stylesheet (not shared with index.html's inline <style>)
   so this page can evolve without touching the live homepage file. */

:root {
  --blue: #144f92;
  --blue-dk: #0e3a6e;
  --blue-deep: #082548;
  --blue-light: #eaf2fc;

  --orange: #f47c22;
  --orange-dk: #d9620b;
  --orange-light: #fff3eb;
  --orange-glow: rgba(244, 124, 34, 0.28);

  --green: #1e7e34;
  --ink: #111a28;
  --ink-subtle: #3a4b62;
  --muted: #5e6f85;
  --border: #dbe7f5;
  --strava: #FC4C02;

  --font-headline: 'STIX Two Text', 'STIX Two', Georgia, serif;
  --font-body: 'Source Sans Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Source Sans Pro', sans-serif;

  --container-max: 1600px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 3px 12px rgba(14, 58, 110, 0.05);
  --shadow-md: 0 10px 30px rgba(14, 58, 110, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 50px rgba(14, 58, 110, 0.12), 0 4px 16px rgba(244, 124, 34, 0.06);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #f5f8fd;
  background-image:
    radial-gradient(at 0% 0%, rgba(20, 79, 146, 0.045) 0px, transparent 50%),
    radial-gradient(at 100% 5%, rgba(244, 124, 34, 0.05) 0px, transparent 45%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-headline); font-weight: 700; color: var(--ink); line-height: 1.22; letter-spacing: -0.015em; }
h4, h5 { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
a { color: var(--blue); text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: 36px; padding-right: 36px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display);
       font-size: 0.96rem; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-full);
       border: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; user-select: none; }
.btn-outline { background: rgba(255,255,255,0.9); border: 2px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Official Strava CTA — brand asset, used as-is */
.btn-strava-cta { display: inline-flex; align-items: center; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.btn-strava-cta:hover { filter: brightness(1.06); transform: translateY(-2px); }
.strava-connected-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-full);
         background: #e6f4ea; border: 1.5px solid #b7e1c4; color: #155724; font-weight: 700; font-size: 0.86rem; }
.powered-by-strava { display: flex; align-items: center; opacity: .82; }
.powered-by-strava img { height: 20px; width: auto; }

/* Header (shared visual language with the homepage) */
.site-header { position: sticky; top: 0; z-index: 99; background: rgba(255,255,255,0.94); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand-logo-wrap { display: flex; align-items: center; gap: 20px; min-width: 0; }
.brand-logo-wrap .tvs-logo { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-divider { height: 36px; width: 1.5px; background: var(--border); flex-shrink: 0; }
.event-brand-text { display: flex; flex-direction: column; min-width: 0; }
.event-brand-text .title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; color: var(--blue); line-height: 1.1; letter-spacing: -.015em; white-space: nowrap; }
.event-brand-text .sub { font-size: 0.74rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink-subtle); position: relative; padding: 8px 0; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--orange); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 8px; }

/* Page header band */
.page-header { padding: 48px 0 40px 0; }
.page-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.85rem;
    font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.page-title { font-size: 2.4rem; color: var(--blue-dk); margin-bottom: 12px; }
.page-desc { font-size: 1.05rem; color: var(--muted); max-width: 720px; }

/* Stats strip */
.mt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.mt-stat-card { background: #fff; border-radius: var(--radius-lg); padding: 24px 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 18px; }
.mt-stat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.mt-stat-card:nth-child(2) .mt-stat-icon { background: var(--orange-light); color: var(--orange-dk); }
.mt-stat-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mt-stat-lbl { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* Activity log panel */
.mt-panel { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 56px; }
.mt-panel h2 { font-size: 1.5rem; color: var(--blue-dk); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.mt-panel h2 .log-meta { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--muted); background: #f4f8fd;
    padding: 4px 12px; border-radius: var(--radius-full); }
.mt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mt-search { flex: 1; min-width: 220px; max-width: 380px; padding: 10px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--border);
    font-family: var(--font-body); font-size: 0.92rem; outline: none; }
.mt-search:focus { border-color: var(--blue); }
.mt-count { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.mt-table-wrap { overflow-x: auto; }
.mt-table { width: 100%; border-collapse: collapse; text-align: left; }
.mt-table th { background: #f4f8fd; padding: 13px 16px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mt-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--ink); vertical-align: middle; white-space: nowrap; }
.mt-table tr:last-child td { border-bottom: none; }
.mt-table tr:hover td { background: #f9fbff; }
.mt-table code { background: #f0f4fa; padding: 2px 7px; border-radius: 6px; font-size: 0.82rem; }

.mt-badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--radius-full);
    font-family: var(--font-display); font-size: 0.76rem; font-weight: 800; }
.mt-badge-walk { background: var(--blue-light); color: var(--blue); }
.mt-badge-run { background: var(--orange-light); color: var(--orange-dk); }
.mt-badge-ride { background: #eafaf0; color: var(--green); }
.mt-badge-other { background: #f1eefc; color: #6a4fc9; }

.mt-pg-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.mt-pg-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-full);
    padding: 8px 18px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.mt-pg-btn:hover { border-color: var(--blue); color: var(--blue); }
.mt-pg-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }
.mt-pg-info { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* Footer */
.mt-footer { background: #08172b; color: #8fa6c4; padding: 40px 0; font-size: 0.9rem; margin-top: 40px; }
.mt-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mt-footer a { color: #cfe0f5; }
.mt-footer a:hover { color: #fff; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mt-stats { grid-template-columns: 1fr; }
  .page-title { font-size: 1.9rem; }
}
