/* ==========================================================================
   TreckerTreck Design Kit — treckertreck.css  (v3 "iOS dark")
   One stylesheet: tokens → base → layout → components → responsive.
   All classes are prefixed `tt-`. State modifiers use `is-*`.

   NOTE (v7 pilot): tokens and bare-element base resets below are scoped under
   `.tt-public` instead of `:root`/document-wide selectors, so this new dark
   kit never leaks into admin CSS while most pages are still on v6. See
   trecker-public-v6.css for the established `.tt-public` scoping pattern.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
.tt-public {
  color-scheme: dark;

  /* Surfaces */
  --tt-bg:        #141414;               /* page background */
  --tt-cell:      #1e1e1e;               /* cards, grouped lists, chips */
  --tt-cell-2:    #2a2a2a;               /* hover / pressed cell, inner wells */
  --tt-fill:      rgba(255,255,255,.07); /* search fields, segmented track, icon buttons */
  --tt-selected:  #333333;               /* selected segment */
  --tt-sep:       rgba(255,255,255,.09); /* hairline separators & borders */

  /* Text */
  --tt-text:      #f5f5f5;               /* primary label */
  --tt-label-2:   rgba(255,255,255,.62); /* secondary label (meta, captions) */
  --tt-label-3:   rgba(255,255,255,.38); /* tertiary (chevrons, legal) */

  /* Brand */
  --tt-accent:        #f26a2b;               /* primary orange: buttons, active states, date tops */
  --tt-accent-hover:  #ff7d42;
  --tt-accent-text:   #ff8445;               /* orange for text-size links on dark */
  --tt-accent-tint:   rgba(242,106,43,.16);  /* tinted buttons / badges */
  --tt-accent-2:      #ffa45c;               /* light orange: kickers, "Neu", top-3, progress */
  --tt-accent-2-tint: rgba(255,164,92,.16);
  --tt-on-accent:     #ffffff;
  --tt-on-accent-2:   #1a1000;

  /* Type */
  --tt-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tt-fs-largetitle: clamp(34px, 5vw, 56px);
  --tt-fs-hero:       clamp(42px, 7vw, 84px);
  --tt-fs-title2:     22px;
  --tt-fs-headline:   17px;
  --tt-fs-body:       15px;
  --tt-fs-callout:    16px;
  --tt-fs-sub:        13px;
  --tt-fs-caption:    12px;
  --tt-fs-micro:      10px;

  /* Shape */
  --tt-r-xs:   8px;
  --tt-r-sm:   10px;
  --tt-r-md:   12px;
  --tt-r-lg:   14px;
  --tt-r-card: 18px;
  --tt-r-hero: clamp(18px, 2.4vw, 28px);
  --tt-r-pill: 999px;

  /* Layout */
  --tt-max:    1200px;
  --tt-gutter: clamp(16px, 4vw, 32px);
  --tt-gap:    10px;
  --tt-gap-lg: 20px;
  --tt-section-y: clamp(32px, 5vw, 56px);
  --tt-header-h: 60px;
  --tt-header-h-compact: 52px;
  --tt-tabbar-h: 84px;

  /* Effects */
  --tt-glass: saturate(180%) blur(20px);
  --tt-press: scale(.98);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
.tt-public {
  background: var(--tt-bg);
  color: var(--tt-text); font-family: var(--tt-font); font-size: var(--tt-fs-body);
  line-height: 1.4; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.tt-public h1, .tt-public h2, .tt-public h3, .tt-public h4 { font-family: inherit; margin: 0; }
.tt-public p { margin: 0; }
.tt-public img { display: block; max-width: 100%; }
.tt-public a { color: var(--tt-accent-text); text-decoration: none; }
.tt-public a:hover { color: var(--tt-accent-hover); }
.tt-public button { font: inherit; color: inherit; }
.tt-public :focus { outline: none; }
.tt-public :focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
.tt-public ::selection { background: var(--tt-accent-tint); }

/* 3. LAYOUT ---------------------------------------------------------------- */
.tt-app { min-height: 100vh; display: flex; flex-direction: column; }
.tt-main { flex: 1; }
.tt-container { max-width: var(--tt-max); margin: 0 auto; padding-inline: var(--tt-gutter); }
.tt-section { padding-top: var(--tt-gap-lg); }
.tt-section--spaced { padding-top: var(--tt-section-y); }
.tt-stack    { display: flex; flex-direction: column; gap: var(--tt-gap); }
.tt-stack-lg { display: flex; flex-direction: column; gap: var(--tt-gap-lg); }
.tt-stack-xl { display: flex; flex-direction: column; gap: 28px; }
.tt-row-wrap { display: flex; flex-wrap: wrap; gap: var(--tt-gap); align-items: center; }
/* Auto grid: set --min on the element (default 280px) */
.tt-grid { display: grid; gap: var(--tt-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.tt-grid--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
/* Main + aside (2:1), wraps under ~760px */
.tt-split { display: flex; flex-wrap: wrap; gap: var(--tt-gap-lg); align-items: flex-start; }
.tt-split__main  { flex: 2 1 480px; min-width: 0; }
.tt-split__aside { flex: 1 1 260px; min-width: 0; }
/* Horizontal scroller that bleeds to the screen edge */
.tt-scroller {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--tt-gutter)); padding-inline: var(--tt-gutter); padding-bottom: 4px;
}

/* 4. COMPONENTS ------------------------------------------------------------ */

/* 4.1 Header (desktop / tablet) */
.tt-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20,20,20,.72); backdrop-filter: var(--tt-glass); -webkit-backdrop-filter: var(--tt-glass);
  border-bottom: .5px solid var(--tt-sep);
}
.tt-header__inner { height: var(--tt-header-h); display: flex; align-items: center; gap: 16px; }
.tt-header__side { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.tt-header__side--end { justify-content: flex-end; }
.tt-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--tt-fs-headline); color: var(--tt-text); }
.tt-brand img { width: 30px; height: 30px; border-radius: var(--tt-r-xs); }
/* Fix: .tt-brand/.tt-brand img are flex children of .tt-header__side (display:flex) with no
   flex:none, so a tight header can compress their width while height stays fixed, visibly
   off-centering the logo+wordmark. The 30px CSS size also fought the markup's width=28/height=28
   attributes, and the SVG isn't guaranteed square, so the logo could look squashed. Scoped under
   .tt-public per this file's convention. */
.tt-public .tt-brand { flex: none; }
.tt-public .tt-brand img { width: 28px; height: 28px; object-fit: contain; flex: none; }

/* 4.2 Header (mobile, compact) */
.tt-header--compact { padding-top: env(safe-area-inset-top); background: rgba(20,20,20,.78); }
.tt-header--compact .tt-header__inner { height: var(--tt-header-h-compact); padding-inline: 16px; gap: 10px; }
.tt-header--compact .tt-brand img { width: 28px; height: 28px; border-radius: 7px; }
.tt-back { display: inline-flex; align-items: center; gap: 2px; color: var(--tt-accent-text); font-size: var(--tt-fs-headline); cursor: pointer; }

/* 4.3 Segmented control (main nav + view switchers) */
.tt-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--tt-fill); border-radius: var(--tt-r-sm); }
.tt-seg__opt {
  padding: 6px 16px; border-radius: var(--tt-r-xs); font-size: 14px; font-weight: 500;
  color: var(--tt-label-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: none;
}
.tt-seg__opt:hover { color: var(--tt-text); }
.tt-seg__opt.is-active { background: var(--tt-selected); color: var(--tt-text); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.tt-seg--block { display: flex; }
.tt-seg--block .tt-seg__opt { flex: 1; font-size: var(--tt-fs-sub); padding-inline: 0; }
.tt-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tt-accent); }

/* 4.4 Bottom tab bar (mobile / app) */
.tt-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(24,24,24,.82); backdrop-filter: var(--tt-glass); -webkit-backdrop-filter: var(--tt-glass);
  border-top: .5px solid var(--tt-sep);
}
.tt-tabbar__item {
  min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
  color: var(--tt-label-3); font-size: var(--tt-fs-micro); font-weight: 600; cursor: pointer;
}
.tt-tabbar__item svg { width: 25px; height: 25px; }
.tt-tabbar__item.is-active { color: var(--tt-accent); }

/* 4.5 Buttons */
.tt-btn {
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--tt-r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap;
  background: var(--tt-cell-2); color: var(--tt-text); transition: transform .12s, background .12s;
}
.tt-btn:active { transform: scale(.97); }
.tt-btn--primary { background: var(--tt-accent); color: var(--tt-on-accent); }
.tt-btn--primary:hover { background: var(--tt-accent-hover); }
.tt-btn--tinted { background: var(--tt-accent-tint); color: var(--tt-accent-text); }
.tt-btn--tinted:hover { background: rgba(242,106,43,.24); }
.tt-btn--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.tt-btn--glass:hover { background: rgba(255,255,255,.24); }
.tt-btn--white { background: #fff; color: var(--tt-bg); }
.tt-btn--white:hover { background: #f0f0f0; }
.tt-btn--lg { height: 48px; padding: 0 22px; font-size: var(--tt-fs-callout); }
.tt-btn--block { width: 100%; height: 52px; border-radius: var(--tt-r-lg); font-size: var(--tt-fs-headline); }
.tt-btn--square { border-radius: var(--tt-r-sm); }
.tt-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tt-fill);
  color: var(--tt-text); display: grid; place-items: center; cursor: pointer;
}
/* Fix: .tt-icon-btn is a flex child of .tt-header__side (display:flex) with no flex:none, so a
   tight header compresses its width while its fixed height stays put -- border-radius:50% on a
   now-non-square box renders an oval, not a circle, which the avatar/icon then visibly spills out
   of. overflow:hidden + constraining the direct child to 100%/100% keeps the legacy
   .TreckerAvatar--sm span (shared with admin, never restyled globally) filling the circle neatly
   instead of overflowing it. Scoped under .tt-public per this file's convention. */
.tt-public .tt-icon-btn { flex: none; overflow: hidden; }
.tt-public .tt-icon-btn > span, .tt-public .tt-icon-btn > img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}

/* 4.6 Page head (every page except Start) */
.tt-pagehead { padding-top: clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 8px; }
.tt-kicker { font-size: var(--tt-fs-sub); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tt-accent-2); }
.tt-title { font-weight: 800; font-size: var(--tt-fs-largetitle); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.tt-lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--tt-label-2); max-width: 60ch; text-wrap: pretty; }
.tt-h2 { font-weight: 700; font-size: var(--tt-fs-title2); letter-spacing: -0.02em; }

/* 4.7 Chips (sub-navigation, filters) */
.tt-chip {
  flex: none; height: 34px; padding: 0 16px; border-radius: 17px; border: 0;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--tt-cell); color: var(--tt-text); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tt-chip:hover { background: var(--tt-cell-2); }
.tt-chip.is-active { background: var(--tt-text); color: var(--tt-bg); font-weight: 600; }   /* section tabs */
.tt-chip--sm { height: 32px; padding: 0 14px; border-radius: 16px; font-size: var(--tt-fs-sub); }
.tt-chip--filter.is-active { background: var(--tt-accent-2); color: var(--tt-on-accent-2); } /* content filters */
.tt-chip svg { width: 14px; height: 14px; color: var(--tt-label-2); }

/* 4.8 Search field / select pill */
.tt-search {
  height: 40px; border-radius: var(--tt-r-md); background: var(--tt-fill);
  display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--tt-label-2);
}
.tt-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tt-text); font: inherit; outline: none; }
.tt-search input::placeholder { color: var(--tt-label-2); }
.tt-select {
  height: 40px; border-radius: var(--tt-r-md); background: var(--tt-cell);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; font-weight: 600; cursor: pointer;
}

/* 4.9 Cards */
.tt-card { background: var(--tt-cell); border-radius: var(--tt-r-card); padding: 16px; }
.tt-card--interactive { cursor: pointer; transition: transform .12s, background .12s; }
.tt-card--interactive:hover { background: var(--tt-cell-2); }
.tt-card--interactive:active { transform: var(--tt-press); }
.tt-card--flush { padding: 0; overflow: hidden; }

/* 4.10 Grouped list (iOS "inset grouped") */
.tt-group { display: flex; flex-direction: column; gap: 8px; }
.tt-group__header {
  display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px;
  font-size: var(--tt-fs-sub); font-weight: 600; color: var(--tt-label-2); text-transform: uppercase; letter-spacing: .03em;
}
.tt-group__header a { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tt-list { background: var(--tt-cell); border-radius: var(--tt-r-card); overflow: hidden; }
.tt-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--tt-text); }
a.tt-row, .tt-row--link { cursor: pointer; }
a.tt-row:hover, .tt-row--link:hover { background: var(--tt-cell-2); color: var(--tt-text); }
.tt-row:not(:last-child)::after {           /* inset hairline */
  content: ""; position: absolute; right: 0; bottom: 0; height: .5px;
  left: var(--inset, 16px); background: var(--tt-sep);
}
.tt-list--media  { --inset: 76px; }  /* rows with a date badge / avatar */
.tt-list--rank   { --inset: 62px; }  /* rows with a rank circle */
.tt-row__body { flex: 1; min-width: 0; }
.tt-row__title { font-weight: 600; font-size: var(--tt-fs-callout); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row__sub { font-size: var(--tt-fs-sub); color: var(--tt-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row__chev { flex: none; width: 14px; height: 14px; color: var(--tt-label-3); }
.tt-row--kv { justify-content: space-between; padding: 14px 16px; }
.tt-row--kv > :first-child { color: var(--tt-label-2); }
.tt-row--kv > :last-child { font-weight: 500; text-align: right; }
.tt-row--action { color: var(--tt-accent-text); justify-content: space-between; padding: 14px 16px; }

/* 4.11 Date badge (calendar-icon motif) */
.tt-date { width: 46px; flex: none; border-radius: var(--tt-r-sm); overflow: hidden; background: var(--tt-cell-2); text-align: center; }
.tt-date__mon { background: var(--tt-accent); color: var(--tt-on-accent); font-size: var(--tt-fs-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 0; }
.tt-date__day { font-size: 20px; font-weight: 700; padding: 3px 0 4px; }

/* 4.12 Badges */
.tt-badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--tt-r-pill); font-size: var(--tt-fs-caption); font-weight: 600; white-space: nowrap; }
.tt-badge--accent   { background: var(--tt-accent-tint);   color: var(--tt-accent-text); }
.tt-badge--accent-2 { background: var(--tt-accent-2-tint); color: var(--tt-accent-2); font-size: 11px; font-weight: 700; padding: 3px 8px; }
.tt-badge--neutral  { background: var(--tt-cell-2);        color: var(--tt-label-2); }

/* 4.13 Stat tiles */
.tt-stats { display: grid; gap: var(--tt-gap); grid-template-columns: repeat(auto-fit, minmax(min(46%, 150px), 1fr)); }
.tt-stat { background: var(--tt-cell); border-radius: var(--tt-r-card); padding: 16px; }
.tt-stat__value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.tt-stat__value--accent { color: var(--tt-accent-2); }
.tt-stat__label { font-size: var(--tt-fs-sub); color: var(--tt-label-2); }

/* 4.14 Empty state */
.tt-empty { background: var(--tt-cell); border-radius: var(--tt-r-card); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.tt-empty__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tt-cell-2); color: var(--tt-label-2); display: grid; place-items: center; }
.tt-empty__icon--accent-2 { background: var(--tt-accent-2-tint); color: var(--tt-accent-2); }
.tt-empty__title { font-weight: 600; font-size: var(--tt-fs-headline); }
.tt-empty__text { color: var(--tt-label-2); max-width: 36ch; }
.tt-empty--inline { display: block; text-align: left; padding: 18px 16px; color: var(--tt-label-2); }

/* 4.15 Hero (Start page) */
.tt-hero { position: relative; border-radius: var(--tt-r-hero); overflow: hidden; min-height: clamp(440px, 62vh, 600px); display: flex; align-items: flex-end; background: var(--tt-cell); }
.tt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.tt-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.88) 100%); }
.tt-hero__content { position: relative; padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.tt-hero__title { font-weight: 800; font-size: var(--tt-fs-hero); line-height: .95; letter-spacing: -0.035em; }
.tt-hero__lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; color: rgba(255,255,255,.82); max-width: 34ch; }

/* 4.16 Quick-action tile */
.tt-tile { background: var(--tt-cell); border-radius: var(--tt-r-card); padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; color: var(--tt-text); transition: transform .12s, background .12s; }
.tt-tile:hover { background: var(--tt-cell-2); color: var(--tt-text); }
.tt-tile:active { transform: var(--tt-press); }
.tt-tile__icon { width: 44px; height: 44px; flex: none; border-radius: var(--tt-r-md); display: grid; place-items: center; color: #fff; background: #3a3a3a; }
.tt-tile__icon--accent { background: var(--tt-accent); }
.tt-tile__icon--accent-2 { background: var(--tt-accent-2); }

/* 4.17 Ranking (results) */
.tt-rank { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--tt-cell-2); color: var(--tt-label-2); }
.tt-rank--1 { background: var(--tt-accent); color: var(--tt-on-accent); }
.tt-rank--podium { background: var(--tt-accent-2-tint); color: var(--tt-accent-2); }
.tt-progress { height: 4px; border-radius: 2px; background: var(--tt-cell-2); overflow: hidden; margin-top: 5px; }
.tt-progress__bar { height: 100%; border-radius: 2px; background: var(--tt-accent-2); }
.tt-progress__bar--full { background: var(--tt-accent); }
.tt-metric { flex: none; min-width: 64px; text-align: right; }
.tt-metric__value { font-weight: 700; font-size: var(--tt-fs-callout); font-variant-numeric: tabular-nums; }
.tt-metric__flag { font-size: 11px; font-weight: 700; color: var(--tt-accent-text); }

/* 4.18 Avatar */
.tt-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--tt-accent), var(--tt-accent-2)); }
.tt-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tt-inline-stats { display: flex; gap: 10px; font-size: var(--tt-fs-caption); color: var(--tt-label-2); margin-top: 3px; }
.tt-inline-stats b { color: var(--tt-text); }

/* 4.19 CTA banner (before footer on every page) */
.tt-cta {
  border-radius: var(--tt-r-hero); padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(120deg, var(--tt-accent) 10%, var(--tt-accent-2) 100%);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; color: #fff;
}
.tt-cta__kicker { font-size: var(--tt-fs-sub); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.tt-cta__title { font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.tt-cta__text { font-size: clamp(15px, 1.5vw, 18px); }

/* 4.20 Footer */
.tt-footer { border-top: .5px solid var(--tt-sep); }
.tt-footer__inner { padding-block: 36px 28px; display: flex; flex-direction: column; gap: 28px; }
.tt-footer__cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 170px), 1fr)); }
.tt-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tt-footer__title { font-size: var(--tt-fs-sub); font-weight: 600; color: var(--tt-text); }
.tt-footer__col a { color: var(--tt-label-2); }
.tt-footer__col a:hover { color: var(--tt-text); }
.tt-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: .5px solid var(--tt-sep); font-size: var(--tt-fs-sub); color: var(--tt-label-3); }

/* 4.21 Map / media card */
.tt-media { width: 100%; height: 200px; object-fit: cover; background: var(--tt-cell-2); }
.tt-btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 5. RESPONSIVE ------------------------------------------------------------ */
/* Breakpoints: mobile < 700px · tablet 700–1023px · desktop ≥ 1024px */
.tt-only-mobile { display: none !important; }
.tt-only-wide   { display: none !important; }          /* ≥ 900px extras (e.g. type badge in event rows) */
@media (min-width: 900px) { .tt-only-wide { display: inline-flex !important; } }
@media (max-width: 699px) {
  .tt-only-desktop { display: none !important; }        /* desktop header */
  .tt-only-mobile  { display: revert !important; }
  .tt-header--compact.tt-only-mobile { display: block !important; }
  .tt-tabbar.tt-only-mobile { display: grid !important; }
  .tt-main { padding-bottom: var(--tt-tabbar-h); }      /* room for tab bar */
  .tt-pagehead .tt-back { display: none; }               /* back lives in compact header */
}
@media (hover: none) { .tt-card--interactive:hover, .tt-tile:hover, a.tt-row:hover { background: var(--tt-cell); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
