/* ══════════════════════════════════════════════════════════════
   new-cards-v2.css
   Main stylesheet for index.html (Newsfeed). Covers the full page:
   sidebar, filter bar, layout, and the two timeline card types:
     • card--news-v2 card--news-v2-timeline                 (News / editorial)
     • card--career-move-v2 card--career-move-v2-timeline    (Career Move / jobs)
   Also covers: design tokens, buttons, vote group, account logo,
                company row, job entity, insight tiles, timeline rail,
                stakeholder footer, source btn.
   ══════════════════════════════════════════════════════════════ */

/* ── 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-800);
}
[data-sidebar="collapsed"] .main { margin-left: var(--sidebar-width-icon); }
[data-theme="light"] .main {
  background-color: 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,
.card--career-move-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: var(--neutral-700); color: var(--neutral-50); }
.btn--black:hover { background: var(--neutral-600); }
[data-theme="light"] .btn--black { background: #171717; color: #fff; }
[data-theme="light"] .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,
.card--career-move-v2 .vote-btn.up,
.card--career-move-v2 .vote-btn.down,
.card--career-move-v2 .stk-action .stk-icon-btn
{
  color: var(--neutral-500);
}
.card--news-v2 .vote-btn.up:hover,
.card--news-v2 .vote-btn.down:hover,
.card--career-move-v2 .vote-btn.up:hover,
.card--career-move-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,
.card--career-move-v2.card--career-move-v2-timeline .vote-btn.up:hover,
.card--career-move-v2.card--career-move-v2-timeline .vote-btn.down:hover
{
  color: var(--neutral-50);
}
[data-theme="light"] .card--news-v2.card--news-v2-timeline .vote-btn.up:hover,
[data-theme="light"] .card--news-v2.card--news-v2-timeline .vote-btn.down:hover,
[data-theme="light"] .card--career-move-v2.card--career-move-v2-timeline .vote-btn.up:hover,
[data-theme="light"] .card--career-move-v2.card--career-move-v2-timeline .vote-btn.down:hover
{
  color: #171717;
}
.card--news-v2 .stk-action .stk-icon-btn:hover,
.card--career-move-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: 0;
}
.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,
.card--career-move-v2-timeline .news-v2-summary
{
  color: var(--news-v2-body);
}

/* ══════════════════════════════════════
   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,
.card--career-move-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 card — dark mode default */
.card--news-v2-timeline,
.card--career-move-v2-timeline
{
  --news-v2-rail-line:             rgba(255, 255, 255, 0.15);
  --news-v2-ink:                   var(--neutral-50);
  --news-v2-body:                  var(--neutral-300);
  --news-v2-spine-width:           1px;
  --news-v2-spine-from-type-gap:   24px;
  --news-v2-spine-into-card-bottom: 24px;
  background: linear-gradient(160deg, var(--neutral-700) 0%, var(--neutral-800) 100%);
  color: var(--news-v2-body);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: box-shadow 240ms ease-out;
  position: relative;
}
.card--news-v2-timeline::after,
.card--career-move-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: 0.12;
}
.card--news-v2-timeline > *,
.card--career-move-v2-timeline > *
{ position: relative; z-index: 1; }
.card--news-v2-timeline:hover,
.card--news-v2.card--news-v2-timeline:hover,
.card--career-move-v2-timeline:hover,
.card--career-move-v2.card--career-move-v2-timeline:hover
{
  background: linear-gradient(160deg, var(--neutral-surface-raise) 0%, var(--neutral-800) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.10);
}
/* Bleed type-bar border edge-to-edge (cancels card's px-6 padding) */
.card--news-v2 .news-v2-type-bar,
.card--career-move-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;
}

/* Dashed separator under type-bar */
.card--news-v2.card--news-v2-timeline .news-v2-type-bar,
.card--career-move-v2.card--career-move-v2-timeline .news-v2-type-bar
{
  border-bottom: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.15) 0,
    rgba(255, 255, 255, 0.15) 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,
article.card--career-move-v2-timeline .news-v2-type-title .news-v2-signal-pill
{
  color: var(--color-purple-soft);
  border-color: rgba(132, 92, 255, 0.3);
}
.card--news-v2-timeline .news-v2-type-divider,
.card--career-move-v2-timeline .news-v2-type-divider
{ background: rgba(255, 255, 255, 0.15); }
.card--news-v2-timeline .news-v2-type-title,
.card--career-move-v2-timeline .news-v2-type-title
{ color: #9a7e62; }
.card--news-v2-timeline .news-v2-type-title > svg,
.card--career-move-v2-timeline .news-v2-type-title > svg
{ color: #9a7e62; opacity: 1; }

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

.card--news-v2-timeline .news-v2-arrow img,
.card--career-move-v2-timeline .news-v2-arrow img
{ filter: brightness(0) invert(1); opacity: 0.55; }

.card--news-v2-timeline .news-v2-time,
.card--news-v2-timeline .news-v2-time .source-btn,
.card--career-move-v2-timeline .news-v2-time,
.card--career-move-v2-timeline .news-v2-time .source-btn
{ color: var(--neutral-400); }
.card--news-v2-timeline .news-v2-time .source-btn--inline .label-text,
.card--news-v2-timeline .news-v2-time .source-btn--inline svg,
.card--career-move-v2-timeline .news-v2-time .source-btn--inline .label-text,
.card--career-move-v2-timeline .news-v2-time .source-btn--inline svg
{ color: inherit; }

.card--news-v2-timeline .news-v2-logo.account-logo.account-logo--framed,
.card--career-move-v2-timeline .news-v2-logo.account-logo.account-logo--framed
{
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: var(--neutral-surface-hover); color: var(--color-purple-soft);
}
/* Initial letter only (no logo image): purple gradient — border/shadow tuned per theme */
.card--news-v2-timeline .news-v2-logo.account-logo.account-logo--framed:not(:has(> .news-v2-logo-img)),
.card--career-move-v2-timeline .news-v2-logo.account-logo.account-logo--framed:not(:has(> .news-v2-logo-img))
{
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  color: #ffffff;
  /* Dark: avoid frosted neutral ring on gradient (reads muddy vs light’s purple-aware edge) */
  border: 2px solid color-mix(in srgb, #845CFF 40%, #12101a);
  box-shadow:
    0 0 0 1px rgba(181, 157, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card--news-v2-timeline .news-v2-logo .news-v2-logo-fallback,
.card--career-move-v2-timeline .news-v2-logo .news-v2-logo-fallback {
  color: inherit;
}

/* ══════════════════════════════════════
   LIGHT THEME — timeline card overrides
   Restores warm cream aesthetic when data-theme="light"
   ══════════════════════════════════════ */
[data-theme="light"] .card--news-v2-timeline,
[data-theme="light"] .card--career-move-v2-timeline {
  --news-v2-rail-line: rgba(60, 40, 20, 0.22);
  --news-v2-ink:       #171717;
  --news-v2-body:      #404040;
  background: linear-gradient(160deg, #ffffff 0%, var(--color-cream) 100%);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .card--news-v2-timeline::after,
[data-theme="light"] .card--career-move-v2-timeline::after {
  opacity: 1;
}
[data-theme="light"] .card--news-v2-timeline:hover,
[data-theme="light"] .card--news-v2.card--news-v2-timeline:hover,
[data-theme="light"] .card--career-move-v2-timeline:hover,
[data-theme="light"] .card--career-move-v2.card--career-move-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);
}
[data-theme="light"] .card--news-v2.card--news-v2-timeline .news-v2-type-bar,
[data-theme="light"] .card--career-move-v2.card--career-move-v2-timeline .news-v2-type-bar {
  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
  );
}
[data-theme="light"] article.card--news-v2-timeline .news-v2-type-title .news-v2-signal-pill,
[data-theme="light"] article.card--career-move-v2-timeline .news-v2-type-title .news-v2-signal-pill {
  color: var(--color-purple); border-color: var(--color-purple-mist);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-type-divider,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-type-divider { background: #d4d4d4; }
[data-theme="light"] .card--news-v2 .news-v2-type-title,
[data-theme="light"] .card--career-move-v2 .news-v2-type-title,
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-type-title { color: #9a7e62; }
[data-theme="light"] .card--news-v2 .news-v2-type-title > svg,
[data-theme="light"] .card--career-move-v2 .news-v2-type-title > svg,
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title > svg,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-type-title > svg { color: #9a7e62; opacity: 1; }
[data-theme="light"] .card--news-v2-timeline .news-v2-company-name:hover,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-company-name:hover { color: #262626; }
[data-theme="light"] .card--news-v2-timeline .news-v2-arrow img,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-arrow img { filter: none; opacity: 0.55; }
[data-theme="light"] .card--news-v2-timeline .news-v2-time,
[data-theme="light"] .card--news-v2-timeline .news-v2-time .source-btn,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-time,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-time .source-btn { color: #737373; }
[data-theme="light"] .card--news-v2-timeline .news-v2-logo.account-logo.account-logo--framed,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-logo.account-logo.account-logo--framed {
  border: 2px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: #ffffff; color: var(--color-purple);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-logo.account-logo.account-logo--framed:not(:has(> .news-v2-logo-img)),
[data-theme="light"] .card--career-move-v2-timeline .news-v2-logo.account-logo.account-logo--framed:not(:has(> .news-v2-logo-img)) {
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  color: #ffffff;
  border: 2px solid color-mix(in srgb, #845CFF 38%, #ffffff);
  box-shadow: 0 0 0 1px rgba(132, 92, 255, 0.22);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-timeline-track::before,
[data-theme="light"] .card--career-move-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
  );
}
[data-theme="light"] .news-v2-timeline-track--end-at-dot .news-v2-rail-step::before,
[data-theme="light"] .news-v2-timeline-track--beige-dots .news-v2-rail-step::before { background: #D4CEC6; }
[data-theme="light"] .news-v2-rail-step::before { box-shadow: 0 0 0 2px var(--color-cream); }
[data-theme="light"] .news-v2-rail-step--insight:has(.jobs-insight--fit)::before {
  background: #D4CEC6; box-shadow: 0 0 0 2px var(--color-cream);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar {
  border: 2px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: var(--color-cream);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar:not(:has(img)),
[data-theme="light"] .card--career-move-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar:not(:has(img)) {
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  color: #ffffff;
  border: 2px solid color-mix(in srgb, #845CFF 38%, #ffffff);
  box-shadow: 0 0 0 1px rgba(132, 92, 255, 0.22);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar.job-entity-avatar--peach:not(:has(img)),
[data-theme="light"] .card--career-move-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar.job-entity-avatar--peach:not(:has(img)) {
  background: linear-gradient(145deg, #FFA182, #FDDC98);
  color: #ffffff;
  border: 2px solid color-mix(in srgb, #FFA182 38%, #ffffff);
  box-shadow: 0 0 0 1px rgba(255, 161, 130, 0.22);
}
[data-theme="light"] .card--news-v2-timeline .job-entity-primary .chk-icon,
[data-theme="light"] .card--career-move-v2-timeline .job-entity-primary .chk-icon {
  filter: none;
}
[data-theme="light"] .card--news-v2-timeline .avatar-stack--lg .mini-av,
[data-theme="light"] .card--career-move-v2-timeline .avatar-stack--lg .mini-av {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: var(--color-cream);
  color: var(--color-purple);
}
[data-theme="light"] .card--news-v2-timeline .stk-accordion-trigger .stk-avatar,
[data-theme="light"] .card--career-move-v2-timeline .stk-accordion-trigger .stk-avatar,
[data-theme="light"] .card--news-v2-timeline .stk-list--inline .stk-item > .stk-avatar,
[data-theme="light"] .card--career-move-v2-timeline .stk-list--inline .stk-item > .stk-avatar {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: var(--color-cream);
  color: var(--color-purple);
}
[data-theme="light"] article.card--news-v2 .jobs-insight .jobs-insight-heading,
[data-theme="light"] article.card--career-move-v2 .jobs-insight .jobs-insight-heading { color: #171717; }
[data-theme="light"] .jobs-insight.jobs-insight--solid-purple {
  background: #ffffff; box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .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);
}
[data-theme="light"] .jobs-insight.jobs-insight--outline {
  background: #ffffff; box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .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);
}
[data-theme="light"] .jobs-insight.jobs-insight--fit {
  background: var(--color-cream-light); box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .jobs-insight.jobs-insight--fit:hover { box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08); }
[data-theme="light"] article.card--news-v2 .jobs-insight.jobs-insight--fit .jobs-insight-heading,
[data-theme="light"] article.card--career-move-v2 .jobs-insight.jobs-insight--fit .jobs-insight-heading { color: #525252; }
[data-theme="light"] .jobs-insight.jobs-insight--fit .jobs-insight-text { color: #525252; }
[data-theme="light"] .jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product { color: #525252; }
[data-theme="light"] .jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product:hover { color: #171717; }


/* ══════════════════════════════════════
   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,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-timeline-track::before
{
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0,
    rgba(255, 255, 255, 0.15) 4px,
    transparent 4px,
    transparent 9px
  );
  transform-origin: top center;
  animation: spine-draw 500ms cubic-bezier(0.4, 0, 0.2, 1) 80ms both;
}

/* Spine ends at last dot */
.news-v2-timeline-track--end-at-dot {
  --news-v2-spine-into-card-bottom: -44px;
}
/* Career-move cards end on CTA (dot ~center of btn row), not a tall insight block */
.card--career-move-v2-timeline .news-v2-timeline-track--end-at-dot {
  --news-v2-career-cta-dot-offset: 18px;
  --news-v2-spine-into-card-bottom: calc(-1 * var(--news-v2-career-cta-dot-offset));
}
.card--career-move-v2-timeline .news-v2-timeline-track--end-at-dot .news-v2-rail-step--cta {
  --rail-step-y: calc(100% - var(--news-v2-career-cta-dot-offset));
}
/* Muted dot for end-at-dot / beige-dots variants */
.news-v2-timeline-track--end-at-dot .news-v2-rail-step::before,
.news-v2-timeline-track--beige-dots .news-v2-rail-step::before {
  background: #6b6560;
}

/* 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(--neutral-900);
  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(--neutral-900);
}

.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%);
}

/* Indented step: shifts content right but keeps dot/connector on the spine */
.news-v2-rail-step--indented {
  margin-left: 24px;
}
.news-v2-rail-step--indented::before {
  left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left) - 24px);
}
.news-v2-rail-step--indented::after {
  left: calc(var(--news-v2-rail-x) - var(--news-v2-track-pad-left) - 24px);
  width: calc(var(--news-v2-track-pad-left) - var(--news-v2-rail-x) + 24px);
}
/* Inner dashed line — re-use the accordion's own connector, restyled to match the main spine */
.news-v2-rail-step--indented .stk-accordion--connected::before {
  display: block;
  left: 27px; /* half of 54px connected avatar */
  width: 1px;
  border-left: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(60, 40, 20, 0.22) 0,
    rgba(60, 40, 20, 0.22) 4px,
    transparent 4px,
    transparent 9px
  );
  /* top: 40px; bottom: 40px already set globally — spans first-to-last avatar center */
}

/* 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,
.card--career-move-v2-timeline .news-v2-rail-step--company::before,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: var(--neutral-surface-hover); color: var(--color-purple-soft);
}
/* Initials only (no photo): purple gradient — matches company logo fallback */
.card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar:not(:has(img)),
.card--career-move-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar:not(:has(img))
{
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border: 2px solid color-mix(in srgb, #845CFF 40%, #12101a);
  box-shadow:
    0 0 0 1px rgba(181, 157, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card--news-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar.job-entity-avatar--peach:not(:has(img)),
.card--career-move-v2-timeline .news-v2-timeline-job-entity .job-entity-avatar.job-entity-avatar--peach:not(:has(img))
{
  background: linear-gradient(145deg, #FFA182, #FDDC98);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border: 2px solid color-mix(in srgb, #FFA182 40%, #12101a);
  box-shadow:
    0 0 0 1px rgba(255, 161, 130, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card--news-v2-timeline .job-entity-body .job-entity-primary,
.card--news-v2-timeline .job-entity-body .job-entity-primary-sub strong,
.card--career-move-v2-timeline .job-entity-body .job-entity-primary,
.card--career-move-v2-timeline .job-entity-body .job-entity-primary-sub strong
{
  color: var(--news-v2-ink);
}
.job-entity-primary .news-v2-company-name {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  padding-bottom: 4px;
}
.job-entity-primary .job-entity-primary-sub {
  margin-top: 4px;
}
.card--news-v2-timeline .job-entity-body .job-entity-primary-sub,
.card--news-v2-timeline .job-entity-body .job-entity-secondary,
.card--career-move-v2-timeline .job-entity-body .job-entity-primary-sub,
.card--career-move-v2-timeline .job-entity-body .job-entity-secondary
{
  color: var(--news-v2-body);
}

/* circle-check-2-outline.svg uses #1c1f21 strokes — invisible on dark timeline without invert */
.card--news-v2-timeline .job-entity-primary .chk-icon,
.card--career-move-v2-timeline .job-entity-primary .chk-icon {
  filter: brightness(0) invert(1);
  transition: filter 0.15s ease;
}
.card--news-v2-timeline .job-entity-primary .chk-icon:hover,
.card--career-move-v2-timeline .job-entity-primary .chk-icon:hover {
  filter: brightness(0) saturate(100%) invert(84%) sepia(29%) saturate(1083%) hue-rotate(105deg) brightness(105%) contrast(95%);
}

/* Stakeholder accordions: 54×54 outer so 3px ring leaves ~48px photo (matches global .stk-avatar) */
.card--news-v2-timeline .stk-accordion-trigger .stk-avatar,
.card--career-move-v2-timeline .stk-accordion-trigger .stk-avatar {
  background: var(--neutral-surface-hover);
  color: var(--color-purple-soft);
  width: 54px;
  height: 54px;
  font-size: 16px;
}
.card--news-v2-timeline .stk-accordion:not(.stk-accordion--connected) .stk-accordion-content,
.card--career-move-v2-timeline .stk-accordion:not(.stk-accordion--connected) .stk-accordion-content {
  padding-left: 90px;
}

/* Inline stakeholder rows in insight blocks (e.g. Snowflake): 54×54 outer, same ring treatment as .stk-avatar */
.card--news-v2-timeline .stk-list--inline .stk-item > .stk-avatar,
.card--career-move-v2-timeline .stk-list--inline .stk-item > .stk-avatar {
  background: var(--neutral-surface-hover);
  color: var(--color-purple-soft);
  width: 54px;
  height: 54px;
  font-size: 16px;
}

/* Inline list names: same as .stk-accordion-trigger .stk-name (solid-purple a was winning with neutral-300) */
.card--news-v2-timeline .stk-list--inline .stk-name,
.card--career-move-v2-timeline .stk-list--inline .stk-name {
  padding-right: 0;
  margin-bottom: 0;
}
.card--news-v2-timeline .stk-list--inline .stk-name a,
.card--career-move-v2-timeline .stk-list--inline .stk-name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-decoration-skip-ink: auto;
}
.card--news-v2-timeline .stk-list--inline .stk-name a:hover,
.card--career-move-v2-timeline .stk-list--inline .stk-name a:hover {
  color: var(--neutral-50);
  text-decoration-color: currentColor;
}
[data-theme="light"] .card--news-v2-timeline .stk-list--inline .stk-name a,
[data-theme="light"] .card--career-move-v2-timeline .stk-list--inline .stk-name a {
  text-decoration-color: rgba(60, 40, 20, 0.25);
}
[data-theme="light"] .card--news-v2-timeline .stk-list--inline .stk-name a:hover,
[data-theme="light"] .card--career-move-v2-timeline .stk-list--inline .stk-name a:hover {
  color: #171717;
  text-decoration-color: currentColor;
}
.card--news-v2-timeline .stk-list--inline .stk-title,
.card--career-move-v2-timeline .stk-list--inline .stk-title {
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #737373;
  margin-top: 2px;
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   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;
  padding-top: 18px !important; /* overrides Tailwind .p-6 (24px) */
}
.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: var(--neutral-50);
  line-height: 1.35; margin-top: 0; margin-bottom: 6px;
}
[data-theme="light"] .jobs-insight .jobs-insight-heading { color: #171717; }
.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: 15px; 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,
article.card--career-move-v2 .jobs-insight .jobs-insight-heading
{
  font-size: 18px; font-weight: 600; color: var(--neutral-50);
  line-height: 1.35; margin-top: 0;
}

/* ── Timeline insight overrides ── */
.card--news-v2-timeline .news-v2-rail-step .jobs-insight,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-rail-step .jobs-insight.jobs-insight--outline,
.card--career-move-v2-timeline .news-v2-rail-step .jobs-insight.jobs-insight--fit
{
  max-width: 100%;
  padding-top: 16px !important; padding-bottom: 16px !important;
}

.card--news-v2-timeline .jobs-insight .jobs-insight-heading,
.card--career-move-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,
.card--career-move-v2-timeline .jobs-insight.jobs-insight--outline .jobs-insight-icon,
.card--career-move-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,
.card--career-move-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,
.card--career-move-v2-timeline .jobs-insight .jobs-insight-text
{
  font-size: 15px; line-height: 1.65; color: var(--news-v2-body);
}
.card--news-v2-timeline .jobs-insight .accent-gold,
.card--career-move-v2-timeline .jobs-insight .accent-gold
{
  /* Match .news-v2-signal-pill on same card: purple-soft (dark), purple (light) */
  color: var(--color-purple-soft);
  background: none;
  border-bottom: none;
  border-radius: 0;
  font-weight: 600;
}
[data-theme="light"] .card--news-v2-timeline .jobs-insight .accent-gold,
[data-theme="light"] .card--career-move-v2-timeline .jobs-insight .accent-gold {
  color: var(--color-purple);
}
.card--news-v2-timeline .jobs-insight a.news-v2-product,
.card--career-move-v2-timeline .jobs-insight a.news-v2-product
{ color: var(--color-purple); }

/* ── Variant: --solid-purple ── */
.jobs-insight.jobs-insight--solid-purple {
  background: var(--neutral-surface-hover);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  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(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* ── Variant: --bordered (transparent bg + dashed border) ── */
.jobs-insight.jobs-insight--bordered {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .jobs-insight.jobs-insight--bordered {
  border: 1.5px dashed rgba(60, 40, 20, 0.2);
}

/* ── Variant: --outline ── */
.jobs-insight.jobs-insight--outline {
  background: var(--neutral-surface-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  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(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* ── Variant: --fit ── */
.jobs-insight.jobs-insight--fit {
  background: var(--neutral-surface-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  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(255, 255, 255, 0.12);
}
article.card--news-v2 .jobs-insight.jobs-insight--fit .jobs-insight-heading,
article.card--career-move-v2 .jobs-insight.jobs-insight--fit .jobs-insight-heading
{
  font-size: 18px; font-weight: 600; color: var(--neutral-200); 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: var(--neutral-300);
}
.jobs-insight.jobs-insight--fit .accent-gold {
  color: var(--color-purple-soft);
  font-weight: 600;
  background: none;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product {
  color: var(--neutral-300); font-weight: 600;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product:hover {
  color: var(--neutral-100);
}
/* ── Collapsible insight block ── */
.insight-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; padding: 0; cursor: pointer;
  text-align: left;
}
.insight-toggle .jobs-insight-heading { margin-bottom: 0 !important; line-height: 1.2; }
.insight-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 200ms ease;
}
.insight-chevron img {
  filter: brightness(0) invert(1); opacity: 0.55;
  display: block;
}
[data-theme="light"] .insight-chevron {
  background: rgba(60, 40, 20, 0.055);
}
[data-theme="light"] .insight-chevron img {
  filter: brightness(0); opacity: 0.45;
}
.insight-collapsible.open .insight-chevron { transform: rotate(180deg); }
.insight-body {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 360ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease;
}
.insight-collapsible.open .insight-body {
  max-height: 300px; opacity: 1;
}

.jobs-insight.jobs-insight--solid-purple a,
.jobs-insight.jobs-insight--solid-purple a.news-v2-product {
  color: var(--neutral-300);
}
.jobs-insight.jobs-insight--solid-purple a:hover,
.jobs-insight.jobs-insight--solid-purple a.news-v2-product:hover {
  color: var(--neutral-50);
}
[data-theme="light"] .jobs-insight.jobs-insight--solid-purple a,
[data-theme="light"] .jobs-insight.jobs-insight--solid-purple a.news-v2-product {
  color: #404040;
}
[data-theme="light"] .jobs-insight.jobs-insight--solid-purple a:hover,
[data-theme="light"] .jobs-insight.jobs-insight--solid-purple a.news-v2-product:hover {
  color: #171717;
}

/* ── All links inside timeline cards ── */
.card--news-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo),
.card--career-move-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-decoration-skip-ink: auto;
}
.card--news-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo):hover,
.card--career-move-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo):hover {
  text-decoration-color: currentColor;
}
[data-theme="light"] .card--news-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo),
[data-theme="light"] .card--career-move-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo) {
  text-decoration-color: rgba(60, 40, 20, 0.3);
}
[data-theme="light"] .card--news-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo):hover,
[data-theme="light"] .card--career-move-v2-timeline a:not(.source-btn):not(.source-btn--inline):not(.account-logo-link):not(.news-v2-logo):hover {
  text-decoration-color: currentColor;
}

/* ── 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: rgba(255, 255, 255, 0.25);
  text-decoration-skip-ink: auto;
}
[data-theme="light"] .jobs-insight.news-v2-insight a.news-v2-product {
  text-decoration-color: rgba(60, 40, 20, 0.3);
}

/* ══════════════════════════════════════
   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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-footer.inner-box::before
{
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px 0 0 8px;
  z-index: 2;
  pointer-events: none;
  transition: background 240ms ease;
}
[data-theme="light"] .card--news-v2-timeline .news-v2-footer.inner-box::before,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-footer.inner-box::before
{
  background: var(--color-cream);
}
.card--news-v2-timeline .news-v2-footer.inner-box.news-v2-footer--stk-open::before,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-footer.inner-box:hover,
.card--career-move-v2-timeline .news-v2-footer.inner-box.news-v2-footer--stk-open,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle
{
  background: var(--neutral-surface-hover);
  border: none;
  box-shadow: none;
  opacity: 1;
}
.card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover,
.card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover
{
  background: var(--neutral-surface-raise);
  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,
.card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle .news-v2-stk-text,
.card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text
{
  color: var(--neutral-50);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle,
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover
{
  background: #ffffff;
}
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle .news-v2-stk-text,
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle:hover .news-v2-stk-text,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-footer .news-v2-stk.stk-toggle .news-v2-stk-text,
[data-theme="light"] .card--career-move-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,
.card--career-move-v2-timeline .news-v2-footer.news-v2-footer--stk-open .news-v2-stk.stk-toggle,
.card--career-move-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,
[data-theme="light"] .card--career-move-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 rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  outline: none;
}
[data-theme="light"] .news-v2-stk .avatar-stack .mini-av {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
}
.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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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; }

/* Expanded footer rows: gradient initials — dark rim on dark UI (aligns with .news-v2-stk .mini-av) */
.news-v2-footer .stk-item > .stk-avatar {
  border: 3px solid rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .news-v2-footer .stk-item > .stk-avatar {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
}

/* Timeline card: expanded stakeholder rows — dark surfaces on dark theme; white on light */
.card--news-v2-timeline .news-v2-footer .stk-item,
.card--career-move-v2-timeline .news-v2-footer .stk-item
{
  background: var(--neutral-800-panel-gradient);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .stk-item,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-footer .stk-item
{
  background: #ffffff;
}
.card--news-v2-timeline .news-v2-footer .stk-item .stk-name,
.card--career-move-v2-timeline .news-v2-footer .stk-item .stk-name
{
  color: var(--news-v2-ink);
}
[data-theme="light"] .card--news-v2-timeline .news-v2-footer .stk-item .stk-name,
[data-theme="light"] .card--career-move-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,
.card--career-move-v2-timeline .news-v2-footer .stk-item .stk-title,
.card--career-move-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;
  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; }

/* Inline stakeholder list inside insight block — always visible, warm separators */
.stk-list--inline { gap: 0; margin-top: 12px; }
.stk-list--inline .stk-item {
  opacity: 1;
  transform: none;
  transition: none;
  padding: 16px 0;
}
.stk-list--inline .stk-item + .stk-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}
[data-theme="light"] .stk-list--inline .stk-item + .stk-item {
  border-top: 1px dashed rgba(60, 40, 20, 0.18);
}
.stk-list--inline .stk-item:first-child {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}
[data-theme="light"] .stk-list--inline .stk-item:first-child {
  border-top: 1px dashed rgba(60, 40, 20, 0.18);
}
.stk-list--inline .stk-item:last-child { padding-bottom: 0; }
.stk-list--inline .stk-item > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.stk-list--inline .stk-name   { flex: 1; min-width: 0; order: 1; }
.stk-list--inline .stk-action { flex-shrink: 0; order: 2; }
.stk-list--inline .stk-title  { width: 100%; order: 3; }
.stk-list--inline .stk-reason { width: 100%; order: 4; }

.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 rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden; position: relative;
}
[data-theme="light"] .stk-avatar {
  border: 3px solid var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
}
.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-name a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); text-decoration-skip-ink: auto; }
.stk-name a:hover { text-decoration-color: currentColor; }
[data-theme="light"] .stk-name a { text-decoration-color: rgba(60, 40, 20, 0.25); }
.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; }
.card--news-v2-timeline .stk-name,
.card--career-move-v2-timeline .stk-name { color: var(--neutral-50); }
[data-theme="light"] .card--news-v2-timeline .stk-name,
[data-theme="light"] .card--career-move-v2-timeline .stk-name { color: #171717; }
.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;
}
.avatar-stack--lg .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;
}

/* Insight “Found N stakeholders” stack on timeline cards — match rail .job-entity-avatar */
.card--news-v2-timeline .avatar-stack--lg .mini-av,
.card--career-move-v2-timeline .avatar-stack--lg .mini-av {
  width: 48px;
  height: 48px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-purple-soft);
  background: var(--neutral-surface-hover);
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  outline: none;
  margin-left: -12px;
}
.card--news-v2-timeline .avatar-stack--lg .mini-av:first-child,
.card--career-move-v2-timeline .avatar-stack--lg .mini-av:first-child {
  margin-left: 0;
}


/* ══════════════════════════════════════════════════════════════
   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--career-move-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),
.card--career-move-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,
.card--career-move-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),
.card--career-move-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),
.card--career-move-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),
.card--career-move-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,
.card--career-move-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--insight:has(.jobs-insight--fit)::before,
.card--career-move-v2-timeline .news-v2-rail-step--insight:has(.jobs-insight--fit)::before
{
  background: #6b6560;
}
[data-theme="light"] .card--news-v2-timeline .news-v2-rail-step--insight:has(.jobs-insight--fit)::before,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-rail-step--insight:has(.jobs-insight--fit)::before
{
  background: #D4CEC6;
}

/* Career-move timeline: all rail dots match muted “Where Trayo fits” fit-insight dot */
.card--career-move-v2-timeline .news-v2-rail-step--insight::before,
.card--career-move-v2-timeline .news-v2-rail-step--cta::before
{
  background: #6b6560;
  box-shadow: 0 0 0 2px var(--neutral-900);
}
[data-theme="light"] .card--career-move-v2-timeline .news-v2-rail-step--insight::before,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-rail-step--cta::before
{
  background: #D4CEC6;
  box-shadow: 0 0 0 2px var(--color-cream);
}
.card--news-v2-timeline .news-v2-rail-step:nth-child(1)::before,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(4)::before
{ animation-delay: 460ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(5)::before,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(5)::before
{ animation-delay: 540ms; }

/* Connectors — fade in with their dot */
.card--news-v2-timeline .news-v2-rail-step::after,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(4)::after
{ animation-delay: 470ms; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(5)::after,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(5)::after
{ animation-delay: 550ms; }

/* Content — fade up just after each dot (30ms after dot fires) */
.card--news-v2-timeline .news-v2-rail-step:nth-child(1) > *,
.card--career-move-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) > *,
.card--career-move-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) > *,
.card--career-move-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) > *,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(4) > *
{ animation: fade-up 320ms ease-out 490ms both; }
.card--news-v2-timeline .news-v2-rail-step:nth-child(5) > *,
.card--career-move-v2-timeline .news-v2-rail-step:nth-child(5) > *
{ animation: fade-up 320ms ease-out 570ms 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: var(--neutral-surface-hover);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: var(--neutral-50);
  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(255, 255, 255, 0.10), 0 2px 6px rgba(0, 0, 0, 0.2);
  background: var(--neutral-surface-raise);
}
.filter-dropdown .label { color: var(--neutral-400); font-weight: 400; }

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

.filter-dropdown.open {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
  background: var(--neutral-surface-raise);
  color: var(--neutral-50);
}
.filter-dropdown.open .label { color: var(--neutral-300); }

.filter-bar > button.filter-dropdown:not([id]) .label,
#acct-trigger .label,
#sig-trigger .label { color: var(--neutral-400); 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) invert(1); opacity: 0.45;
}
.filter-bar > button.filter-dropdown:not([id]).open img,
#acct-trigger.open img,
#sig-trigger.open img { opacity: 0.7; }

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

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

[data-theme="light"] .filter-dropdown {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
}
[data-theme="light"] .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);
}
[data-theme="light"] .filter-dropdown .label { color: #737373; }
[data-theme="light"] .filter-dropdown.open {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  background: #ffffff; color: #171717;
}
[data-theme="light"] .filter-dropdown.open .label { color: #525252; }
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]) .label,
[data-theme="light"] #acct-trigger .label,
[data-theme="light"] #sig-trigger .label { color: #737373; }
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]) img,
[data-theme="light"] #acct-trigger img,
[data-theme="light"] #sig-trigger img { filter: brightness(0); opacity: 0.38; }
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]).open img,
[data-theme="light"] #acct-trigger.open img,
[data-theme="light"] #sig-trigger.open img { opacity: 0.6; }
[data-theme="light"] .filter-bar > button.filter-dropdown:hover:not(.open) .label,
[data-theme="light"] #acct-trigger:hover:not(.open) .label,
[data-theme="light"] #sig-trigger:hover:not(.open) .label { color: #525252; }
[data-theme="light"] .filter-bar > button.filter-dropdown:hover:not(.open) img,
[data-theme="light"] #acct-trigger:hover:not(.open) img,
[data-theme="light"] #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: var(--neutral-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
  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(255, 255, 255, 0.07);
}
.acct-search-wrap svg { flex-shrink: 0; color: var(--neutral-400); opacity: 1; }

.acct-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--neutral-50); height: 100%;
}
.acct-search-input::placeholder { color: var(--neutral-500); }

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

[data-theme="light"] .acct-popover {
  background: #ffffff;
  border: 1px solid rgba(60, 40, 20, 0.12);
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.1), 0 1px 3px rgba(60, 40, 20, 0.06);
}
[data-theme="light"] .acct-search-wrap { border-bottom: 1px solid rgba(60, 40, 20, 0.08); }
[data-theme="light"] .acct-search-wrap svg { color: #a3a3a3; }
[data-theme="light"] .acct-search-input { color: #171717; }
[data-theme="light"] .acct-search-input::placeholder { color: #a3a3a3; }
[data-theme="light"] .acct-list { scrollbar-color: rgba(60, 40, 20, 0.12) transparent; }
[data-theme="light"] .acct-item { color: #404040; }
[data-theme="light"] .acct-item:hover { background: rgba(60, 40, 20, 0.05); }
[data-theme="light"] .acct-item.highlighted { background: rgba(60, 40, 20, 0.04); }

.acct-cb {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: all 0.15s;
}
[data-theme="light"] .acct-cb { border: 1px solid rgba(60, 40, 20, 0.25); }
.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); }

/* ══════════════════════════════════════════════════════════════
   Stakeholder modal
   ══════════════════════════════════════════════════════════════ */
.stk-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(23, 23, 23, 0.48);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.stk-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.stk-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(60, 40, 20, 0.18), 0 0 0 1px rgba(60, 40, 20, 0.07);
  width: 740px; max-width: calc(100vw - 32px);
  transform: translateY(8px);
  transition: transform 220ms ease;
}
.stk-modal-overlay.open .stk-modal-card {
  transform: translateY(0);
}
.stk-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.stk-modal-title {
  font-size: 20px; font-weight: 600; color: #171717; margin: 0;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.stk-modal-close {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(60, 40, 20, 0.055); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #737373; flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}
.stk-modal-close:hover { background: rgba(60, 40, 20, 0.1); color: #171717; }
.stk-modal-body { padding: 12px 24px 8px; }
.stk-modal-body .stk-list--inline .stk-item:last-child { padding-bottom: 16px; }

/* ── Stakeholder accordion ── */
.stk-accordion { margin-top: 0; }
.stk-accordion-item { border-top: 1px dashed rgba(255, 255, 255, 0.15); margin-left: -24px; margin-right: -24px; }
[data-theme="light"] .stk-accordion-item { border-top: 1px dashed rgba(60, 40, 20, 0.18); }
.stk-accordion-trigger { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; cursor: pointer; padding: 14px 24px; text-align: left; }
.stk-accordion-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stk-accordion-trigger .stk-name { font-size: 18px; font-weight: 600; color: var(--neutral-50); font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding-right: 0; margin-bottom: 0; }
[data-theme="light"] .stk-accordion-trigger .stk-name { color: #171717; }
.stk-accordion-trigger .stk-name a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); text-decoration-skip-ink: auto; }
.stk-accordion-trigger .stk-name a:hover { text-decoration-color: currentColor; }
[data-theme="light"] .stk-accordion-trigger .stk-name a { text-decoration-color: rgba(60, 40, 20, 0.25); }
.stk-accordion-trigger:hover .stk-name { color: var(--neutral-50); }
[data-theme="light"] .stk-accordion-trigger:hover .stk-name { color: #171717; }
.stk-accordion-trigger .stk-title { font-size: 13px; color: #737373; font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.stk-accordion-chevron { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: #845CFF; display: inline-flex; align-items: center; justify-content: center; transition: transform 200ms ease; margin-left: auto; }
.stk-accordion-chevron img { filter: brightness(0) invert(1); opacity: 1; display: block; }
.stk-accordion-item.open .stk-accordion-chevron { transform: rotate(180deg); }
.stk-accordion-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease; padding: 0 24px 0 90px; }
.stk-accordion-item.open .stk-accordion-content { max-height: 220px; opacity: 1; padding-bottom: 16px; }
.stk-accordion-content .stk-reason { font-size: 14px; color: #737373; font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.55; margin-bottom: 10px; }

/* ── Connected avatars variant: dashed vertical spine through avatar centers ── */
.stk-accordion--connected { position: relative; }
.stk-accordion--connected .stk-accordion-item { border-top: none; margin-left: 0; margin-right: 0; }
.stk-accordion--connected .stk-accordion-trigger { padding-left: 0; padding-right: 0; }
.stk-accordion--connected .stk-accordion-content { padding-left: 66px; padding-right: 0; }
.stk-accordion--connected::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 40px;
  bottom: 40px;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .stk-accordion--connected::before {
  border-left: 1px dashed rgba(60, 40, 20, 0.22);
}
