:root {
  --tv-navy-950: #0f263d;
  --tv-navy-900: #173653;
  --tv-blue-700: #275dab;
  --tv-blue-100: #eaf2fd;
  --tv-coral-500: #ff755f;
  --tv-surface: #ffffff;
  --tv-background: #f6f7f8;
  --tv-text: #172c40;
  --tv-text-muted: #637586;
  --tv-line: #dfe5eb;
  --tv-success: #18794e;
  --tv-warning: #9a6700;
  --tv-danger: #c9372c;
  --tv-info: #275dab;
  --tv-radius-sm: 7px;
  --tv-radius-md: 12px;
  --tv-shadow-raised: 0 16px 42px rgb(16 42 77 / 12%);
  --tv-focus-ring: 0 0 0 3px rgb(39 93 171 / 24%);
  --tv-header-height: 76px;
  --tv-mobile-header-height: 66px;
  --tv-mobile-cta-height: 76px;
  --tv-motion-fast: 160ms;
  --tv-motion-standard: 240ms;
  --tv-ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { color: var(--tv-text); overflow-wrap: anywhere; }

@media(max-width:800px){
  html,body{min-height:var(--tv-stable-vh,100svh)}
  body.tv-viewport-locked{height:var(--tv-stable-vh,100svh);overflow:hidden;overscroll-behavior:none}
}
button, a, input, select, textarea { touch-action: manipulation; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--tv-blue-700);
  outline-offset: 3px;
  box-shadow: var(--tv-focus-ring);
}

@media (max-width: 760px) {
  :where(button, [role="button"], input, select) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Modal isolation: an open layer owns all touch, pointer and scroll input. */
html:has(dialog[open]),
html:has(.filter-panel[aria-modal="true"]),
html:has(.send-modal:not([hidden])),
html:has(.mobile-menu.is-open) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body:has(dialog[open]),
body:has(.filter-panel[aria-modal="true"]),
body:has(.send-modal:not([hidden])),
body:has(.mobile-menu.is-open) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

dialog[open] { pointer-events: auto; }
dialog[open]::backdrop { pointer-events: auto; }
/* One alpha-PNG logo for every page; no recoloring or white-background blending. */
img[src*="tiverse-logo-transparent.png"]{object-fit:contain;filter:none!important;mix-blend-mode:normal!important;background:transparent!important}
