/* Department of Neurology – public site styles
   Layout: institutional blue header, white reading surfaces on a cool grey ground,
   an EEG trace as the recurring motif. */
:root {
  --ink: #12233a;
  --text: #24313f;
  --muted: #586777;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --line: #dbe2ea;
  --line-strong: #c3cdd8;
  --primary: #1c4f86;
  --primary-dark: #123a64;
  --primary-tint: #e7eff8;
  --teal: #0d6d66;
  --teal-tint: #e2f3f1;
  --alert: #a8261b;
  --alert-tint: #fcebe9;
  --amber-tint: #fff3d1;
  --amber-ink: #5f4500;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --bangla: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", sans-serif;
  --radius: 10px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.25; text-wrap: balance; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.bn { font-family: var(--bangla); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 500; border: 1px solid var(--primary); font: inherit; font-weight: 500; cursor: pointer; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-light:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Demo ribbon, top bar, header */
.demo-ribbon { background: var(--amber-tint); color: var(--amber-ink); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f0dc9a; }
.topbar { background: var(--primary-dark); color: #cfdcec; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark, .brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.site-nav { border-top: 1px solid var(--line); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle { display: flex; align-items: center; gap: 4px; padding: 12px 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; border-bottom: 3px solid transparent; }
.sub-toggle svg { width: 12px; height: 12px; }
.nav-list > li.active > a, .nav-list > li.active > .sub-toggle { border-bottom-color: var(--primary); color: var(--primary); }
.nav-list > li > a:hover, .sub-toggle:hover { color: var(--primary); }
.sub { list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18,35,58,.12); display: none; z-index: 50; }
.sub a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.sub a:hover { background: var(--primary-tint); color: var(--primary-dark); }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; } }
.has-sub.open > .sub { display: block; }
.nav-search { margin-left: auto; }
.nav-search form { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.nav-search input { border: 0; padding: 7px 10px; font: inherit; font-size: 14px; width: 150px; background: var(--surface); color: var(--text); }
.nav-search button { border: 0; background: var(--primary-tint); color: var(--primary); padding: 7px 10px; cursor: pointer; display: flex; }
.nav-search svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding-block: 8px; }
  .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; border-bottom: 0; border-left: 3px solid transparent; }
  .nav-list > li.active > a, .nav-list > li.active > .sub-toggle { border-left-color: var(--primary); }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .nav-search { margin: 8px 0 4px; }
  .nav-search input { width: 100%; flex: 1; }
  .brand-text small { font-size: 12px; }
}
.alert-strip { background: var(--alert-tint); color: var(--alert); border-bottom: 1px solid #f4c9c4; font-size: 15px; }
.alert-in { display: flex; align-items: center; gap: 10px; padding-block: 9px; flex-wrap: wrap; }
.alert-in svg { width: 20px; height: 20px; flex: none; }
.alert-in span { flex: 1 1 300px; }
.alert-in a { color: var(--alert); font-weight: 600; }

/* Hero */
.hero { background: var(--primary-dark); color: #dde8f4; position: relative; overflow: hidden; }
.hero-trace { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 90px; color: rgba(255,255,255,.13); pointer-events: none; }
.hero-trace path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: trace 4s ease-out .2s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding-block: 56px 72px; position: relative; align-items: start; }
.hero .eyebrow { color: #9fc0e3; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); max-width: 18ch; }
.hero p.lead { font-size: 1.1rem; max-width: 52ch; color: #d3e0ee; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; }
.today { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.today h2 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.today h2 small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.today dl { margin: 0; display: grid; gap: 0; }
.today dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.today dl > div:first-child { border-top: 0; padding-top: 0; }
.today dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.today dd { margin: 0; }
.today dd a { font-weight: 500; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-block: 40px 64px; gap: 28px; } }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 8px; }

/* Sections */
.section { padding-block: 48px; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); padding-block: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 32px 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: var(--muted); font-size: 1.075rem; max-width: 65ch; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* Quick links */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--primary); transform: translateY(-2px); }
.quick svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: 6px; }
.quick strong { color: var(--ink); font-size: 1.05rem; }
.quick span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .quick { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stats > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats span { font-size: 14px; color: var(--muted); }
.stats-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel > h2, .panel > h3 { font-size: 1.2rem; }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows > li { padding: 12px 0; border-top: 1px solid var(--line); }
.list-rows > li:first-child { border-top: 0; padding-top: 0; }
.list-rows .meta { display: block; font-size: 13px; color: var(--muted); }
.list-rows a { color: var(--ink); text-decoration: none; font-weight: 500; }
.list-rows a:hover { color: var(--primary); text-decoration: underline; }
.pin { display: inline-block; font-size: 12px; font-weight: 600; color: var(--alert); background: var(--alert-tint); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }

/* Head message */
.head-msg { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.head-msg .avatar { width: 120px; height: 140px; }
.head-msg blockquote { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.65; }
.head-msg cite { display: block; margin-top: 12px; font-style: normal; font-size: 15px; }
.head-msg cite span { color: var(--muted); display: block; font-size: 14px; }
@media (max-width: 520px) { .head-msg { grid-template-columns: 1fr; } }

/* Avatars */
.avatar { width: 96px; height: 112px; border-radius: 8px; object-fit: cover; background: var(--primary-tint); }
.avatar-ph { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.6rem; color: var(--primary); font-weight: 600; }

/* Faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; text-decoration: none; color: var(--text); align-items: start; }
.fcard:hover { border-color: var(--primary); }
.fcard .avatar { width: 88px; height: 104px; }
.fcard h3 { margin: 0 0 2px; font-size: 1.1rem; }
.fcard .des { color: var(--primary); font-weight: 500; font-size: 15px; display: block; }
.fcard .qual { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.fcard .int { font-size: 13px; color: var(--muted); display: block; margin-top: 8px; }
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.profile .avatar { width: 220px; height: 260px; font-size: 3rem; }
.profile-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-links a { font-size: 14px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } .profile .avatar { width: 160px; height: 190px; } }
.facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 20px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }

/* Prose */
.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 4px; }
.prose h2 { margin-top: 1.2em; }
.bn-box { margin-top: 28px; border-top: 3px solid var(--teal); background: var(--teal-tint); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 22px; }
.bn-box h2 { font-family: var(--bangla); color: var(--teal); font-size: 1.3rem; }
.bn-box p, .bn-box li { font-family: var(--bangla); font-size: 1.1rem; line-height: 1.75; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { border-top: 0; background: var(--primary-tint); color: var(--primary-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tbl td:first-child { font-weight: 500; color: var(--ink); }
.tbl .note { color: var(--muted); font-size: 14px; }

/* Services & investigations */
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.svc h3 { margin-bottom: 6px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.inv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; scroll-margin-top: 120px; }
.inv + .inv { margin-top: 20px; }
.inv h2 { font-size: 1.3rem; }
.inv .prep { background: var(--primary-tint); border-radius: 8px; padding: 16px 18px; }
.inv .prep h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-dark); }
.inv .prep ul { margin: 0; padding-left: 1.1em; }
.inv .prep li { margin-bottom: 6px; font-size: 15px; }
.inv .when { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .inv { grid-template-columns: 1fr; } }

/* Activities */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.acard:hover { border-color: var(--primary); }
.acard img, .acard .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-width: 100%; }
.acard .body { padding: 16px 18px 18px; }
.acard time { font-size: 13px; color: var(--muted); }
.acard h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.acard p { margin: 0; font-size: 15px; color: var(--muted); }
.ph { display: flex; align-items: center; justify-content: center; background: var(--primary-tint); color: #9db6d2; }
.ph svg { width: 50%; max-width: 160px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; text-align: left; font: inherit; color: var(--muted); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 13px; padding: 6px 2px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(8,16,28,.92); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 6px; }
.lightbox p { color: #dbe5f0; margin: 12px 0 0; text-align: center; }
.lightbox .lb-bar { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; gap: 8px; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.lb-nav { display: flex; gap: 8px; margin-top: 14px; }

/* Publications */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; flex: 1 1 160px; }
.filters input, .filters select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.filters .grow { flex: 2 1 240px; }
.filters .actions { display: flex; gap: 8px; flex: 0 0 auto; }
.pub-year { font-family: var(--serif); font-size: 1.3rem; color: var(--primary-dark); margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--primary); display: flex; justify-content: space-between; align-items: baseline; }
.pub-year small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.cite-title { color: var(--ink); font-weight: 500; }
.cite-authors b { color: var(--ink); }
.cite-src { color: var(--muted); font-style: italic; }
.cite-links a { font-size: 14px; font-weight: 500; margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: var(--primary-tint); color: var(--primary-dark); white-space: nowrap; align-self: start; }
.tag-teal { background: var(--teal-tint); color: var(--teal); }
.tag-grey { background: #edf0f3; color: #4a5664; }
.result-count { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .pubs li { grid-template-columns: 1fr; } }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: start; }
.cal { text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.cal span { display: block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.cal b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.4; }
.event h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event .meta { font-size: 14px; color: var(--muted); }
.event p { margin: 6px 0 0; font-size: 15px; }
.event.past { opacity: .78; }
.event.past .cal span { background: #6b7a8a; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 18px 16px; }

/* Downloads */
.dl { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dl:first-of-type { border-top: 0; }
.dl .ft { font-size: 12px; font-weight: 600; color: var(--alert); background: var(--alert-tint); padding: 2px 6px; border-radius: 4px; margin-right: 8px; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 15px; color: var(--text); background: var(--surface); }
.tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Notices */
.notice-body { max-width: 70ch; }
.attach { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: 8px; text-decoration: none; background: var(--surface); }

/* Search */
.search-big { display: flex; gap: 8px; max-width: 640px; }
.search-big input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; min-width: 0; }
.search-group h2 { font-size: 1.2rem; margin-top: 28px; }

/* Case-mix bars */
.mix-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mix-bars li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 6.5rem; gap: 14px; align-items: center; font-size: 15px; }
.bar-label { color: var(--ink); }
.bar-track { height: 12px; background: var(--primary-tint); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.bar-val { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); font-weight: 500; }
.bar-val small { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .mix-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* Empty state */
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* Pagination */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; text-decoration: none; background: var(--surface); }
.pager span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer { background: var(--ink); color: #b9c6d4; margin-top: 64px; font-size: 15px; padding-bottom: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.footer-grid h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; font-weight: 600; }
.footer-grid li { margin-bottom: 6px; }
.site-footer a { color: #dfe8f1; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #fff; line-height: 1.35; }
.footer-brand strong { font-family: var(--serif); font-size: 1.1rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-base { border-top: 1px solid #2b3d55; padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating recent activities box */
.act-box { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(18,35,58,.18); z-index: 60; overflow: hidden; }
.act-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--primary); color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.act-title { flex: 1; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee0c3; box-shadow: 0 0 0 0 rgba(126,224,195,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(126,224,195,.6); } 70% { box-shadow: 0 0 0 8px rgba(126,224,195,0); } 100% { box-shadow: 0 0 0 0 rgba(126,224,195,0); } }
.act-count { font-size: 12px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 8px; }
.act-chev { width: 14px; height: 14px; transition: transform .2s; }
.act-box.min .act-chev { transform: rotate(180deg); }
.act-box.min .act-body { display: none; }
.act-box.min { width: auto; }
.act-body ul { list-style: none; margin: 0; padding: 4px 14px; max-height: 50vh; overflow-y: auto; }
.act-body li a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.4; }
.act-body li:first-child a { border-top: 0; }
.act-body li a:hover span:last-child { color: var(--primary); text-decoration: underline; }
.act-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.act-all { display: block; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; background: var(--bg); }