/* =========================================================================
   Archit Bhatnagar — personal site
   Custom design system. Light + dark. No framework.
   ========================================================================= */

/* ---- Fonts (Google Fonts, loaded in <head>) --------------------------- */
/* Inter (sans) for everything — clean and neutral */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Neutral ink scale (light mode default) */
  --bg:         #fbfbfa;
  --bg-elev:    #ffffff;
  --bg-subtle:  #f4f4f2;
  --text:       #17181c;
  --text-muted: #55565d;
  --text-faint: #8b8d96;
  --border:     #e6e5e1;
  --border-strong: #d6d5cf;

  /* Accents */
  --accent:      #3a56d4;   /* refined cobalt/indigo */
  --accent-soft: rgba(58, 86, 212, 0.10);
  --accent-line: rgba(58, 86, 212, 0.30);
  --warm:        #b45309;   /* amber — reserved for Best Paper / highlights */
  --warm-soft:   rgba(180, 83, 9, 0.10);

  /* Grid motif line color */
  --grid-line: rgba(23, 24, 28, 0.045);

  /* Typography — serif for content (LaTeX-like), sans reserved for UI chrome */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;

  /* Rhythm */
  --maxw: 1060px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 18, 27, 0.04), 0 8px 24px rgba(16, 18, 27, 0.05);
  --shadow-hover: 0 2px 6px rgba(16, 18, 27, 0.06), 0 14px 40px rgba(16, 18, 27, 0.09);

  color-scheme: light;
}

/* Dark mode — applied for system-dark (unless user forced light) and for forced dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0d0e12;
    --bg-elev:    #14151a;
    --bg-subtle:  #191b21;
    --text:       #eceef2;
    --text-muted: #a2a6b0;
    --text-faint: #6a6e79;
    --border:     #24262e;
    --border-strong: #333642;
    --accent:      #8ea2ff;
    --accent-soft: rgba(142, 162, 255, 0.12);
    --accent-line: rgba(142, 162, 255, 0.34);
    --warm:        #f5b455;
    --warm-soft:   rgba(245, 180, 85, 0.12);
    --grid-line: rgba(255, 255, 255, 0.04);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 44px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:         #0d0e12;
  --bg-elev:    #14151a;
  --bg-subtle:  #191b21;
  --text:       #eceef2;
  --text-muted: #a2a6b0;
  --text-faint: #6a6e79;
  --border:     #24262e;
  --border-strong: #333642;
  --accent:      #8ea2ff;
  --accent-soft: rgba(142, 162, 255, 0.12);
  --accent-line: rgba(142, 162, 255, 0.34);
  --warm:        #f5b455;
  --warm-soft:   rgba(245, 180, 85, 0.12);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 44px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Refined thin scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Scroll progress hairline along the very top edge */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 2px; width: 0; background: var(--accent); opacity: 0.65;
  pointer-events: none;
}

/* Content links: smooth slide-in underline instead of the default snap */
.hero-bio a, .news-body a, .tl-body a, .edu-item a, .contact-grid a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .28s ease;
  padding-bottom: 1px;
}
.hero-bio a:hover, .news-body a:hover, .tl-body a:hover, .edu-item a:hover, .contact-grid a:hover {
  text-decoration: none; background-size: 100% 1px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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


/* ---- Navbar ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em;
  color: var(--text); display: inline-flex; align-items: center;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-sans);
  position: relative;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  padding: 7px 11px; border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-left: 6px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--text-muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .fa-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .fa-moon { display: none; }
}

.nav-toggle { display: none; }

/* ---- Section scaffolding --------------------------------------------- */
section { scroll-margin-top: 76px; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 22px;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex; align-items: baseline; gap: 15px; margin-bottom: 22px;
}
.section-index {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); flex: none;
}
.section-title { font-size: 1.5rem; letter-spacing: -0.03em; flex: none; }
.section-rule { flex: 1 1 auto; height: 1px; background: var(--border); align-self: center; margin-top: 5px; }
.section-note { color: var(--text-faint); font-size: 0.85rem; margin: -12px 0 22px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 66px 0 30px; }
.hero-net {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Soft-fade the inner edge of each side band, plus a gentle top/bottom fade. */
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 11%, transparent 19%, transparent 81%, #000 89%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to right, #000 0%, #000 11%, transparent 19%, transparent 81%, #000 89%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start;
}
.hero h1 {
  font-size: clamp(34px, 4.8vw, 46px); /* pinned in px — not scaled by root */
  letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px;
}
.hero-role {
  font-size: 1.12rem; color: var(--text-muted); font-weight: 500; margin-bottom: 22px;
}
.hero-role a { color: var(--text); font-weight: 600; }
.hero-bio { font-size: 1.02rem; color: var(--text-muted); max-width: 62ch; }
.hero-bio p { margin-bottom: 14px; }
.hero-bio a { font-weight: 500; }
.hero-bio strong { color: var(--text); font-weight: 600; }


.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Portrait card */
.portrait {
  position: relative;
}
.portrait-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.portrait::after {
  content: ""; position: absolute; inset: -1px; border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(160deg, var(--accent-line), transparent 45%);
  opacity: 0.5; mix-blend-mode: normal;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
}

.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.socials a {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); background: var(--bg-elev); font-size: 1rem;
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.socials a:hover {
  color: var(--accent); border-color: var(--accent-line);
  transform: translateY(-2px); text-decoration: none;
  background: var(--accent-soft);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; font-family: var(--font-sans);
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text);
  cursor: pointer; transition: all .2s ease;
}
.btn:hover { border-color: var(--accent-line); color: var(--accent); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
:root[data-theme="dark"] .btn-primary { color: #0d0e12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0d0e12; } }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
:root[data-theme="dark"] .btn-primary:hover { color: #0d0e12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { color: #0d0e12; } }
.btn-sm { font-size: 0.8rem; padding: 5px 11px; gap: 6px; }

/* ---- News ------------------------------------------------------------- */
.news-block { max-width: var(--maxw); margin: 0 auto; padding: 4px 22px 8px; }
.news { margin-top: 0; }
.news-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.news-list { list-style: none; padding: 0; }
.news-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.news-list li:last-of-type { border-bottom: none; }
.news-list li.hidden-news { display: none; }
.news-list li.hidden-news.show { display: grid; }
.news-date {
  font-family: var(--font-sans); font-size: 0.76rem; color: var(--text-faint);
  padding-top: 2px; white-space: nowrap;
}
.news-body { color: var(--text); }
.news-body .tag {
  color: var(--accent); font-weight: 600;
}
.news-more {
  margin-top: 12px; font-family: var(--font-sans); font-size: 0.78rem;
  color: var(--accent); background: none; border: none; cursor: pointer; padding: 0;
}
.news-more:hover { text-decoration: underline; }

/* ---- Publications ----------------------------------------------------- */
.pub-list { display: flex; flex-direction: column; }
.pub {
  position: relative;
  display: grid; grid-template-columns: 58px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.pub::before {
  content: ""; position: absolute; left: -18px; top: 24px; bottom: 24px; width: 2px;
  border-radius: 2px; background: var(--accent);
  opacity: 0; transform: scaleY(0.5);
  transition: opacity .25s ease, transform .25s ease;
}
.pub:hover::before { opacity: 0.7; transform: scaleY(1); }
.pub:first-child { padding-top: 0; }
.pub:first-child::before { top: 6px; }
.pub:last-child { border-bottom: none; }
.pub-year {
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-faint);
  padding-top: 2px;
}
.pub-title { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 5px; text-wrap: balance; }
.pub-title a { color: var(--text); transition: color .18s ease; }
.pub-title a:hover { color: var(--accent); }
.pub:hover .pub-title a { color: var(--accent); }
.pub-authors { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 9px; }
.pub-authors .me { color: var(--text); font-weight: 600; }
.pub-authors .me::after { content: ""; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.venue {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent);
}
.venue::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.8; flex: none;
}
.venue.warm { color: var(--warm); }
.badge-award {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--warm);
}
.badge-soft { font-size: 0.8rem; color: var(--text-faint); font-style: italic; }
.pub-links { display: inline-flex; gap: 6px; }
.pub-links a {
  font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 3px 9px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .18s ease;
}
.pub-links a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); text-decoration: none; }

/* ---- Experience timeline --------------------------------------------- */
.timeline { position: relative; }
.tl-item {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  padding-bottom: 26px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-logo {
  width: 46px; height: 46px; border-radius: 10px; background: #f7f7f5;
  border: 1px solid var(--border); display: grid; place-items: center;
  z-index: 1; overflow: hidden; padding: 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-item:not(:last-child) .tl-rail::after {
  content: ""; position: absolute; top: 52px; bottom: -26px; left: 50%;
  width: 1px; background: var(--border); transform: translateX(-0.5px);
}
.tl-body { padding-top: 2px; }
.tl-role { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.tl-org { color: var(--text); font-weight: 500; }
.tl-org .advisor { color: var(--text-muted); font-weight: 400; }
.tl-metaline {
  font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-faint);
  margin: 4px 0 9px; display: flex; flex-wrap: wrap; gap: 6px 12px;
}
.sep { width: 1px; height: 0.82em; background: var(--border-strong); display: inline-block; align-self: center; }
.tl-desc { list-style: none; padding: 0; color: var(--text-muted); font-size: 0.94rem; }
.tl-desc li { position: relative; padding-left: 16px; margin-bottom: 5px; }
.tl-desc li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: 0.55;
}

/* ---- Education / cards ------------------------------------------------ */
.edu-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 22px;
}
.edu-item:last-child { padding-bottom: 0; }
.edu-logo {
  width: 46px; height: 46px; border-radius: 10px; background: #f7f7f5;
  border: 1px solid var(--border); display: grid; place-items: center; padding: 7px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.edu-logo img { width: 100%; height: 100%; object-fit: contain; }
.edu-school { font-size: 1.02rem; font-weight: 600; }
.edu-degree { color: var(--text-muted); font-size: 0.95rem; }
.edu-metaline {
  font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-faint);
  margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 12px;
}

/* ---- Compact list blocks (service / honors / teaching) --------------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.mini-head {
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.mini-list { list-style: none; padding: 0; }
.mini-list li {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px;
  padding: 7px 0; font-size: 0.92rem; border-bottom: 1px dashed var(--border);
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .yr { font-family: var(--font-sans); font-size: 0.76rem; color: var(--accent); padding-top: 1px; }
.mini-list .what { color: var(--text-muted); }
.mini-list .what strong { color: var(--text); font-weight: 600; }

/* ---- Talks ------------------------------------------------------------ */
.talk-title { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.talk-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px;
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 720px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-subtle);
  box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 13px; font-size: 0.92rem; }
.contact-row .ico {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--accent); background: var(--bg-elev); font-size: 0.88rem;
}
.contact-row .val { color: var(--text); }
.contact-row .val a { font-weight: 500; }
.contact-row .email-text { font-weight: 500; cursor: default; user-select: text; }
.contact-note { color: var(--text-faint); font-size: 0.84rem; margin-top: 6px; }

/* ---- Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 46px; margin-top: 8px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-sans); font-size: 0.74rem; color: var(--text-faint);
}
.footer-inner a { color: var(--text-muted); }
.footer-net { color: var(--border-strong); display: block; flex: none; }
.footer-net path { stroke: currentColor; fill: none; }
.footer-net circle { fill: var(--accent); opacity: 0.6; }

/* ---- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .section { padding: 38px 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Photo first on small screens */
  .hero-aside { order: -1; display: flex; flex-direction: column; align-items: center; }
  .portrait { max-width: 220px; width: 100%; }
  .hero { padding-top: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 60px; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 10px 12px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-elev); color: var(--text); cursor: pointer;
  }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-year { padding-top: 0; }
  .pub-links { margin-left: 0; }
  .news-list li { grid-template-columns: 78px 1fr; gap: 10px; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .tl-logo, .edu-logo { width: 40px; height: 40px; }
  .tl-item:not(:last-child) .tl-rail::after { top: 46px; }
  .edu-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .mini-list li { grid-template-columns: 48px 1fr; }
}
