/* BCLQ — site styles.
   One stylesheet for every page. Tokens first; components below are grouped by
   the layout piece that uses them. Built pages link it with a content hash
   (?v=…), so edits show up despite the 7-day asset cache. */

/* ------------------------------------------------------------------- fonts */
/* Inter (variable, weights 400-700), self-hosted. Source: Google Fonts, SIL Open Font License 1.1. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Dark theme. The site follows the device setting unless the visitor picks a
   theme with the header button, which sets <html data-theme="light|dark">
   (assets/js/theme.js applies it before the first paint). So every dark rule
   exists twice: inside @media (prefers-color-scheme: dark) under
   :root:not([data-theme="light"]), and on its own under :root[data-theme="dark"].
   Keep the two copies identical when editing. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --brand-950: #062538;
  --brand-900: #0a3550;
  --brand-800: #0d4466;
  --brand-700: #105378;          /* logo navy — headings, primary buttons */
  --brand-600: #3668b1;          /* logo blue — links */
  --brand-500: #4c86c9;
  --accent: #5aabd6;             /* logo cyan — highlights */
  --accent-soft: #e6f3fa;

  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #142330;
  --ink-2: #334553;
  --muted: #5d6e7c;
  --line: #e2e8ee;
  --line-strong: #cfd9e2;
  --link: var(--brand-600);
  --link-hover: var(--brand-700);
  --heading: var(--brand-800);
  --focus: #2f7fd1;

  --header-bg: rgba(255, 255, 255, .86);
  --footer-bg: #07283c;
  --footer-ink: #c7d6e2;
  --footer-muted: #8ea6b8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 56, .06);
  --shadow: 0 1px 2px rgba(10, 37, 56, .05), 0 8px 24px -8px rgba(10, 37, 56, .12);
  --shadow-lg: 0 2px 4px rgba(10, 37, 56, .05), 0 24px 48px -16px rgba(10, 37, 56, .22);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1a24;
    --bg-soft: #0f212d;
    --surface: #122735;
    --surface-2: #10232f;
    --ink: #e5edf3;
    --ink-2: #c6d3dd;
    --muted: #93a7b7;
    --line: #1f3a4c;
    --line-strong: #2a4a5f;
    --link: #7fc0ea;
    --link-hover: #a9d6f3;
    --heading: #e9f2f8;
    --accent-soft: rgba(90, 171, 214, .14);
    --focus: #7fc0ea;
    --header-bg: rgba(11, 26, 36, .86);
    --footer-bg: #061722;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1a24;
  --bg-soft: #0f212d;
  --surface: #122735;
  --surface-2: #10232f;
  --ink: #e5edf3;
  --ink-2: #c6d3dd;
  --muted: #93a7b7;
  --line: #1f3a4c;
  --line-strong: #2a4a5f;
  --link: #7fc0ea;
  --link-hover: #a9d6f3;
  --heading: #e9f2f8;
  --accent-soft: rgba(90, 171, 214, .14);
  --focus: #7fc0ea;
  --header-bg: rgba(11, 26, 36, .86);
  --footer-bg: #061722;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong, b { color: var(--ink); font-weight: 600; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--brand-700); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--brand-700); color: #fff; font: 600 .95rem/1.2 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(16, 83, 120, .55); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-900); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn .i { width: 1.1em; height: 1.1em; }
/* Long labels ("Demande d’échantillons/données") may wrap on the narrowest phones. */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.btn-light):not(.btn-ghost) { background: var(--brand-600); }
  :root:not([data-theme="light"]) .btn:not(.btn-light):not(.btn-ghost):hover { background: var(--brand-500); }
}
:root[data-theme="dark"] .btn:not(.btn-light):not(.btn-ghost) { background: var(--brand-600); }
:root[data-theme="dark"] .btn:not(.btn-light):not(.btn-ghost):hover { background: var(--brand-500); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand .logo-dark { display: none; }
.brand img { display: block; width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 9px 13px; border-radius: 999px;
  color: var(--ink-2); font-size: .93rem; font-weight: 550; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover, .has-sub:hover > .nav-link { background: var(--bg-soft); color: var(--heading); }
.nav-list > li.is-active > .nav-link, .nav-link[aria-current="page"] { color: var(--brand-700); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-list > li.is-active > .nav-link, :root:not([data-theme="light"]) .nav-link[aria-current="page"] { color: #cde8f8; }
}
:root[data-theme="dark"] .nav-list > li.is-active > .nav-link, :root[data-theme="dark"] .nav-link[aria-current="page"] { color: #cde8f8; }
.sub-toggle { display: none; }
.has-sub > .nav-link { padding-right: 28px; }
.has-sub > .nav-link::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; }
.sub a:hover { background: var(--bg-soft); color: var(--heading); }
.sub a[aria-current="page"] { color: var(--brand-700); background: var(--accent-soft); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sub a[aria-current="page"] { color: #cde8f8; }
}
:root[data-theme="dark"] .sub a[aria-current="page"] { color: #cde8f8; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-decoration: none;
}
.lang-switch:hover { border-color: var(--brand-600); color: var(--brand-600); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--brand-600); color: var(--brand-600); }
.theme-toggle .i { width: 18px; height: 18px; }
/* Moon = "switch to dark" while light is shown; sun once dark is on. */
.theme-toggle .i-sun, .theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer;
}
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 1080px) {
  :root { --header-h: 66px; }
  .brand img { width: 116px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 12px var(--gutter) 32px; overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter makes the header the containing block of the fixed panel,
     which would clip it to the header's height — drop it while the menu is open. */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 4px; border-radius: 0; font-size: 1.05rem; }
  .nav-link:hover, .has-sub:hover > .nav-link, .nav-list > li.is-active > .nav-link, .nav-link[aria-current="page"] { background: none; }
  .nav-list > li.is-active > .nav-link { color: var(--brand-700); }
  .has-sub > .nav-link { padding-right: 4px; }
  .has-sub > .nav-link::after { display: none; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: var(--bg-soft); color: var(--ink); cursor: pointer;
  }
  .sub-toggle .i { transition: transform .2s ease; }
  .sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .sub { position: static; display: none; flex-basis: 100%; min-width: 0; margin: 0 0 12px; padding: 4px; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--bg-soft); border: 0; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { padding: 12px 14px; font-size: 1rem; }
  .nav-actions { justify-content: space-between; padding-top: 20px; }
  .nav-actions .btn { flex: 1; min-height: 48px; margin-left: 12px; }
  .lang-switch { min-height: 48px; padding: 0 18px; }
  .theme-toggle { width: 48px; height: 48px; flex: none; }
}

/* ------------------------------------------------------------ page banner */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(1200px 400px at 85% -10%, rgba(90, 171, 214, .35), transparent 60%),
              linear-gradient(120deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-600) 100%);
  color: #fff;
}
.page-banner.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero) center / cover no-repeat;
}
.page-banner.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 37, 56, .96) 0%, rgba(10, 53, 80, .88) 45%, rgba(16, 83, 120, .55) 100%);
}
.page-banner:not(.has-image)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-banner h1 { max-width: 22ch; margin: 0; color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.breadcrumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------- page body */
.page-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-body.has-aside { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.subnav { position: sticky; top: calc(var(--header-h) + 24px); }
.subnav-title { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.subnav-title a { color: var(--muted); text-decoration: none; }
.subnav-title a:hover { color: var(--brand-600); }
.subnav ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.subnav li a {
  display: block; margin-left: -2px; padding: 9px 0 9px 16px; border-left: 2px solid transparent;
  color: var(--ink-2); font-size: .95rem; font-weight: 500; text-decoration: none; transition: color .15s ease, border-color .15s ease;
}
.subnav li a:hover { color: var(--heading); border-left-color: var(--line-strong); }
.subnav li a[aria-current="page"] { color: var(--brand-700); border-left-color: var(--brand-600); font-weight: 650; }
/* Desktop sidebar only: on phones the current page is a filled chip (white on blue). */
@media (prefers-color-scheme: dark) and (min-width: 901px) {
  :root:not([data-theme="light"]) .subnav li a[aria-current="page"] { color: var(--link); border-left-color: var(--link); }
}
@media (min-width: 901px) {
  :root[data-theme="dark"] .subnav li a[aria-current="page"] { color: var(--link); border-left-color: var(--link); }
}
@media (max-width: 900px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr track grows to the chip row's full width
     and pushes the whole page wider than the phone; this keeps the row scrolling inside. */
  .page-body.has-aside { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .subnav { position: static; min-width: 0; margin: 0 calc(-1 * var(--gutter)); }
  .subnav-title { display: none; }
  .subnav ul { display: flex; gap: 8px; padding: 0 var(--gutter) 4px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .subnav ul::-webkit-scrollbar { display: none; }
  .subnav li a { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: .9rem; }
  .subnav li a[aria-current="page"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
}

.page-figure { margin: 0 0 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.page-figure img { display: block; width: 100%; }

/* ------------------------------------------------------------------- prose */
.prose { min-width: 0; font-size: 1.04rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { position: relative; margin: 2.2em 0 .8em; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.prose .eyebrow + h2,
.prose > h2:first-child, .prose > .cols:first-child h2:first-child, .prose .cols > div > h2:first-child { margin-top: 0; }
.prose h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-600), var(--accent)); }
.prose h3 { margin: 1.6em 0 .6em; font-size: 1.2rem; }
.prose h3 strong { color: inherit; font-weight: inherit; }
.prose p, .prose li { max-width: 75ch; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .25em; }
.prose li::marker { color: var(--brand-600); font-weight: 600; }
.prose li > ul, .prose li > ol { margin: .4em 0 .6em; }
.prose em { color: var(--muted); }

.table-wrap { margin: 1.2em 0 1.6em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--heading); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--ink); font-size: .88em; white-space: nowrap; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin: 0 0 2em; }
.cols > div > :last-child { margin-bottom: 0; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.lead { font-size: 1.15rem; color: var(--ink-2); }

/* Cards: committee members, hematologists, contact blocks */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 1.4em 0 2.2em; }
.card {
  position: relative; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); font-size: .94rem; line-height: 1.6; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card > strong:first-child + br { display: none; }
.card > strong:first-child { display: block; margin-bottom: 4px; color: var(--heading); font-size: 1.04rem; font-weight: 650; line-height: 1.35; }
.card > strong:first-child a { color: inherit; text-decoration: none; }
.card > strong:first-child a:hover { color: var(--link); text-decoration: underline; }
.card strong + br + strong { display: inline-block; margin: 2px 0 2px; color: var(--brand-600); font-size: .86rem; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card strong + br + strong { color: var(--link); }
}
:root[data-theme="dark"] .card strong + br + strong { color: var(--link); }

/* Team members */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; margin: 1.4em 0 1em; }
.person {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.person img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-soft); }
.person > div { padding: 18px 20px 20px; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.person h3 { margin: 0 0 4px; font-size: 1.06rem; letter-spacing: -.01em; }
.person .role { margin: 0 0 10px; color: var(--brand-600); font-weight: 600; font-size: .88rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .person .role { color: var(--link); }
}
:root[data-theme="dark"] .person .role { color: var(--link); }
.person p { margin: 0 0 .5em; max-width: none; }
.person a { overflow-wrap: anywhere; }

/* Accordion (scientific program) */
.accordion { display: grid; gap: 12px; margin: 1.4em 0 2em; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease; }
.accordion details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.accordion summary {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; list-style: none;
  color: var(--heading); font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233668b1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.accordion details[open] summary::before { transform: rotate(45deg); }
.accordion summary:hover { color: var(--brand-600); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .accordion summary::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc0ea' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .checklist li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc0ea' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] .accordion summary::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc0ea' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc0ea' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.details-body { padding: 0 22px 22px 66px; }
.details-body > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .details-body { padding-left: 22px; } }

/* Check list (home) */
.checklist { margin: 1.2em 0 1.4em; padding: 0 !important; list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; margin: 0; padding: 0 0 0 38px !important; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 999px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233668b1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Document downloads (request pages) */
.doc-links { display: grid; gap: 12px; }
.doc-link {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--heading); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doc-link::before {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.doc-link::after {
  margin-left: auto; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}
.doc-link[href$=".pdf"]::after { content: "PDF"; }
.doc-link[href$=".rtf"]::after { content: "RTF"; }
.doc-link:hover { border-color: var(--brand-600); color: var(--brand-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.panel { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.panel > :last-child { margin-bottom: 0; }
@media (min-width: 821px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Contact page */
.contact-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-card > :last-child { margin-bottom: 0; }
.contact-card p { max-width: none; }
.contact-card a { overflow-wrap: anywhere; }

/* Video */
.video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bclq-video { max-width: 860px; margin: 0 0 1.5em; }

/* Section landing (About Us) */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0 !important; list-style: none; }
.link-grid li { margin: 0; padding: 0; max-width: none; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--heading); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.link-grid a::after { content: "→"; color: var(--brand-600); transition: transform .18s ease; }
.link-grid a:hover { border-color: var(--brand-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-grid a:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------- home */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 120px);
  background: var(--brand-950);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/banner/chromosomes.webp") 70% center / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 90% 10%, rgba(90, 171, 214, .28), transparent 60%),
              linear-gradient(100deg, rgba(6, 37, 56, .97) 0%, rgba(10, 53, 80, .9) 42%, rgba(13, 68, 102, .55) 100%);
}
.hero-eyebrow {
  display: inline-block; margin: 0 0 22px; padding: 5px 14px; border-radius: 999px;
  background: var(--accent); color: var(--brand-950); font-size: .9rem; font-weight: 700; letter-spacing: .08em;
}
.hero h1 { max-width: 17ch; margin: 0 0 20px; color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.hero-lead { max-width: 56ch; margin: 0 0 34px; color: rgba(255, 255, 255, .84); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 52px; padding: 0 26px; font-size: 1rem; }

.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stats li { padding: 26px 26px 24px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; color: var(--heading); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 820px) {
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--brand-600); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--accent); }
}
:root[data-theme="dark"] .eyebrow { color: var(--accent); }
.section-title { margin: 0 0 24px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }

.welcome { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.welcome .prose h2::after { display: none; }
@media (max-width: 900px) { .welcome { grid-template-columns: 1fr; } }
.testimonial {
  padding: 14px 14px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.testimonial .video { margin-bottom: 18px; border-radius: 12px; box-shadow: none; }
.testimonial .eyebrow, .testimonial p { padding: 0 8px; }
.testimonial p { margin: 0 0 10px; color: var(--ink-2); }
.testimonial small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.55; }
@media (min-width: 901px) { .testimonial { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Quick access grid (home): every section of the site, generated by build_site.py */
.quick .section-title { margin-bottom: 22px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1080px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: two columns of compact tiles (icon and title; the description would make a very long list) */
@media (max-width: 560px) {
  .quick-grid { gap: 10px; }
  .quick-card { flex-direction: column; gap: 10px; padding: 14px 14px 16px; }
  .quick-card h3 { margin: 0; font-size: .95rem; }
  .quick-card p { display: none; }
}
.quick-card {
  display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--muted); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.quick-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--muted); }
.quick-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); color: #fff; box-shadow: 0 10px 20px -10px rgba(16, 83, 120, .8);
}
.quick-icon .i { width: 22px; height: 22px; }
.quick-card h3 { margin: 2px 0 5px; color: var(--heading); font-size: 1.02rem; line-height: 1.3; }
.quick-card h3::after { content: "\00a0→"; color: var(--link); transition: margin-left .18s ease; }   /* no-break space: the arrow stays with the last word */
.quick-card:hover h3::after { margin-left: 4px; }
.quick-card p { margin: 0; font-size: .88rem; line-height: 1.5; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer h2 { margin: 0 0 18px; color: var(--footer-muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.partners { padding: 56px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; margin: 0; padding: 0; list-style: none; }
.partner-logos a { display: block; opacity: .78; transition: opacity .18s ease, transform .18s ease; }
.partner-logos a:hover { opacity: 1; transform: translateY(-2px); }
.partner-logos img { display: block; width: auto; max-height: 58px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding: 44px 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-address, .footer-line { display: flex; gap: 12px; margin: 0 0 12px; line-height: 1.6; }
.footer-address strong { color: #fff; font-weight: 600; letter-spacing: .02em; }
.site-footer .i { margin-top: .22em; color: var(--accent); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--footer-ink); overflow-wrap: anywhere; }
@media (max-width: 420px) { .footer-links { grid-template-columns: minmax(0, 1fr); } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.copyright { margin: 0; color: var(--footer-muted); font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .85rem; }
.footer-legal a, .site-footer .link-button { color: var(--footer-ink); }
.link-button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.site-footer .link-button:hover { color: var(--accent); }

/* ----------------------------------------------------------- cookie banner */
/* Built by assets/js/consent.js. Non-blocking: the page stays usable while it is shown. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 460px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-lg); font-size: .92rem; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent-title { margin: 0 0 6px; font-size: 1.02rem; }
.consent-text { margin: 0 0 14px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
/* Accepting and declining are equally easy: same size, same style. */
.consent-actions .btn { flex: 1 1 120px; min-height: 44px; }
.consent-policy { flex-basis: 100%; font-size: .86rem; }
@media print { .consent { display: none !important; } }

/* ------------------------------------------------------------ publications */
/* Markup comes from tools/build_publications.py; behaviour from assets/js/publications.js. */
#bclq-pubs [hidden] { display: none !important; }
#bclq-pubs p, #bclq-pubs li { max-width: none; }
#bclq-pubs ul, #bclq-pubs ol { margin: 0; padding: 0; list-style: none; }
#bclq-pubs li { margin: 0; padding: 0; }
#bclq-pubs .bp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
#bclq-pubs .bp-head h2 { margin-top: 0; }
#bclq-pubs .bp-lead { max-width: 75ch; color: var(--muted); }
#bclq-pubs .bp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; }
#bclq-pubs .bp-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
#bclq-pubs .bp-stat b { display: block; color: var(--heading); font-size: 1.9rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#bclq-pubs .bp-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#bclq-pubs .bp-panel { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
#bclq-pubs .bp-tools { display: flex; flex-wrap: wrap; gap: 10px; }
#bclq-pubs .bp-field { position: relative; flex: 1 1 260px; min-width: 0; }
#bclq-pubs .bp-field svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
#bclq-pubs input[type="search"], #bclq-pubs select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: 400 .95rem/1.2 var(--font);
}
#bclq-pubs input[type="search"] { padding-left: 42px; }
#bclq-pubs input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
#bclq-pubs input[type="search"]:focus, #bclq-pubs select:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-600) 18%, transparent); }
#bclq-pubs select {
  flex: 0 1 230px; width: auto; min-width: 200px; cursor: pointer; padding-right: 42px;
  /* own chevron (same stroke style as the search icon, in --muted): the native arrow hugs the right edge */
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6e7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 17px 17px; background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #bclq-pubs select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] #bclq-pubs select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
#bclq-pubs .bp-clear { height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-2); font: 500 .92rem var(--font); cursor: pointer; }
#bclq-pubs .bp-clear:hover { border-color: var(--brand-600); color: var(--brand-600); }
#bclq-pubs .bp-count { margin: 28px 0 14px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#bclq-pubs .bp-count:focus { outline: none; }
#bclq-pubs .bp-year { display: flex; align-items: center; gap: 14px; margin: 30px 0 12px; }
#bclq-pubs .bp-year:first-child { margin-top: 0; }
#bclq-pubs .bp-year h3 { margin: 0; color: var(--heading); font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#bclq-pubs .bp-year span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
#bclq-pubs .bp-year hr { flex: 1; height: 1px; margin: 0; border: 0; background: var(--line); }
#bclq-pubs .bp-item {
  position: relative; margin-bottom: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#bclq-pubs .bp-item::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--accent); opacity: 0; transition: opacity .18s ease; }
#bclq-pubs .bp-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
#bclq-pubs .bp-item:hover::before { opacity: 1; }
#bclq-pubs .bp-item h4 { margin: 0 0 8px; font-size: 1.04rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
#bclq-pubs .bp-item h4 a { color: var(--heading); text-decoration: none; }
#bclq-pubs .bp-item h4 a:hover { color: var(--link); text-decoration: underline; }
#bclq-pubs .bp-authors { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
#bclq-pubs .bp-more { padding: 0 0 0 4px; border: 0; background: none; color: var(--link); font: 600 .84rem var(--font); white-space: nowrap; cursor: pointer; }
#bclq-pubs .bp-more:hover { text-decoration: underline; }
#bclq-pubs .bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
#bclq-pubs .bp-journal { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-700); font-size: .8rem; font-weight: 600; }
#bclq-pubs .bp-cite { font-variant-numeric: tabular-nums; }
#bclq-pubs .bp-links { display: flex; gap: 8px; margin-left: auto; }
#bclq-pubs .bp-links a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); font-size: .8rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
#bclq-pubs .bp-links a:hover { border-color: var(--brand-600); background: var(--accent-soft); color: var(--brand-600); }
#bclq-pubs .bp-links svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
#bclq-pubs .bp-loadwrap { display: flex; justify-content: center; margin: 24px 0 4px; }
#bclq-pubs .bp-load { min-height: 46px; padding: 0 26px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--heading); font: 600 .94rem var(--font); cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
#bclq-pubs .bp-load:hover { border-color: var(--brand-600); background: var(--accent-soft); color: var(--brand-600); }
#bclq-pubs .bp-empty { display: none; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
#bclq-pubs .bp-empty p { margin: 0; }
#bclq-pubs .bp-empty button { display: inline-block; margin-top: 14px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--brand-700); color: #fff; font: 600 .9rem var(--font); cursor: pointer; }
#bclq-pubs .bp-empty button:hover { background: var(--brand-600); }
#bclq-pubs .bp-archive { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
#bclq-pubs .bp-archive-ico { display: flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-700); }
#bclq-pubs .bp-archive-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
#bclq-pubs .bp-archive-txt { flex: 1 1 240px; min-width: 0; }
#bclq-pubs .bp-archive-txt b { display: block; color: var(--heading); font-size: 1rem; }
#bclq-pubs .bp-archive-txt span { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; }
#bclq-pubs .bp-archive > a { flex: none; padding: 11px 20px; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: .92rem; font-weight: 600; text-decoration: none; }
#bclq-pubs .bp-archive > a:hover { background: var(--brand-600); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #bclq-pubs .bp-journal { color: #bfe3f6; }
  :root:not([data-theme="light"]) #bclq-pubs .bp-archive-ico, :root:not([data-theme="light"]) #bclq-pubs .bp-archive > a, :root:not([data-theme="light"]) #bclq-pubs .bp-empty button {
    background: var(--brand-600);
  }
}
:root[data-theme="dark"] #bclq-pubs .bp-journal { color: #bfe3f6; }
:root[data-theme="dark"] #bclq-pubs .bp-archive-ico, :root[data-theme="dark"] #bclq-pubs .bp-archive > a, :root[data-theme="dark"] #bclq-pubs .bp-empty button {
  background: var(--brand-600);
}
@media (max-width: 640px) {
  #bclq-pubs .bp-stat b { font-size: 1.6rem; }
  #bclq-pubs .bp-panel { padding: 16px; }
  #bclq-pubs select { flex: 1 1 100%; width: 100%; min-width: 0; }
  #bclq-pubs .bp-item { padding: 16px; }
  #bclq-pubs .bp-links { width: 100%; margin-left: 0; }
}
@media print {
  #bclq-pubs .bp-panel, #bclq-pubs .bp-links, #bclq-pubs .bp-more, #bclq-pubs .bp-loadwrap { display: none; }
  #bclq-pubs .bp-item { break-inside: avoid; border-color: #ccc; box-shadow: none; }
}

/* --------------------------------------------------------------------- 404 */
.page-404 { min-height: 100vh; background: linear-gradient(180deg, var(--bg-soft), var(--bg) 320px); }
.page-404 main { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 64px; }
.page-404 .brand { margin-bottom: 40px; }
.page-404 .brand img { width: 200px; }
.page-404 .code { margin: 0 0 10px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.page-404 h1 { margin: 0 0 32px; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
.page-404 .langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .page-404 .langs { grid-template-columns: 1fr; } }
.page-404 section { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.page-404 h2 { margin: 0 0 8px; font-size: 1.15rem; }
.page-404 section p { color: var(--muted); font-size: .95rem; }
.page-404 ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.page-404 .contact { margin-top: 28px; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer .partners, .subnav, .skip-link, .hero-actions, .menu-toggle { display: none !important; }
  .page-banner, .hero { padding: 0 0 16px; background: none !important; color: #000; }
  .page-banner::before, .page-banner::after, .hero::before, .hero::after { display: none; }
  .page-banner h1, .hero h1, .hero-lead { color: #000; }
  .breadcrumbs { display: none; }
  .page-body.has-aside { display: block; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  .card, .person, .quick-card, .doc-link { box-shadow: none; break-inside: avoid; }
}
