/* =========================================================================
   Yuxin Cao — Academic Homepage (redesign)
   Purple-based scholar theme. Plain CSS, no build step.
   ========================================================================= */

:root {
  /* Purple identity palette */
  --purple-900: #3b1d6e;
  --purple-700: #5b2a9d;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #8b5cf6;
  --lavender:   #ede9fe;
  --lavender-2: #f5f3ff;
  --accent:     #a855f7;

  /* Neutrals */
  --ink:        #1f2430;
  --ink-soft:   #404654;
  --muted:      #6b7280;
  --line:       #e9e6f2;
  --card:       #ffffff;
  --bg:         #faf9fe;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(59,29,110,.05), 0 8px 24px rgba(59,29,110,.07);
  --shadow-lg:  0 12px 40px rgba(59,29,110,.14);
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* html { scroll-behavior: auto; } */

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle lavender wash at the top of the page */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(900px 360px at 12% -8%, rgba(124,58,237,.13), transparent 60%),
    radial-gradient(720px 320px at 92% -12%, rgba(168,85,247,.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--purple-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* =========================== Navigation =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.08rem; color: var(--purple-700);
  letter-spacing: .2px;
}
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple-500), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(124,58,237,.4);
}
.brand a { color: inherit; }
.brand a:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-soft);
  font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 9px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--lavender); color: var(--purple-700); text-decoration: none; }
.nav-links a.active { color: var(--purple-700); background: var(--lavender); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 9px; color: var(--purple-700);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* anchor offset so sticky nav doesn't cover headings */
section { scroll-margin-top: 84px; }

/* =========================== Hero =========================== */
.hero { padding: 48px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.hero-photo {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, var(--purple-500), var(--accent));
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 19px;
  display: block;
  background: #fff;
}
.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 6px;
  letter-spacing: -.5px;
}
.hero .role {
  font-size: 1.15rem; font-weight: 600; color: var(--purple-700);
  margin: 0 0 2px;
}
.hero .affil { color: var(--ink-soft); margin: 0 0 14px; }
.hero .tagline {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 18px;
}
.hero .tagline a { font-weight: 600; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s, color .16s;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--purple-400);
  color: var(--purple-700);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.chip svg { width: 16px; height: 16px; }

/* =========================== Sections =========================== */
.section { padding: 12px 0; }
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: 1.7rem; margin: 0;
  position: relative; padding-left: 16px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 4px;
  background: linear-gradient(var(--purple-500), var(--accent));
}
.section-head .sub { color: var(--muted); font-size: .92rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================== About / News =========================== */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.about-card, .news-card { padding: 24px 26px; }
.about-card p { margin: 0; color: var(--ink-soft); }

.news-card h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--purple-700); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: .9rem; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.news-list .date { font-weight: 700; color: var(--purple-700); }
#moreNews { display: none; }
#moreNews.open { display: block; }
.btn-soft {
  margin-top: 12px;
  background: var(--lavender);
  color: var(--purple-700);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .16s;
}
.btn-soft:hover { background: #e3dcfb; }

/* =========================== Research =========================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.research-card {
  padding: 24px 26px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.research-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-400);
}
.research-card .rc-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--lavender), #fff);
  border: 1px solid var(--line);
  color: var(--purple-600);
}
.research-card .rc-icon svg { width: 24px; height: 24px; }
.research-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.research-card .rc-desc { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.research-card .rc-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--purple-500);
  margin-bottom: 6px;
}
.rep-list { list-style: none; margin: 0; padding: 0; }
.rep-list li {
  font-size: .86rem; color: var(--ink-soft);
  padding: 4px 0 4px 18px; position: relative;
}
.rep-list li::before {
  content: "›"; position: absolute; left: 2px; color: var(--accent); font-weight: 800;
}
.rep-list .venue-pill {
  font-weight: 700; color: var(--purple-700);
}

/* =========================== Featured publications =========================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feat-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 20px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--purple-400); }
.feat-thumb {
  width: 120px; height: 120px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  position: relative; overflow: hidden;
}
.feat-thumb svg { width: 46px; height: 46px; opacity: .95; }
/* distinct gradient placeholders */
.grad-a { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.grad-b { background: linear-gradient(135deg, #5b2a9d, #7c3aed); }
.grad-c { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.grad-d { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.grad-e { background: linear-gradient(135deg, #6d28d9, #db2777); }

.feat-body h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.35; }
.feat-body .authors { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.feat-body .summary { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }
.feat-body .me { color: var(--purple-700); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-venue {
  font-size: .74rem; font-weight: 800; letter-spacing: .3px;
  background: var(--purple-700); color: #fff;
  padding: 3px 9px; border-radius: 6px;
}
.tag-ccf {
  font-size: .72rem; font-weight: 800;
  background: var(--lavender); color: var(--purple-700);
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid #ddd3f7;
}
.tag-core {
  font-size: .72rem; font-weight: 800;
  background: #fff; color: var(--ink-soft);
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--line);
}
.tag-q {
  font-size: .72rem; font-weight: 800;
  background: #eef6ff; color: #1e5fa8;
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid #d6e7fb;
}

/* =========================== Full publications =========================== */
.pub-controls {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.pub-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: all .16s;
}
.pub-filter:hover { border-color: var(--purple-400); color: var(--purple-700); }
.pub-filter.active { background: var(--purple-600); color: #fff; border-color: var(--purple-600); }

.year-block { margin-bottom: 18px; }
.year-block > h3 {
  font-size: 1.2rem; color: var(--purple-700);
  margin: 0 0 12px;
  display: inline-block;
  padding: 2px 14px;
  background: var(--lavender);
  border-radius: 999px;
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple-400);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: transform .14s, box-shadow .14s;
}
.pub-item:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.pub-item .title { font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
.pub-item .authors { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.pub-item .authors .me { color: var(--purple-700); font-weight: 700; }
.pub-item .venue-line { font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }
.pub-item .venue-line b { color: var(--purple-700); }

/* =========================== Awards timeline =========================== */
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--purple-400), var(--lavender));
}
.timeline li {
  position: relative; padding: 8px 0 8px 18px;
  color: var(--ink-soft);
}
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 16px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--purple-500);
  box-shadow: 0 0 0 3px var(--lavender);
}
.timeline .yr {
  display: inline-block; min-width: 48px;
  font-weight: 800; color: var(--purple-700); margin-right: 8px;
}

/* =========================== Services =========================== */
.svc-card { padding: 22px 26px; }
.svc-card h4 { margin: 0 0 4px; color: var(--purple-700); font-size: .95rem; }
.svc-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: .9rem; }
.svc-card p:last-child { margin-bottom: 0; }

/* =========================== Footer / globe =========================== */
.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, #fff, var(--lavender-2));
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}
.footer-inner { text-align: center; }
.footer-inner h3 { color: var(--purple-700); font-size: 1.15rem; margin: 0 0 4px; }
.footer-inner .visitors-note { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }
.visitor-widgets {
  display: flex; justify-content: center; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.visitor-widgets > div { display: inline-block; }
.visitor-widgets img {
  width: 320px;      /* bump this up/down to taste */
  max-width: 100%;   /* stays responsive on mobile */
  height: auto;
  border-radius: 10px;
}
.footer-meta { margin-top: 22px; color: var(--muted); font-size: .85rem; }

/* =========================== Responsive =========================== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 22px; justify-items: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .links { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .research-grid, .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .hero h1 { font-size: 2.1rem; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-thumb { width: 100%; height: 110px; }
}

/* =========================================================================
   REFINEMENT LAYER (v2): hero focus tags, research interests, core-research
   block + StyleFool series chain, one-per-row selected works, paper links,
   teaching. Kept deliberately restrained — no flashy gradients/animation.
   ========================================================================= */

/* ---- Hero: compact, information-dense ---- */
.hero { padding: 48px 0 24px; }
.hero .lead-line { color: var(--ink); font-weight: 600; margin: 0 0 8px; }
.hero .lead-line strong { color: var(--purple-700); }
.focus-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 16px; }
.focus-tags .pill {
  font-size: .76rem; font-weight: 700; letter-spacing: .2px;
  color: var(--purple-700); background: var(--lavender);
  border: 1px solid #ddd3f7; padding: 4px 11px; border-radius: 999px;
}
.focus-tags .pill.core {
  background: var(--purple-700); color: #fff; border-color: var(--purple-700);
}
.hero-meta { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.hero-meta b { color: var(--ink-soft); font-weight: 700; }

/* ---- Research Interests ---- */
.interests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.interest-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--purple-400); border-radius: var(--radius-sm);
}
.interest-item.lead { border-left-color: var(--purple-700); background: var(--lavender-2); grid-column: 1 / -1; }
.interest-item .idx { font-weight: 800; color: var(--purple-500); font-size: .9rem; min-width: 16px; }
.interest-item .it-body strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.interest-item .it-body span { font-size: .83rem; color: var(--muted); }

/* ---- Main research: prominent core block ---- */
.core-block {
  padding: 24px 26px; margin-bottom: 18px;
  border: 1px solid var(--line); border-left: 5px solid var(--purple-700);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.core-flag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: #fff; background: var(--purple-700);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.core-block h3 { font-size: 1.25rem; margin: 0 0 8px; }
.core-block p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 10px; }
.core-block p:last-child { margin-bottom: 0; }
.core-block .rep-inline { font-size: .88rem; color: var(--ink-soft); }
.core-block .rep-inline b { color: var(--purple-700); }
.core-block .venue-pill { font-size: .74rem; font-weight: 700; color: var(--purple-700); }

/* StyleFool series chain */
.series-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--purple-500); margin: 16px 0 10px;
}
.series-chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.series-step {
  position: relative; padding: 14px 16px; background: var(--lavender-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.series-step h4 { margin: 0 0 4px; font-size: .98rem; color: var(--purple-700); }
.series-step .venue-pill { font-size: .74rem; font-weight: 700; color: var(--purple-700); }
.series-step p { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); }
.series-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 800; font-size: 1.2rem; z-index: 2;
}

/* Secondary direction cards (temporal / image) */
.subdir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.subdir { padding: 20px 22px; }
.subdir h3 { font-size: 1.08rem; margin: 0 0 6px; }
.subdir .kicker { font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--purple-500); margin-bottom: 4px; }
.subdir p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 12px; }
.subdir .rep-list li { font-size: .85rem; }

/* ---- Selected Works: one paper per row ---- */
.sw-list { display: flex; flex-direction: column; gap: 18px; }
.sw-card { display: grid; grid-template-columns: 220px 1fr; overflow: hidden; }
.sw-figure {
  background: var(--lavender-2);
  border-right: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.sw-figure .line-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: var(--purple-700);
  background: var(--lavender); border: 1px solid #ddd3f7; padding: 3px 9px; border-radius: 6px;
}
.sw-figure .venue-big { font-size: 1.45rem; font-weight: 800; color: var(--purple-700); line-height: 1.1; }
.sw-figure .venue-big span { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.sw-figure img { width: 100%; border-radius: var(--radius-sm); display: block; }
.sw-body { padding: 20px 24px; }
.sw-body h3 { font-size: 1.05rem; margin: 0 0 6px; line-height: 1.35; }
.sw-body .authors { font-size: .83rem; color: var(--muted); margin: 0 0 8px; }
.sw-body .authors .me { color: var(--purple-700); font-weight: 700; }
.sw-body .summary { font-size: .88rem; color: var(--ink-soft); margin: 0 0 12px; }

/* ---- Paper / code / project link buttons ---- */
.pub-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 2px; }
.lnk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; color: var(--purple-700);
  background: #fff; border: 1px solid #ddd3f7; padding: 2px 9px; border-radius: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.lnk:hover { background: var(--purple-700); color: #fff; border-color: var(--purple-700); text-decoration: none; }
.lnk svg { width: 12px; height: 12px; }
.pub-item .tags { margin-top: 2px; }

/* ---- Teaching & Supervision ---- */
.teach-card { padding: 22px 26px; }
.teach-card .tg-block { padding: 4px 0 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.teach-card .tg-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.teach-card h4 { margin: 0 0 6px; color: var(--purple-700); font-size: .95rem; }
.teach-card .course { font-weight: 400; color: var(--ink); }
.teach-card .terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.teach-card .terms span {
  font-size: .76rem; font-weight: 700; color: var(--purple-700);
  background: var(--lavender); border: 1px solid #ddd3f7; padding: 3px 10px; border-radius: 999px;
}
.teach-card .role-line { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 0; }
/* 
.teach-card .tg-block { padding: 4px 0 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.teach-card .tg-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.teach-card h4 { margin: 0 0 10px; color: va95rem; }

.teach-card .course {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 7px 0;
}
.teach-card .cname { font-weight: 700; color: var(--ink); }
.teach-card .cmeta { color: var(--muted); font-size: .85rem; }
.teach-card .cmeta::before { content: "·"; margin-right: 10px; color: var(--line); }
.teach-card .term {
  font-size: .74rem; font-weight: 700; color: var(--purple-700);
  background: var(--lavender); border: 1px solid #ddd3f7;
  padding: 2px 10px; border-radius: 999px;
} */

/* ---- Responsive additions ---- */
@media (max-width: 860px) {
  .interests { grid-template-columns: 1fr; }
  .interest-item.lead { grid-column: auto; }
  .series-chain { grid-template-columns: 1fr; gap: 22px; }
  .series-step:not(:last-child)::after {
    content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%);
  }
  .subdir-grid { grid-template-columns: 1fr; }
  .sw-card { grid-template-columns: 1fr; }
  .sw-figure {
    border-right: 0; border-bottom: 1px solid var(--line);
    flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px;
  }
}
