/* ══════════════════════════════════════════════════════════════
   new-cards.css
   Self-contained styles for the two timeline card types used in
   new-cards.html:
     • card--news-v2 card--news-v2-timeline  (News / editorial)
     • card--news-v2 card--news-v2-timeline  (Career Move / jobs)
   Covers: reset, font-face, design tokens, buttons, vote group,
           account logo, company row, job entity, insight tiles,
           timeline rail, stakeholder footer, source btn.
   Does NOT include sidebar, filter bar, or other card variants.
   ══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'Polymath';
  src: url('../assets/fonts/polymath-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Polymath';
  src: url('../assets/fonts/polymath-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Polymath';
  src: url('../assets/fonts/polymath-bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

/* ── Design tokens (dark mode defaults) ── */
:root {
  /* Brand purples */
  --color-purple:        #845CFF;
  --color-purple-soft:   #B59DFF;
  --color-purple-mist:   #CEBEFF;
  --color-purple-wash:   #E6DEFF;
  --color-purple-deep:   #6F00FF;
  --color-purple-depth:  #4F3799;
  --color-purple-night:  #352566;

  /* Accent & sand */
  --color-peach:         #FFA182;
  --color-sand:          #FDDC98;
  --color-sand-soft:     #FEE9BE;
  --color-sand-mist:     #FEF3D9;
  --color-sand-wash:     #FFFAEE;
  --color-sand-light:    #fee9be;
  --color-cream:         #FEFBF4;
  --color-cream-light:   #FFFDF8;

  /* Neutral scale (dark) */
  --neutral-50:   #FEFBF4;
  --neutral-100:  #F5F5F5;
  --neutral-200:  #E5E5E5;
  --neutral-300:  #D4D4D4;
  --neutral-400:  #A3A3A3;
  --neutral-500:  #737373;
  --neutral-600:  #525252;
  --neutral-700:  #404040;
  --neutral-800:  #262626;
  --neutral-900:  #171717;
  --neutral-950:  #0A0A0A;

  /* Composites */
  --neutral-surface-hover:       color-mix(in srgb, var(--neutral-800) 70%, var(--neutral-700) 30%);
  --neutral-surface-raise:       color-mix(in srgb, var(--neutral-800) 85%, var(--neutral-700) 15%);
  --neutral-surface-inset:       color-mix(in srgb, var(--neutral-800) 50%, var(--neutral-700) 50%);
  --neutral-800-panel-gradient:  linear-gradient(to bottom, color-mix(in srgb, var(--neutral-800) 88%, var(--neutral-600) 12%), var(--neutral-800) 48%);

  /* Layout */
  --sidebar-width:       256px;
  --sidebar-width-icon:   56px;

  color-scheme: dark;
}

/* ── Light theme token overrides ── */
[data-theme="light"] {
  color-scheme: light;

  --neutral-50:   #404040;
  --neutral-100:  #525252;
  --neutral-200:  #262626;
  --neutral-300:  #171717;
  --neutral-400:  #737373;
  --neutral-500:  #a3a3a3;
  --neutral-600:  #d4d4d4;
  --neutral-700:  #e5e5e5;
  --neutral-800:  #ffffff;
  --neutral-900:  #fefbf4;
  --neutral-950:  #ffffff;

  --neutral-surface-hover:       #f5f5f5;
  --neutral-surface-raise:       #ffffff;
  --neutral-surface-inset:       #fafafa;
  --neutral-800-panel-gradient:  linear-gradient(to bottom, #ffffff 0%, #fafafa 52%, #f5f5f5 100%);

  --color-purple:        #845cff;
  --color-purple-soft:   #b59dff;
  --color-purple-mist:   #cebeff;
  --color-purple-wash:   #e6deff;
  --color-purple-deep:   #6f00ff;
  --color-purple-depth:  #4f3799;
  --color-peach:         #ffa182;
  --color-sand:          #fddc98;
  --color-sand-light:    #fee9be;
}

html[data-theme="light"] body {
  background: var(--color-cream);
}

/* ── Base ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--neutral-900);
  color: var(--neutral-50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Polymath for headings & specific elements */
h1, h2, h3, h4, h5, h6,
.jobs-insight-heading,
.news-v2-company-name,
.news-v2-stk-text,
.stk-name,
.job-entity-primary {
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

/* ── Layout shell ── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
:root {
  --footer-bg:      #171717;
  --footer-border:  #404040;
  --footer-inset:   #262626;
  --footer-text:    #e5e5e5;
  --footer-heading: #ffffff;
  --footer-muted:   #a3a3a3;
}
.sidebar {
  position: fixed; top: 0; left: 0;
  height: 100vh;
  width: var(--sidebar-width); flex-shrink: 0;
  background: var(--footer-bg);
  border-right: 1px solid var(--footer-border);
  display: flex; flex-direction: column;
  z-index: 20; overflow-y: auto; overflow-x: hidden;
}
.sidebar-top {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
  padding: 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px;
}
.sidebar-brand-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-left: 16px; padding-right: 4px; flex-shrink: 0;
  width: 100%; min-width: 0;
}
.sidebar-brand-logo { display: block; line-height: 0; flex-shrink: 0; min-width: 0; }
.sidebar-brand-logo img { display: block; filter: brightness(0) invert(1); opacity: 0.94; }
.sidebar-brand-logo__full { width: 100px; max-width: 100%; height: auto; }
.sidebar-brand-logo .sidebar-brand-logo__mark { display: none; width: 24px; height: 24px; }
.sidebar-brand-logo:hover img { opacity: 1; }
.sidebar-company-box {
  border: 1px solid var(--footer-border); border-radius: 8px;
  background: var(--footer-inset); padding: 4px 12px;
  display: flex; flex-direction: column;
}
.sidebar-company-divider {
  border: none; border-top: 1px solid var(--footer-border);
  width: calc(100% + 24px); margin: 4px -12px; max-width: none; flex-shrink: 0;
}
.sidebar-company-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--footer-text);
  cursor: default; user-select: none;
}
.sidebar-company-logo {
  height: 16px; width: 16px; border-radius: 4px;
  border: 1px solid var(--footer-border); background: var(--footer-bg);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; letter-spacing: -0.02em; color: var(--footer-heading);
}
.users-icon { color: var(--footer-text); flex-shrink: 0; }
.sidebar-body {
  margin-top: 8px; flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.sidebar-section { margin-bottom: 40px; }
.sidebar-section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--footer-heading); margin: 0 16px 16px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin: 0 16px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s ease; color: var(--footer-text);
}
.sidebar-item:hover { color: var(--footer-heading); background: rgba(255,255,255,0.08); }
.sidebar-item.active {
  background: linear-gradient(180deg, var(--color-sand-light) 1.6%, var(--color-sand) 100%);
  color: var(--footer-bg);
}
.sidebar-item.active .sidebar-item-icon { background: var(--color-purple); color: var(--color-sand); }
.sidebar-item-icon {
  flex-shrink: 0; transition: transform 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; color: var(--color-purple-mist);
}
.sidebar-item:hover .sidebar-item-icon { transform: scale(1.1); }

[data-theme="light"] .sidebar-item.active .sidebar-item-icon {
  background: var(--color-purple); color: var(--color-sand);
}

.sidebar-theme-switch {
  flex-shrink: 0; align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: auto 16px 20px;
  border: 1px solid var(--footer-border); border-radius: 6px;
  background: var(--footer-inset); color: var(--footer-muted); cursor: pointer;
  transition: all 0.15s;
}
.sidebar-theme-switch:hover {
  border-color: #525252;
  background: color-mix(in srgb, var(--footer-inset) 88%, #fff 12%);
  color: var(--footer-text);
}
.sidebar-theme-switch img { display: block; filter: brightness(0) invert(1); opacity: 0.7; }
.sidebar-theme-switch:hover img { opacity: 1; }
.sidebar-theme-switch .theme-icon-light { display: none; }
[data-theme="light"] .sidebar-theme-switch .theme-icon-dark { display: none; }
[data-theme="light"] .sidebar-theme-switch .theme-icon-light { display: block; }

.sidebar-toggle {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0; padding: 0;
  border: 1px solid var(--footer-border); border-radius: 6px;
  background: var(--footer-inset); cursor: pointer; transition: all 0.15s;
}
.sidebar-toggle:hover { border-color: #525252; background: color-mix(in srgb, var(--footer-inset) 88%, #fff 12%); }
.sidebar-toggle img { display: block; filter: brightness(0) invert(1); opacity: 0.7; }
.sidebar-toggle:hover img { opacity: 1; }
.sidebar-toggle .sidebar-toggle__show { display: none; }
[data-sidebar="collapsed"] .sidebar-toggle__hide { display: none; }
[data-sidebar="collapsed"] .sidebar-toggle__show { display: block; }

/* Collapsed state */
[data-sidebar="collapsed"] .sidebar         { width: var(--sidebar-width-icon); }
[data-sidebar="collapsed"] .sidebar-brand-row { flex-direction: column; align-items: center; padding: 0; gap: 8px; }
[data-sidebar="collapsed"] .sidebar-item-text,
[data-sidebar="collapsed"] .sidebar-section-label { display: none; }
[data-sidebar="collapsed"] .sidebar-brand-logo { display: flex; justify-content: center; margin-left: 0; }
[data-sidebar="collapsed"] .sidebar-brand-logo__full { display: none; }
[data-sidebar="collapsed"] .sidebar-brand-logo__mark { display: block; }
[data-sidebar="collapsed"] .sidebar-item { justify-content: center; padding: 10px; }
[data-sidebar="collapsed"] .sidebar-nav { margin: 0 8px; }
[data-sidebar="collapsed"] .sidebar-section { margin-bottom: 16px; }
[data-sidebar="collapsed"] .sidebar-theme-switch { align-self: center; margin: auto 0 20px; }
[data-sidebar="collapsed"] .sidebar-company-box { padding: 4px; }
[data-sidebar="collapsed"] .sidebar-company-row { justify-content: center; padding: 8px 4px; }
[data-sidebar="collapsed"] .sidebar-company-row > span { display: none; }
[data-sidebar="collapsed"] .sidebar-company-divider { display: none; }

/* Smooth sidebar transitions (enabled via JS after load) */
.sidebar-transitions .sidebar        { transition: width 200ms ease-linear; }
.sidebar-transitions .main           { transition: margin-left 200ms ease-linear; }

/* ── Main content ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px 16px;
  min-height: 100vh;
  min-width: 0;
  overflow-y: auto;
  background: var(--neutral-900);
}
[data-sidebar="collapsed"] .main { margin-left: var(--sidebar-width-icon); }
[data-theme="light"] .main {
  background: var(--color-cream);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Card base ── */
.card {
  background: var(--neutral-800);
  border-radius: 8px;
  padding: 16px;
  transition: background 0.15s;
}
.card:hover { background: var(--neutral-surface-raise); }

/* Timeline cards override border-radius and padding via Tailwind (pt-3 px-6 pb-6) */
.card--news-v2 { border-radius: 24px; padding: 0; }

/* ══════════════════════════════════════
   CTA BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  top: 0;
  -webkit-font-smoothing: antialiased;
}
.btn:active { top: 1px; }
.btn:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}
.btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.875em 1.5em;
  white-space: nowrap;
  transition: translate 0.5s cubic-bezier(0.175, 0.92, 0.32, 1.18);
}
.btn img {
  display: block;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.btn-text + .btn-text {
  position: absolute;
  inset: 0;
  justify-content: center;
  translate: 0 100%;
}
.btn:hover .btn-text:first-child,
.btn:focus-visible .btn-text:first-child { translate: 0 -100%; }
.btn:hover .btn-text + .btn-text,
.btn:focus-visible .btn-text + .btn-text { translate: 0 0; }

/* Sizes */
.btn--xs .btn-text { font-size: 0.75rem;  padding: 0.5em 0.875em; }
.btn--sm .btn-text { font-size: 0.875rem; padding: 0.75em 1.25em; }
.btn--lg .btn-text { font-size: 1.125rem; }

/* Primary — purple fill */
.btn--primary { background: var(--color-purple); color: #ffffff; }

/* Ghost — subtle border */
.btn--ghost {
  background: transparent;
  color: var(--neutral-400);
  box-shadow: inset 0 0 0 1px var(--neutral-700);
}
.btn--ghost:hover { color: var(--neutral-50); box-shadow: inset 0 0 0 1px var(--neutral-500); }

/* Black — dark fill */
.btn--black { background: #171717; color: #fff; }
.btn--black:hover { background: #1f1f1f; }

/* CTA row — multiple buttons side by side */
.news-v2-timeline-cta:not(.news-v2-footer) { display: flex; gap: 8px; align-items: center; }

/* ── Vote group ── */
.vote-group { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.vote-btn {
  padding: 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.card--news-v2 .vote-btn.up,
.card--news-v2 .vote-btn.down,
.card--news-v2 .stk-action .stk-icon-btn {
  color: var(--neutral-500);
}
.card--news-v2 .vote-btn.up:hover,
.card--news-v2 .vote-btn.down:hover {
  color: var(--neutral-50);
  transform: scale(1.05);
}
.card--news-v2.card--news-v2-timeline .vote-btn.up:hover,
.card--news-v2.card--news-v2-timeline .vote-btn.down:hover {
  color: #171717;
}
.card--news-v2 .stk-action .stk-icon-btn:hover {
  color: var(--color-peach);
  transform: scale(1.05);
}

/* ── Source button ── */
.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--neutral-600);
  color: var(--neutral-50);
  border: none;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.source-btn:hover {
  background: color-mix(in srgb, var(--neutral-600) 72%, var(--neutral-500) 28%);
  color: var(--neutral-50);
}
.source-btn .label-text { color: var(--neutral-50); font-size: 12px; font-weight: 400; }
.source-btn svg { color: var(--neutral-50); opacity: 1; flex-shrink: 0; }
.source-btn.source-btn--inline {
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  vertical-align: middle;
  gap: 4px;
  font-size: inherit;
  font-weight: 400;
}
.source-btn.source-btn--inline:hover { background: transparent; }
.source-btn.source-btn--inline .label-text { font-size: inherit; line-height: 1; }

/* ══════════════════════════════════════
   ACCOUNT LOGO
   ══════════════════════════════════════ */
.account-logo-link { flex-shrink: 0; }
.account-logo {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--neutral-50); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--neutral-900);
  overflow: hidden; transition: opacity 0.15s;
  border: 1px solid var(--neutral-400);
}
.account-logo:hover { opacity: 0.8; }
.account-logo.account-logo--framed {
  border-radius: 10px;
  border: 1px solid var(--neutral-700);
}

[data-theme="light"] .account-logo {
  background: #ffffff;
  color: var(--neutral-50);
}

/* ── News v2 logo variant ── */
.news-v2-logo.account-logo {
  width: 48px; height: 48px; padding: 0; overflow: hidden;
}
.news-v2-logo.account-logo.account-logo--framed {
  color: var(--color-cream);
  border: 1px solid var(--neutral-700);
  background: var(--neutral-950);
}
.news-v2-logo.account-logo img.news-v2-logo-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 9px;
}
.news-v2-logo:has(> .news-v2-logo-img) .news-v2-logo-fallback { display: none; }

.news-v2-logo-fallback {
  font-size: 18px; font-weight: 800;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.02em; line-height: 1; color: #fff;
}

[data-theme="light"] .news-v2-arrow img,
[data-theme="light"] .news-v2-stk .stk-chevron img {
  filter: none;
}
[data-theme="light"] .news-v2-arrow img { opacity: 0.82; }
[data-theme="light"] .news-v2-logo.account-logo.account-logo--framed {
  color: var(--color-purple);
  border: 2px solid var(--neutral-700);
  background: #ffffff;
}

/* ══════════════════════════════════════
   NEWS V2 COMPANY ROW
   ══════════════════════════════════════ */
.news-v2-company-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.news-v2-company-row > .account-logo-link {
  display: block; width: 48px; height: 48px; line-height: 0; flex-shrink: 0;
}
.news-v2-company-meta { flex: 1; min-width: 0; }
.news-v2-company-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: nowrap; padding-bottom: 4px;
}
.news-v2-name-row {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.news-v2-company-name {
  font-size: 18px; font-weight: 600; color: var(--neutral-50);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; text-decoration-color: var(--neutral-400);
  text-decoration-skip-ink: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-v2-company-name:hover { color: var(--neutral-200); }
.news-v2-arrow {
  flex-shrink: 0; color: var(--neutral-50); opacity: 0.85; display: flex;
}
.news-v2-arrow img { display: block; filter: brightness(0) invert(1); }
.job-time,
.news-v2-time {
  color: var(--neutral-400); display: flex; align-items: center;
  flex-wrap: wrap; gap: 6px; font-size: 14px;
}
.news-v2-summary {
  font-size: 15px; line-height: 1.6; color: var(--neutral-300);
  margin-top: 8px;
}
.card--news-v2-timeline .news-v2-summary {
  color: #525252;
}

/* ══════════════════════════════════════
   JOB ENTITY (person row)
   ══════════════════════════════════════ */
.job-entity-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--neutral-900); border: 1px solid var(--neutral-400); overflow: hidden;
}
.job-entity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.job-entity-primary {
  font-size: 18px; font-weight: 600; color: var(--neutral-50); line-height: 1.35;
}
.job-entity-secondary,
.job-entity-primary-sub {
  font-size: 14px; font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--neutral-400); line-height: 1.55;
}
.job-entity-primary-sub { display: block; }
.job-entity-primary-sub strong { color: var(--neutral-50); font-weight: 600; }
.job-entity-primary-sub-arrow { color: var(--color-purple-soft); }
[data-theme="light"] .job-entity-primary-sub-arrow { color: var(--color-purple); }
.job-entity-secondary strong { color: var(--neutral-50); font-weight: 600; }

/* ══════════════════════════════════════
   NEWS V2 TYPE BAR & SIGNAL PILL
   ══════════════════════════════════════ */
.news-v2-type-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.news-v2-type-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 5px;
  font-size: 12px; font-weight: 600;
  color: var(--card-accent-muted, var(--color-purple-soft));
  line-height: 1.3; min-width: 0;
}
.news-v2-type-title > svg { flex-shrink: 0; opacity: 0.95; width: 14px; height: 14px; }
.news-v2-type-title .news-v2-signal-pill { flex-shrink: 0; }
.news-v2-type-divider {
  align-self: stretch; width: 1px; margin: 0 2px;
  background: var(--neutral-700); flex-shrink: 0;
}
.news-v2-signal-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 9999px; padding: 2px 8px 2px 6px;
  font-size: 12px; font-weight: 400; background: none;
  border: 1px solid color-mix(in srgb, var(--color-purple-soft) 48%, transparent);
  color: var(--color-purple-mist);
}
.news-v2-signal-pill::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
[data-theme="light"] .news-v2-signal-pill {
  color: var(--color-purple); border-color: var(--color-purple);
}

/* ══════════════════════════════════════
   NEWS V2 CARD — BASE & TIMELINE VARIANT
   ══════════════════════════════════════ */
.card--news-v2 {
  --accent-gold:        var(--color-purple-soft);
  --accent-gold-dim:    color-mix(in srgb, var(--color-purple-mist) 35%, transparent);
  --card-accent:        var(--color-purple);
  --card-accent-muted:  var(--color-purple-soft);
  border-radius: 24px;
}

/* Timeline: always renders light (cream card, dark ink) */
.card--news-v2-timeline {
  --news-v2-rail-line:            rgba(60, 40, 20, 0.22);
  --news-v2-ink:                  #171717;
  --news-v2-body:                 #404040;
  --news-v2-spine-width:          1px;
  --news-v2-spine-from-type-gap:  24px;
  --news-v2-spine-into-card-bottom: 24px;
  background: linear-gradient(160deg, #ffffff 0%, var(--color-cream) 100%);
  color: var(--news-v2-body);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  transition: box-shadow 240ms ease-out;
  position: relative;
}
.card--news-v2-timeline::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('../assets/images/diagonal-pattern.svg');
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(115deg, transparent 25%, black);
  mask-image: linear-gradient(115deg, transparent 25%, black);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.card--news-v2-timeline > * { position: relative; z-index: 1; }
.card--news-v2-timeline:hover,
.card--news-v2.card--news-v2-timeline:hover {
  background: linear-gradient(160deg, #ffffff 0%, var(--color-cream-light) 40%, var(--color-cream) 100%);
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.045), 0 1px 4px rgba(60, 40, 20, 0.025), 0 0 0 1px rgba(60, 40, 20, 0.08);
}
/* Bleed type-bar border edge-to-edge (cancels card's px-6 padding) */
.card--news-v2 .news-v2-type-bar {
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

/* Explicit override for timeline variant — ensures correct border on white card */
.card--news-v2.card--news-v2-timeline .news-v2-type-bar {
  border-bottom: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(60, 40, 20, 0.22) 0,
    rgba(60, 40, 20, 0.22) 4px,
    transparent 4px,
    transparent 9px
  );
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 1px;
  margin-bottom: 24px;
  padding-bottom: 12px;
}

article.card--news-v2-timeline .news-v2-type-title .news-v2-signal-pill {
  color: var(--color-purple);
  border-color: var(--color-purple-mist);
}
.card--news-v2-timeline .news-v2-type-divider   { background: #d4d4d4; }
.card--news-v2-timeline .news-v2-type-title     { color: #9a7e62; }
.card--news-v2-timeline .news-v2-type-title > svg { color: #9a7e62; }

.card--news-v2-timeline .news-v2-company-name {
  color: var(--news-v2-ink); text-decoration-color: #a3a3a3;
}
.card--news-v2-timeline .news-v2-company-name:hover { color: #262626; }

.card--news-v2-timeline .news-v2-arrow img { filter: none; opacity: 0.55; }

.card--news-v2-timeline .news-v2-time,
.card--news-v2-timeline .news-v2-time .source-btn { color: #737373; }
.card--news-v2-timeline .news-v2-time .source-btn--inline .label-text,
.card--news-v2-timeline .news-v2-time .source-btn--inline svg { color: inherit; }

.card--news-v2-timeline .news-v2-logo.account-logo.account-logo--framed {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: #ffffff; color: var(--color-purple);
}
.card--news-v2-timeline .news-v2-logo.account-logo--framed:not(:has(> .news-v2-logo-img)) {
  background: linear-gradient(145deg, #B59DFF, #845CFF);
}

/* Light theme overrides for type-bar */
[data-theme="light"] .card--news-v2 .news-v2-type-title {
  color: var(--neutral-400);
}
[data-theme="light"] .card--news-v2 .news-v2-type-title > svg {
  color: var(--neutral-500); opacity: 1;
}
/* Timeline cards always use warm brown for the type label + icon */
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title,
.card--news-v2-timeline .news-v2-type-title {
  color: #9a7e62;
}
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title > svg,
.card--news-v2-timeline .news-v2-type-title > svg {
  color: #9a7e62; opacity: 1;
}


/* ══════════════════════════════════════
   TIMELINE RAIL (track + steps)
   ══════════════════════════════════════ */
.news-v2-timeline-track {
  position: relative;
  --news-v2-track-pad-left: 44px;
  --news-v2-rail-x: 15px;
  padding-left: var(--news-v2-track-pad-left);
}
.card--news-v2-timeline .news-v2-timeline-track { margin-top: 0; }

/* Spine line */
.news-v2-timeline-track::before {
  content: '';
  position: absolute;
  left: var(--news-v2-rail-x);
  transform: translateX(-50%);
  top:    calc(-1 * var(--news-v2-spine-from-type-gap, 24px));
  bottom: calc(-1 * var(--news-v2-spine-into-card-bottom, 24px));
  width: var(--news-v2-spine-width, 1px);
  background: var(--news-v2-rail-line);
  pointer-events: none;
  z-index: 0;
}
.card--news-v2-timeline .news-v2-timeline-track::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(60, 40, 20, 0.22) 0,
    rgba(60, 40, 20, 0.22) 4px,
    transparent 4px,
    transparent 9px
  );
  transform-origin: top center;
  animation: spine-draw 500ms cubic-bezier(0.4, 0, 0.2, 1) 80ms both;
}

/* Rail step */
.news-v2-rail-step {
  position: relative; z-index: 1; margin-bottom: 24px;
}
.news-v2-rail-step:last-child { margin-bottom: 0; }

/* Purple dot */
.news-v2-rail-step::before {
  content: '';
  position: absolute;
  left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left));
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-purple);
  box-sizing: border-box; z-index: 3;
  box-shadow: 0 0 0 2px var(--color-cream);
  transform: translate(-50%, -50%);
}

/* Dashed connector from dot to content */
.news-v2-rail-step::after {
  content: '';
  position: absolute;
  left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left));
  width: calc(var(--news-v2-track-pad-left) - var(--news-v2-rail-x));
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--news-v2-rail-line) 0,
    var(--news-v2-rail-line) 4px,
    transparent 4px,
    transparent 9px
  );
  z-index: 2;
  transform: translateY(-50%);
}

/* Step-specific pseudo positions */
.news-v2-rail-step--company  { --rail-step-y: 24px; }
.news-v2-rail-step--insight  { --rail-step-y: 2rem; }
.news-v2-rail-step--cta      { --rail-step-y: 50%; }

.news-v2-rail-step--company::before,
.news-v2-rail-step--company::after { top: var(--rail-step-y); }
.news-v2-rail-step--insight::before,
.news-v2-rail-step--insight::after { top: var(--rail-step-y); }
.news-v2-rail-step--insight:has(.jobs-insight--fit)::before {
  background: #D4CEC6;
  box-shadow: 0 0 0 2px var(--color-cream);
}

.news-v2-rail-step--cta::before {
  top: var(--rail-step-y); transform: translate(-50%, -50%);
}
.news-v2-rail-step--cta::after {
  top: var(--rail-step-y); transform: translateY(-50%);
}

/* Company step: logo replaces dot */
.card--news-v2-timeline .news-v2-rail-step--company::before,
.card--news-v2-timeline .news-v2-rail-step--company::after { display: none; }

.card--news-v2-timeline .news-v2-rail-step--company .news-v2-company-row > .account-logo-link {
  margin-left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left) - 48px / 2);
  position: relative; z-index: 4;
}
.news-v2-rail-step--company .news-v2-company-row { margin-bottom: 0; }

/* ── Person entity inside company step ── */
.news-v2-timeline-job-entity {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 24px;
}
.card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-body {
  flex: 1; min-width: 0; padding: 0;
}
.card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar {
  flex-shrink: 0; width: 48px; height: 48px;
  margin-left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left) - 48px / 2);
  position: relative; z-index: 4;
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: var(--color-cream);
}
.card--news-v2-timeline .job-entity-body .job-entity-primary,
.card--news-v2-timeline .job-entity-body .job-entity-primary-sub strong {
  color: var(--news-v2-ink);
}
.card--news-v2-timeline .job-entity-body .job-entity-primary-sub,
.card--news-v2-timeline .job-entity-body .job-entity-secondary {
  color: var(--news-v2-body);
}
.chk-icon {
  transition: filter 0.15s ease;
  cursor: default;
}
.chk-icon:hover {
  filter: brightness(0) saturate(100%) invert(84%) sepia(29%) saturate(1083%) hue-rotate(105deg) brightness(105%) contrast(95%);
}
.chk-icon-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.chk-icon-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.chk-icon-wrap:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════
   INSIGHT TILES  (.jobs-insight)
   ══════════════════════════════════════ */
.jobs-insight {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--color-sand-light) 1.6%, var(--color-sand) 100%);
  border-radius: 10px; margin-bottom: 18px;
}
.jobs-insight::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/svg/noise.svg') repeat;
  opacity: 0.7; mix-blend-mode: soft-light; pointer-events: none; z-index: 0;
}
.jobs-insight > * { position: relative; z-index: 1; }

.jobs-insight .jobs-insight-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; color: #171717;
  line-height: 1.35; margin-top: 0; margin-bottom: 8px;
}
.jobs-insight .jobs-insight-heading::before { content: none; display: none; }

.jobs-insight-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-purple); color: var(--color-sand);
}
.jobs-insight-icon svg { width: 16px; height: 16px; color: inherit; }

.jobs-insight .jobs-insight-text { font-size: 16px; line-height: 1.65; color: #404040; }
.jobs-insight .accent-gold {
  color: var(--color-purple-soft);
  font-weight: 600;
  background: none;
  border-bottom: 2px solid var(--color-purple-soft);
  padding-bottom: 1px;
}

/* Heading typography lock (Tailwind loads after custom CSS) */
article.card--news-v2 .jobs-insight .jobs-insight-heading {
  font-size: 18px; font-weight: 600; color: #171717;
  line-height: 1.35; margin-top: 0;
}

/* ── Timeline insight overrides ── */
.card--news-v2-timeline .news-v2-rail-step .jobs-insight { margin-bottom: 0; }

.card--news-v2-timeline .news-v2-rail-step .jobs-insight.jobs-insight--outline,
.card--news-v2-timeline .news-v2-rail-step .jobs-insight.jobs-insight--fit {
  max-width: calc(100% - 28px);
  padding-top: 16px; padding-bottom: 16px;
}

.card--news-v2-timeline .jobs-insight .jobs-insight-heading { color: var(--news-v2-ink); }

.card--news-v2-timeline .jobs-insight.jobs-insight--outline .jobs-insight-icon,
.card--news-v2-timeline .jobs-insight.jobs-insight--fit .jobs-insight-icon { display: none; }

/* Icon on white tiles: light purple-wash circle */
.card--news-v2-timeline .jobs-insight:not(.jobs-insight--outline):not(.jobs-insight--fit) .jobs-insight-icon {
  background: var(--color-purple);
  color: white;
}
.card--news-v2-timeline .jobs-insight .jobs-insight-text {
  font-size: 16px; line-height: 1.65; color: var(--news-v2-body);
}
.card--news-v2-timeline .jobs-insight .accent-gold {
  color: var(--color-purple);
  background: none;
  border-bottom: none;
  border-radius: 0;
  font-weight: 600;
}
.card--news-v2-timeline .jobs-insight a.news-v2-product { color: var(--color-purple); }

/* ── Variant: --solid-purple — white bg, warm shadow ── */
.jobs-insight.jobs-insight--solid-purple {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  transition: box-shadow 240ms ease-out;
}
.jobs-insight.jobs-insight--solid-purple::before { display: none; }
.jobs-insight.jobs-insight--solid-purple:hover {
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.045), 0 1px 4px rgba(60, 40, 20, 0.025), 0 0 0 1px rgba(60, 40, 20, 0.08);
}

/* ── Variant: --outline — white bg, warm shadow ── */
.jobs-insight.jobs-insight--outline {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  transition: box-shadow 240ms ease-out;
}
.jobs-insight.jobs-insight--outline::before { display: none; }
.jobs-insight.jobs-insight--outline:hover {
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.045), 0 1px 4px rgba(60, 40, 20, 0.025), 0 0 0 1px rgba(60, 40, 20, 0.08);
}

/* ── Variant: --fit ("Where Trayo fits" — compact white tile) ── */
.jobs-insight.jobs-insight--fit {
  background: var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  border-radius: 16px;
  transition: box-shadow 240ms ease-out;
}
.jobs-insight.jobs-insight--fit::before { display: none; }
.jobs-insight.jobs-insight--fit:hover {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
article.card--news-v2 .jobs-insight.jobs-insight--fit .jobs-insight-heading {
  font-size: 18px; font-weight: 600; color: #525252; margin-bottom: 4px;
}
.jobs-insight.jobs-insight--fit .jobs-insight-icon { display: none; }
.jobs-insight.jobs-insight--fit .jobs-insight-text {
  font-size: 14px; line-height: 1.55; color: #525252;
}
.jobs-insight.jobs-insight--fit .accent-gold {
  color: var(--color-purple);
  font-weight: 600;
  background: none;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product {
  color: #525252; font-weight: 600;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product:hover {
  color: #171717;
}
.jobs-insight.jobs-insight--solid-purple a,
.jobs-insight.jobs-insight--solid-purple a.news-v2-product {
  color: #404040;
}
.jobs-insight.jobs-insight--solid-purple a:hover,
.jobs-insight.jobs-insight--solid-purple a.news-v2-product:hover {
  color: #171717;
}

/* ── Shared news-v2-insight extras (links) ── */
.jobs-insight.news-v2-insight a.news-v2-product {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: auto;
}

/* ══════════════════════════════════════
   JOBS CARD FOOTER / TIMELINE CTA ROW
   ══════════════════════════════════════ */
.jobs-card-footer { display: flex; align-items: center; flex-wrap: wrap; }

.card--news-v2-timeline .news-v2-timeline-cta.jobs-card-footer {
  margin-left: 0; margin-right: 0;
  padding-left: 0; padding-right: 0; padding-top: 0;
}

/* ══════════════════════════════════════
   STAKEHOLDER FOOTER  (.news-v2-footer)
   ══════════════════════════════════════ */
.news-v2-footer.inner-box {
  position: relative;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--neutral-700) 55%, var(--neutral-600) 45%);
  border-radius: 16px;
  margin-bottom: 0; padding: 0;
  transition: border-color 0.15s ease;
  overflow: hidden;
}
.news-v2-footer.inner-box:hover,
.news-v2-footer.inner-box.news-v2-footer--stk-open {
  border-color: color-mix(in srgb, var(--card-accent, var(--color-purple)) 72%, var(--neutral-600));
}
/* Shadow lives on the container in all timeline states so collapsed & expanded match */
.card--news-v2-timeline .news-v2-footer.inner-box {
  border: none;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  transition: box-shadow 240ms ease-out;
}
.card--news-v2-timeline .news-v2-footer.inner-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 100%;
  background: var(--color-cream);
  border-radius: 8px 0 0 8px;
  z-index: 2;
  pointer-events: none;
  transition: background 240ms ease;
}
.card--news-v2-timeline .news-v2-footer.inner-box.news-v2-footer--stk-open::before {
  background: var(--color-purple);
}
.card--news-v2-timeline .news-v2-footer.inner-box:hover,
.card--news-v2-timeline .news-v2-footer.inner-box.news-v2-footer--stk-open,
.card--news-v2-timeline .news-v2-footer.inner-box.news-v2-footer--stk-open:hover {
  border: none;
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.045), 0 1px 4px rgba(60, 40, 20, 0.025), 0 0 0 1px rgba(60, 40, 20, 0.08);
}

/* Stakeholder toggle button */
/* Base toggle — flex row, keeps text + avatars + chevron on one line */
.stk-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-50);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.stk-toggle:hover { color: var(--color-purple-soft); }

.news-v2-stk.stk-toggle { width: 100%; gap: 10px; border-radius: 16px; }

.news-v2-footer .news-v2-stk.stk-toggle {
  box-sizing: border-box; width: 100%;
  margin: 0 0 0 0; padding: 12px 24px;
  border-radius: 16px; position: relative; isolation: isolate; overflow: hidden;
  background: var(--color-purple);
}
.news-v2-footer .news-v2-stk.stk-toggle > * { position: relative; z-index: 1; }
.news-v2-footer .news-v2-stk.stk-toggle .news-v2-stk-text { color: #ffffff; }
.news-v2-footer .news-v2-stk.stk-toggle:hover {
  background: var(--color-purple); opacity: 0.92;
}
.news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text { color: #ffffff; }
.news-v2-footer.news-v2-footer--stk-open .news-v2-stk.stk-toggle {
  border-radius: 16px 16px 0 0;
}

/* Timeline: borderless white button (shadow is on the container, not the button) */
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle {
  background: #ffffff;
  border: none;
  box-shadow: none;
  opacity: 1;
}
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover {
  background: #ffffff;
  box-shadow: none;
  opacity: 1;
}
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle .news-v2-stk-text,
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text {
  color: #171717;
}
/* Expanded: drop border so stk-list aligns flush */
.card--news-v2-timeline .news-v2-footer.news-v2-footer--stk-open .news-v2-stk.stk-toggle,
.card--news-v2-timeline .news-v2-footer.news-v2-footer--stk-open .news-v2-stk.stk-toggle:hover {
  border: none; border-radius: 14px 14px 0 0;
}

[data-theme="light"] .news-v2-stk .news-v2-stk-text { color: var(--neutral-50); }
[data-theme="light"] .news-v2-stk.stk-toggle:hover,
[data-theme="light"] .news-v2-stk.stk-toggle:hover .news-v2-stk-text { color: var(--color-purple); }
[data-theme="light"] .news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text { color: #ffffff; }
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text {
  color: #171717;
}

/* Toggle text & chevron */
.news-v2-stk .news-v2-stk-text { font-size: 20px; font-weight: 600; color: var(--neutral-50); }
.news-v2-stk .avatar-stack { flex-shrink: 0; transition: opacity 0.2s ease; }
.news-v2-footer--stk-open .news-v2-stk .avatar-stack {
  opacity: 0;
  pointer-events: none;
}
.news-v2-stk .avatar-stack .mini-av {
  width: 38px; height: 38px; font-size: 14px; font-weight: 800;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff; background: linear-gradient(145deg, #B59DFF, #845CFF);
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  outline: none;
}
.news-v2-stk .stk-chevron {
  margin-left: auto; flex-shrink: 0;
  width: 28px; height: 28px; padding: 0; box-sizing: border-box;
  border-radius: 50px; background: var(--neutral-800); border: none;
  overflow: hidden; opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle .stk-chevron {
  border-radius: 8px;
  background: rgba(60, 40, 20, 0.055);
  border: none;
  transition: transform 200ms ease;
}
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover .stk-chevron {
  background: rgba(60, 40, 20, 0.055);
  opacity: 1;
}
.news-v2-stk .stk-chevron img {
  display: block; width: 16px; height: 16px; filter: brightness(0) invert(1);
}
.news-v2-stk.stk-toggle:hover .stk-chevron {
  opacity: 1; background: var(--neutral-surface-hover);
}
/* Open chevron rotation */
.news-v2-stk .stk-chevron.open { transform: rotate(180deg); }

/* Stakeholder list — accordion */
.news-v2-footer .stk-list {
  margin: 0; width: 100%; gap: 0;
  border-top: 1.5px dashed var(--color-purple);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms ease;
}
.news-v2-footer--stk-open .stk-list {
  max-height: 900px;
  opacity: 1;
}
.news-v2-footer--stk-always-open .stk-list {
  max-height: none;
  opacity: 1;
}
.news-v2-footer .stk-item + .stk-item { border-top: 1.5px dashed var(--color-purple); }

/* Timeline card: dashed separators match the card's warm shadow ring */
.card--news-v2-timeline .news-v2-footer .stk-list {
  border-top: 1.5px dashed rgba(60, 40, 20, 0.15);
}
.card--news-v2-timeline .news-v2-footer .stk-item + .stk-item {
  border-top: 1.5px dashed rgba(60, 40, 20, 0.15);
}
.news-v2-footer .stk-item {
  padding-left: 24px; padding-right: 24px; padding-bottom: 24px;
  border-radius: 0;
  background: var(--neutral-800-panel-gradient);
}
.news-v2-footer .stk-item > .stk-icon-btn { top: 16px; right: 24px; }
.news-v2-footer .stk-action { right: 24px; }

/* Timeline card: white background for expanded stakeholder panel */
.card--news-v2-timeline .news-v2-footer .stk-item {
  background: #ffffff;
}
.card--news-v2-timeline .news-v2-footer .stk-item .stk-name {
  color: #171717;
}
.card--news-v2-timeline .news-v2-footer .stk-item .stk-title,
.card--news-v2-timeline .news-v2-footer .stk-item .stk-reason {
  color: #737373;
}

/* Stk list shared base (for flex layout) */
.stk-list { display: flex; flex-direction: column; }
.stk-item {
  display: flex; gap: 12px; padding: 20px 16px;
  border-radius: 10px;
  position: relative;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.news-v2-footer--stk-open .stk-item {
  opacity: 1;
  transform: translateY(0);
}
.news-v2-footer--stk-open .stk-item:nth-child(1) { transition-delay: 60ms; }
.news-v2-footer--stk-open .stk-item:nth-child(2) { transition-delay: 110ms; }
.news-v2-footer--stk-open .stk-item:nth-child(3) { transition-delay: 160ms; }
.stk-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #B59DFF, #845CFF); color: #ffffff;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; font-weight: 800;
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  overflow: hidden; position: relative;
}
.stk-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stk-name { font-size: 18px; font-weight: 600; color: var(--neutral-50); margin-bottom: 2px; padding-right: 30px; }
.stk-title { font-size: 13px; color: var(--neutral-400); margin-bottom: 6px; }
.stk-reason { font-size: 14px; color: var(--neutral-200); line-height: 1.55; margin-bottom: 10px; }
.stk-action {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.stk-icon-btn {
  background: transparent; border: none; cursor: pointer; padding: 4px;
  border-radius: 4px; color: var(--neutral-400); display: flex;
  transition: all 0.15s;
}
/* Icon button anchored to top-right corner of its stk-item */
.stk-item > .stk-icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ── Avatar stack ── */
.avatar-stack { display: flex; }
.avatar-stack .mini-av {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-purple-soft) 45%, transparent);
  outline: 1px solid var(--neutral-950);
  margin-left: -4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #404040;
  background: #ffffff;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.avatar-stack .mini-av:first-child { margin-left: 0; }
.avatar-stack .mini-av img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}


/* ══════════════════════════════════════════════════════════════
   Timeline entry animations
   ══════════════════════════════════════════════════════════════ */

@keyframes spine-draw {
  from { transform: translateX(-50%) scaleY(0); }
  to   { transform: translateX(-50%) scaleY(1); }
}

@keyframes dot-pop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Type bar — icon, label, divider, signal pills (before spine at 80ms) */
.card--news-v2-timeline .news-v2-type-title > svg,
.card--news-v2-timeline .news-v2-type-title > span:not(.news-v2-type-divider):not(.news-v2-signal-pill)
{
  animation: fade-up 280ms ease-out both;
}
.card--news-v2-timeline .news-v2-type-title .news-v2-type-divider
{
  animation: fade-up 240ms ease-out 40ms both;
}
.card--news-v2-timeline .news-v2-type-title > .news-v2-signal-pill:nth-child(4)
{
  animation: fade-up 280ms ease-out 70ms both;
}
.card--news-v2-timeline .news-v2-type-title > .news-v2-signal-pill:nth-child(5)
{
  animation: fade-up 280ms ease-out 100ms both;
}
.card--news-v2-timeline .news-v2-type-title > .news-v2-signal-pill:nth-child(6)
{
  animation: fade-up 280ms ease-out 130ms both;
}

/* Dots — spring pop, staggered per step */
.card--news-v2-timeline .news-v2-rail-step::before {
  animation: dot-pop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.card--news-v2-timeline .news-v2-rail-step:nth-child(1)::before { animation-delay: 220ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(2)::before { animation-delay: 300ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(3)::before { animation-delay: 380ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(4)::before { animation-delay: 460ms; }

/* Connectors — fade in with their dot */
.card--news-v2-timeline .news-v2-rail-step::after {
  animation: fade-up 200ms ease-out both;
}
.card--news-v2-timeline .news-v2-rail-step:nth-child(1)::after { animation-delay: 230ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(2)::after { animation-delay: 310ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(3)::after { animation-delay: 390ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(4)::after { animation-delay: 470ms; }

/* Content — fade up just after each dot (30ms after dot fires) */
.card--news-v2-timeline .news-v2-rail-step:nth-child(1) > * { animation: fade-up 320ms ease-out 250ms both; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(2) > * { animation: fade-up 320ms ease-out 330ms both; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(3) > * { animation: fade-up 320ms ease-out 410ms both; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(4) > * { animation: fade-up 320ms ease-out 490ms both; }

/* ══════════════════════════════════════
   FILTER BAR — cream/timeline aesthetic
   ══════════════════════════════════════ */
.filter-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.filter-dropdown {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  background: #ffffff;
  border: none;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.filter-dropdown:hover {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.08);
  background: var(--color-cream);
}
.filter-dropdown .label { color: #737373; font-weight: 400; }

.filter-popover-wrap { position: relative; }

.filter-dropdown.open {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  background: #ffffff;
  color: #171717;
}
.filter-dropdown.open .label { color: #525252; }

.filter-bar > button.filter-dropdown:not([id]) .label,
#acct-trigger .label,
#sig-trigger .label { color: #737373; font-weight: 400; }

.filter-bar > button.filter-dropdown:not([id]) img,
#acct-trigger img,
#sig-trigger img {
  display: block; width: 16px; height: 16px; flex-shrink: 0;
  filter: brightness(0); opacity: 0.38;
}
.filter-bar > button.filter-dropdown:not([id]).open img,
#acct-trigger.open img,
#sig-trigger.open img { opacity: 0.6; }

.filter-bar > button.filter-dropdown:hover:not(.open) .label,
#acct-trigger:hover:not(.open) .label,
#sig-trigger:hover:not(.open) .label { color: #525252; }

.filter-bar > button.filter-dropdown:hover:not(.open) img,
#acct-trigger:hover:not(.open) img,
#sig-trigger:hover:not(.open) img { opacity: 0.5; }

.acct-popover {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 280px; z-index: 50;
  background: #ffffff;
  border: 1px solid rgba(60, 40, 20, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.1), 0 1px 3px rgba(60, 40, 20, 0.06);
  overflow: hidden;
}
.acct-popover.open { display: block; }

.acct-search-wrap {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-bottom: 1px solid rgba(60, 40, 20, 0.08);
}
.acct-search-wrap svg { flex-shrink: 0; color: #a3a3a3; opacity: 1; }

.acct-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; color: #171717; height: 100%;
}
.acct-search-input::placeholder { color: #a3a3a3; }

.acct-list {
  max-height: 300px; overflow-y: auto; padding: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(60, 40, 20, 0.12) transparent;
}
.acct-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: #404040; transition: background 0.1s;
  user-select: none;
}
.acct-item:hover { background: rgba(60, 40, 20, 0.05); }
.acct-item.highlighted { background: rgba(60, 40, 20, 0.04); }

.acct-cb {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid rgba(60, 40, 20, 0.25);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: all 0.15s;
}
.acct-item.checked .acct-cb {
  background: var(--color-purple); border-color: var(--color-purple); opacity: 1;
}
.acct-cb svg { display: none; }
.acct-item.checked .acct-cb svg { display: block; }

.acct-avatar {
  width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #ffffff; overflow: hidden;
  border: none;
}
.acct-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-count { font-size: 12px; color: #a3a3a3; flex-shrink: 0; margin-left: 4px; font-variant-numeric: tabular-nums; }

.sig-popover { width: 340px; }
.acct-popover .sig-icon-newspaper,
.acct-popover .sig-icon-teal,
.acct-popover .sig-icon-suitcase {
  flex-shrink: 0; width: 16px; height: 16px;
  color: #9a7e62; opacity: 1; transition: color 0.12s ease;
}
.acct-popover .acct-item:hover .sig-icon-newspaper,
.acct-popover .acct-item:hover .sig-icon-teal,
.acct-popover .acct-item:hover .sig-icon-suitcase { color: var(--color-purple); }
