@import './global.css';

/* ══════════════════════════════════════
   CTA Buttons
   Mirrors trayo.ai-website Button.astro:
   pill shape, slide-up hover animation,
   four variants: primary / secondary / tertiary / ghost
   ══════════════════════════════════════ */

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

/* Inner wrapper clips the sliding text */
.btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Both text layers share padding & transition */
.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;
}

/* Hover layer starts below, slides up into view */
.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; }

/* Black — dark fill (matches newsfeed Deep research CTA) */
.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; }

/* Secondary — near-black fill (with border so it reads on dark page bg) */
.btn--secondary {
  background: var(--neutral-950);
  color: #ffffff;
  border-color: var(--neutral-700);
}

/* Tertiary — cream fill, dark text */
.btn--tertiary { background: var(--color-cream); color: #171717; }

/* Ghost — transparent, outlined */
.btn--ghost {
  background: transparent;
  color: var(--neutral-50);
  border-color: var(--neutral-600);
}
.btn--ghost:hover { border-color: var(--neutral-400); }

/* Light theme overrides */
[data-theme="light"] .btn--secondary {
  background: #171717;
  border-color: transparent;
}
[data-theme="light"] .btn--ghost {
  color: #171717;
  border-color: #404040;
}
[data-theme="light"] .btn--ghost:hover { border-color: #171717; }

[data-theme="light"] .sidebar-item.active .sidebar-item-icon {
  background: var(--color-purple);
  color: var(--color-sand);
}
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]) img,
[data-theme="light"] #acct-trigger img,
[data-theme="light"] #sig-trigger img,
[data-theme="light"] .job-arrow img,
[data-theme="light"] .news-v2-arrow img,
[data-theme="light"] .news-v2-stk .stk-chevron img {
  filter: none;
}

[data-theme="light"] #sig-trigger img,
[data-theme="light"] #acct-trigger img,
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]) img {
  opacity: 0.52;
}

[data-theme="light"] #sig-trigger.open img,
[data-theme="light"] #acct-trigger.open img,
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]).open img {
  opacity: 0.82;
}

[data-theme="light"] #sig-trigger:hover:not(.open) img,
[data-theme="light"] #acct-trigger:hover:not(.open) img,
[data-theme="light"] .filter-bar > button.filter-dropdown:not([id]):hover:not(.open) img {
  opacity: 0.68;
}

[data-theme="light"] .job-arrow img,
[data-theme="light"] .news-v2-arrow img {
  opacity: 0.82;
}


[data-theme="light"] .btn-personalize,
[data-theme="light"] .btn-personalize-sm {
  color: var(--color-cream);
}
[data-theme="light"] .account-logo {
  background: #ffffff;
  color: var(--neutral-50);
}
[data-theme="light"] .sidebar-company-logo {
  background: var(--footer-bg);
  color: var(--footer-heading);
  border: 1px solid var(--footer-border);
}

/*
 * Tailwind CDN utilities (text-neutral-*) use fixed palette values and load after events.css,
 * so copy can stay light-on-light unless we override here.
 */
[data-theme="light"] main .text-neutral-200 {
  color: var(--neutral-300) !important;
}
[data-theme="light"] main .text-neutral-400 {
  color: var(--neutral-400) !important;
}
[data-theme="light"] .jobs-insight:not(.jobs-insight--purple):not(.jobs-insight--fit):not(:hover) .jobs-insight-text {
  color: #404040 !important;
}
[data-theme="light"] .jobs-insight.jobs-insight--fit .jobs-insight-text {
  color: var(--neutral-400) !important;
}
[data-theme="light"] main .jobs-insight.jobs-insight--purple .jobs-insight-text {
  color: rgba(255, 255, 255, 0.92) !important;
}
[data-theme="light"] main .jobs-insight.jobs-insight--purple .accent-gold {
  color: var(--color-purple);
  background: var(--color-sand);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}
[data-theme="light"] .card--jobs .news-v2-type-title,
[data-theme="light"] .card--career .news-v2-type-title,
[data-theme="light"] .card--news-v2 .news-v2-type-title,
[data-theme="light"] .card--career-move-v2 .news-v2-type-title
{
  color: var(--neutral-400);
}
[data-theme="light"] .card--jobs .news-v2-type-title > svg,
[data-theme="light"] .card--career .news-v2-type-title > svg,
[data-theme="light"] .card--news-v2 .news-v2-type-title > svg,
[data-theme="light"] .card--career-move-v2 .news-v2-type-title > svg
{
  color: var(--neutral-500);
  opacity: 1;
}
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title,
[data-theme="light"] .card--news-v2-timeline .news-v2-type-title > svg,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-type-title,
[data-theme="light"] .card--career-move-v2-timeline .news-v2-type-title > svg
{
  color: var(--color-purple);
  opacity: 1;
}

[data-theme="light"] .news-v2-signal-pill {
  color: var(--color-purple);
  border-color: var(--color-purple);
}

[data-theme="light"] main .jobs-insight .accent-gold {
  color: #ffffff;
  background-color: var(--color-purple);
  padding: 2px 4px;
  border-radius: 2px;
}
[data-theme="light"] main .card--news-v2-timeline .jobs-insight .accent-gold,
[data-theme="light"] main .card--career-move-v2-timeline .jobs-insight .accent-gold
{
  color: var(--color-purple);
  background: none;
  padding: 0;
  border-radius: 0;
}

[data-theme="light"] .jobs-insight.news-v2-insight a.news-v2-product {
  color: #404040;
}

[data-theme="light"] .jobs-insight.news-v2-insight a.news-v2-product:hover {
  color: var(--color-purple-deep);
}

[data-theme="light"] .card--jobs .job-card-main,
[data-theme="light"] .card--career .job-card-main {
  --job-rail-framed-fill: #ffffff;
}

[data-theme="light"] .news-v2-logo.account-logo.account-logo--framed {
  color: var(--color-purple);
  border: 2px solid var(--neutral-700);
  background: #ffffff;
}

/* Stakeholder bar: match news-v2 framed logo fallback ink on pale panels */
[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;
}

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

/* ── Sidebar (website footer: bg-neutral-900, border-neutral-700) ── */
.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;
}

/* Company / user block at top */
.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-brand-logo:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: 4px;
}
.sidebar-company-box {
  --insight-strip-frame: var(--footer-border);
  border: 1px solid var(--insight-strip-frame);
  border-radius: 8px;
  background: var(--footer-inset);
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
}
/* Match divider to .news-v2-insight hr (uses same frame token as parent box) */
.sidebar-company-divider {
  border: none;
  border-top: 1px solid var(--insight-strip-frame);
  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);
  object-fit: cover; 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; }

/* Nav sections */
.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: 50%;
  color: var(--color-purple-mist);
}
.sidebar-item:hover .sidebar-item-icon { transform: scale(1.1); }

/* Theme toggle button — single button, pinned to bottom of .sidebar-body */
.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:focus-visible { outline: 2px solid var(--color-purple); outline-offset: 2px; }
/* Show moon in dark mode, sun in light mode */
.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; }

/* Toggle button — top row next to logo (inside .sidebar-top) */
.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 sidebar state ── */
[data-sidebar="collapsed"] .sidebar { width: var(--sidebar-width-icon); }
[data-sidebar="collapsed"] .main    { margin-left: var(--sidebar-width-icon); }
[data-sidebar="collapsed"] .sidebar-brand-row {
  flex-direction: column;
  align-items: center;
  padding-left: 0;
  padding-right: 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; }
/* Company box: icon-only when collapsed */
[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 transitions — enabled via JS after first paint to prevent FOUC */
.sidebar-transitions .sidebar       { transition: width 200ms ease-linear; }
.sidebar-transitions .main          { transition: margin-left 200ms ease-linear; }
.sidebar-transitions .sidebar-toggle { transition: background 0.15s, color 0.15s, border-color 0.15s; }

/* ── 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);
  position: relative;
}
[data-theme="light"] .main {
  background: var(--color-cream);
}
/* ── Filter bar ── */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-dropdown {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 6px;
  background: var(--neutral-800);
  color: var(--neutral-200);
  font-size: 12px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.filter-dropdown:hover { border-color: var(--neutral-600); background: var(--neutral-surface-hover); }
/* Filter bar: hover matches .card:hover surface */
.filter-bar .filter-dropdown:hover:not(.open) {
  color: var(--neutral-100);
  border-color: var(--neutral-700);
  background: var(--neutral-surface-hover);
}
.filter-dropdown .label { color: var(--neutral-400); }

/* ── Filter popovers ── */
.filter-popover-wrap { position: relative; }
.filter-dropdown.open {
  border-color: var(--neutral-600);
  background: var(--neutral-surface-raise);
  color: var(--neutral-50);
}
.filter-dropdown.open .label { color: var(--neutral-200); }

.filter-bar > button.filter-dropdown:not([id]) .label,
#acct-trigger .label,
#sig-trigger .label {
  color: var(--neutral-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.68;
}
.filter-bar > button.filter-dropdown:not([id]).open .label,
#acct-trigger.open .label,
#sig-trigger.open .label {
  color: var(--neutral-200);
}
.filter-bar > button.filter-dropdown:not([id]).open img,
#acct-trigger.open img,
#sig-trigger.open img {
  opacity: 0.88;
}
.filter-bar > button.filter-dropdown:hover:not(.open) .label,
#acct-trigger:hover:not(.open) .label,
#sig-trigger:hover:not(.open) .label {
  color: var(--neutral-100);
}
.filter-bar > button.filter-dropdown:hover:not(.open) img,
#acct-trigger:hover:not(.open) img,
#sig-trigger:hover:not(.open) img {
  opacity: 0.75;
}

.acct-popover {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 280px; z-index: 50;
  background: var(--neutral-800);
  border: 1px solid color-mix(in srgb, var(--neutral-600) 55%, transparent);
  border-radius: 8px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 12px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
[data-theme="light"] .acct-popover {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.08);
}
.acct-popover.open { display: block; }

/* Search input */
.acct-search-wrap {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--neutral-600) 40%, transparent);
}
.acct-search-wrap svg { flex-shrink: 0; opacity: 0.5; color: var(--neutral-400); }
.acct-popover .acct-search-wrap svg {
  color: #ffffff;
  opacity: 0.92;
}
[data-theme="light"] .acct-popover .acct-search-wrap svg {
  color: var(--neutral-400);
  opacity: 1;
}
.acct-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--neutral-200); height: 100%;
}
.acct-search-input::placeholder { color: var(--neutral-400); }

/* List */
.acct-list {
  max-height: 300px; overflow-y: auto; padding: 4px;
  scrollbar-width: thin; scrollbar-color: var(--neutral-700) transparent;
}
.acct-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 4px; cursor: pointer;
  font-size: 13px; color: var(--neutral-200); transition: background 0.1s;
  user-select: none;
}
.acct-item:hover { background: color-mix(in srgb, var(--neutral-700) 65%, transparent); }
.acct-item.highlighted { background: color-mix(in srgb, var(--neutral-700) 50%, transparent); }

/* Checkbox */
.acct-cb {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--neutral-400) 40%, transparent);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  opacity: 0.5; 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; }

/* Mini avatar */
.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: var(--neutral-50); overflow: hidden;
  border: 1px solid var(--neutral-400);
}
.acct-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-count { font-size: 12px; color: var(--neutral-500); flex-shrink: 0; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Signals popover — same base, wider (background: sidebar / .sidebar-body stack neutral-800) */
.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: #ffffff;
  opacity: 1;
  transition: color 0.12s ease;
}
[data-theme="light"] .acct-popover .sig-icon-newspaper,
[data-theme="light"] .acct-popover .sig-icon-teal,
[data-theme="light"] .acct-popover .sig-icon-suitcase {
  color: var(--neutral-200);
}
.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-mist);
}
[data-theme="light"] .acct-popover .acct-item:hover .sig-icon-newspaper,
[data-theme="light"] .acct-popover .acct-item:hover .sig-icon-teal,
[data-theme="light"] .acct-popover .acct-item:hover .sig-icon-suitcase {
  color: var(--color-purple);
}

/* ── Event list ── */
.event-list { display: flex; flex-direction: column; gap: 24px; }

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

/* ── Card types: accent (jobs = purple scale, career = violet) ── */
.card--jobs {
  --accent-gold: var(--color-purple-soft);
  --accent-gold-dim: color-mix(in srgb, var(--color-purple-mist) 42%, transparent);
  border-radius: 14px;
}
.card--career {
  --accent-gold: var(--color-purple-soft);
  --accent-gold-dim: color-mix(in srgb, var(--color-purple-mist) 42%, transparent);
  border-radius: 14px;
}
.card--jobs:hover,
.card--career:hover,
.card--news-v2:hover,
.card--career-move-v2:hover
{
  background: var(--neutral-800);
}

.card--jobs .news-v2-type-title,
.card--career .news-v2-type-title,
.card--news-v2 .news-v2-type-title,
.card--career-move-v2 .news-v2-type-title
{
  color: var(--color-cream);
}
.card--jobs .news-v2-type-title > svg,
.card--career .news-v2-type-title > svg,
.card--news-v2 .news-v2-type-title > svg,
.card--career-move-v2 .news-v2-type-title > svg
{
  color: var(--color-cream);
  opacity: 1;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.card--jobs .news-v2-type-bar,
.card--career .news-v2-type-bar,
.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 var(--neutral-700);
}

/* Jobs / career: vertical spine — solid brand purple, must paint above row-2 rail */
.job-card-main {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  --job-card-row-gap: 24px;
  --job-rail-framed-fill: var(--neutral-950);
  row-gap: 0;
  align-items: start;
}
.job-rail-top {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 48px;
  justify-self: center;
  align-self: stretch;
  min-height: 0;
}
.job-rail-avatar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  justify-self: center;
  align-self: start;
  padding-top: var(--job-card-row-gap);
}
.job-rail-top .account-logo {
  width: 48px;
  height: 48px;
}
.job-rail-top .account-logo-link {
  display: block;
  width: 48px;
  height: 48px;
  line-height: 0;
  flex-shrink: 0;
}
.job-rail-top .account-logo.account-logo--framed {
  border-color: var(--job-rail-spine);
}
.job-rail-avatar .job-entity-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-color: var(--job-rail-spine);
}
.job-company-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.job-entity-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 0;
}
.job-rail-connector {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  top: 48px;
  width: 1px;
  height: calc(100% - 48px + var(--job-card-row-gap) + 2px);
  background: var(--neutral-700);
  pointer-events: none;
}
.account-logo.account-logo--framed {
  border: 1px solid var(--neutral-400);
  border-radius: 10px;
  background: var(--neutral-950);
  color: var(--neutral-50);
}
.job-company-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  padding-bottom: 4px;
}
.job-company-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.job-company-name {
  font-size: 18px;
  font-weight: 700;
  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;
}
.job-company-name:hover {
  color: var(--neutral-200);
  text-decoration-color: var(--neutral-400);
}
.job-arrow {
  flex-shrink: 0;
  color: var(--neutral-50);
  opacity: 0.85;
  display: flex;
}
.job-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;
}
.job-time {
  font-size: 14px;
}
.news-v2-time {
  font-size: 14px;
}

.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-avatar.is-icon {
  background: var(--neutral-900);
  color: var(--color-cream);
  border-color: var(--neutral-400);
}
.job-entity-avatar.is-icon svg {
  width: 20px;
  height: 20px;
}
.job-entity-avatar.is-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.job-entity-primary {
  font-size: 18px;
  font-weight: 700;
  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: 700;
}
.job-entity-primary-sub-arrow {
  color: var(--accent-gold, 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;
}

/* Insight strip — same BG stack as trayo FeatureCards (sand theme): gradient + noise + masked diagonal */
.jobs-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.jobs-insight-grid .jobs-insight {
  margin-bottom: 0;
}
.jobs-insight-grid--outline .jobs-insight,
.jobs-insight-grid--outline .jobs-insight.jobs-insight--sand {
  background: transparent;
  border: 1.5px dashed var(--color-purple);
}
.jobs-insight-grid--outline .jobs-insight::before {
  display: none;
}
.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: overlay;
  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: 700;
  color: #171717;
  line-height: 1.35;
  margin-top: 0;
}
.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(--accent-gold, var(--color-purple-soft));
  font-weight: 600;
}

/* Theme variants — parity with trayo.ai FeatureCards (sand / peach / purple) */
.jobs-insight.jobs-insight--sand {
  background: linear-gradient(180deg, var(--color-sand-mist) 0%, var(--color-sand-soft) 100%);
}
.jobs-insight.jobs-insight--outline {
  background: #ffffff;
  border: 2px solid var(--color-purple);
}
.jobs-insight.jobs-insight--outline:hover {
  background: #f9f7ff;
  border-color: var(--color-purple);
}
.jobs-insight.jobs-insight--solid-purple {
  background: #ffffff;
  border: 2px solid var(--color-purple);
  border-radius: 16px;
}
.jobs-insight.jobs-insight--solid-purple::before {
  display: none;
}
.jobs-insight.jobs-insight--outline::before {
  display: none;
}

/* "Where Trayo fits" — compact secondary tile: dashed border, smaller text */
.jobs-insight.jobs-insight--fit {
  background: transparent;
  border: 1.5px dashed var(--color-purple);
  border-radius: 16px;
}
.jobs-insight.jobs-insight--fit::before {
  display: none;
}
.jobs-insight.jobs-insight--fit .jobs-insight-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 4px;
}
.jobs-insight.jobs-insight--fit .jobs-insight-icon {
  display: none;
}
.jobs-insight.jobs-insight--fit .jobs-insight-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--neutral-200);
}
.jobs-insight.jobs-insight--fit .accent-gold {
  color: var(--color-purple);
  font-weight: 600;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product {
  color: var(--color-purple);
  font-weight: 600;
}
.jobs-insight.jobs-insight--fit.news-v2-insight a.news-v2-product:hover {
  color: var(--color-purple-deep, var(--color-purple));
}

.jobs-insight.jobs-insight--peach {
  background: var(--color-peach);
}
.jobs-insight.jobs-insight--purple {
  background: var(--color-purple);
}
.jobs-insight.jobs-insight--purple::before {
  opacity: 0.4;
}
.jobs-insight.jobs-insight--purple .jobs-insight-heading {
  color: #ffffff;
}
.jobs-insight.jobs-insight--purple .jobs-insight-icon {
  background: var(--color-sand);
  color: var(--color-purple);
}
.jobs-insight.jobs-insight--purple .jobs-insight-text {
  color: white;
}
.jobs-insight.jobs-insight--purple .accent-gold {
  color: var(--color-purple);
  background: var(--color-sand);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}
.jobs-insight.jobs-insight--purple.news-v2-insight a.news-v2-product {
  color: var(--color-cream-light);
  font-weight: 600;
}
.jobs-insight.jobs-insight--purple.news-v2-insight a.news-v2-product:hover {
  color: #ffffff;
}

.jobs-card-signal {
  font-size: 12px;
  line-height: 1.35;
}

/* Bottom row: personalize + votes aligned on one line */
.jobs-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.card--jobs .jobs-card-footer,
.card--career .jobs-card-footer {
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0;
}
.card--jobs .jobs-card-footer .btn-personalize--pill,
.card--career .jobs-card-footer .btn-personalize--pill {
  flex-shrink: 0;
  margin-right: auto;
  gap: 4px;
}
.card--jobs .jobs-card-footer .vote-group,
.card--career .jobs-card-footer .vote-group {
  flex-shrink: 0;
}

/* ── News card v2 (purple accent family — uses --card-accent / --card-accent-muted) ── */
.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;
}

/* News v2 — light timeline (dashed rail, purple nodes, solid vs dashed insight frames) */
.card--news-v2-timeline,
.card--career-move-v2-timeline
{
  --news-v2-rail-line: #a3a3a3;
  --news-v2-ink: #171717;
  --news-v2-body: #404040;
  /* Hairline spine; use 1px on coarse displays if it vanishes. Lighter --news-v2-rail-line reads thinner too. */
  --news-v2-spine-width: 0.5px;
  /* Spine overlaps type-bar margin + card bottom padding so the rail matches the comp */
  --news-v2-spine-from-type-gap: 24px;
  --news-v2-spine-into-card-bottom: 24px;
  background: #ffffff;
  color: var(--news-v2-body);
}
.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: var(--color-sand-wash);
}
.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: 1px solid #e5e5e5;
  margin-bottom: 24px;
  padding-bottom: 8px;
}
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);
  border-color: var(--color-purple);
}
.card--news-v2-timeline .news-v2-type-divider,
.card--career-move-v2-timeline .news-v2-type-divider
{
  background: #d4d4d4;
}
.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: #262626;
}
.card--news-v2-timeline .news-v2-arrow img,
.card--career-move-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,
.card--career-move-v2-timeline .news-v2-time,
.card--career-move-v2-timeline .news-v2-time .source-btn
{
  color: #737373;
}
.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: 1px solid var(--color-purple-soft);
  background: #ffffff;
  color: var(--color-purple);
}
.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: 1px solid var(--color-purple-soft);
  background: #ffffff;
}
.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);
}
.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);
}
.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: calc(100% - 28px);
  padding-top: 16px;
  padding-bottom: 16px;
}
.card--news-v2-timeline .news-v2-type-title,
.card--career-move-v2-timeline .news-v2-type-title
{
  color: var(--color-purple);
}
.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;
}
.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
{
  color: var(--color-purple);
  background: color-mix(in srgb, var(--color-purple-wash) 72%, #ffffff 28%);
}
.card--news-v2-timeline .jobs-insight .jobs-insight-text,
.card--career-move-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,
.card--career-move-v2-timeline .jobs-insight .accent-gold
{
  color: var(--color-purple);
  font-weight: 600;
}
.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);
}

.card--news-v2-timeline .news-v2-timeline-track,
.card--career-move-v2-timeline .news-v2-timeline-track
{
  margin-top: 0;
}

.news-v2-timeline-track {
  position: relative;
  /* Rail x is in track padding-box coords; steps live in the content box (after padding-left). */
  --news-v2-track-pad-left: 44px;
  --news-v2-rail-x: 15px;
  padding-left: var(--news-v2-track-pad-left);
}
.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: var(--color-purple-mist);
}
.news-v2-rail-step {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}
.news-v2-rail-step:last-child {
  margin-bottom: 0;
}
.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 #ffffff;
  transform: translate(-50%, -50%);
}
.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: 0;
  border-top: 1px dashed var(--news-v2-rail-line);
  z-index: 2;
  transform: translateY(-50%);
}
.news-v2-rail-step--company {
  --rail-step-y: 24px;
}
.news-v2-rail-step--company .news-v2-company-row {
  margin-bottom: 0;
}
.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--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%);
}
/* Timeline company row: logo sits on spine (replaces purple dot) */
.card--news-v2-timeline .news-v2-rail-step--company::before,
.card--career-move-v2-timeline .news-v2-rail-step--company::before
{
  display: none;
}
.card--news-v2-timeline .news-v2-rail-step--company::after,
.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;
}
.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: 0px;
}
.card--news-v2-timeline .news-v2-footer.inner-box:not(.news-v2-footer--stk-open),
.card--news-v2-timeline .news-v2-footer.inner-box:not(.news-v2-footer--stk-open):hover,
.card--career-move-v2-timeline .news-v2-footer.inner-box:not(.news-v2-footer--stk-open),
.card--career-move-v2-timeline .news-v2-footer.inner-box:not(.news-v2-footer--stk-open):hover
{
  border: none;
}
/* Timeline stakeholder header: borderless white (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: #ffffff;
  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: #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,
.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: #171717;
}
.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
{
  background: #ffffff;
  border: 1px solid #e5e5e5;
}
.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
{
  opacity: 1;
}
[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;
}
/* Expanded: outer footer has purple frame — drop nested border so widths align with .stk-list */
.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;
}

/* Insight h4: lock to career/jobs typography (Tailwind is loaded after this file) */
article.card--news-v2 .jobs-insight:not(.jobs-insight--purple) .jobs-insight-heading,
article.card--career-move-v2 .jobs-insight:not(.jobs-insight--purple) .jobs-insight-heading
{
  font-size: 18px;
  font-weight: 700;
  color: #171717;
  line-height: 1.35;
  margin-top: 0;
}

.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: 400;
  color: var(--card-accent-muted);
  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-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-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);
}
.card--jobs .job-rail-top .account-logo.account-logo--framed,
.card--career .job-rail-top .account-logo.account-logo--framed,
.card--jobs .job-rail-avatar .job-entity-avatar,
.card--career .job-rail-avatar .job-entity-avatar {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--neutral-50);
  border: 2px solid var(--neutral-700);
  background: var(--job-rail-framed-fill);
}

.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: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
}
.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: 700;
  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);
  text-decoration-color: var(--neutral-400);
}
.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);
}

.news-v2-summary {
  font-size: 16px;
  color: var(--neutral-200);
  line-height: 1.65;
  margin-bottom: 24px;
  /* Match horizontal text inset of .jobs-insight.news-v2-insight.p-6 */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Editorial insight: bordered sand tile (fill matches .jobs-insight feature-card stack) */
.jobs-insight.news-v2-insight,
.card--career .jobs-insight,
.card--jobs .jobs-insight {
  --insight-strip-frame: color-mix(in srgb, var(--color-sand) 58%, rgba(60, 40, 20, 0.22) 42%);
  border-radius: 16px;
}
.card--career .jobs-insight {
  margin-bottom: 24px;
}

.card--career .jobs-insight.jobs-insight--peach,
.card--jobs .jobs-insight.jobs-insight--peach {
  --insight-strip-frame: color-mix(in srgb, var(--color-peach) 58%, rgba(100, 38, 24, 0.32) 42%);
}
.jobs-insight.news-v2-insight.jobs-insight--purple,
.card--career .jobs-insight.jobs-insight--purple,
.card--jobs .jobs-insight.jobs-insight--purple {
  --insight-strip-frame: color-mix(in srgb, #ffffff 18%, var(--color-purple) 82%);
}

/* Editorial-only extras inside shared .jobs-insight strip */
.jobs-insight.news-v2-insight hr {
  border: none;
  border-top: 1px solid #ffffff;
  /* Full-bleed across p-6 (1.5rem) horizontal inset */
  width: calc(100% + 3rem);
  margin: 24px -1.5rem 18px;
  max-width: none;
}
.jobs-insight.news-v2-insight a.news-v2-product {
  color: var(--accent-gold, var(--color-purple-soft));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: auto;
}
.jobs-insight.news-v2-insight a.news-v2-product:hover {
  color: var(--color-purple-mist);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
}

.news-v2-signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 9999px;
  padding: 2px 8px 2px 6px;
  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;
}

.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;
  /* Clip stakeholder rows (negative margins) to rounded rect so hover border stays visible at corners */
  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) 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: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);
}
/* Match .jobs-insight--outline framing on always-open stakeholder panel */
.news-v2-footer.inner-box.news-v2-footer--stk-always-open {
  border: 1.5px dashed var(--color-purple);
}
.news-v2-footer.inner-box.news-v2-footer--stk-always-open:hover,
.news-v2-footer.inner-box.news-v2-footer--stk-always-open.news-v2-footer--stk-open {
  border: 1.5px dashed var(--color-purple);
}
/* Stakeholder rows: full width of footer (footer has no horizontal padding) */
.news-v2-footer .stk-list {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  gap: 0;
  margin-top: 0;
  border-top: 1.5px dashed var(--color-purple);
}
.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-action {
  right: 24px;
}
/* Timeline card: white background for expanded stakeholder panel */
.card--news-v2-timeline .news-v2-footer .stk-item,
.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: #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;
}
.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-left: 0;
  margin-right: 0;
  margin-bottom: 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::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/svg/noise.svg') repeat;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.news-v2-footer button.news-v2-stk.stk-toggle::before {
  display: none;
}
.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;
}
.news-v2-footer.news-v2-footer--stk-always-open .stk-list {
  display: flex !important;
}
.news-v2-footer.news-v2-footer--stk-always-open .news-v2-stk.news-v2-stk--header-static {
  cursor: default;
  border: none;
  background: linear-gradient(180deg, var(--color-sand-mist) 0%, var(--color-sand-soft) 100%);
}
.news-v2-footer.news-v2-footer--stk-always-open .news-v2-stk.news-v2-stk--header-static::before {
  opacity: 0.7;
  mix-blend-mode: overlay;
}
.news-v2-footer.news-v2-footer--stk-always-open .news-v2-stk.news-v2-stk--header-static .news-v2-stk-text {
  color: #171717;
}
.news-v2-footer.news-v2-footer--stk-always-open .news-v2-stk.news-v2-stk--header-static:hover {
  opacity: 1;
  background: linear-gradient(180deg, var(--color-sand-mist) 0%, var(--color-sand-soft) 100%);
}
.news-v2-footer.news-v2-footer--stk-always-open .news-v2-stk.news-v2-stk--header-static:hover .news-v2-stk-text {
  color: #171717;
}
.news-v2-stk .news-v2-stk-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-50);
}
.news-v2-stk .avatar-stack { flex-shrink: 0; }
.news-v2-stk .avatar-stack .mini-av {
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  border: 1px solid color-mix(in srgb, var(--color-purple-soft) 45%, transparent);
  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;
}
.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);
}
.news-v2-stk.stk-toggle:hover {
  color: var(--card-accent-muted);
}
.news-v2-stk.stk-toggle:hover .news-v2-stk-text {
  color: var(--card-accent-muted);
}

/* ── Card header ── */
.card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.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; }
.card-header-meta { flex: 1; min-width: 0; }
.card-header-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-name {
  font-size: 16px; font-weight: 600;
  color: var(--color-purple-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; transition: color 0.15s;
}
.account-name:hover { color: var(--color-purple); }
.arrow-link { flex-shrink: 0; color: var(--color-purple-soft); transition: color 0.15s; }
.arrow-link:hover { color: var(--color-purple); }

/* Vote buttons */
.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--jobs .vote-btn.up,
.card--jobs .vote-btn.down,
.card--career .vote-btn.up,
.card--career .vote-btn.down,
.card--news-v2 .vote-btn.up,
.card--news-v2 .vote-btn.down,
.card--jobs .stk-action .stk-icon-btn,
.card--career .stk-action .stk-icon-btn,
.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--jobs .vote-btn.up:hover,
.card--jobs .vote-btn.down:hover,
.card--career .vote-btn.up:hover,
.card--career .vote-btn.down:hover,
.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: #171717;
}
.card--jobs .stk-action .stk-icon-btn:hover,
.card--career .stk-action .stk-icon-btn:hover,
.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);
}

/* View source — shared across all card types */
.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;
  margin-left: 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;
  align-items: center;
}
.source-btn.source-btn--inline:hover {
  background: transparent;
}
.source-btn.source-btn--inline .label-text {
  font-size: inherit;
  line-height: 1;
}
.source-btn.source-btn--inline svg {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

/* Jobs / career / news v2: inline “View Source” in time row (no pill fill) */
.card--jobs .job-time .source-btn,
.card--career .job-time .source-btn,
.card--news-v2 .news-v2-time .source-btn,
.card--career-move-v2 .news-v2-time .source-btn
{
  background: transparent;
  padding: 0;
  color: var(--neutral-400);
  transition: color 0.2s;
}
.card--jobs .job-time .source-btn .label-text,
.card--career .job-time .source-btn .label-text,
.card--news-v2 .news-v2-time .source-btn .label-text,
.card--career-move-v2 .news-v2-time .source-btn .label-text
{
  color: inherit;
  transition: color 0.2s;
}
.card--jobs .job-time .source-btn svg,
.card--career .job-time .source-btn svg,
.card--news-v2 .news-v2-time .source-btn svg,
.card--career-move-v2 .news-v2-time .source-btn svg
{
  color: inherit;
  transition: color 0.2s;
}
.card--jobs .job-time .source-btn:hover,
.card--career .job-time .source-btn:hover,
.card--news-v2 .news-v2-time .source-btn:hover,
.card--career-move-v2 .news-v2-time .source-btn:hover
{
  background: transparent;
  color: var(--neutral-50);
}
.card--jobs .job-time .source-btn:hover .label-text,
.card--career .job-time .source-btn:hover .label-text,
.card--news-v2 .news-v2-time .source-btn:hover .label-text,
.card--career-move-v2 .news-v2-time .source-btn:hover .label-text
{
  color: var(--neutral-50);
}
.card--jobs .job-time .source-btn:hover svg,
.card--career .job-time .source-btn:hover svg,
.card--news-v2 .news-v2-time .source-btn:hover svg,
.card--career-move-v2 .news-v2-time .source-btn:hover svg
{
  color: var(--neutral-50);
}

.card-pub { font-size: 13px; color: var(--neutral-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Event summary ── */
.event-summary {
  margin-bottom: 16px; margin-left: 4px;
  font-size: 15px; color: var(--neutral-50); line-height: 1.6;
  display: flex; align-items: flex-start;
}

/* ── Inner box ── */
.inner-box {
  background: var(--neutral-700); border-radius: 8px; padding: 16px;
  margin-bottom: 16px;
}
.inner-box:last-child { margin-bottom: 0; }

/* ── Section heading ── */
.section-heading {
  font-size: 14px; font-weight: 600; color: var(--neutral-50); margin-bottom: 8px;
}

/* ── Signal badges (right-aligned) ── */
.why-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--neutral-700) 50%, transparent); color: var(--neutral-400);
  font-size: 12px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--neutral-600) 50%, transparent);
}

/* ── Why text ── */
.why-text { font-size: 14px; color: var(--neutral-200); line-height: 1.65; }
.kw {
  background: linear-gradient(to right, var(--color-purple), var(--color-purple-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 600;
}

/* ── Where fits ── */
.fits-row { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--neutral-200); line-height: 1.6; }
.fits-link { color: var(--color-purple-soft); font-weight: 600; text-decoration: none; }
.fits-link:hover { color: var(--color-purple-mist); }

/* ── CTA row ── */
.cta-row { display: flex; align-items: center; gap: 8px; }
.btn-personalize {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(
    125deg,
    var(--color-purple) 0%,
    var(--color-purple) 42%,
    color-mix(in srgb, var(--color-purple) 58%, var(--color-purple-deep) 42%) 100%
  );
  color: var(--neutral-50); border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 9999px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.btn-personalize:hover {
  opacity: 0.88;
}
.btn-personalize img {
  display: block;
  filter: brightness(0) invert(1);
}


/* Pill CTA — full capsule; padding often from Tailwind (e.g. px-4 py-2) */
.btn-personalize--pill {
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
}

/* ── Stakeholder toggle ── */
.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); }
.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;
}
.stk-chevron { color: var(--color-purple-soft); margin-left: auto; transition: transform 0.2s; }
.stk-chevron.open { transform: rotate(180deg); }

/* Stakeholder expanded list */
.stk-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.stk-item {
  position: relative;
  background: var(--inset-panel-gradient);
  border: none;
  border-radius: 10px;
  padding: 14px;
  padding-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.stk-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(145deg, #B59DFF, #845CFF);
  border: 2px solid var(--neutral-700);
  overflow: hidden;
  position: relative;
}
.stk-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="light"] .stk-item {
  background: #ffffff;
}
.stk-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-50);
  line-height: 1.35;
}
.stk-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--neutral-400);
  line-height: 1.55;
}
.stk-reason {
  font-size: 14px;
  font-weight: 400;
  color: var(--neutral-400);
  line-height: 1.55;
  margin-top: 8px;
}
.stk-item .stk-name,
.stk-item .stk-title {
  padding-right: 220px;
}
.stk-action {
  position: absolute;
  top: 14px;
  right: 14px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stk-action .stk-icon-btn {
  box-sizing: border-box;
  padding: 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stk-action .stk-icon-btn svg {
  width: 16px;
  height: 16px;
}
.stk-action .btn-personalize.btn-personalize--pill {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}
.stk-action .btn-personalize.btn-personalize--pill img {
  display: block;
  filter: brightness(0) invert(1);
}
.btn-personalize-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(to right, var(--color-purple-soft), var(--color-purple));
  color: var(--neutral-50); border: none; border-radius: 9999px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-personalize-sm:hover {
  background: linear-gradient(to right, var(--color-purple-mist), var(--color-purple-deep));
}
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
}
