/* ═══════════════════════════════════════════════════════════════════
   VECWIRE — Editorial design system
   Dark default · Light mode · SVG logo · AI accent
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens (dark default) ─────────────────────────────── */
:root {
  /* Core backgrounds */
  --bg:            #0b1626;
  --bg-2:          #102033;
  --bg-3:          #152a42;
  --surface:       rgba(220,238,255,.06);
  --surface-2:     rgba(220,238,255,.1);
  --surface-3:     rgba(220,238,255,.16);

  /* Brand — amber */
  --vw-brand:      #f5a100;
  --vw-brand-dim:  rgba(245,161,0,.1);

  /* AI — indigo */
  --vw-ai:         #6366f1;
  --vw-ai-dim:     rgba(99,102,241,.12);
  --vw-ai-glow:    rgba(99,102,241,.25);

  /* Live — green */
  --vw-live:       #22c55e;
  --vw-live-dim:   rgba(34,197,94,.12);

  /* Compat aliases — used by news_premium.html and other templates */
  --brand:         #c49a2f;
  --violet:        #6366f1;
  --danger:        #f87171;

  /* Text */
  --text:          #e8f2ff;
  --text-2:        #c5d5e8;
  --muted:         #95a7bc;
  --muted-2:       #a9bbcf;

  /* Borders */
  --border:        rgba(170,198,227,.16);
  --border-2:      rgba(170,198,227,.24);
  --border-3:      rgba(170,198,227,.34);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.5);
  --shadow-md:     0 4px 20px rgba(0,0,0,.55);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.7);

  /* Layout */
  --nav-h:         60px;
  --ticker-h:      0px;
  --content-pad:   30px;

  /* Typography */
  --font-d:        'DM Sans', system-ui, sans-serif;
  --font-b:        'DM Sans', system-ui, sans-serif;
  --font-mono:     'DM Sans', system-ui, sans-serif;
}

/* ── Light mode overrides ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #f0ede5;
  --bg-2:          #e6e2d8;
  --bg-3:          #ffffff;
  --surface:       rgba(0,0,0,.03);
  --surface-2:     rgba(0,0,0,.06);
  --surface-3:     rgba(0,0,0,.1);

  --text:          #0b1220;
  --text-2:        #1f2937;
  --muted:         #4b5563;
  --muted-2:       #374151;

  --border:        rgba(0,0,0,.09);
  --border-2:      rgba(0,0,0,.14);
  --border-3:      rgba(0,0,0,.22);

  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.15);

  --brand:         #b8860b;
  --violet:        #4f46e5;
  --danger:        #dc2626;

  --vw-brand:      #d97706;
  --vw-brand-dim:  rgba(217,119,6,.1);
  --vw-ai:         #4f46e5;
  --vw-ai-dim:     rgba(79,70,229,.1);
  --vw-ai-glow:    rgba(79,70,229,.2);
  --vw-live:       #16a34a;
  --vw-live-dim:   rgba(22,163,74,.1);
}

/* ── 2. Reset + Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth theme transitions */
body,
#vw-nav {
  transition: background .25s, border-color .25s, color .25s;
}

/* Subtle radial gradient background (dark only) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,161,0,.05) 0%, transparent 50%);
}
[data-theme="light"] body::before {
  background-image: none;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.inlineVideo          { margin: 0 auto; }
.grecaptcha-badge     { visibility: hidden; }
#pw-oop-bottom_rail   { pointer-events: none; transform: scale(.9); }
div[id^='div-gpt-ad-']{ pointer-events: none; }

/* ── Glass utility ────────────────────────────────────────────────── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════════
   4. NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
#vw-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--nav-h);
  background: rgba(11,22,38,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.3);
}
[data-theme="light"] #vw-nav {
  background: rgba(240,237,229,.97);
}

.vw-nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-wrap: nowrap;
}

/* ── Logo ────────────────────────────────────────────────────────── */
.vw-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 6px;
}

.vw-logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.vw-wordmark {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.vw-wordmark span {
  color: var(--vw-brand);
}

.vw-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vw-ai-dim);
  border: 1px solid rgba(99,102,241,.25);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a5b4fc;
  flex-shrink: 0;
  line-height: 1;
}
.vw-ai-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vw-ai);
  box-shadow: 0 0 6px var(--vw-ai);
  animation: vw-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes vw-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* ── Separator ───────────────────────────────────────────────────── */
.vw-nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border-2);
  margin: 0 18px;
  flex-shrink: 0;
}

/* ── Topic chips ─────────────────────────────────────────────────── */
.vw-topics {
  display: flex;
  align-items: center;
  flex: 0 0 clamp(190px, 22vw, 280px);
  min-width: 160px;
  max-width: 300px;
}

.vw-topic {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s, background .12s;
  flex-shrink: 0;
  position: relative;
}
.vw-topic:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
[data-theme="light"] .vw-topic:hover {
  background: rgba(0,0,0,.05);
}

.vw-topic.is-active {
  color: var(--vw-brand) !important;
  font-weight: 700;
  position: relative;
}
.vw-topic.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--vw-brand);
  border-radius: 999px;
}

/* ── Nav right actions ───────────────────────────────────────────── */
.vw-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.vw-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-2);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  flex-shrink: 0;
}
.vw-btn-icon:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
}

/* Theme toggle */
#vw-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-2);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
#vw-theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
}

.vw-icon-moon { display: block; }
.vw-icon-sun  { display: none; }
[data-theme="light"] .vw-icon-moon { display: none; }
[data-theme="light"] .vw-icon-sun  { display: block; }

/* Language dropdown */
.vw-lang-select {
  height: 34px;
  min-width: 170px;
  padding: 0 34px 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  border: 1px solid var(--border);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all .14s;
}
.vw-lang-select:hover,
.vw-lang-select:focus {
  color: var(--text);
  border-color: var(--border-2);
  outline: none;
  background: var(--surface-2);
}

/* Topic dropdown */
.vw-topic-select {
  height: 36px;
  width: 100%;
  min-width: 0;
  padding: 0 36px 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all .14s;
}
.vw-topic-select:hover,
.vw-topic-select:focus {
  border-color: var(--border-2);
  outline: none;
  background: var(--surface-2);
}

/* Ghost button */
.vw-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .14s;
  white-space: nowrap;
}
.vw-btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: var(--border-2);
}
[data-theme="light"] .vw-btn-ghost:hover {
  background: rgba(0,0,0,.05);
}

/* Primary button */
.vw-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #0c1425;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  text-decoration: none;
  transition: opacity .14s, transform .14s;
  white-space: nowrap;
  cursor: pointer;
}
.vw-btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Logout button */
.vw-btn-logout {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .14s;
  white-space: nowrap;
}
.vw-btn-logout:hover {
  color: #f87171;
  border-color: rgba(248,113,113,.3);
  background: rgba(248,113,113,.05);
}

/* User pill */
.vw-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-2);
  transition: all .14s;
  white-space: nowrap;
}
[data-theme="light"] .vw-user-pill {
  background: rgba(0,0,0,.05);
}
.vw-user-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.vw-user-pill:hover {
  background: rgba(255,255,255,.09);
}
[data-theme="light"] .vw-user-pill:hover {
  background: rgba(0,0,0,.08);
}

/* Hamburger */
.vw-hamburger {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   5. MOBILE MENU
   ═══════════════════════════════════════════════════════════════════ */
#vw-mobile-menu {
  position: fixed;
  top: calc(var(--ticker-h) + var(--nav-h));
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(11,22,38,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 8px;
  display: none;
}
[data-theme="light"] #vw-mobile-menu {
  background: rgba(240,237,229,.98);
}

.vw-mobile-actions {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.vw-mobile-actions .vw-btn-ghost,
.vw-mobile-actions .vw-btn-primary,
.vw-mobile-actions .vw-user-pill,
.vw-mobile-actions .vw-btn-logout {
  display: inline-flex;
}

/* ═══════════════════════════════════════════════════════════════════
   6. PAGE LAYOUT  (2-col grid)
   ═══════════════════════════════════════════════════════════════════ */
.vw-layout {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.vw-layout-main {
  padding: var(--content-pad);
  min-height: calc(100vh - var(--nav-h) - var(--ticker-h));
}

.vw-layout-side {
  padding: 24px 0;
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 12px);
  max-height: calc(100vh - var(--nav-h) - var(--ticker-h) - 24px);
  overflow-y: auto;
  scrollbar-width: none;
}
.vw-layout-side::-webkit-scrollbar { display: none; }
[data-theme="light"] .vw-layout-side {
  padding: 24px 0;
  border-left: none;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 900px) {
  .vw-layout {
    grid-template-columns: 1fr;
  }
  .vw-layout-side {
    position: static;
    max-height: none;
    padding: 0 0 24px;
  }
  .vw-layout-main {
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   7. AUTH LAYOUT  (login · register)
   ═══════════════════════════════════════════════════════════════════ */
.vw-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.vw-main-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.vw-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vw-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vw-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Hero section */
.vw-hero {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.vw-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vw-brand);
  margin-bottom: 8px;
}
.vw-hero-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
}
.vw-hero-sub {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
}

.text-grad {
  background: linear-gradient(135deg, #fde68a 0%, #f5a100 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #fde68a;
}

/* ═══════════════════════════════════════════════════════════════════
   8. FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */
.field-wrap { position: relative; }

.field {
  width: 100%;
  height: 50px;
  padding: 16px 14px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="light"] .field {
  background: rgba(255,255,255,.7);
}
.field::placeholder { color: transparent; }
.field:focus {
  border-color: var(--vw-ai);
  box-shadow: 0 0 0 3px var(--vw-ai-dim);
}

.float-label {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--muted-2);
  pointer-events: none;
  transition: all .14s ease;
  font-size: 13px;
}
.field:focus + .float-label,
.field:not(:placeholder-shown) + .float-label {
  top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--vw-ai);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s;
}
.btn-primary {
  color: #0c1425;
  background: linear-gradient(135deg, #fbbf24 0%, #f5a100 50%, #fbbf24 100%);
  background-size: 200% 100%;
  box-shadow: 0 4px 18px rgba(245,161,0,.22);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 6px 24px rgba(245,161,0,.32);
  transform: translateY(-1px);
}

.pw-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}
[data-theme="light"] .pw-bar {
  background: rgba(0,0,0,.08);
}
.pw-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width .25s, background .25s;
}
.pw-text {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 4px;
  min-height: 16px;
}

.error-box {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 16px;
}
[data-theme="light"] .error-box {
  background: rgba(220,38,38,.07);
  color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════════
   9. HOMEPAGE FEED  — Bloomberg editorial cards
   ═══════════════════════════════════════════════════════════════════ */

/* Container + layout utilities */
.homeContainer {
  background: var(--bg) !important;
  position: relative;
  z-index: 1;
}

.u-maxWidth1032 {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

.extreme-container12col {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

.extreme-container8col {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 28px 0;
}

.extreme-container4col {
  width: 280px;
  flex-shrink: 0;
}

/* Sticky sidebar */
.extremeSidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 12px);
}

/* Flex utilities */
.u-flex                       { display: flex; }
.u-flex1                      { flex: 1; min-width: 0; }
.u-flex0                      { flex-shrink: 0; }
.u-minWidth0                  { min-width: 0; }
.u-width100pct                { width: 100%; }
.u-flexColumn                 { flex-direction: column; }
.u-alignItemsCenter           { align-items: center; }
.u-flexCenter                 { display: flex; align-items: center; }
.u-flexTop                    { display: flex; align-items: flex-start; }
.u-justifyContentSpaceBetween { justify-content: space-between; }
.u-noWrapWithEllipsis         { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-borderBox                  { box-sizing: border-box; }
.u-textAlignLeft              { text-align: left; }
.u-marginTop48                { margin-top: 24px; }
.u-marginBottom48             { margin-bottom: 0; }
.u-paddingRight24             { padding-right: 32px; }
.u-backgroundGrayLightest     { background: transparent !important; border: none !important; }
.u-heightInherit              { height: inherit; }

.js-directEmailSignupContainer {
  padding: 12px 0 16px;
}

/* Search input */
.textInput {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 16px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  width: 260px;
  transition: border-color .15s, box-shadow .15s;
}
.textInput:focus {
  border-color: var(--vw-ai);
  box-shadow: 0 0 0 3px var(--vw-ai-dim);
}
.textInput::placeholder { color: var(--muted); }

/* ── Article cards — Bloomberg editorial / divider style ─────────── */
.extremePostPreview {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background .15s, padding .15s;
}
.extremePostPreview::before {
  content: '';
  position: absolute;
  left: -16px; right: -16px;
  top: 0; bottom: 0;
  background: var(--surface);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.extremePostPreview:hover::before { opacity: 1; }

.extremePostPreview-post {
  flex: 1;
  min-width: 0;
}

.extremePostPreview-image {
  width: 130px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.extremePostPreview-image a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .35s;
}
.extremePostPreview:hover .extremePostPreview-image a {
  transform: scale(1.04);
}

/* Card typography */
.ui-h2 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  transition: color .12s;
  text-decoration: none;
  display: block;
}
.ui-h2:hover { color: var(--vw-brand); }

.ui-summary {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.ui-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
}
.ui-caption a {
  color: inherit;
  text-decoration: none;
  transition: color .12s;
}
.ui-caption a:hover { color: var(--vw-brand); }

.ui-clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Topic badge / tag ───────────────────────────────────────────── */
.ui-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--vw-brand-dim);
  color: var(--vw-brand);
  border: 1px solid rgba(245,161,0,.15);
  text-decoration: none;
  transition: all .12s;
  white-space: nowrap;
}
.ui-tag:hover {
  background: rgba(245,161,0,.18);
  color: var(--vw-brand);
}

/* ── Stream item heading ─────────────────────────────────────────── */
.streamItem--heading {
  padding: 20px 0 8px;
}

.streamItem--heading .ui-h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   10. SIDEBAR COMPONENTS  (news feed side panel)
   ═══════════════════════════════════════════════════════════════════ */
.extremeSidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.js-sidebar { /* intentionally empty */ }

.u-marginTop30   { margin-top: 24px; }
.u-marginAuto    { margin: 0 auto; }
.u-maxWidth740   { max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   11. LOADING BAR
   ═══════════════════════════════════════════════════════════════════ */
.loadingBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vw-ai), var(--vw-brand));
  z-index: 9999;
  width: 0;
  transition: width .3s ease;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   12. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */

/* Scrollbar styling for dark mode */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Focus ring reset for non-keyboard users */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--vw-ai); outline-offset: 2px; }

/* Selection */
::selection {
  background: rgba(99,102,241,.25);
  color: var(--text);
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── cp-shell: the "content pad shell" trick ──────────────────────
   news_premium.html uses margin: -30px (= -var(--content-pad))
   to bleed the copilot section edge-to-edge within the padded col */
/* (no override needed — just preserve --content-pad: 30px above) */

/* ═══════════════════════════════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .vw-topics          { display: none; }
  .vw-nav-sep         { display: none; }
  .vw-hamburger       { display: inline-flex; }
  .vw-nav-actions #vw-theme-toggle,
  .vw-nav-actions .vw-lang-select,
  .vw-nav-actions .vw-btn-ghost,
  .vw-nav-actions .vw-btn-primary,
  .vw-nav-actions .vw-user-pill,
  .vw-nav-actions .vw-btn-logout { display: none; }
  .vw-nav-actions { margin-left: auto; }

  /* Hide sidebar col on mobile */
  .extreme-container4col.extreme-10colHide { display: none; }

  .extreme-container8col {
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .vw-ai-badge { display: none; }

  .extreme-container12col,
  .u-maxWidth1032 {
    padding: 0 16px;
  }

  .extremePostPreview-image {
    width: 90px;
    height: 60px;
  }

  .ui-h2 {
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .vw-page {
    grid-template-columns: 1fr;
    padding: 24px 0 40px;
  }
  .vw-main-card {
    padding: 24px 20px;
  }
}
