/* ==========================================================================
   visa2travel.news -- "Traveller's Desk" design system
   Palette: navy/blue ink with a single azure accent. Amber/green/red are
   semantic only (impact + alerts) and are never used decoratively.
   Type: Sora (display) / IBM Plex Sans (body+UI) / IBM Plex Mono (data,
   timestamps, counts) -- self-hosted bundle already loaded by v2t-fonts.
   ========================================================================== */

:root {
  /* -- brand ink scale -- */
  --ink-950: #0a1c33;
  --ink-900: #0f2a4a;
  --ink-800: #15355c;
  --ink-700: #1c4270;

  /* -- accent -- */
  --blue-600: #1c5fe0;
  --blue-500: #3b76ea;
  --azure: #0ea5e9;

  /* -- vibrant accent gradient (hero, active states, premium highlights) -- */
  --vibrant-1: #4f46e5;
  --vibrant-2: #7c3aed;
  --vibrant-3: #db2777;
  --vibrant-gradient: linear-gradient(120deg, var(--vibrant-1), var(--vibrant-2) 55%, var(--vibrant-3));
  --vibrant-glow: 0 4px 18px rgba(124, 58, 237, 0.28);

  /* -- semantic (impact / alerts only, spend sparingly) -- */
  --amber-600: #d97706;
  --amber-100: #fef3e2;
  --green-600: #16a34a;
  --green-100: #eafaf0;
  --red-600: #dc2626;
  --red-100: #fdecec;

  /* -- topic palette: one vibrant hue per news category, used only for the
     small category badge on each feed row so topics are scannable at a
     glance. Light bg + saturated text in light mode; inverted in dark. -- */
  --topic-news-bg: #dbeafe;      --topic-news-text: #1d4ed8;
  --topic-airline-bg: #e0e7ff;   --topic-airline-text: #4338ca;
  --topic-hotel-bg: #ffe4e6;     --topic-hotel-text: #be123c;
  --topic-immigration-bg: #ccfbf1; --topic-immigration-text: #0f766e;
  --topic-visa-bg: #ffedd5;      --topic-visa-text: #c2410c;
  --topic-passport-bg: #f3e8ff;  --topic-passport-text: #7e22ce;
  --topic-tourism-bg: #d1fae5;   --topic-tourism-text: #047857;
  --topic-events-bg: #fae8ff;    --topic-events-text: #a21caf;
  --topic-rail-bg: #cffafe;      --topic-rail-text: #0e7490;
  --topic-car-bg: #fef9c3;       --topic-car-text: #a16207;
  --topic-tour-op-bg: #e0f2fe;   --topic-tour-op-text: #0369a1;
  --topic-cruise-bg: #ecfccb;    --topic-cruise-text: #4d7c0f;
  --topic-alerts-bg: #fee2e2;    --topic-alerts-text: #b91c1c;
  --topic-tech-bg: #f3e8ff;      --topic-tech-text: #9333ea;

  /* -- light theme surfaces -- */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #eef1f7;
  --border: #e1e7f0;
  --border-strong: #cbd5e3;
  --text: #101a2c;
  --text-muted: #5b6b84;
  --text-faint: #8b98ab;
  --shadow: 0 1px 2px rgba(16, 26, 44, 0.04), 0 8px 24px rgba(16, 26, 44, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 26, 44, 0.06);

  /* -- layout -- */
  --sidebar-l-w: 236px;
  --sidebar-r-w: 308px;
  --header-h: 64px;
  --toolbar-h: 52px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* -- type -- */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08111e;
    --surface: #0e1a2c;
    --surface-raised: #132238;
    --surface-sunken: #0a1626;
    --border: #1e2f47;
    --border-strong: #2a3f5c;
    --text: #e7edf6;
    --text-muted: #93a3ba;
    --text-faint: #61708a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --amber-100: #2c1f0c;
    --green-100: #0f2a1a;
    --red-100: #2c1414;

    --topic-news-bg: #0c2a52;      --topic-news-text: #93c5fd;
    --topic-airline-bg: #1e1b4b;   --topic-airline-text: #a5b4fc;
    --topic-hotel-bg: #4c0519;     --topic-hotel-text: #fda4af;
    --topic-immigration-bg: #042f2e; --topic-immigration-text: #5eead4;
    --topic-visa-bg: #431407;      --topic-visa-text: #fdba74;
    --topic-passport-bg: #2e1065;  --topic-passport-text: #d8b4fe;
    --topic-tourism-bg: #022c22;   --topic-tourism-text: #6ee7b7;
    --topic-events-bg: #4a044e;    --topic-events-text: #f0abfc;
    --topic-rail-bg: #083344;      --topic-rail-text: #67e8f9;
    --topic-car-bg: #422006;       --topic-car-text: #fde047;
    --topic-tour-op-bg: #082f49;   --topic-tour-op-text: #7dd3fc;
    --topic-cruise-bg: #1a2e05;    --topic-cruise-text: #bef264;
    --topic-alerts-bg: #450a0a;    --topic-alerts-text: #fca5a5;
    --topic-tech-bg: #2e1065;      --topic-tech-text: #d8b4fe;
  }
}

:root[data-theme="dark"] {
  --bg: #08111e;
  --surface: #0e1a2c;
  --surface-raised: #132238;
  --surface-sunken: #0a1626;
  --border: #1e2f47;
  --border-strong: #2a3f5c;
  --text: #e7edf6;
  --text-muted: #93a3ba;
  --text-faint: #61708a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --amber-100: #2c1f0c;
  --green-100: #0f2a1a;
  --red-100: #2c1414;

  --topic-news-bg: #0c2a52;      --topic-news-text: #93c5fd;
  --topic-airline-bg: #1e1b4b;   --topic-airline-text: #a5b4fc;
  --topic-hotel-bg: #4c0519;     --topic-hotel-text: #fda4af;
  --topic-immigration-bg: #042f2e; --topic-immigration-text: #5eead4;
  --topic-visa-bg: #431407;      --topic-visa-text: #fdba74;
  --topic-passport-bg: #2e1065;  --topic-passport-text: #d8b4fe;
  --topic-tourism-bg: #022c22;   --topic-tourism-text: #6ee7b7;
  --topic-events-bg: #4a044e;    --topic-events-text: #f0abfc;
  --topic-rail-bg: #083344;      --topic-rail-text: #67e8f9;
  --topic-car-bg: #422006;       --topic-car-text: #fde047;
  --topic-tour-op-bg: #082f49;   --topic-tour-op-text: #7dd3fc;
  --topic-cruise-bg: #1a2e05;    --topic-cruise-text: #bef264;
  --topic-alerts-bg: #450a0a;    --topic-alerts-text: #fca5a5;
  --topic-tech-bg: #2e1065;      --topic-tech-text: #d8b4fe;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2t-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
.v2t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------------------------------------------------- masthead */
.v2t-masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: var(--ink-950);
  color: #eef3fb;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v2t-masthead__hamburger {
  display: none;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: #cfe0fb;
}
.v2t-masthead__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.v2t-masthead__brand-mark {
  color: var(--azure);
}
.v2t-masthead__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #fff;
}
.v2t-masthead__brand-text span { color: var(--azure); font-weight: 500; }
.v2t-masthead__search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 36px;
  color: #cfe0fb;
}
.v2t-masthead__search:focus-within { border-color: var(--azure); background: rgba(255,255,255,0.12); }
.v2t-masthead__search input {
  flex: 1;
  background: none;
  border: 0;
  color: #fff;
  height: 34px;
  outline: none;
}
.v2t-masthead__search input::placeholder { color: #7f93b3; }
.v2t-masthead__spacer { flex: 1; }
.v2t-masthead__country {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbe6fa;
  font-size: 13px;
  background: transparent;
}
.v2t-masthead__country:hover { background: rgba(255,255,255,0.06); }
.v2t-masthead__actions { display: flex; align-items: center; gap: 6px; }
.v2t-masthead__icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: #cfe0fb;
  position: relative;
}
.v2t-masthead__icon-btn:hover { background: rgba(255,255,255,0.08); }
.v2t-masthead__icon-btn .v2t-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-600);
}
.v2t-alerts { position: relative; }
.v2t-alerts__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 60;
  color: var(--text);
}
.v2t-alerts__title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 8px; }
.v2t-alerts__list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.v2t-alerts__item { display: flex; gap: 9px; align-items: flex-start; padding: 8px 6px; border-radius: var(--radius-sm); }
.v2t-alerts__item:hover { background: var(--surface-sunken); }
.v2t-alerts__item-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--text-faint); }
.v2t-alerts__item-dot[data-impact="tightening"] { background: var(--amber-600); }
.v2t-alerts__item-dot[data-impact="easing"] { background: var(--green-600); }
.v2t-alerts__item-body { min-width: 0; }
.v2t-alerts__item-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.v2t-alerts__item:hover .v2t-alerts__item-title { color: var(--vibrant-2); }
.v2t-alerts__item-meta { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; font-family: var(--font-mono); }
.v2t-alerts__viewall { display: block; text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--vibrant-2); }
.v2t-alerts__viewall:hover { color: var(--vibrant-3); }
.v2t-alerts__empty { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

.v2t-masthead__signin {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--vibrant-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.v2t-masthead__signin:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(219, 39, 119, 0.4); }

/* ------------------------------------------------------------- app shell */
.v2t-app__body {
  display: grid;
  grid-template-columns: var(--sidebar-l-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}
.v2t-app__body.has-right-rail {
  grid-template-columns: var(--sidebar-l-w) minmax(0, 1fr) var(--sidebar-r-w);
}

/* ------------------------------------------------------------- sidebar-l */
.v2t-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 12px 24px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.v2t-sidebar__logo { display: none; } /* logo now lives in masthead */
.v2t-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.v2t-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}
.v2t-sidebar__link:hover { background: var(--surface-sunken); color: var(--text); }
.v2t-sidebar__link.is-active { background: var(--vibrant-gradient); color: #fff; box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3); }
.v2t-sidebar__link.is-active .v2t-sidebar__icon { color: #fff; }
.v2t-sidebar__icon { display: flex; color: var(--text-faint); flex-shrink: 0; }
.v2t-sidebar__section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 18px 10px 6px;
}
.v2t-sidebar__group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.v2t-sidebar__group summary::-webkit-details-marker { display: none; }
.v2t-sidebar__group summary:hover { background: var(--surface-sunken); color: var(--text); }
.v2t-sidebar__group summary::after {
  content: '';
  width: 7px; height: 7px;
  margin-left: auto;
  border-right: 1.6px solid var(--text-faint);
  border-bottom: 1.6px solid var(--text-faint);
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.v2t-sidebar__group[open] summary::after { transform: rotate(45deg); }
.v2t-sidebar__sublist {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px 34px;
}
.v2t-sidebar__sublist a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.v2t-sidebar__sublist a:hover { background: var(--surface-sunken); color: var(--text); }
.v2t-sidebar__sublist a.is-active { color: var(--vibrant-2); font-weight: 700; }
.v2t-sidebar__sublist a span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.v2t-sidebar__account {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2t-sidebar__user { font-size: 13px; font-weight: 600; padding: 4px 10px; }
.v2t-sidebar__account-link { padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); }
.v2t-sidebar__account-link:hover { background: var(--surface-sunken); }
.v2t-sidebar__account-link--primary { color: var(--vibrant-2); font-weight: 700; }

/* -------------------------------------------------------------- main col */
.v2t-main { min-width: 0; display: flex; flex-direction: column; }
.v2t-main__content { padding: 0 24px 48px; }

/* ------------------------------------------------------------------ hero */
.v2t-hero {
  margin: 20px 0 22px;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(219, 39, 119, 0.35), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(14, 165, 233, 0.3), transparent 55%),
    linear-gradient(135deg, var(--ink-950), var(--vibrant-1) 130%);
  color: #f2f6fc;
  box-shadow: var(--vibrant-glow);
}
.v2t-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 10px;
}
.v2t-hero__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 680px;
}
.v2t-hero__subtitle {
  margin-top: 8px;
  color: #b9c8e0;
  font-size: 14px;
  max-width: 620px;
}
.v2t-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.v2t-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #dce8fb;
  font-size: 12.5px;
  font-weight: 500;
}
.v2t-chip:hover { background: rgba(255,255,255,0.15); }
.v2t-chip.is-active { background: var(--vibrant-gradient); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(219, 39, 119, 0.35); }

/* --------------------------------------------------------------- toolbar */
.v2t-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--toolbar-h);
  padding: 0 2px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.v2t-toolbar__pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.v2t-toolbar__pills::-webkit-scrollbar { display: none; }
.v2t-pill {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}
.v2t-pill:hover { border-color: var(--vibrant-2); color: var(--vibrant-2); }
.v2t-pill.is-active { background: var(--vibrant-gradient); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3); }
.v2t-toolbar__selects { display: flex; gap: 8px; flex-shrink: 0; }
.v2t-topbar__select, .v2t-toolbar__select {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
}
.v2t-toolbar__search-form { display: none; }

/* -------------------------------------------------------------- feed row */
.v2t-feed__header { padding: 18px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.v2t-feed__heading { font-size: 20px; font-weight: 700; }
.v2t-feed__subheading { color: var(--text-muted); font-size: 13.5px; margin: 4px 0 0; flex-basis: 100%; }
.v2t-feed__count { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin: 0; }
.v2t-feed__empty { padding: 40px 0; color: var(--text-muted); text-align: center; }
.v2t-follow {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.v2t-follow.is-following { background: var(--vibrant-gradient); border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3); }

.v2t-feed__list { display: flex; flex-direction: column; gap: 10px; }

.v2t-row[hidden] {
  display: none !important;
}

.v2t-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.v2t-row:hover { border-color: var(--vibrant-2); box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12); transform: translateY(-1px); }
.v2t-row__dot {
  margin-top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.v2t-row[data-impact="tightening"] .v2t-row__dot { background: var(--amber-600); }
.v2t-row[data-impact="easing"] .v2t-row__dot { background: var(--green-600); }
.v2t-row__main { min-width: 0; }
.v2t-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.v2t-row__source-avatar {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--ink-800);
  color: #cfe0fb;
  font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v2t-row__source { font-weight: 600; font-size: 12.5px; color: var(--text-muted); }
.v2t-row__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.v2t-row__badge--category { background: var(--topic-news-bg); color: var(--topic-news-text); text-transform: none; font-weight: 700; transition: transform 0.12s; }
.v2t-row__badge--category:hover { transform: translateY(-1px); }
.v2t-row__badge--category[href*="/topic/airline/"] { background: var(--topic-airline-bg); color: var(--topic-airline-text); }
.v2t-row__badge--category[href*="/topic/hotel/"] { background: var(--topic-hotel-bg); color: var(--topic-hotel-text); }
.v2t-row__badge--category[href*="/topic/immigration/"] { background: var(--topic-immigration-bg); color: var(--topic-immigration-text); }
.v2t-row__badge--category[href*="/topic/visa/"] { background: var(--topic-visa-bg); color: var(--topic-visa-text); }
.v2t-row__badge--category[href*="/topic/passport/"] { background: var(--topic-passport-bg); color: var(--topic-passport-text); }
.v2t-row__badge--category[href*="/topic/tourism/"] { background: var(--topic-tourism-bg); color: var(--topic-tourism-text); }
.v2t-row__badge--category[href*="/topic/events/"] { background: var(--topic-events-bg); color: var(--topic-events-text); }
.v2t-row__badge--category[href*="/topic/rail/"] { background: var(--topic-rail-bg); color: var(--topic-rail-text); }
.v2t-row__badge--category[href*="/topic/car-rental/"] { background: var(--topic-car-bg); color: var(--topic-car-text); }
.v2t-row__badge--category[href*="/topic/tour-operator/"] { background: var(--topic-tour-op-bg); color: var(--topic-tour-op-text); }
.v2t-row__badge--category[href*="/topic/cruise-news/"] { background: var(--topic-cruise-bg); color: var(--topic-cruise-text); }
.v2t-row__badge--category[href*="/topic/travel-alerts/"] { background: var(--topic-alerts-bg); color: var(--topic-alerts-text); }
.v2t-row__badge--category[href*="/topic/travel-technology/"] { background: var(--topic-tech-bg); color: var(--topic-tech-text); }
.v2t-row__badge--tightening { background: var(--amber-100); color: var(--amber-600); }
.v2t-row__badge--easing { background: var(--green-100); color: var(--green-600); }
.v2t-row__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.v2t-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.v2t-tag:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-sunken); }
.v2t-tag--country { color: var(--vibrant-1); border-color: rgba(79,70,229,0.28); background: rgba(79,70,229,0.07); font-weight: 700; }

.v2t-row__title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; color: var(--text); }
.v2t-row__title a:hover { color: var(--vibrant-2); }
.v2t-row__summary { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0 0 8px; max-width: 68ch; }

.v2t-row__footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2t-row__votes { display: flex; gap: 6px; }
.v2t-vote {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.v2t-vote:hover { border-color: var(--border-strong); }
.v2t-vote[data-vote-type="tightening"].is-active { background: var(--amber-100); border-color: var(--amber-600); color: var(--amber-600); box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25); }
.v2t-vote[data-vote-type="easing"].is-active { background: var(--green-100); border-color: var(--green-600); color: var(--green-600); box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25); }
.v2t-vote__count { font-family: var(--font-mono); }

.v2t-row__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.v2t-row__action {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
}
.v2t-row__action:hover { background: var(--surface-sunken); color: var(--text); }
.v2t-row__action.is-saved { color: var(--blue-600); }
.v2t-row__action--source { width: auto; padding: 0 8px; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }

.v2t-row__time { grid-column: 3; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; padding-top: 2px; }

.v2t-load-more {
  margin: 18px auto 0;
  display: block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.v2t-load-more:hover { border-color: var(--vibrant-2); color: var(--vibrant-2); box-shadow: 0 2px 10px rgba(124, 58, 237, 0.18); }
.v2t-load-more.is-loading { opacity: 0.6; pointer-events: none; }

/* ---------------------------------------------------------- right sidebar */
.v2t-sidebar-right {
  border-left: 1px solid var(--border);
  padding: 20px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.v2t-widget__title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.v2t-widget__list { display: flex; flex-direction: column; gap: 2px; }
.v2t-trend-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.v2t-trend-item:last-child { border-bottom: none; }
.v2t-trend-item__rank { font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; width: 14px; flex-shrink: 0; font-weight: 700; }
.v2t-trend-item:nth-child(1) .v2t-trend-item__rank { color: #d97706; }
.v2t-trend-item:nth-child(2) .v2t-trend-item__rank { color: #64748b; }
.v2t-trend-item:nth-child(3) .v2t-trend-item__rank { color: #b45309; }
.v2t-trend-item__label { flex: 1; color: var(--text); font-weight: 500; }
.v2t-trend-item:hover .v2t-trend-item__label { color: var(--vibrant-2); }
.v2t-trend-item__count { font-family: var(--font-mono); color: var(--text-faint); font-size: 11.5px; }

.v2t-alert-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.v2t-alert-item:last-child { border-bottom: none; }
.v2t-alert-item__title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.v2t-alert-item:hover .v2t-alert-item__title { color: var(--vibrant-2); }
.v2t-alert-item__meta { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; font-family: var(--font-mono); }

.v2t-source-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.v2t-source-item__name { color: var(--text); font-weight: 500; }
.v2t-source-item__count { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

.v2t-newsletter {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 16px;
}
.v2t-newsletter__title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.v2t-newsletter__copy { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; }
.v2t-newsletter__form { display: flex; flex-direction: column; gap: 8px; }
.v2t-newsletter__form input {
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.v2t-newsletter__form button {
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--vibrant-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.v2t-newsletter__form button:hover { box-shadow: 0 3px 12px rgba(219, 39, 119, 0.4); }
.v2t-newsletter__msg { font-size: 12px; margin: 0; }
.v2t-newsletter__msg.is-error { color: var(--red-600); }
.v2t-newsletter__msg.is-success { color: var(--green-600); }

/* ------------------------------------------------------- destination row */
.v2t-destinations { margin: 8px 0 28px; }
.v2t-destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.v2t-destination {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.v2t-destination:hover { border-color: var(--vibrant-2); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.14); transform: translateY(-1px); }
.v2t-destination__name { font-weight: 700; font-size: 14px; }
.v2t-destination__count { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }

.v2t-trending-strip { margin: 6px 0 24px; display: flex; align-items: center; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.v2t-trending-strip__label { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.v2t-trending-strip a.v2t-chip { flex-shrink: 0; background: var(--surface); border-color: var(--border); color: var(--text-muted); }
.v2t-trending-strip a.v2t-chip:hover { border-color: var(--vibrant-2); color: var(--vibrant-2); }

/* -------------------------------------------------------------- footer */
.v2t-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 24px 20px;
  margin-top: 12px;
}
.v2t-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 22px;
}
.v2t-footer__col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 10px; }
.v2t-footer__col a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-muted); }
.v2t-footer__col a:hover { color: var(--vibrant-2); }
.v2t-footer__disclaimer {
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.v2t-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.v2t-footer__social { display: flex; gap: 8px; }
.v2t-footer__social a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-faint); }
.v2t-footer__social a:hover { background: var(--surface-sunken); color: var(--vibrant-2); }
.v2t-footer__copy { color: var(--text-faint); font-size: 12px; margin-left: auto; }

/* --------------------------------------------------------- mobile drawer */
.v2t-drawer-scrim { display: none; position: fixed; inset: 0; background: rgba(8,17,30,0.5); z-index: 45; }
.v2t-bottom-nav { display: none; }

/* --------------------------------------------------------- theme toggle */
.v2t-theme-toggle { position: relative; }
.v2t-theme-toggle .v2t-theme-icon--dark { display: none; }
:root[data-theme="dark"] .v2t-theme-toggle .v2t-theme-icon--light { display: none; }
:root[data-theme="dark"] .v2t-theme-toggle .v2t-theme-icon--dark { display: block; }

/* ================================================================ mobile */
@media (max-width: 1180px) {
  .v2t-app__body.has-right-rail { grid-template-columns: var(--sidebar-l-w) minmax(0, 1fr); }
  .v2t-sidebar-right { display: none; }
}

@media (max-width: 900px) {
  .v2t-masthead__hamburger { display: flex; }
  .v2t-masthead__country { display: none; }
  .v2t-masthead__search { max-width: none; }

  .v2t-app__body, .v2t-app__body.has-right-rail { grid-template-columns: minmax(0, 1fr); }
  .v2t-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    width: 260px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: 18px;
    box-shadow: var(--shadow);
  }
  body.v2t-drawer-open .v2t-sidebar { transform: translateX(0); }
  body.v2t-drawer-open .v2t-drawer-scrim { display: block; }

  .v2t-main__content { padding: 0 14px 84px; }
  .v2t-hero { padding: 20px 18px; margin: 14px 0; }
  .v2t-row { grid-template-columns: 16px 1fr; }
  .v2t-row__time { grid-column: 2; padding-top: 0; }
  .v2t-row__dot { margin-top: 5px; }

  .v2t-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .v2t-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-faint);
    padding: 4px 0;
  }
  .v2t-bottom-nav a.is-active { color: var(--blue-600); }
}

@media (max-width: 560px) {
  .v2t-footer__grid { grid-template-columns: 1fr 1fr; }
}


/* -------------------------------------------------- welcome popup */
.v2t-welcome-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.v2t-welcome-modal[hidden] { display: none !important; }
.v2t-welcome-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 15, 30, 0.55); backdrop-filter: blur(2px); animation: v2tWelcomeFade 0.25s ease; }
.v2t-welcome-modal__panel { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--base-3); border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 15, 30, 0.35), var(--vibrant-glow); animation: v2tWelcomePop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes v2tWelcomeFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v2tWelcomePop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.v2t-welcome-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.06); color: var(--contrast); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.v2t-welcome-modal__close:hover { background: rgba(0, 0, 0, 0.12); transform: rotate(90deg); }
.v2t-welcome-modal__header { background: var(--vibrant-gradient); padding: 28px 28px 22px; border-radius: 18px 18px 0 0; text-align: center; color: #fff; }
.v2t-welcome-modal__logo { display: block; margin: 0 auto 14px; height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)); background: #fff; padding: 6px 12px; border-radius: 10px; }
.v2t-welcome-modal__header h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.v2t-welcome-modal__subtitle { margin: 0; font-size: 0.85rem; opacity: 0.92; }
.v2t-welcome-modal__list { list-style: none; margin: 0; padding: 6px 14px; display: flex; flex-direction: column; gap: 4px; }
.v2t-welcome-modal__item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; transition: background 0.15s; }
.v2t-welcome-modal__item:hover { background: var(--base-2); }
.v2t-welcome-modal__item .v2t-welcome-modal__badge { flex-shrink: 0; font-size: 0.68rem; padding: 4px 9px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.v2t-welcome-modal__item-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.v2t-welcome-modal__item-title { font-size: 0.88rem; font-weight: 600; color: var(--contrast); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2t-welcome-modal__item-link:hover .v2t-welcome-modal__item-title { color: var(--vibrant-2); }
.v2t-welcome-modal__item-time { font-size: 0.72rem; color: var(--contrast-2); }
.v2t-welcome-modal__cta { display: block; margin: 14px; padding: 12px 16px; text-align: center; border-radius: 10px; background: var(--vibrant-gradient); color: #fff; font-weight: 700; font-size: 0.88rem; text-decoration: none; box-shadow: var(--vibrant-glow); transition: transform 0.15s; }
.v2t-welcome-modal__cta:hover { transform: translateY(-1px); }
@media (max-width: 480px) { .v2t-welcome-modal__panel { max-width: 100%; } .v2t-welcome-modal__header { padding: 24px 20px 18px; } }