/* CRQFT Shiny: modern fintech look (deep navy, indigo / cyan accents) */
:root {
  --ink: #0b1220;
  --navy: #0b1220;
  --navy-2: #111a2e;
  --line: #e5e7eb;
  --muted: #64748b;
  --soft: #f6f7fb;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --up: #10b981;
  --down: #ef4444;
}

body { background: var(--soft); color: var(--ink); }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* Navbar */
.navbar { background: var(--navy) !important; border-bottom: 1px solid rgba(255,255,255,.06); }
.navbar .nav-link { color: rgba(255,255,255,.72) !important; font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff !important; }
.navbar .nav-link.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.navbar-toggler { filter: invert(1); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; letter-spacing: .04em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; font-size: .95rem;
}
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 2px; margin: 0 .5rem; }
.lang-btn { color: rgba(255,255,255,.7) !important; text-decoration: none; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; }
.lang-btn.active { background: #fff; color: var(--navy) !important; }
.btn-portal { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; display: inline-flex; gap: .4rem; align-items: center; }
.btn-portal:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(6,182,212,.22), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(79,70,229,.28), transparent 60%),
    var(--navy);
  color: #fff; padding: 4.5rem 0 3rem;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--cyan); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.3); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.08; }
.hero-lead { color: rgba(255,255,255,.72); font-size: 1.12rem; max-width: 36rem; margin: 1.2rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), #6366f1); border: 0; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.25); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.stat-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; margin-top: 1rem; }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; font-weight: 700; }
.stat-label { color: rgba(255,255,255,.6); font-size: .85rem; }

/* Index tickers */
.ticker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.ticker-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 1.1rem 1.2rem; backdrop-filter: blur(6px); color: #fff; }
.ticker-code { font-size: .74rem; letter-spacing: .08em; color: rgba(255,255,255,.6); font-weight: 600; }
.ticker-value { font-family: "Space Grotesk", sans-serif; font-size: 1.65rem; font-weight: 700; margin: .25rem 0; font-variant-numeric: tabular-nums; }
.ticker-change { font-weight: 600; font-size: .92rem; display: inline-flex; gap: .25rem; }
.ticker-change.up { color: var(--up); }
.ticker-change.down { color: var(--down); }
.ticker-type { color: rgba(255,255,255,.5); font-size: .78rem; margin-top: .35rem; }

/* Sections */
.page { padding: 3rem 1rem 4rem; }
.section-head { margin: 3rem 0 1.5rem; max-width: 46rem; }
.page > .section-head:first-child { margin-top: 0; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.section-head .lead { color: var(--muted); font-size: 1.05rem; }
h3.sub { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }

.card-grid { display: grid; gap: 1.1rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); margin-bottom: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }

.feature-card, .project-card, .principle, .pillar {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card { margin-bottom: 1rem; }
.card-grid .feature-card { margin-bottom: 0; }
.feature-card:hover, .project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(15,23,42,.18); }
.feature-card h3, .project-card h3 { font-size: 1.1rem; font-weight: 700; margin: .25rem 0 .5rem; }
.feature-card p, .project-card p { color: var(--muted); margin: 0; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--indigo); background: rgba(79,70,229,.08); margin-bottom: .9rem; }
.meta { font-size: .82rem; color: var(--indigo); font-weight: 600; margin-bottom: .5rem; }

.cta-band { margin-top: 3rem; border-radius: 20px; padding: 2rem 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; color: #fff; background: linear-gradient(120deg, var(--indigo), var(--cyan)); }
.cta-band h3 { font-weight: 700; margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .9; }

/* Indices page */
.dark-panel { background: var(--navy); border-radius: 20px; padding: 1.5rem; }
.dark-panel .ticker-grid { grid-template-columns: repeat(4, 1fr); }
.dark-panel .panel-note { color: rgba(255,255,255,.55); margin: 1rem 0 0; }
.panel-note { color: var(--muted); font-size: .88rem; margin-top: 1rem; }
.param-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.param { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.param:last-child { border-bottom: 0; }
.param span { color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 1rem 2.8rem; color: #334155; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }

/* Training */
.track-table { margin: 0; }
.track-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.track-table td { vertical-align: middle; color: #334155; }
.level-pill { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(79,70,229,.1); color: var(--indigo); font-weight: 700; }
.nav-pills .nav-link.active { background: var(--indigo); }

/* CCPR */
.pillar { text-align: left; padding: 1.2rem; }
.pillar .bi { font-size: 1.4rem; color: var(--cyan); }
.pillar h4 { font-size: .98rem; font-weight: 700; margin: .6rem 0 .3rem; }
.pillar p { font-size: .85rem; color: var(--muted); margin: 0; }
.card { border-radius: 16px; border-color: var(--line); }
.card-header { background: #fff; font-weight: 700; }
.shiny-input-radiogroup > label { font-weight: 600; }
.result-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.6rem; margin-top: 1rem; text-align: center; }
.score-ring {
  --p: 50; width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,.1) 0);
}
.score-num { width: 112px; height: 112px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; }
.score-num span { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: -1.6rem; }
.result-label { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .6rem; }
.band { display: inline-block; margin: .6rem 0 1rem; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.band.high { background: rgba(16,185,129,.18); color: #6ee7b7; }
.band.mid { background: rgba(6,182,212,.18); color: #67e8f9; }
.band.low { background: rgba(239,68,68,.18); color: #fca5a5; }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.1); text-align: left; font-size: .92rem; }
.result-row span { color: rgba(255,255,255,.65); }
.result-row.big strong { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; color: var(--cyan); }
.disclaimer { font-size: .74rem; color: rgba(255,255,255,.45); margin: 1rem 0 0; text-align: left; }

/* Projects */
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.project-n { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--indigo); font-size: 1.1rem; margin-right: .6rem; }
.tag { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }

/* About */
.motto { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--indigo); font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; padding: .3rem 0; color: #334155; }
.check-list .bi { color: var(--up); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.person { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.avatar { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--indigo), var(--cyan)); }
.role { color: var(--muted); font-size: .85rem; }
.partner-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1.1rem; font-weight: 700; color: #334155; }
.principle { display: flex; align-items: center; color: #334155; }

/* Contact */
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; }
.form-status.thanks { background: rgba(16,185,129,.1); color: #047857; }
.form-status.missing { background: rgba(239,68,68,.08); color: #b91c1c; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 2.5rem 1rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { margin: .6rem 0 0; font-size: .88rem; }
.footer-meta { text-align: right; }
.copy { font-size: .78rem; color: rgba(255,255,255,.4); }

/* Responsive */
@media (max-width: 992px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .card-grid.five { grid-template-columns: repeat(2, 1fr); }
  .dark-panel .ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-switch { margin: .5rem 0; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-inner { padding: 0 16px; }
  .card-grid.two, .card-grid.three, .card-grid.five { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* Full-bleed hero and footer inside the bslib page container */
.bslib-page-navbar > .container-fluid, body > .container-fluid { padding: 0 !important; }
.hero { margin-top: 0; }
.card .shiny-input-container, .card .shiny-input-radiogroup { width: 100%; max-width: 100%; }

/* Chinese: fall back to system CJK fonts */
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}

/* Japanese: fall back to system Japanese fonts */
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  font-family: "Inter", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}

/* What we do */
.more-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; color: var(--indigo); text-decoration: none; }
.more-link:hover { gap: .55rem; color: var(--indigo); }
.section-head.with-link { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: none; }
.section-head.with-link .more-link { margin-top: 0; }
.area-list { display: grid; gap: 1.1rem; }
.area-row { display: flex; gap: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; }
.area-row h3 { font-size: 1.3rem; font-weight: 700; }
.area-row p { color: var(--muted); max-width: 52rem; }
.feature-icon.big { flex: 0 0 56px; width: 56px; height: 56px; font-size: 1.6rem; }
.back-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--indigo); }
.detail-hero { display: flex; gap: 1.5rem; align-items: flex-start; }
.detail-hero h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.detail-hero .lead { color: var(--muted); max-width: 50rem; }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; background: var(--navy); border-radius: 18px; padding: 1.5rem; }
.fact-value { font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--cyan); }
.fact-label { color: rgba(255,255,255,.65); font-size: .9rem; }
.check-list .bi-person-check { color: var(--indigo); }
.btn-outline-primary { color: var(--indigo); border-color: var(--indigo); }
.btn-outline-primary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
@media (max-width: 640px) {
  .area-row, .detail-hero { flex-direction: column; gap: 1rem; }
  .fact-row { grid-template-columns: 1fr; }
}

/* Pages without a menu entry (home, indices, training, CCPR) leave empty tab links behind */
.navbar .nav-link:empty, .navbar .nav-item:has(> .nav-link:empty) { display: none; }
.navbar-brand a, .navbar-brand a:hover { text-decoration: none; }
.navbar .dropdown-menu { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 30px -12px rgba(15,23,42,.25); }
.navbar .dropdown-item.active, .navbar .dropdown-item:active { background: var(--indigo); }

/* CRSP model comparison on the home page */
.pitch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.pitch-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.pitch-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.pitch-head .feature-icon { margin: 0; }
.pitch-head h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.pitch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pitch-col { border-radius: 12px; padding: 1rem; }
.pitch-col p { margin: 0; font-size: .92rem; }
.pitch-col.crsp { background: var(--soft); color: var(--muted); }
.pitch-col.crqft { background: var(--navy); color: rgba(255,255,255,.88); }
.pitch-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.pitch-col.crsp .pitch-label { color: var(--muted); }
.pitch-col.crqft .pitch-label { color: var(--cyan); }
@media (max-width: 992px) { .pitch-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pitch-cols { grid-template-columns: 1fr; } }
@media (min-width: 993px) { .pitch-grid > .pitch-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.pitch-card .more-link { margin-top: .9rem; }
.section-head.with-link > div { max-width: 46rem; }
.impact-card .check-list li { padding: .45rem 0; }

/* Slogan */
.slogan { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: .6rem;
  background: linear-gradient(90deg, var(--cyan), #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-slogan { color: var(--cyan); font-weight: 600; margin-top: .6rem; font-size: .95rem; }
.navbar { margin-bottom: 0 !important; }
.tab-content > .tab-pane { margin-top: 0 !important; }
.site-footer .footer-inner > div:first-child { max-width: 34rem; }

/* Hero illustration: data -> research -> indices -> funds loop */
.illus { position: relative; width: 100%; max-width: 520px; aspect-ratio: 400 / 360; margin-left: auto; }
.illus-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.illus-node { position: absolute; width: 38%; transform: translate(-50%, -50%); text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: .85rem .6rem;
  backdrop-filter: blur(6px); box-shadow: 0 12px 30px -16px rgba(6,182,212,.5); }
.illus-node.tl { left: 25%; top: 25%; } .illus-node.tr { left: 75%; top: 25%; }
.illus-node.br { left: 75%; top: 75%; } .illus-node.bl { left: 25%; top: 75%; }
.illus-icon { width: 40px; height: 40px; margin: 0 auto .45rem; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--cyan)); }
.illus-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #fff; font-size: .98rem; line-height: 1.2; }
.illus-sub { color: rgba(255,255,255,.6); font-size: .78rem; margin-top: .2rem; }
.illus-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: .3rem; color: #fff; font-weight: 700; letter-spacing: .06em; font-size: .8rem; }
.illus-core .brand-mark { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 14px; box-shadow: 0 0 40px rgba(6,182,212,.45); }
.illus-band { position: absolute; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.3);
  padding: .2rem .7rem; border-radius: 999px; white-space: nowrap; }
.illus-band.top { top: -2%; } .illus-band.bottom { bottom: -2%; color: #a5b4fc; background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.35); }
@media (max-width: 640px) {
  .illus { margin: 1rem auto 0; }
  .illus-node { width: 44%; padding: .6rem .4rem; }
  .illus-icon { width: 32px; height: 32px; font-size: .95rem; }
  .illus-title { font-size: .85rem; } .illus-sub { font-size: .7rem; }
}

/* Official CRQFT logo in a taller menu bar, like crqft.edu.vn */
.navbar { min-height: 88px; padding-top: 12px !important; padding-bottom: 12px !important; }
.brand-logo { height: 52px; width: auto; display: block; }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 4px; }
@media (max-width: 575.98px) { .navbar { min-height: 70px; } .brand-logo { height: 38px; } }
.navbar > .container-fluid, .navbar > .container-xl, .navbar > .container { align-items: center; }
.navbar-brand { display: flex; align-items: center; margin-right: 2.5rem; padding: 0; }
.navbar-brand a { display: flex; align-items: center; }
@media (max-width: 991.98px) { .navbar-brand { margin-right: .5rem; } }
@media (max-width: 575.98px) { .brand-logo { height: 34px; } }
/* Language dropdown: globe + current code in gold */
.lang-switch { display: none; }
.lang-dd { margin: 0 .75rem; }
.lang-toggle { display: inline-flex; align-items: center; gap: .55rem; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: .45rem .9rem; font-weight: 700; font-size: .95rem; line-height: 1; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.lang-toggle .bi { font-size: 1.15rem; }
.lang-code { color: #e8b84a; letter-spacing: .02em; }
.lang-dd .dropdown-menu { min-width: 180px; }
.lang-dd .dropdown-item { display: flex; align-items: center; gap: .6rem; color: var(--ink, #0f172a) !important; font-weight: 500; font-size: .92rem; }
.lang-dd .dropdown-item.active, .lang-dd .dropdown-item:active { background: var(--indigo); color: #fff !important; }
.lang-item-code { display: inline-block; min-width: 2.2rem; font-weight: 700; font-size: .78rem; opacity: .7; }
@media (max-width: 991.98px) { .lang-dd { margin: .5rem 0; } }
/* Top-menu topics, and the icon buttons (search, contact) next to the language dropdown */
.navbar .menu-link { color: rgba(255,255,255,.72) !important; font-weight: 500; text-decoration: none; }
.navbar .menu-link:hover, .navbar .menu-link.is-current { color: #fff !important; }
.navbar .menu-link.is-current { box-shadow: inset 0 -2px 0 var(--cyan); }
.navbar.topic-current .dropdown-toggle.active { color: rgba(255,255,255,.72) !important; box-shadow: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff !important;
  background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; font-size: 1.1rem; text-decoration: none; margin-left: .5rem; }
.icon-btn:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); color: #e8b84a !important; }
.site-search { position: relative; display: inline-flex; align-items: center; }
.site-search .search-input { width: 0; opacity: 0; padding: 0; border: 1px solid transparent; border-radius: 12px; height: 40px;
  background: rgba(255,255,255,.06); color: #fff; font-size: .92rem; transition: width .25s ease, opacity .2s ease, padding .25s ease; }
.site-search.open .search-input { width: 240px; opacity: 1; padding: 0 .8rem; border-color: rgba(255,255,255,.35); margin-left: .5rem; outline: none; }
.site-search .search-input::placeholder { color: rgba(255,255,255,.55); }
.site-search .search-toggle { order: 2; }
.site-search.open .search-toggle { color: #e8b84a !important; border-color: rgba(255,255,255,.55); }
.search-results { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-height: 420px; overflow-y: auto; z-index: 1050;
  background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(15,23,42,.35); padding: .35rem; }
.search-results.show { display: block; }
.search-hit { display: block; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: #0f172a !important; }
.search-hit:hover, .search-hit:focus { background: #eef2ff; }
.search-hit strong { display: block; font-size: .9rem; }
.search-hit span { display: block; font-size: .8rem; color: #64748b; line-height: 1.35; }
.search-hit mark { background: #fde68a; padding: 0; }
.search-empty { padding: .7rem; color: #64748b; font-size: .88rem; }
@media (max-width: 991.98px) {
  .site-search, .icon-btn { margin: .5rem 0; }
  .site-search.open .search-input { width: calc(100vw - 120px); max-width: 320px; }
  .search-results { left: 0; right: auto; width: calc(100vw - 32px); max-width: 360px; }
}
.navbar .menu-link { display: block; padding: .5rem .8rem; }
@media (min-width: 992px) { .navbar .menu-link { padding: .5rem .8rem; } }
/* Top-level menu in uppercase, dropdown items in normal case */
.navbar .navbar-nav > li > .nav-link, .navbar .menu-link { text-transform: uppercase; letter-spacing: .04em; font-size: calc(.9rem + 1px); }
.navbar .dropdown-menu .dropdown-item { text-transform: none; letter-spacing: normal; }
/* Login button, user menu */
.login-btn { width: auto; padding: 0 .9rem; gap: .45rem; font-weight: 600; font-size: .9rem; }
.user-toggle { width: auto; min-width: 40px; padding: 0 .35rem; }
.admin-badge { color: #e8b84a; font-weight: 800; letter-spacing: .08em; font-size: .85rem; padding: 0 .45rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.avatar.initials { background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; font-weight: 700; font-size: .78rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.6rem; flex: 0 0 88px; }
.user-dd .dropdown-item { display: flex; gap: .5rem; align-items: center; }
.profile-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }

/* Login box, styled like the CCPR sign-in */
.modal:has(.login-wrap) .modal-content { background: #0b1a33; border: 1px solid #2563eb; border-radius: 16px; color: #e2e8f0; }
.modal:has(.login-wrap) .modal-body { padding: 0; }
.modal:has(.login-wrap) .modal-header { display: none; }
.login-wrap { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 0; }
.login-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #cbd5e1; font-size: 1.6rem; line-height: 1; z-index: 2; }
.login-left { padding: 2.2rem 2rem; border-right: 1px solid rgba(255,255,255,.1); }
.login-brand img { height: 46px; }
.login-brand-sub { color: #60a5fa; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; font-size: .78rem; margin: .5rem 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.login-kicker { color: #60a5fa; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; font-size: .75rem; }
.login-left h2 { color: #fff; font-size: 1.8rem; margin: .4rem 0 .8rem; }
.login-left p { color: #cbd5e1; font-size: .92rem; }
.login-perks { list-style: none; padding: 0; margin: 1.2rem 0; }
.login-perks li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; color: #e2e8f0; font-size: .92rem; }
.login-perks li::before { content: "◆"; position: absolute; left: 0; color: #3b82f6; font-size: .8rem; top: .1rem; }
.login-switch a { color: #60a5fa; font-weight: 700; text-decoration: underline; }
.login-right { padding: 2.4rem 2rem 2rem; }
.login-right label, .login-right .control-label { color: #cbd5e1; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; font-weight: 700; display: flex; justify-content: space-between; width: 100%; }
.login-right .form-control { background: #071226; border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 8px; height: 44px; }
.login-right .form-control:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.2); }
.login-right .form-group { width: 100%; margin-bottom: .9rem; }
.login-right .shiny-input-container { width: 100% !important; }
.login-tabs { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 4px; margin-bottom: 1.2rem; list-style: none; }
.login-tabs a { display: block; padding: .5rem 1.1rem; border-radius: 7px; color: #e2e8f0; text-decoration: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.login-tabs a.active { background: #2563eb; color: #fff; }
.forgot-link { color: #60a5fa !important; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.pw-row { position: relative; }
.pw-eye { position: absolute; right: 10px; bottom: 9px; background: none; border: 0; color: #cbd5e1; font-size: 1.1rem; }
.captcha-row { display: grid; grid-template-columns: 140px 46px 1fr; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.captcha-q { background: #e2e8f0; color: #1e3a8a; border-radius: 8px; height: 44px; display: flex; align-items: center; justify-content: center;
  font: italic 700 1.35rem Georgia, serif; letter-spacing: .12em; }
.captcha-new { height: 44px; background: #071226 !important; border: 1px solid rgba(255,255,255,.15) !important; color: #e8b84a !important; border-radius: 8px; }
.captcha-row .form-group { margin: 0; }
.login-right .checkbox label { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; color: #e2e8f0; display: inline; }
.btn-signin { width: 100%; background: #2563eb; color: #fff; border: 0; border-radius: 8px; height: 48px; font-weight: 700; font-size: 1.05rem; margin-top: .4rem; }
.btn-signin:hover { background: #1d4ed8; color: #fff; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.coming-soon { color: #cbd5e1; padding: 2rem 0; display: flex; gap: .6rem; align-items: center; }
.auth-msg { margin-top: 1rem; padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; }
.auth-msg.error { background: rgba(239,68,68,.15); color: #fecaca; border: 1px solid rgba(239,68,68,.35); }
.auth-msg.ok { background: rgba(34,197,94,.15); color: #bbf7d0; border: 1px solid rgba(34,197,94,.35); }
.auth-msg.info { background: rgba(96,165,250,.15); color: #bfdbfe; border: 1px solid rgba(96,165,250,.35); }
@media (max-width: 767.98px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 1.6rem 1.4rem; }
  .login-right { padding: 1.6rem 1.4rem; }
  .login-grid { grid-template-columns: 1fr; }
}

/* Admin table */
.admin-table { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: .5rem 1rem; }
.status { font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.status.pending { background: #fef3c7; color: #92400e; }
.status.active { background: #dcfce7; color: #166534; }
.status.disabled { background: #fee2e2; color: #991b1b; }
.login-tabs { flex-wrap: nowrap; padding: 4px; }
.login-tabs li { list-style: none; }
.captcha-new { width: 46px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.captcha-row .shiny-input-container { width: 100% !important; }
.user-toggle .avatar { flex: 0 0 30px; }
img.avatar { aspect-ratio: 1 / 1; }
.navbar .icon-btn { border: 1px solid rgba(255,255,255,.28) !important; }
.navbar .icon-btn:hover { border-color: rgba(255,255,255,.55) !important; }
.illus-logo { width: 104px; height: auto; filter: drop-shadow(0 0 18px rgba(6,182,212,.45)); }
@media (max-width: 575.98px) { .illus-logo { width: 84px; } }
.illus-logo { width: auto; height: 56px; }
.illus-logo-sub { margin-top: .35rem; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; letter-spacing: .14em; font-size: .85rem; color: #fff; }
@media (max-width: 575.98px) { .illus-logo { width: auto; height: 46px; } }
.illus-logo-sub { max-width: 128px; text-align: center; line-height: 1.25; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #cbd5e1; }
/* Bigger, brighter Academia / Industry labels in the hero illustration */
.illus-band { font-size: 1.3rem; font-weight: 800; letter-spacing: .1em; padding: .45rem 1.3rem; border-width: 2px; white-space: nowrap;
  color: #fff; background: linear-gradient(90deg, #0891b2, #06b6d4); border-color: #67e8f9; box-shadow: 0 0 24px rgba(6,182,212,.55); }
.illus-band.top { top: -6%; }
.illus-band.bottom { bottom: -6%; color: #fff; background: linear-gradient(90deg, #4f46e5, #6366f1); border-color: #a5b4fc; box-shadow: 0 0 24px rgba(99,102,241,.55); }
@media (max-width: 575.98px) { .illus-band { font-size: 1rem; padding: .35rem 1rem; } }
/* Process cycle behind the hero tiles: glowing ring, clockwise arrows, flowing dashes and two moving dots */
.illus-flow { animation: illus-flow 2.4s linear infinite; }
@keyframes illus-flow { to { stroke-dashoffset: -36; } }
.illus-dots circle { filter: drop-shadow(0 0 6px #67e8f9); }
.illus-node { background: rgba(15,23,42,.88); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .illus-flow { animation: none; } .illus-dots { display: none; } }
@media (max-width: 575.98px) { .illus-logo-sub { display: none; } }
/* All navbar dropdowns (About, language, user menu): dark navy, light text, gold for the current item */
.navbar .dropdown-menu { background: #0f1b33 !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); padding: .4rem; }
.navbar .dropdown-menu .dropdown-item { color: #e2e8f0 !important; border-radius: 8px; padding: .5rem .8rem; font-weight: 500; }
.navbar .dropdown-menu .dropdown-item:hover, .navbar .dropdown-menu .dropdown-item:focus { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.navbar .dropdown-menu .dropdown-item.active, .navbar .dropdown-menu .dropdown-item:active { background: rgba(232,184,74,.14) !important; color: #e8b84a !important; }
.navbar .dropdown-menu .dropdown-header { color: #94a3b8; }
.navbar .dropdown-menu .dropdown-divider { border-color: rgba(255,255,255,.12); }
.lang-dd .lang-item-code { color: #94a3b8; opacity: 1; }
.lang-dd .dropdown-item.active .lang-item-code { color: #e8b84a; }
/* Tighter right-side icon group */
.navbar .icon-btn, .site-search .search-toggle { margin: 0 !important; }
.lang-dd { margin: 0 !important; }
.site-search.open .search-input { margin-left: 0; margin-right: .35rem; }
.navbar .nav-item:has(> .site-search), .navbar .nav-item:has(> .icon-btn), .navbar .nav-item:has(> .lang-dd),
.navbar .nav-item:has(> .shiny-html-output) { display: flex; align-items: center; padding: 0 !important; margin: 0 .2rem; }
#site-search, #contact-icon, .lang-dd { margin: 0 .2rem !important; }
.navbar .icon-btn { padding: 0 !important; }
.navbar .icon-btn.login-btn, .navbar .icon-btn.user-toggle { padding: 0 .8rem !important; }
.navbar .navbar-nav.nav-underline { gap: .15rem; }
.navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .75rem !important; padding-right: .75rem !important; }
/* Login box centred in the viewport, scrolling inside on short screens */
.modal:has(.login-wrap) .modal-dialog { display: flex; align-items: center; min-height: calc(100% - 2rem); margin-top: 1rem; margin-bottom: 1rem; }
.modal:has(.login-wrap) .modal-content { max-height: calc(100vh - 2rem); overflow-y: auto; }
.lang-toggle { height: 40px; }
/* Login box: Sign in / Sign up button pinned to the bottom, level with the left panel's last line */
.login-left, .login-right { padding-bottom: 2rem; }
.login-left { display: flex; flex-direction: column; }
.login-left .login-switch { margin-top: auto; margin-bottom: 0; }
.login-right { display: flex; flex-direction: column; }
.login-right > .tab-content { flex: 1; display: flex; flex-direction: column; }
.login-right > .tab-content > .tab-pane.active { flex: 1; display: flex; flex-direction: column; }
.login-right .btn-signin { margin-top: auto; }
.login-right > #do_signup { margin-top: auto; }
.login-right > .shiny-html-output:empty { display: none; }
.login-brand { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.pw-eye { bottom: calc(.9rem + 9px); }
.captcha-row .shiny-input-container, .captcha-row .form-group { margin: 0 !important; }
.captcha-row .shiny-input-container > label { display: none; }
.navbar .navbar-nav > li > .nav-link, .navbar .menu-link { font-weight: 700 !important; }
/* Two-line subtitle under the C icon, like the navbar logo */
.illus-logo-sub { display: flex; flex-direction: column; align-items: center; max-width: none; white-space: nowrap;
  font-size: .62rem; letter-spacing: .05em; line-height: 1.35; font-weight: 600; color: #e2e8f0; }
.illus-logo-sub { font-size: .5rem; letter-spacing: .04em; line-height: 1.3; margin-top: .3rem; }
/* Hero tiles without icons, larger text */
.illus-node .illus-icon { display: none; }
.illus-node { padding: 1.4rem .8rem; }
.illus-title { font-size: 1.35rem; line-height: 1.15; }
.illus-sub { font-size: 1rem; margin-top: .35rem; color: rgba(255,255,255,.72); }
@media (max-width: 575.98px) { .illus-node { padding: .9rem .4rem; } .illus-title { font-size: 1rem; } .illus-sub { font-size: .78rem; } }
.illus-node { min-height: 34%; display: flex; flex-direction: column; justify-content: center; } .illus-title { font-size: 1.25rem; }
.illus-node { min-height: 30%; }

/* ---- Team cards and profile pages ---- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
a.person-card, .person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1rem 1.1rem; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.person-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,18,32,.10); border-color: var(--indigo); color: var(--ink); }
.person-card .person-name { font-weight: 700; font-size: 1.05rem; margin-top: .4rem; }
.person-card .role { color: var(--muted); font-size: .88rem; line-height: 1.35; flex: 1; }
.person-card .more-link { margin-top: .5rem; font-size: .85rem; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5rem; background: linear-gradient(135deg, var(--indigo), var(--cyan)); flex: 0 0 auto; }
.team-avatar.photo { object-fit: cover; }
.team-avatar.xl { width: 128px; height: 128px; font-size: 2.3rem; }
.profile-hero { display: flex; gap: 1.6rem; align-items: center; margin: 1rem 0 1.8rem; }
.profile-hero h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: .2rem 0; }
.profile-hero .lead { color: var(--muted); margin: 0; }
.profile-hero .meta { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--indigo); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-row .tag { font-size: .85rem; padding: .3rem .8rem; color: var(--ink); }
@media (max-width: 640px) { .profile-hero { flex-direction: column; text-align: center; } }

/* Hero tiles: larger boxes, titles always on one line (all 4 languages) */
.illus { max-width: 600px; container-type: inline-size; }
.illus-node { width: 45%; min-height: 31%; padding: 1rem .5rem; }
.illus-node.tl { left: 23.5%; top: 24%; } .illus-node.tr { left: 76.5%; top: 24%; }
.illus-node.bl { left: 23.5%; top: 76%; } .illus-node.br { left: 76.5%; top: 76%; }
.illus-title { font-size: clamp(.78rem, 3.4cqw, 1.12rem); white-space: nowrap; }
.illus-sub { font-size: clamp(.7rem, 2.7cqw, .92rem); }

/* Top menu: gold underline on hover and for the page on screen (same gold as the language code) */
:root { --gold: #e8b84a; }
.navbar .navbar-nav .nav-link, .navbar .menu-link { border-bottom: 2px solid transparent !important; box-shadow: none !important; }
.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link:focus-visible, .navbar .navbar-nav .nav-link.active, .navbar .navbar-nav .nav-link.show,
.navbar .menu-link:hover, .navbar .menu-link.is-current { border-bottom-color: var(--gold) !important; }

/* Keep the whole menu on one line on laptop screens */
@media (min-width: 992px) { .navbar .navbar-nav { flex-wrap: nowrap; } .navbar .navbar-nav > li { white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1439.98px) {
  .brand-logo { height: 42px; }
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .45rem !important; padding-right: .45rem !important; font-size: calc(.82rem + 1px); letter-spacing: .02em; }
  .navbar .login-btn span, .navbar #login-label { display: none; }
  .navbar .login-btn, .navbar #login-link { width: 40px; padding: 0 !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .brand-logo { height: 34px; } }

/* Inside pages: the page header is a dark band like the home hero (no icon, no figures band) */
.detail-hero, .profile-hero, .page > .section-head:first-child {
  max-width: none; margin: 0 0 2.2rem; padding: 2.6rem 2.6rem 2.4rem; border-radius: 22px; color: #fff;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(6,182,212,.24), transparent 60%),
    radial-gradient(600px 300px at 5% 100%, rgba(79,70,229,.32), transparent 60%),
    var(--navy);
  box-shadow: 0 18px 40px rgba(11,18,32,.18);
}
.detail-hero h2, .profile-hero h2, .page > .section-head:first-child h2 { color: #fff; margin-bottom: .6rem; }
.detail-hero .lead, .profile-hero .lead, .page > .section-head:first-child .lead { color: rgba(255,255,255,.75); max-width: 52rem; margin-bottom: 0; }
.profile-hero .meta { color: var(--gold); }
.detail-hero > div { max-width: 60rem; }
.back-link { margin-bottom: 1rem; }
@media (max-width: 640px) { .detail-hero, .profile-hero, .page > .section-head:first-child { padding: 1.7rem 1.3rem; border-radius: 16px; } }
/* Narrow laptops (992–1199px): tighter menu so it stays on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-logo { height: 30px; }
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .3rem !important; padding-right: .3rem !important; font-size: calc(.74rem + 1px); letter-spacing: 0; }
  .navbar .icon-btn, .navbar .lang-toggle { margin-left: .25rem; }
}

/* Top menu text: gold and bold; hover and the page on screen turn white over the gold underline */
.navbar .navbar-nav > li > .nav-link, .navbar .menu-link { color: var(--gold) !important; font-weight: 700 !important; }
.navbar .navbar-nav > li > .nav-link:hover, .navbar .navbar-nav > li > .nav-link.active, .navbar .navbar-nav > li > .nav-link.show,
.navbar .menu-link:hover, .navbar .menu-link.is-current { color: #fff !important; }
.card-grid.partner-cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199.98px) { .card-grid.partner-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .card-grid.partner-cards { grid-template-columns: 1fr; } }

/* Tooltips on the navbar icon buttons: dark, with a gold accent */
.navbar [data-tip] { position: relative; }
.navbar [data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -4px);
  background: #0b1220; color: #fff; border: 1px solid var(--gold); border-radius: 8px; padding: .35rem .65rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: none; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 1080;
}
.navbar [data-tip]::before {
  content: ""; position: absolute; top: calc(100% + 5px); left: 50%; width: 10px; height: 10px; background: #0b1220;
  border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); transform: translate(-50%, -4px) rotate(45deg);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 1081;
}
.navbar [data-tip]:hover::after, .navbar [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.navbar [data-tip]:hover::before, .navbar [data-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0) rotate(45deg); }
.navbar .dropdown.show > [data-tip]::after, .navbar .dropdown.show > [data-tip]::before,
.navbar [data-tip][aria-expanded="true"]::after, .navbar [data-tip][aria-expanded="true"]::before { display: none; }
.navbar .login-btn { width: 40px; padding: 0 !important; }
@media (max-width: 991.98px) { .navbar [data-tip]::after, .navbar [data-tip]::before { display: none; } }

/* Hero tiles: compact height, gold uppercase titles on one line */
.illus-node { min-height: 0; padding: .8rem .5rem; }
.illus-title { color: var(--gold); text-transform: uppercase; letter-spacing: .02em; font-size: calc(clamp(.66rem, 2.9cqw, 1rem) + 1px); }
.illus-node { padding-left: .3rem; padding-right: .3rem; }
.illus-sub { margin-top: .25rem; }
@media (max-width: 575.98px) { .illus-node { padding: .55rem .35rem; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .22rem !important; padding-right: .22rem !important; font-size: calc(.72rem + 1px); }
  .navbar .icon-btn { width: 36px; height: 36px; }
}
html[lang="fr"] .illus-title { font-size: calc(clamp(.55rem, 2.45cqw, .92rem) + 1px); }

/* Home hero fits the first screen: the illustration scales with the window height and sits centred beside the text */
@media (min-width: 992px) {
  .hero { padding: 2.2rem 0 2.2rem; }
  .hero-inner { min-height: calc(100vh - 88px - 4.4rem); }
  .illus { max-width: min(600px, calc((100vh - 88px - 4.4rem - 7rem) * 400 / 360)); margin-top: 3.2rem; margin-bottom: 3.2rem; }
}

/* Inside pages: content cards without icons, larger titles (the home page keeps its icons) */
.page:not(.hero + .page) .feature-card > .feature-icon, .page:not(.hero + .page) .area-row > .feature-icon { display: none; }
.page:not(.hero + .page) .feature-card h3 { font-size: 1.35rem; margin-top: 0; letter-spacing: -.005em; }
.page:not(.hero + .page) .area-row h3 { font-size: 1.5rem; }

/* Media band at the end of inside pages: video / slides on the left, web-app thumbnails on the right */
.media-band { margin-top: 3rem; }
.media-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.media-col { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.media-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.media-placeholder { flex: 1; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border-radius: 12px; color: rgba(255,255,255,.7); font-weight: 600; font-size: .9rem; text-align: center; padding: 1rem;
  background: radial-gradient(400px 200px at 85% 0%, rgba(6,182,212,.22), transparent 60%), radial-gradient(400px 200px at 0% 100%, rgba(79,70,229,.3), transparent 60%), var(--navy); }
.media-placeholder .bi { font-size: 2.4rem; color: var(--gold); }
.media-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); cursor: pointer; }
.media-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.media-video:hover img { transform: scale(1.03); }
.media-video .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #0b1220; background: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.media-video iframe, .media-video video { width: 100%; height: 100%; border: 0; display: block; }
.media-video.playing { cursor: default; }
.media-video .media-dl { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(11,18,32,.75); border: 1px solid var(--gold); text-decoration: none; font-size: 1rem; z-index: 2; }
.media-video .media-dl:hover { color: var(--gold); }
.flip-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); }
.flip-main { width: 100%; height: 100%; object-fit: contain; display: block; }
.flip-prev, .flip-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(11,18,32,.75); color: var(--gold); display: grid; place-items: center; }
.flip-prev { left: .6rem; } .flip-next { right: .6rem; }
.flip-count { position: absolute; right: .7rem; bottom: .6rem; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(11,18,32,.75); border-radius: 999px; padding: .15rem .6rem; }
.flip-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.flip-thumbs button { flex: 0 0 88px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--soft); opacity: .65; }
.flip-thumbs button.active { border-color: var(--gold); opacity: 1; }
.flip-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.app-thumb { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--soft); transition: transform .15s, box-shadow .15s, border-color .15s; }
.app-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,18,32,.14); border-color: var(--gold); color: var(--ink); }
.app-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.app-thumb .media-placeholder { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
.app-name { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .8rem; font-weight: 700; font-size: .9rem; background: #fff; }
.app-name .bi { color: var(--gold); }
@media (max-width: 767.98px) { .media-grid { grid-template-columns: 1fr; } }
.media-grid { align-items: start; }
.media-col > .media-placeholder { flex: none; min-height: 0; aspect-ratio: 16 / 9; }

/* Inside-page banner: topic picture under a dark overlay, gold accent bar and gold title */
.detail-hero, .profile-hero, .page > .section-head:first-child {
  position: relative; overflow: hidden; border-left: 6px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(6,11,24,.96) 0%, rgba(6,11,24,.86) 38%, rgba(6,11,24,.35) 75%, rgba(6,11,24,.15) 100%),
    var(--banner, none) right center / cover no-repeat,
    var(--navy);
  min-height: 210px; display: flex; flex-direction: column; justify-content: center;
}
.profile-hero { flex-direction: row; align-items: center; justify-content: flex-start; }
.detail-hero h2, .profile-hero h2, .page > .section-head:first-child h2 { color: var(--gold); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.detail-hero .lead, .profile-hero .lead, .page > .section-head:first-child .lead { color: rgba(255,255,255,.88); }
.hero + .page > .section-head:first-child { min-height: 0; }
@media (max-width: 640px) {
  .detail-hero, .profile-hero, .page > .section-head:first-child { background: linear-gradient(0deg, rgba(6,11,24,.92), rgba(6,11,24,.75)), var(--banner, none) center / cover no-repeat, var(--navy); min-height: 0; }
  .profile-hero { flex-direction: column; }
}
/* ...but not on the home page, whose first section heading stays plain */
.hero + .page > .section-head:first-child { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; border-radius: 0; color: inherit; margin: 3rem 0 1.5rem; overflow: visible; display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; }
.hero + .page > .section-head:first-child h2 { color: var(--ink); text-shadow: none; }
.hero + .page > .section-head:first-child .lead { color: var(--muted); }

/* Inside-page card titles: bold dark blue */
:root { --title-blue: #1e3a8a; }
.page:not(.hero + .page) .feature-card h3, .page:not(.hero + .page) .area-row h3 { color: var(--title-blue); font-weight: 800; }

/* Team: 3 people per row on desktop, 2 on tablets, 1 on phones */
.people-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .people-grid { grid-template-columns: 1fr; } }

/* Team cards: large photo on top, name in bold dark blue, muted role, short accent line */
a.person-card, .person-card { padding: .7rem .7rem 1.4rem; gap: .3rem; border-radius: 18px; box-shadow: 0 6px 22px rgba(11,18,32,.06); }
.person-photo { width: 100%; aspect-ratio: 1 / .93; border-radius: 12px; object-fit: cover; object-position: top center; display: grid; place-items: center;
  color: rgba(255,255,255,.92); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.6rem; letter-spacing: .04em;
  background: radial-gradient(280px 200px at 80% 10%, rgba(34,211,238,.45), transparent 65%), radial-gradient(260px 220px at 10% 100%, rgba(232,184,74,.35), transparent 60%), linear-gradient(135deg, #1e3a8a, #0b1220); }
.person-card .person-name { color: var(--title-blue, #1e3a8a); font-weight: 800; font-size: 1.25rem; margin-top: 1rem; }
.person-card .role { color: #8a93b4; font-size: .95rem; flex: 0 0 auto; padding: 0 .6rem; }
.person-accent { display: block; width: 64px; height: 2px; background: var(--gold); border-radius: 2px; margin-top: .9rem; transition: width .2s; }
.person-card:hover .person-accent { width: 110px; }

/* Hero illustration: six tiles, three per row, on a clockwise loop */
.illus { aspect-ratio: 600 / 340; max-width: 660px; }
.illus-node { width: 29%; }
.illus-node.t1 { left: 17%; top: 23.5%; } .illus-node.t2 { left: 50%; top: 23.5%; } .illus-node.t3 { left: 83%; top: 23.5%; }
.illus-node.b1 { left: 17%; top: 76.5%; } .illus-node.b2 { left: 50%; top: 76.5%; } .illus-node.b3 { left: 83%; top: 76.5%; }
.illus-title { font-size: calc(clamp(.62rem, 2.5cqw, .95rem) + 1px); }
html[lang="fr"] .illus-title { font-size: calc(clamp(.6rem, 2.4cqw, .92rem) + 1px); }
.illus-sub { font-size: clamp(.58rem, 1.9cqw, .8rem); white-space: nowrap; }
.illus-node { padding: .6rem .3rem; }
.illus-logo { height: clamp(30px, 7cqw, 46px); }
.illus-logo-sub { font-size: clamp(.38rem, 1.15cqw, .5rem); }
.illus-band.top { top: -9%; } .illus-band.bottom { bottom: -9%; }
@media (min-width: 992px) {
  .illus { max-width: min(660px, calc((100vh - 88px - 4.4rem - 7rem) * 600 / 340)); }
}
/* Team cards: every photo spans the full card width at the same 4:3 size; cards in a row share one height */
.people-grid { align-items: stretch; }
.person-card .person-photo { align-self: stretch; width: auto; max-width: none; height: auto; aspect-ratio: 4 / 3; flex: none; }
.person-card .person-accent { align-self: center; margin-top: auto; }
.person-card .role { margin-bottom: .9rem; }
.person-photo.photo, .team-avatar.photo { object-fit: cover; object-position: center 30%; }
.person-card .person-photo { width: 100%; min-width: 0; }
.person-card { min-width: 0; }

/* "See it in action": the web-app screenshot is the same size as the video box (16:9); several apps scroll side by side */
.media-grid { grid-template-columns: 1fr 1fr; }
.app-thumbs { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .2rem; }
.app-thumb { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; border-radius: 12px; }
.app-thumb img, .app-thumb .media-placeholder { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
.app-name { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; background: linear-gradient(0deg, rgba(6,11,24,.92), rgba(6,11,24,.55) 70%, transparent); padding: 1.6rem .9rem .7rem; }
.app-thumb:hover { color: #fff; }
.app-carousel { position: relative; }
.app-carousel .flip-prev, .app-carousel .flip-next { z-index: 2; top: 45%; }
/* Team photos: portrait 2:3, full card width, identical on every card */
.person-card .person-photo { aspect-ratio: 2 / 3; width: 100%; }
.person-card .person-photo.photo { object-position: center 20%; }
.team-avatar.photo { object-position: center 25%; }
.person-card .role { min-height: 2.6em; }

/* Profile page: hero with intro and actions, then main column + sidebar */
.profile-hero { align-items: flex-start; }
.profile-intro { color: rgba(255,255,255,.82); max-width: 52rem; margin: .8rem 0 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.profile-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
.profile-actions .btn-warning { background: var(--gold); border-color: var(--gold); color: #0b1220; font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; }
.profile-main .feature-card p { color: #334155; line-height: 1.65; }
.timeline { display: flex; flex-direction: column; gap: .9rem; border-left: 2px solid var(--gold); padding-left: 1rem; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; color: var(--title-blue, #1e3a8a); }
.timeline-item p { margin: .25rem 0 0; }
.pub-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.pub-list li { display: flex; gap: .6rem; color: #334155; line-height: 1.5; }
.pub-list .bi { color: var(--gold); flex: 0 0 auto; margin-top: .15rem; }
.profile-quote { margin: 0; border-left: 3px solid var(--gold); padding-left: .9rem; font-style: italic; color: #334155; }
.profile-quote footer { font-style: normal; font-weight: 700; color: var(--title-blue, #1e3a8a); margin-top: .4rem; }
.profile-quote footer::before { content: "— "; }
@media (max-width: 991.98px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-main .feature-card > p { margin-bottom: .8rem; } .profile-main .feature-card > p:last-child { margin-bottom: 0; }

/* Inside-page cards: title on a dark navy strip in gold, body on light background */
.page:not(.hero + .page) .feature-card { overflow: hidden; }
.page:not(.hero + .page) .feature-card > h3:first-of-type {
  margin: -1.5rem -1.5rem 1rem; padding: .85rem 1.5rem; color: var(--gold); font-weight: 800;
  background: radial-gradient(420px 120px at 95% 0%, rgba(6,182,212,.22), transparent 60%), var(--navy);
  border-bottom: 2px solid var(--gold);
}

/* Team cards: head-and-shoulders crop (about 1:1.1), anchored at the top of the photo */
.person-card .person-photo { aspect-ratio: 10 / 11; }
.person-card .person-photo.photo { object-position: center top; }

/* Help pages: FAQ accordion, request form, links */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-list .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; background: #fff; }
.faq-list .accordion-header { margin: 0; font-size: 1rem; }
.faq-list .accordion-button { font-weight: 700; color: var(--title-blue, #1e3a8a); font-size: 1.05rem; padding: 1rem 1.25rem; }
.faq-list .accordion-button:not(.collapsed) { color: var(--gold); background: var(--navy); box-shadow: none; }
.faq-list .accordion-button:not(.collapsed)::after { filter: invert(78%) sepia(43%) saturate(600%) hue-rotate(2deg); }
.faq-list .accordion-button:focus { box-shadow: none; }
.faq-list .accordion-body { color: #334155; line-height: 1.65; padding: 1rem 1.25rem 1.2rem; }
.faq-more { max-width: 900px; margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-weight: 600; }
.faq-more span { margin-right: auto; }
.request-wrap { max-width: 860px; margin: 0 auto; }
.link-list { display: flex; flex-direction: column; gap: .5rem; }
a.link-row, .link-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s, background .15s; }
.link-row:hover { border-color: var(--gold); background: #fffaf0; color: var(--ink); }
.link-row > .bi:first-child { color: var(--title-blue, #1e3a8a); font-size: 1.15rem; }
.link-row > span:first-of-type { flex: 1; }
.link-row .link-url { color: var(--muted); font-weight: 400; font-size: .85rem; }
.link-row > .bi:last-child { color: var(--muted); }
@media (max-width: 575px) { .link-row .link-url { display: none; } }
.help-dd .dropdown-item { display: flex; gap: .55rem; align-items: center; }

/* Help icon joins the right-hand icons; keep the navbar on one line up to 1599px */
.help-dd { margin: 0 .2rem; }
@media (min-width: 992px) and (max-width: 1599.98px) {
  .navbar .container-fluid { padding-left: .75rem !important; padding-right: .75rem !important; }
  .brand-logo { height: 40px; }
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .4rem !important; padding-right: .4rem !important; font-size: calc(.8rem + 1px); letter-spacing: .01em; }
  .navbar .icon-btn { width: 36px; height: 36px; }
  .navbar .lang-toggle { height: 36px; padding-left: .55rem; padding-right: .55rem; gap: .35rem; }
  #site-search, #contact-icon, .lang-dd, .help-dd { margin: 0 .12rem !important; }
  .navbar .icon-btn, .navbar .lang-toggle { margin-left: 0; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .brand-logo { height: 30px; }
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .22rem !important; padding-right: .22rem !important; font-size: calc(.7rem + 1px); letter-spacing: 0; }
  .navbar .icon-btn { width: 32px; height: 32px; }
  .navbar .lang-toggle { height: 32px; padding-left: .4rem; padding-right: .4rem; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
  .brand-logo { height: 24px; }
  .navbar .navbar-nav > li > .nav-link, .navbar .menu-link { padding-left: .15rem !important; padding-right: .15rem !important; font-size: calc(.64rem + 1px); }
  .navbar .lang-toggle .lang-code { display: none; }
}

/* NXW Investment Library: highlighted full-width section on the Education page */
.library-block { margin: 0 0 2.4rem; padding: 2rem 2rem 1.8rem; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 260px at 100% 0%, rgba(232,184,74,.20), transparent 60%),
              radial-gradient(520px 260px at 0% 100%, rgba(6,182,212,.18), transparent 60%), var(--navy);
  border: 1px solid rgba(232,184,74,.45); box-shadow: 0 18px 40px rgba(11,18,32,.18); }
.library-head { display: flex; gap: 2rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.6rem; }
.library-text { flex: 1 1 520px; max-width: 760px; }
.library-eyebrow { display: inline-block; color: var(--navy); background: var(--gold); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px; margin-bottom: .8rem; }
.library-block h2 { color: var(--gold); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .25rem; }
.library-series { color: rgba(255,255,255,.7); font-weight: 600; letter-spacing: .03em; margin-bottom: .8rem; }
.library-text p { color: rgba(255,255,255,.85); line-height: 1.65; margin-bottom: 1.1rem; }
.library-cta { font-weight: 700; }
.library-stats { display: flex; gap: 1rem; }
.library-stat { min-width: 108px; text-align: center; padding: .8rem .9rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.library-stat b { display: block; color: var(--gold); font-size: 1.7rem; line-height: 1.1; font-family: "Space Grotesk", sans-serif; }
.library-stat span { color: rgba(255,255,255,.75); font-size: .8rem; }
.library-books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
a.library-book { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.library-book:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.35); color: var(--ink); }
.book-cover { --c1: #312e81; --c2: #4f46e5; position: relative; padding: 1rem 1rem 1rem 1.35rem; min-height: 150px; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.28); box-shadow: 1px 0 0 rgba(255,255,255,.18); }
.library-book.amber .book-cover { --c1: #7c2d12; --c2: #d97706; }
.library-book.cyan .book-cover { --c1: #164e63; --c2: #0891b2; }
.library-book.green .book-cover { --c1: #14532d; --c2: #16a34a; }
.library-book.slate .book-cover { --c1: #1e293b; --c2: #475569; }
.book-vol { color: var(--gold); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.book-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.2; margin: .45rem 0 auto; }
.book-sub { font-size: .72rem; color: rgba(255,255,255,.75); margin-top: .8rem; letter-spacing: .03em; }
.book-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.book-meta { font-size: .78rem; font-weight: 700; color: var(--title-blue, #1e3a8a); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.book-soon { color: #b45309; }
.book-body p { font-size: .86rem; color: #475569; line-height: 1.5; margin-bottom: .6rem; flex: 1; }
.book-read { font-size: .85rem; font-weight: 700; color: var(--indigo); }
.library-book.soon .book-cover { filter: saturate(.6); }
@media (max-width: 1199.98px) { .library-books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .library-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } .library-block { padding: 1.4rem 1.1rem; } .library-stats { width: 100%; } .library-stat { flex: 1; min-width: 0; } }
@media (max-width: 419.98px) { .library-books { grid-template-columns: 1fr; } }

/* Partner cards: official website under the More link */
.partner-cards .feature-card { display: flex; flex-direction: column; }
.partner-cards .feature-card p { flex: 1; }
.site-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.site-link:hover { color: var(--title-blue, #1e3a8a); }
.site-link .bi:last-child { font-size: .72rem; }

/* CMS: Edit page (administrators) */
.cms-upload { display: none !important; }
.cms-hidden { display: none !important; }
body.cms-on .cms-hidden { display: revert !important; opacity: .35; outline: 1px dashed #94a3b8; }
.cms-editbtn { position: fixed; left: 18px; bottom: 18px; z-index: 1090; border: 0; border-radius: 999px; padding: .6rem 1.05rem; font-weight: 700;
  background: var(--gold); color: var(--navy); box-shadow: 0 10px 26px rgba(11,18,32,.35); }
.cms-editbtn:hover { filter: brightness(1.05); }
.cms-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1095; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .7rem 1.2rem; background: var(--navy); color: #fff; border-top: 2px solid var(--gold); box-shadow: 0 -10px 30px rgba(0,0,0,.3); }
.cms-bar .cms-t { font-weight: 700; color: var(--gold); margin-right: auto; }
.cms-bar .cms-t small { display: block; color: rgba(255,255,255,.7); font-weight: 400; }
.cms-bar .cms-n { color: rgba(255,255,255,.75); font-size: .88rem; }
body.cms-on { padding-bottom: 80px; }
body.cms-on .cms-hov { outline: 2px dashed var(--gold); outline-offset: 2px; cursor: text; }
body.cms-on img.cms-hov, body.cms-on .media-video.cms-hov { cursor: pointer; }
.cms-cur { outline: 2px solid var(--gold) !important; outline-offset: 2px; background: rgba(232,184,74,.08); }
.cms-changed { box-shadow: inset 3px 0 0 #22c55e; }
.cms-tool { position: absolute; z-index: 1100; display: flex; gap: .25rem; padding: .3rem; border-radius: 10px; background: var(--navy); border: 1px solid var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.cms-tool button { border: 0; background: transparent; color: #fff; font-size: .82rem; font-weight: 600; padding: .3rem .55rem; border-radius: 7px; }
.cms-tool button:hover { background: rgba(255,255,255,.1); }
.cms-tool button.ok { background: var(--gold); color: var(--navy); }
.cms-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1110; background: var(--navy); color: #fff; border: 1px solid var(--gold); border-radius: 10px; padding: .6rem 1rem; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.35); }

/* About > Departments: one card per department with its head ("Led by") */
.dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1199.98px) { .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dept-grid { grid-template-columns: 1fr; } }
.dept-card { display: flex; flex-direction: column; margin: 0; }
.dept-card > h3 .bi { margin-right: .2rem; }
.dept-card > p { flex: 1; }
a.dept-lead, .dept-lead { display: flex; align-items: center; gap: .75rem; padding: .7rem; margin: .2rem 0 .6rem; border-radius: 12px; background: #f5f7fb; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.dept-lead:hover { border-color: var(--gold); color: var(--ink); }
.dept-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex: none; border: 2px solid var(--gold); }
.dept-lead > span { display: flex; flex-direction: column; min-width: 0; }
.dept-lead-k { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b45309; }
.dept-lead-n { font-weight: 700; color: var(--title-blue, #1e3a8a); line-height: 1.25; }
.dept-lead-r { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.dept-card > p { flex: 0 0 auto; }
.dept-card > .dept-lead { margin-top: auto; min-height: 86px; }
.dept-card > .more-link { min-height: 1.5em; }

/* Library volumes presented like the Team cards: cover in a team-photo-sized area, short description below, 3 per row */
.library-books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
@media (max-width: 991.98px) { .library-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .library-books { grid-template-columns: 1fr; } }
a.library-book { padding: .7rem .7rem 1.2rem; border-radius: 18px; }
.book-shot { aspect-ratio: 10 / 11; border-radius: 12px; overflow: hidden; display: grid; place-items: center; padding: 1.4rem;
  background: radial-gradient(360px 220px at 80% 0%, rgba(6,182,212,.22), transparent 60%), linear-gradient(160deg, #1e3a8a, #0b1220); }
.book-img { height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.book-shot .book-cover { height: 100%; aspect-ratio: 2 / 3; min-height: 0; border-radius: 4px 8px 8px 4px; box-shadow: 0 14px 30px rgba(0,0,0,.45); padding: 1.1rem 1rem 1rem 1.4rem; }
.book-shot .book-title { font-size: 1.05rem; }
.book-body { text-align: center; padding: 1rem .6rem 0; }
.book-vol-k { color: #b45309; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.book-name { color: var(--title-blue, #1e3a8a); font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin: .2rem 0 .35rem; font-family: "Space Grotesk", sans-serif; }
.book-body .book-meta { color: #8a93b4; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; }
.book-body p { font-size: .9rem; }
.book-body p { min-height: 6.1em; }
.book-shot { position: relative; }
.book-shot .book-img { position: absolute; top: 1.3rem; bottom: 1.3rem; left: 50%; transform: translateX(-50%); height: calc(100% - 2.6rem); width: auto; max-width: calc(100% - 2.6rem); }
.book-shot .book-cover { position: absolute; top: 1.3rem; bottom: 1.3rem; left: 50%; transform: translateX(-50%); height: calc(100% - 2.6rem); }

/* Administration tabs */
.admin-pane { padding-top: 1.1rem; }
.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.admin-table .msg-cell { max-width: 32rem; white-space: pre-wrap; font-size: .88rem; max-height: 9em; overflow: auto; }
.admin-table tr.row-done td { opacity: .62; }
.backup-card p { margin-bottom: 1rem; }
.restore-box .form-group, .restore-box .shiny-input-container { margin-bottom: 0; }
.dept-lead.tba .dept-lead-n { color: var(--muted); font-weight: 600; font-style: italic; }

/* Floating "Under construction" bar (R/underconstruction.R) */
.uc-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1080; display: flex; align-items: center; gap: .8rem;
  width: max-content; max-width: calc(100vw - 32px); padding: .5rem .6rem .5rem 1rem; border-radius: 999px;
  background: rgba(11,18,32,.94); border: 1px solid rgba(245,158,11,.55); box-shadow: 0 10px 30px rgba(0,0,0,.35); color: #e2e8f0; font-size: .85rem; backdrop-filter: blur(6px); }
.uc-label { color: #f59e0b; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; white-space: nowrap; }
.uc-text { min-width: 0; }
.uc-version { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: #94a3b8; padding: .15rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06); white-space: nowrap; }
.uc-close { border: 0; background: transparent; color: #94a3b8; font-size: 1.25rem; line-height: 1; padding: 0 .35rem; cursor: pointer; }
.uc-close:hover { color: #fff; }
body:has(.uc-bar) .cms-editbtn { bottom: 72px; }
body:has(.uc-bar) .site-footer { padding-bottom: 4.5rem; }
@media (max-width: 767.98px) {
  .uc-bar { border-radius: 14px; flex-wrap: wrap; gap: .3rem .6rem; bottom: 8px; padding: .5rem .8rem; }
  .uc-text { flex-basis: 100%; order: 3; font-size: .8rem; }
}

/* Home cycle: logo only, larger (no subtitle) */
.illus-logo { height: clamp(58px, 14cqw, 112px); }

/* Section headers inside pages ("See it in action", "Our network", ...): grey band, 1.5x text */
h3.sub { font-size: 1.725rem; font-weight: 700; background: #e9edf3; border-left: 5px solid var(--gold, #f59e0b);
  border-radius: 10px; padding: .55rem 1rem; margin-bottom: 1.1rem; color: var(--ink, #0f172a); }
@media (max-width: 575.98px) { h3.sub { font-size: 1.35rem; } }

/* Our network: logo tiles, website as subtitle */
.net-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1199.98px) { .net-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .net-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.net-tile { display: flex; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.net-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.12); border-color: var(--gold, #f59e0b); }
.net-logo { height: 92px; display: grid; place-items: center; padding: .8rem 1rem;
  background: radial-gradient(220px 120px at 80% 0%, rgba(6,182,212,.18), transparent 60%), linear-gradient(160deg, #1e3a8a, #0b1220); }
.net-logo-img { max-height: 60px; max-width: 100%; object-fit: contain; }
.net-logo-text { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; color: #fff; text-align: center; line-height: 1.15;
  padding-bottom: .3rem; border-bottom: 3px solid #f59e0b; }
.net-site { padding: .55rem .7rem; font-size: .8rem; color: #475569; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-site .bi { color: #94a3b8; font-size: .75rem; }
.net-tile.no-link .net-site { color: #94a3b8; font-style: italic; }

/* CCPX Ecosystem block (CCPR page) and Toolkits pages (R/toolkits.R) */
.ccpx-block .tk-shot { padding: 0; aspect-ratio: 16 / 10; }
.ccpx-block .tk-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.tk-live { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #047857; background: #d1fae5; border-radius: 999px; padding: .15rem .6rem; }
.navbar .tk-menu-item b { color: #b45309; }
.tk-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-top: 1.4rem; }
@media (max-width: 991.98px) { .tk-detail { grid-template-columns: 1fr; } }
.tk-detail-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.25); }
.tk-detail-card { margin: 0; }
.tk-others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 991.98px) { .tk-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-mini { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.tk-mini:hover { transform: translateY(-3px); border-color: var(--gold, #f59e0b); }
.tk-mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tk-mini > span { display: flex; flex-direction: column; padding: .55rem .75rem; font-size: .82rem; color: #475569; }
.tk-mini b { color: var(--title-blue, #1e3a8a); font-size: .95rem; }

/* Inside-page cards: a same-size thumbnail (navy and gold illustration drawn from the card's icon) above the title strip */
.page:not(.hero + .page) .feature-card > .feature-icon, .page:not(.hero + .page) .area-row > .feature-icon {
  display: grid; place-items: center; width: auto; height: auto; border-radius: 0; color: var(--gold); font-size: 3.6rem;
  background:
    radial-gradient(260px 140px at 85% 0%, rgba(6,182,212,.28), transparent 65%),
    radial-gradient(240px 140px at 0% 100%, rgba(79,70,229,.32), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, #1e3a8a, #0b1220);
}
.page:not(.hero + .page) .feature-card > .feature-icon { aspect-ratio: 16 / 5; margin: -1.5rem -1.5rem 0; }
.page:not(.hero + .page) .feature-card > .feature-icon .bi { filter: drop-shadow(0 6px 18px rgba(245,158,11,.35)); }
.page:not(.hero + .page) .feature-card > .feature-icon + h3 { margin-top: 0 !important; }
.page:not(.hero + .page) .area-row > .feature-icon { flex: 0 0 200px; aspect-ratio: 16 / 11; align-self: flex-start; border-radius: 12px; font-size: 3.2rem; }
@media (max-width: 767.98px) { .page:not(.hero + .page) .area-row { flex-direction: column; } .page:not(.hero + .page) .area-row > .feature-icon { flex-basis: auto; width: 100%; aspect-ratio: 16 / 6; } }

/* Home page below the banner: gold-accented section titles, highlight blocks, card thumbnails, partner tiles */
.hero + .page .section-head h2 { position: relative; padding-bottom: .55rem; }
.hero + .page .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #f59e0b, #22d3ee); }
.hero + .page .section-head { margin-top: 3.2rem; }
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 991.98px) { .hl-grid { grid-template-columns: 1fr; } }
.hl-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1.6rem; border-radius: 22px; text-decoration: none; color: #e2e8f0;
  background: radial-gradient(420px 220px at 90% 0%, rgba(6,182,212,.22), transparent 60%), radial-gradient(380px 220px at 0% 100%, rgba(79,70,229,.3), transparent 60%), linear-gradient(160deg, #13224a, #0b1220);
  border: 1px solid rgba(245,158,11,.35); box-shadow: 0 18px 40px -18px rgba(15,23,42,.6); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.hl-card:hover { transform: translateY(-3px); color: #e2e8f0; box-shadow: 0 24px 50px -18px rgba(15,23,42,.7); }
.hl-card h3 { color: #f5b82e; font-weight: 800; font-size: 1.55rem; margin: .5rem 0 .2rem; }
.hl-card .library-series { color: #94a3b8; font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.hl-card p { color: #cbd5e1; font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hl-btn { margin-top: .4rem; font-weight: 700; }
.hl-shots { position: relative; height: 230px; }
.hl-shot { position: absolute; width: 78%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.hl-shot:nth-child(1) { right: 0; top: 0; z-index: 3; } .hl-shot:nth-child(2) { right: 12%; top: 26%; z-index: 2; } .hl-shot:nth-child(3) { right: 24%; top: 52%; z-index: 1; }
.hl-cover { position: absolute; height: 92%; top: 4%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.hl-cover:nth-child(1) { left: 6%; transform: rotate(-7deg); z-index: 1; } .hl-cover:nth-child(2) { left: 30%; z-index: 3; } .hl-cover:nth-child(3) { left: 54%; transform: rotate(7deg); z-index: 2; }
@media (max-width: 575.98px) { .hl-card { grid-template-columns: 1fr; } .hl-shots { height: 190px; } }
.hero + .page .card-grid .feature-card > .feature-icon { width: auto; height: auto; aspect-ratio: 16 / 5; margin: -1.5rem -1.5rem 1rem; border-radius: 0; font-size: 2.6rem; color: var(--gold);
  background: radial-gradient(240px 120px at 85% 0%, rgba(6,182,212,.28), transparent 65%), repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 26px), linear-gradient(160deg, #1e3a8a, #0b1220); }
.hero + .page .card-grid .feature-card { overflow: hidden; }
.hero + .page .card-grid .feature-card h3 { color: var(--title-blue, #1e3a8a); font-weight: 800; }
.hero + .page .pitch-card { border-top: 4px solid #f59e0b; }
.home-net { margin-bottom: 2.5rem; }
.hero + .page .card-grid.two .feature-card > .feature-icon { aspect-ratio: 16 / 3.6; }
@media (min-width: 1200px) { .home-net { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Departments v2: 3 per row; title strip, head's photo (like Team cards), description, then name and position */
.dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 991.98px) { .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dept-grid { grid-template-columns: 1fr; } }
.page .dept-card { display: flex; flex-direction: column; margin: 0; }
.page .dept-card > h3:first-of-type { margin-bottom: 0 !important; }
.dept-photo-link { display: block; margin: 0 -1.5rem 1.1rem; background: linear-gradient(160deg, #1e3a8a, #0b1220); overflow: hidden; }
.dept-photo { display: block; width: 100%; aspect-ratio: 10 / 11; object-fit: cover; object-position: center top; transition: transform .3s; }
a.dept-photo-link:hover .dept-photo { transform: scale(1.03); }
.page .dept-card > p { flex: 1 0 auto; margin-bottom: 1rem; }
.dept-person { border-top: 1px solid var(--line); padding-top: .8rem; margin-bottom: .7rem; min-height: 5.6rem; display: flex; flex-direction: column; gap: .15rem; }
.dept-person .dept-lead-n { font-size: 1.12rem; font-weight: 800; color: var(--title-blue, #1e3a8a); text-decoration: none; }
a.dept-lead-n:hover { color: #b45309; text-decoration: underline; }
.dept-person .dept-lead-r { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.dept-person.dept-team { min-height: 0; padding-top: .6rem; }
.dept-person.dept-team .dept-lead-n { font-size: 1rem; }
.dept-person.tba .dept-lead-n { color: var(--muted); font-style: italic; font-weight: 600; }
.dept-card > .more-link { min-height: 1.5em; }

/* Help > Links directory (R/linkdir.R, www/linkdir.js) */
.ld-bar { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; align-items: center; margin-bottom: .9rem; }
.ld-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ld-chip { border: 1px solid var(--line); background: #fff; color: #334155; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; }
.ld-chip:hover { border-color: #f59e0b; }
.ld-chip.on { background: var(--navy, #0b1220); color: #f5b82e; border-color: var(--navy, #0b1220); }
.ld-view { margin-left: auto; display: flex; gap: .3rem; }
.ld-vbtn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 34px; color: #475569; }
.ld-vbtn.on { background: var(--navy, #0b1220); color: #f5b82e; }
.ld-count { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.ld-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 1199.98px) { .ld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .ld-grid { grid-template-columns: 1fr; } }
.ld-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ld-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.12); border-color: #f59e0b; color: inherit; }
.ld-logo { height: 88px; display: grid; place-items: center; padding: .6rem; background: radial-gradient(220px 120px at 80% 0%, rgba(6,182,212,.18), transparent 60%), linear-gradient(160deg, #1e3a8a, #0b1220); }
.ld-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ld-name { font-weight: 800; color: var(--title-blue, #1e3a8a); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ld-partner { font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fef3c7; color: #92400e; border-radius: 999px; padding: .1rem .5rem; }
.ld-desc { font-size: .85rem; color: #475569; line-height: 1.4; flex: 1; }
.ld-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.ld-scope, .ld-area { font-size: .7rem; font-weight: 700; border-radius: 6px; padding: .1rem .45rem; }
.ld-scope.vn { background: #fee2e2; color: #991b1b; } .ld-scope.intl { background: #e0f2fe; color: #075985; }
.ld-area { background: #eef2ff; color: #3730a3; }
.ld-site { font-size: .78rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-none { display: none; color: var(--muted); }
.ld.ld-listview .ld-grid { grid-template-columns: 1fr; gap: .6rem; }
.ld.ld-listview .ld-card { flex-direction: row; align-items: stretch; }
.ld.ld-listview .ld-logo { width: 150px; height: auto; flex: none; }
.ld.ld-listview .ld-logo .net-logo-text { font-size: 1rem; }
.ld.ld-listview .ld-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.ld.ld-listview .ld-name { flex: 0 0 170px; } .ld.ld-listview .ld-desc { flex: 1 1 260px; }
@media (max-width: 575.98px) { .ld.ld-listview .ld-logo { width: 96px; } }
.links-ours { margin-top: 2.6rem; }

/* Home: section headings on the grey band (same as inside-page section headers) */
.hero + .page .section-head { background: #e9edf3; border-left: 5px solid #f59e0b; border-radius: 12px; padding: .9rem 1.3rem; align-items: center; }
.hero + .page .section-head h2 { padding-bottom: 0; margin-bottom: 0; }
.hero + .page .section-head h2::after { display: none; }
.hero + .page .section-head .lead { margin: .35rem 0 0; }
/* Our impact: 3 per row, navy title strip in gold, no icon */
.impact-grid .impact-card { overflow: hidden; display: flex; flex-direction: column; }
.hero + .page .impact-grid .impact-card > h3 { margin: -1.5rem -1.5rem 1rem; padding: 1rem 1.5rem; font-size: 1.45rem; font-weight: 800; color: #f5b82e;
  background: radial-gradient(420px 120px at 95% 0%, rgba(6,182,212,.22), transparent 60%), var(--navy, #0b1220); border-bottom: 2px solid #f59e0b; }
.hero + .page .section-head { max-width: none; }
/* Home cycle centre: CRQFT wordmark (crescent + CRQFT) */
.illus-logo.illus-wordmark { height: auto !important; width: clamp(110px, 30cqw, 220px); max-width: none; }

/* Home cards (targets, what we do, work with us): like Our impact, no icon, title on a navy strip in gold */
.hero + .page .card-grid .feature-card > .feature-icon { display: none; }
.hero + .page .card-grid .feature-card > h3 { margin: -1.5rem -1.5rem 1rem; padding: 1rem 1.5rem; font-size: 1.3rem; font-weight: 800; color: #f5b82e !important;
  background: radial-gradient(420px 120px at 95% 0%, rgba(6,182,212,.22), transparent 60%), var(--navy, #0b1220); border-bottom: 2px solid #f59e0b; }
.hero + .page .card-grid .feature-card { display: flex; flex-direction: column; }
.hero + .page .card-grid .feature-card > p { flex: 1; }

/* "More →", "See the work →", "Read online →", "Details →": small navy-and-gold buttons, at the bottom of cards */
.more-link, .book-read {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; width: max-content;
  padding: .42rem 1rem; border-radius: 999px; border: 1.5px solid #f59e0b; background: #0b1220; color: #f5b82e !important;
  font-size: .86rem; font-weight: 700; letter-spacing: .02em; text-decoration: none !important; line-height: 1.2;
  transition: background .15s, color .15s, gap .15s, box-shadow .15s; }
.more-link:hover, a:hover > .book-read, .book-read:hover { background: #f59e0b; color: #0b1220 !important; gap: .6rem; box-shadow: 0 6px 16px rgba(245,158,11,.3); }
.more-link .bi, .book-read .bi { font-size: .95em; }
.feature-card > .more-link, .pitch-card > .more-link, .area-body > .more-link, .dept-card > .more-link, .book-body > .book-read { margin-top: auto; }
.feature-card, .pitch-card, .dept-card { display: flex; flex-direction: column; }
.feature-card > .more-link { margin-top: auto !important; }
.feature-card > p:last-of-type, .pitch-card > .pitch-cols { margin-bottom: 1.1rem; }
.dept-card > .more-link { min-height: 0; }
.section-head.with-link .more-link { margin-top: 0; flex: none; }
.book-body { display: flex; flex-direction: column; }
.book-body > p { flex: 1; }
.person-card .more-link { font-size: .78rem; padding: .3rem .8rem; }

/* Home: CRSP vs CRQFT comparison grid (row 1 activities, row 2 CRSP, row 3 CRQFT) */
.cmp-grid { display:grid; grid-template-columns: minmax(7rem,.62fr) repeat(5, minmax(0,1fr)); grid-template-rows:auto auto auto; column-gap:.85rem; row-gap:.85rem; margin:1.6rem 0 1rem; }
.cmp-labels, .cmp-col { grid-row: 1 / span 3; display:grid; grid-template-rows: subgrid; row-gap:.85rem; }
.cmp-corner { }
.cmp-rowlabel { display:flex; flex-direction:column; justify-content:center; gap:.3rem; padding:1rem .9rem; border-radius:16px; }
.cmp-rowlabel b { font-size:1.5rem; letter-spacing:.04em; line-height:1; }
.cmp-rowlabel span { font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.cmp-rowlabel.crsp { background:#e9edf3; color:#1e3a5f; border-left:4px solid #94a3b8; }
.cmp-rowlabel.crsp span { color:#64748b; }
.cmp-rowlabel.crqft { background:linear-gradient(135deg,#0b1220,#13254a); color:#f5b82e; border-left:4px solid #f59e0b; }
.cmp-rowlabel.crqft span { color:#cbd5e1; }
.cmp-head { display:flex; flex-direction:column; border-radius:16px; overflow:hidden; background:#fff; border:1px solid #e2e8f0; border-top:4px solid #f59e0b; text-decoration:none !important; box-shadow:0 6px 18px rgba(15,23,42,.06); transition:transform .2s, box-shadow .2s; }
.cmp-head:hover { transform:translateY(-3px); box-shadow:0 14px 28px rgba(15,23,42,.14); }
.cmp-thumb { position:relative; aspect-ratio: 16/9; overflow:hidden; background:#0b1220; }
.cmp-thumb img { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.9); transition:transform .4s; }
.cmp-head:hover .cmp-thumb img { transform:scale(1.06); }
.cmp-thumb::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(11,18,32,.05),rgba(11,18,32,.55)); }
.cmp-icon { position:absolute; left:.7rem; bottom:-1.1rem; z-index:2; width:2.6rem; height:2.6rem; border-radius:12px; display:grid; place-items:center; background:#0b1220; color:#f5b82e; border:2px solid #f59e0b; font-size:1.2rem; }
.cmp-thumb { overflow:visible; }
.cmp-thumb img { border-radius:12px 12px 0 0; }
.cmp-head h3 { margin:0; padding:1.5rem .9rem .9rem; font-size:1.08rem; font-weight:700; color:#0b1f3a; line-height:1.25; }
.cmp-cell { border-radius:16px; padding:1rem .95rem; font-size:.9rem; line-height:1.5; display:flex; flex-direction:column; }
.cmp-cell p { margin:0 0 .9rem; }
.cmp-cell.crsp { background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; }
.cmp-cell.crqft { background:linear-gradient(160deg,#0b1220,#14264a); color:#e2e8f0; border:1px solid #1e3a5f; }
.cmp-cell.crqft > .more-link { margin-top:auto; background:transparent; }
.cmp-cell.crqft > .more-link:hover { background:#f59e0b; }
.cmp-tag { display:none; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.45rem; }
.cmp-cell.crsp .cmp-tag { color:#64748b; }
.cmp-cell.crqft .cmp-tag { color:#f5b82e; }
@media (max-width: 1199.98px) {
  .cmp-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-template-rows:none; row-gap:.6rem; }
  .cmp-labels { display:none; }
  .cmp-col { grid-row: span 3; row-gap:.6rem; margin-bottom:1rem; }
  .cmp-tag { display:block; }
}

/* Short CCPX panel on each platform page (ccpx_short): thumbnails only, link to the full panel on the CCPR page */
.ccpx-short { margin:2.5rem 0 1rem; padding:1.5rem 1.6rem 1.7rem; border-radius:22px; background:linear-gradient(135deg,#0b1220,#13254a); color:#e2e8f0; box-shadow:0 18px 40px rgba(11,18,32,.25); }
.ccpx-short-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.ccpx-short-head h3 { color:#f5b82e; font-size:1.7rem; margin:.45rem 0 .2rem; font-weight:600; }
.ccpx-short-head .library-series { color:#cbd5e1; font-weight:700; letter-spacing:.02em; }
.ccpx-short-btn { border-radius:999px; font-weight:700; }
.ccpx-short-grid { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:.8rem; }
.ccpx-mini { display:flex; flex-direction:column; border-radius:14px; overflow:hidden; background:#fff; text-decoration:none !important; border:2px solid transparent; transition:transform .2s, box-shadow .2s, border-color .2s; }
.ccpx-mini:hover { transform:translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.35); border-color:#f59e0b; }
.ccpx-mini.current { border-color:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.35); }
.ccpx-mini-shot { aspect-ratio:16/10; overflow:hidden; background:#0b1220; }
.ccpx-mini-shot img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.ccpx-mini-body { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.15rem; padding:.55rem .5rem .65rem; }
.ccpx-mini-body b { color:#b45309; font-size:.78rem; letter-spacing:.08em; }
.ccpx-mini-body > span:not([class]) { color:#1e3a8a; font-weight:600; font-size:.84rem; line-height:1.25; }
.ccpx-mini-body .tk-live, .ccpx-mini-body .book-soon, .ccpx-mini-body .tk-here { font-size:.7rem; margin-top:.15rem; }
.tk-here { display:inline-block; padding:.1rem .55rem; border-radius:999px; background:#0b1220; color:#f5b82e; font-weight:700; }
@media (max-width: 1199.98px) { .ccpx-short-grid { grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .ccpx-short-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } .ccpx-short { padding:1.2rem 1rem; } }

/* Image logos: plain dark backdrop (logos made for dark backgrounds) and a bit larger */
.net-logo:has(.net-logo-img) { background: radial-gradient(200px 110px at 50% 40%, rgba(59,130,246,.18), transparent 70%), #070d1a; padding:.5rem .8rem; }
.net-logo:has(.net-logo-img) .net-logo-img { max-height: 74px; }

/* Official logos sit on white (they are designed for light backgrounds); NXW too, light version (user, Oct 2026) */
.net-logo:has(.net-logo-img), .ld-logo:has(.net-logo-img) { background:#fff; border-bottom:1px solid #e2e8f0; padding:.6rem 1rem; }
.ld-logo .net-logo-img { max-height:64px; max-width:100%; object-fit:contain; }

/* Compact activity boxes (home comparison grid): image only, gold icon and title label overlaid */
.cmp-head { position:relative; background:#0b1220; }
.cmp-head .cmp-thumb { aspect-ratio: 16/10; overflow:hidden; }
.cmp-head .cmp-thumb img { border-radius:0; }
.cmp-head .cmp-icon { top:.6rem; left:.6rem; bottom:auto; width:2.4rem; height:2.4rem; font-size:1.1rem; }
.cmp-head h3 { position:absolute; left:.6rem; bottom:.6rem; right:auto; max-width:calc(100% - 1.2rem); z-index:2; margin:0;
  padding:.35rem .65rem; border-radius:8px; background:rgba(255,255,255,.94); color:#0b1f3a; font-size:.98rem; line-height:1.2; box-shadow:0 4px 12px rgba(0,0,0,.25); }
/* Activity boxes, final look: bold gold title straight on the image, darker bottom fade, gold ring on hover */
.cmp-head .cmp-thumb::after { background: linear-gradient(180deg, rgba(11,18,32,.05) 0%, rgba(11,18,32,.25) 45%, rgba(11,18,32,.88) 100%); }
.cmp-head h3 { background:none; box-shadow:none; padding:0; left:.85rem; right:.85rem; bottom:.75rem; max-width:none;
  color:#f5b82e; font-size:1.3rem; font-weight:800; letter-spacing:.01em; line-height:1.15; text-shadow:0 2px 8px rgba(0,0,0,.7); }
.cmp-head .cmp-icon { top:.75rem; left:.85rem; width:2.6rem; height:2.6rem; font-size:1.2rem; background:rgba(11,18,32,.85); box-shadow:0 4px 12px rgba(0,0,0,.35); }
.cmp-head { border:0; border-top:4px solid #f59e0b; }
.cmp-head:hover { box-shadow:0 0 0 2px #f59e0b, 0 14px 28px rgba(15,23,42,.25); }
@media (max-width: 1199.98px) { .cmp-head h3 { font-size:1.4rem; } }

/* CRSP row reads as one band: cells share the label colour */
.cmp-cell.crsp { background:#e9edf3; border-color:#dbe2ec; color:#334155; }
/* CRSP band, darker mid blue-grey */
.cmp-cell.crsp, .cmp-rowlabel.crsp { background:#c7d2e0; border-color:#b4c1d3; color:#1e293b; }
.cmp-rowlabel.crsp b { color:#0b1f3a; } .cmp-rowlabel.crsp span, .cmp-cell.crsp .cmp-tag { color:#334155; }

/* ===== Home comparison, adopted layout: 5 row blocks (activity | CRSP | CRQFT) ===== */
/* Transposed comparison: one row per activity; columns = activity | CRSP | CRQFT */
.cmp-grid.transposed { grid-template-columns: minmax(200px,.85fr) minmax(0,1fr) minmax(0,1.35fr); grid-template-rows:none; column-gap:.85rem; row-gap:.85rem; }
.cmp-grid.transposed .cmp-labels, .cmp-grid.transposed .cmp-col { grid-row:auto; grid-column:1 / -1; display:grid; grid-template-columns:subgrid; grid-template-rows:none; row-gap:0; margin:0; }
.cmp-grid.transposed .cmp-rowlabel { flex-direction:row; align-items:baseline; gap:.6rem; padding:.7rem 1rem; border-left:0; border-top:4px solid; }
.cmp-grid.transposed .cmp-rowlabel.crsp { border-top-color:#94a3b8; }
.cmp-grid.transposed .cmp-rowlabel.crqft { border-top-color:#f59e0b; }
.cmp-grid.transposed .cmp-rowlabel b { font-size:1.35rem; }
.cmp-grid.transposed .cmp-head { height:100%; min-height:150px; border-top:0; border-left:4px solid #f59e0b; }
.cmp-grid.transposed .cmp-head .cmp-thumb { aspect-ratio:auto; height:100%; min-height:150px; }
.cmp-grid.transposed .cmp-cell { justify-content:flex-start; }
.cmp-grid.transposed .cmp-cell.crqft { flex-direction:column; }
.cmp-grid.transposed .cmp-tag { display:none; }
@media (max-width: 991.98px) {
  .cmp-grid.transposed { grid-template-columns:1fr; }
  .cmp-grid.transposed .cmp-labels { display:none; }
  .cmp-grid.transposed .cmp-col { grid-template-columns:1fr; row-gap:.6rem; margin-bottom:1rem; }
  .cmp-grid.transposed .cmp-head { min-height:0; border-left:0; border-top:4px solid #f59e0b; }
  .cmp-grid.transposed .cmp-head .cmp-thumb { aspect-ratio:16/8; min-height:0; }
  .cmp-grid.transposed .cmp-tag { display:block; }
}
/* v2: narrower activity column with a clearer title, CRSP -20%, CRQFT takes the rest */
.cmp-grid.transposed { grid-template-columns: minmax(170px,.62fr) minmax(0,.8fr) minmax(0,1.75fr); }
.cmp-grid.transposed .cmp-head .cmp-thumb::after { background: linear-gradient(180deg, rgba(11,18,32,.15) 0%, rgba(11,18,32,.55) 50%, rgba(11,18,32,.95) 100%); }
.cmp-grid.transposed .cmp-head h3 { font-size:1.45rem; color:#fbbf24; text-shadow:0 2px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); left:.8rem; right:.8rem; bottom:.8rem; }
.cmp-grid.transposed .cmp-cell { font-size:.95rem; }
@media (max-width: 991.98px) { .cmp-grid.transposed { grid-template-columns:1fr; } }

/* "See it in action" with the video only (the page already shows the app screenshot at the top) */
.media-grid.single { grid-template-columns: 1fr !important; }
.media-grid.single .media-video, .media-grid.single .media-placeholder { width:100%; }
.media-grid.single .media-placeholder { min-height:260px; }

/* Inside pages: area cards 3 per row (2 on tablets, 1 on phones) */
.card-grid.two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero + .page .card-grid.two .feature-card > .feature-icon { aspect-ratio: 16 / 4.5; }
@media (max-width: 991.98px) { .card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .card-grid.two { grid-template-columns: 1fr; } }

/* DMS presentation on the Big Data page */
.dms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; margin-bottom: 1.6rem; }
.dms-grid .library-text { max-width: none; }
.dms-tagline { color: #7dd3fc; font-weight: 700; font-size: 1.15rem; margin-bottom: .8rem; }
.dms-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .2s; }
.dms-shot:hover { transform: translateY(-3px); }
.dms-shot img { display: block; width: 100%; height: auto; }
.dms-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.dms-feature { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.dms-feature > i { color: var(--gold); font-size: 1.4rem; line-height: 1; margin-top: .1rem; }
.dms-feature b { display: block; color: #fff; font-size: .98rem; }
.dms-feature span { color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.45; }
@media (max-width: 991.98px) { .dms-grid { grid-template-columns: 1fr; } .dms-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dms-features { grid-template-columns: 1fr; } }

/* Inside-page cards: a topic image behind the gold icon (navy overlay keeps the icon readable) */
.page .card-grid .feature-card.has-bg > .feature-icon {
  background: linear-gradient(90deg, rgba(11,18,32,.82), rgba(11,18,32,.45) 55%, rgba(11,18,32,.25)), var(--card-bg) right center / cover no-repeat, #0b1220;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.page .card-grid .feature-card.has-bg > .feature-icon .bi { filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
/* Projects page: same cards as the inside pages, with the number and audience under the title */
.project-grid .feature-card > .meta { color: #b45309; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; }

/* Tools inside DMS (API, Screeners): menu entries, links on the DMS page and block, badge on their pages */
.dropdown-menu .tk-menu-tool { padding-left: 2rem; font-size: .92em; border-top: 1px dashed rgba(148,163,184,.35); }
.dropdown-menu .tk-menu-tool .bi { color: #f59e0b; margin-right: .2rem; }
.dms-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.1rem 0 1.4rem; }
.dms-tools-label { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #b45309; margin-right: .3rem; }
.dms-block .dms-tools-label { color: var(--gold); }
.dms-tool { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .9rem; border-radius: 999px; border: 1.5px solid #f59e0b;
  background: #0b1220; color: #f5b82e !important; font-weight: 700; font-size: .86rem; text-decoration: none !important; transition: background .15s, color .15s; }
.dms-tool:hover, .dms-tool.current { background: #f59e0b; color: #0b1220 !important; }
.tool-badge { display: inline-block; background: #0b1220; color: #f5b82e; border-radius: 999px; padding: .15rem .6rem; font-weight: 700; font-size: .78rem; }

/* Profile summary (from the CV): text and current roles side by side, then the selected achievements */
.profile-summary { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.2rem 2rem; margin: 0 0 1.6rem; padding: 1.6rem 1.8rem;
  background: #fff; border-radius: 18px; border-left: 5px solid #f59e0b; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.profile-summary h3 { color: var(--title-blue, #1e3a8a); font-weight: 800; margin-bottom: .2rem; }
.ps-headline { color: #b45309; font-weight: 700; font-size: .95rem; margin-bottom: .7rem; }
.ps-main p { line-height: 1.7; color: #334155; }
.ps-label { font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #b45309; margin-bottom: .6rem; }
.ps-roles { align-self: start; background: #0b1220; border-radius: 14px; padding: 1.1rem 1.2rem; }
.ps-roles .ps-label { color: var(--gold); }
.ps-role { padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.ps-role:first-of-type { border-top: 0; padding-top: 0; }
.ps-role b { display: block; color: #fff; }
.ps-role span { color: #f5b82e; font-size: .85rem; }
.ps-ach { grid-column: 1 / -1; }
.ps-ach ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.6rem; }
.ps-ach li { display: flex; gap: .6rem; color: #334155; line-height: 1.55; }
.ps-ach li .bi { color: #f59e0b; flex: none; margin-top: .15rem; }
@media (max-width: 991.98px) { .profile-summary { grid-template-columns: 1fr; padding: 1.2rem; } .ps-ach ul { grid-template-columns: 1fr; } }

/* Full CV page (team/<key>_cv): navy header, then the CV as white cards with gold section titles and a timeline for the career */
.cv-hero { display: flex; gap: 1.6rem; align-items: center; padding: 2rem 2.2rem; border-radius: 22px; color: #fff; margin-bottom: 1.6rem;
  background: radial-gradient(520px 220px at 90% 0%, rgba(6,182,212,.22), transparent 65%), radial-gradient(420px 220px at 0% 100%, rgba(245,158,11,.14), transparent 60%), #0b1220;
  border-left: 5px solid #f59e0b; }
.cv-hero h2 { color: var(--gold, #f5b82e); font-weight: 800; margin: .1rem 0 .2rem; }
.cv-hero .meta { color: var(--gold, #f5b82e); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; }
.cv-hero .lead { color: rgba(255,255,255,.88); margin-bottom: 1rem; }
.cv-doc { display: grid; gap: 1.3rem; margin-bottom: 2.5rem; }
.cv-head { display: none; }  /* the name and title are already in the navy header */
.cv-sec { background: #fff; border-radius: 18px; padding: 1.5rem 1.8rem; box-shadow: 0 10px 30px rgba(15,23,42,.07); }
.cv-h { margin: -1.5rem -1.8rem 1.2rem; padding: .95rem 1.8rem; border-radius: 18px 18px 0 0; background: #0b1220; color: #f5b82e;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; border-bottom: 2px solid #f59e0b; }
.cv-sec p, .cv-sec li { color: #334155; line-height: 1.65; }
.cv-sec li p { margin: 0; }
.cv-list { padding-left: 1.2rem; margin-bottom: .8rem; }
.cv-list li::marker { color: #f59e0b; }
.cv-sec:first-child .cv-list { columns: 2; column-gap: 2rem; }
.cv-job { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin: 1.4rem 0 .25rem; padding-left: 1.3rem; }
.cv-job::before { content: ""; position: absolute; left: 0; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.cv-job h4 { order: 1; margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--title-blue, #1e3a8a); }
.cv-date { order: 2; background: #0b1220; color: #f5b82e; border-radius: 999px; padding: .12rem .7rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.cv-job:first-of-type { margin-top: .2rem; }
.cv-org { padding-left: 1.3rem; margin-bottom: .45rem; color: #475569 !important; }
.cv-org a, .cv-link, .cv-sec a { color: #b45309; font-weight: 600; text-decoration: none; }
.cv-org a:hover, .cv-sec a:hover { text-decoration: underline; }
.cv-job ~ p:not(.cv-org), .cv-job ~ .cv-list, .cv-job ~ .cv-sub { margin-left: 1.3rem; }
.cv-sub { font-size: 1rem; font-weight: 800; color: #0b1220; margin: 1rem 0 .4rem; }
.cv-pub { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: .8rem; padding: .55rem 0; border-top: 1px dashed #e2e8f0; }
.cv-pub:first-of-type, .cv-sub + .cv-pub { border-top: 0; }
.cv-year { align-self: start; text-align: center; background: #fff7e6; color: #b45309; border: 1px solid #f59e0b; border-radius: 8px; font-weight: 800; font-size: .85rem; padding: .15rem .3rem; }
.cv-pub p { margin: 0; }
@media (max-width: 767.98px) { .cv-hero { flex-direction: column; align-items: flex-start; padding: 1.4rem; } .cv-sec { padding: 1.2rem; } .cv-h { margin: -1.2rem -1.2rem 1rem; padding: .85rem 1.2rem; }
  .cv-sec:first-child .cv-list { columns: 1; } .cv-pub { grid-template-columns: 62px minmax(0, 1fr); } }
/* CV section titles like the site's section headers (grey band, gold bar); sub-headers in navy with a gold underline */
.cv-sec { padding-top: 1.2rem; }
.cv-h { margin: 0 0 1.1rem; padding: .55rem 1rem; border-radius: 10px; background: #e9edf3; color: var(--ink, #0f172a);
  border: 0; border-left: 5px solid var(--gold, #f59e0b); font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.cv-sub { display: inline-block; font-size: 1.15rem; color: var(--title-blue, #1e3a8a); border-bottom: 2px solid #f59e0b; padding-bottom: .15rem; margin: 1.2rem 0 .6rem; }
@media (max-width: 767.98px) { .cv-h { margin: 0 0 1rem; padding: .5rem .8rem; font-size: 1.3rem; } }
/* CV page design pass */
.cv-h .bi { color: #f59e0b; margin-right: .55rem; }
.cv-doc { gap: 1.6rem; }
.cv-sec { padding: 1.4rem 1.8rem 1.7rem; }
.cv-tags-k { font-weight: 800; color: var(--title-blue, #1e3a8a); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 1.2rem 0 .6rem; }
.cv-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-tags span { background: #f1f5f9; border: 1px solid #e2e8f0; color: #0f172a; border-radius: 999px; padding: .32rem .85rem; font-size: .88rem; font-weight: 600; }
.cv-ach { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.cv-ach li { display: flex; gap: .75rem; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: .85rem 1rem; }
.cv-ach li .bi { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #f59e0b; color: #fff; display: grid; place-items: center; font-size: 1rem; }
.cv-s-experience { position: relative; }
.cv-s-experience .cv-job::after { content: ""; position: absolute; left: 5px; top: 1.2rem; width: 2px; height: calc(100% + 1rem); background: linear-gradient(#f59e0b, rgba(245,158,11,.1)); }
.cv-s-experience .cv-org, .cv-s-experience .cv-job ~ p:not(.cv-org), .cv-s-experience .cv-job ~ .cv-list { border-left: 2px solid rgba(245,158,11,.25); margin-left: 5px; padding-left: calc(1.3rem - 5px); }
.cv-s-experience .cv-job ~ .cv-list { padding-left: 2.1rem; }
.cv-s-experience .cv-job ~ p:not(.cv-org) { margin-left: 5px; }
.cv-s-education .cv-job { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px 14px 0 0; padding: .8rem 1rem .5rem 2.2rem; margin: 1rem 0 0; }
.cv-s-education .cv-job::before { left: .9rem; top: 1.15rem; }
.cv-s-education .cv-org { background: #f8fafc; border: 1px solid #e2e8f0; border-top: 0; border-radius: 0 0 14px 14px; padding: 0 1rem .8rem 2.2rem; margin: 0 0 .4rem; }
.cv-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .4rem 0 1.2rem; }
.cv-book { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(15,23,42,.06); transition: transform .15s, box-shadow .15s; }
.cv-book:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.12); }
.cv-book img { width: 100%; height: 190px; object-fit: cover; background: #0b1220; }
.cv-book > div { padding: .8rem 1rem 1rem; }
.cv-book .cv-year { display: inline-block; margin-bottom: .45rem; }
.cv-book p { margin: 0; font-size: .92rem; }
.cv-book em { display: block; font-style: normal; font-weight: 800; color: var(--title-blue, #1e3a8a); margin-bottom: .25rem; }
.cv-pub { padding: .7rem .2rem; }
.cv-pub:hover { background: #f8fafc; border-radius: 8px; }
@media (max-width: 991.98px) { .cv-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .cv-ach, .cv-books { grid-template-columns: 1fr; } .cv-sec { padding: 1.1rem 1.1rem 1.3rem; } .cv-book img { height: 170px; } }
.cv-share.copied { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.cv-share.copied { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
/* Help > Documents and Videos (R/documents.R) */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: 2.5rem; }
.doc-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.07); transition: transform .15s, box-shadow .15s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.12); }
.doc-cover { position: relative; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.doc-icon { position: absolute; left: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 12px; background: #f59e0b; color: #0b1220; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.doc-soon { position: absolute; right: .8rem; top: .8rem; background: rgba(11,18,32,.85); color: #f5b82e; border-radius: 999px; padding: .2rem .75rem; font-size: .78rem; font-weight: 700; }
.doc-card.is-soon .doc-cover img { filter: grayscale(.4) brightness(.8); }
.doc-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.doc-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--title-blue, #1e3a8a); margin: 0 0 .4rem; }
.doc-body p { color: #475569; font-size: .93rem; margin-bottom: .9rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.video-card .video-player { width: 100%; aspect-ratio: 16 / 9; background: #0b1220; display: block; object-fit: cover; }
@media (max-width: 991.98px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-cover img.contain { object-fit: contain; padding: .8rem 0; background: radial-gradient(circle at 50% 40%, #1e3a8a, #0b1220 75%); }
.cv-book > a img { display: block; }
.cv-amazon { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; background: #0b1220; color: #f5b82e !important; border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 700; text-decoration: none !important; }
.cv-amazon:hover { background: #1e3a8a; }
.cv-book img.cv-cover-full { height: 300px; object-fit: contain; background: linear-gradient(135deg, #0f2747, #1e3a8a); padding: .9rem 0; }

/* Research project page (R/projects.R): same layout for every project */
.project-hero-icon { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem;
  color: var(--gold, #e8b84a); background: rgba(255,255,255,.06); border: 2px solid rgba(232,184,74,.55); }
.project-status { display: inline-flex; align-items: center; gap: .35rem; margin: .5rem 0 .3rem; padding: .25rem .8rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: #1e293b; background: var(--gold, #e8b84a); }
.project-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.project-steps li { counter-increment: step; position: relative; padding: .35rem 0 .7rem 2.6rem; color: #334155; }
.project-steps li::before { content: counter(step); position: absolute; left: 0; top: .2rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--indigo, #3730a3); }
.project-people { display: flex; flex-direction: column; gap: .7rem; }
.project-person { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; padding: .4rem; border-radius: 12px; }
.project-person:hover { background: rgba(55,48,163,.06); }
.project-person .person-name { font-weight: 700; color: var(--title-blue, #1e3a8a); }
.project-person .role { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.project-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 auto; }
.project-facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.project-facts dt { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.project-facts dd { margin: 0; color: #334155; }
@media (max-width: 640px) { .project-hero-icon { width: 72px; height: 72px; font-size: 2rem; } }
/* Project documents (docs in R/projects.R): paper, newsletter, slides, each with Read online (flip-book) and Download per language */
.project-docs { display: flex; flex-direction: column; gap: .9rem; }
.project-doc { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border: 1px solid rgba(15,23,42,.08); border-radius: 14px; background: rgba(55,48,163,.03); }
.project-doc-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  color: var(--gold, #e8b84a); background: var(--navy, #0b1220); }
.project-doc-body { flex: 1 1 auto; min-width: 0; }
.project-doc-body h4 { margin: 0 0 .25rem; font-size: 1.02rem; font-weight: 700; color: var(--title-blue, #1e3a8a); }
.project-doc-body p { margin: 0 0 .6rem; color: #475569; font-size: .92rem; }
.project-doc-lang { display: inline-flex; gap: .25rem; }
.project-page .video-player { width: 100%; border-radius: 12px; background: #000; }
/* The whole project card (picture, title, text) opens the project page */
.project-grid .feature-card { position: relative; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.project-grid .feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.14); }

/* About CRQFT page (R/page_about.R) */
.about-hero { position: relative; overflow: hidden; color: #e2e8f0; padding: 4.2rem 0 3.6rem;
  background: radial-gradient(circle at 85% 20%, rgba(14,165,233,.22), transparent 45%), radial-gradient(circle at 10% 90%, rgba(79,70,229,.25), transparent 45%), #0b1120; }
.about-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.about-eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.about-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.12; margin: .6rem 0 .8rem; max-width: 22ch; }
.about-motto { color: #67e8f9; font-weight: 700; font-size: 1.1rem; }
.about-lead { max-width: 62ch; font-size: 1.08rem; line-height: 1.7; color: #cbd5e1; margin: 1.1rem 0 1.6rem; }
.about-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.about-body { padding-top: 0; }
.about-facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; margin: -2rem 0 2.6rem; position: relative; z-index: 2; }
.about-fact { background: #fff; border-radius: 16px; padding: 1rem 1rem 1.1rem; box-shadow: 0 10px 28px rgba(15,23,42,.10); border-top: 3px solid var(--gold);
  display: flex; flex-direction: column; gap: .2rem; }
.about-fact .bi { color: var(--indigo); font-size: 1.3rem; }
.about-fact strong { font-size: 1.6rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.about-fact span { color: var(--muted); font-size: .88rem; line-height: 1.3; }
.about-vm { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; margin-bottom: 2.4rem; }
.about-vision { background: #0b1120; color: #e2e8f0; border-radius: 18px; padding: 1.8rem; border-left: 4px solid var(--gold); }
.about-vision p { font-size: 1.2rem; line-height: 1.6; margin: .6rem 0 0; color: #f8fafc; }
.about-mission { background: #fff; border-radius: 18px; padding: 1.6rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.about-k { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--gold); }
.about-mission .about-k { color: #b45309; }
.about-mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: .9rem; }
.about-mission-item { display: flex; gap: .7rem; align-items: flex-start; color: #334155; line-height: 1.4; }
.about-mission-item .bi { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center; background: rgba(79,70,229,.09); color: var(--indigo); }
.about-sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 2.4rem 0 1rem; }
.about-sec-head h2 { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; color: #0f172a; }
.about-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.about-dept { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: #fff; text-decoration: none; color: inherit;
  border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.about-dept:hover { border-color: var(--gold); transform: translateY(-2px); }
.about-dept > .bi { font-size: 1.4rem; color: var(--gold); background: #0b1120; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.about-dept strong { display: block; color: #0f172a; }
.about-dept span { font-size: .85rem; color: var(--muted); }
.about-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-project { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border-radius: 16px; text-decoration: none; color: #e2e8f0;
  background: linear-gradient(160deg, #111a33, #0b1120); border-bottom: 3px solid var(--gold); transition: transform .15s; }
.about-project:hover { transform: translateY(-3px); color: #fff; }
.about-project-top { display: flex; gap: .5rem; align-items: center; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.about-project-top .bi { font-size: 1.3rem; }
.about-project strong { font-size: 1.08rem; line-height: 1.35; color: #fff; }
.about-project .project-status { align-self: flex-start; margin: .2rem 0 0; font-size: .75rem; }
.about-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.about-leader { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.1rem .8rem; background: #fff;
  border-radius: 16px; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.about-leader:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.10); }
.about-leader-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--gold); margin-bottom: .3rem; }
.about-leader strong { color: var(--title-blue, #1e3a8a); line-height: 1.25; }
.about-leader span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.about-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.about-partner { background: #fff; border-radius: 16px; padding: 1.1rem; border: 1px solid var(--line); }
.about-partner-logo { height: 54px; display: flex; align-items: center; margin-bottom: .5rem; }
.about-partner-logo img { max-height: 48px; max-width: 150px; object-fit: contain; }
.about-partner-logo strong { font-size: 1.4rem; font-weight: 800; color: #0f172a; letter-spacing: .04em; }
.about-partner p { font-size: .88rem; color: #475569; margin: 0; line-height: 1.45; }
.about-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.about-office { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.about-office > .bi { font-size: 1.5rem; color: var(--indigo); }
.about-office p { margin: .2rem 0 0; color: #475569; }
@media (max-width: 1100px) { .about-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .about-vm, .about-offices { grid-template-columns: 1fr; } .about-depts, .about-projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .about-facts, .about-depts, .about-projects, .about-mission-grid { grid-template-columns: 1fr 1fr; } .about-depts, .about-projects { grid-template-columns: 1fr; } }

/* Top menu: no caret on items with a submenu (the submenu still opens on click) */
.navbar .nav-link.dropdown-toggle::after { display: none !important; }
/* Top menu: Shiny wraps plain links in form-inline items with a small vertical margin; drop it so they line up with About/Toolkits */
.navbar .navbar-nav > li.form-inline, .navbar .navbar-nav > li.bslib-nav-item { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Right-hand icons (search, help, contact, language, login): same vertical centre and even 6px gaps.
   The help submenu's item was missing from the centring rule, so it sat 2px higher. */
@media (min-width: 992px) {
  .navbar .nav-item:has(> .site-search), .navbar .nav-item:has(> .icon-btn), .navbar .nav-item:has(> .lang-dd),
  .navbar .nav-item:has(> .help-dd), .navbar .nav-item:has(> .shiny-html-output) { display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; }
  #site-search, #contact-icon, .navbar .lang-dd, .navbar .help-dd, .navbar .nav-item > .icon-btn, .navbar .nav-item > .shiny-html-output,
  .navbar .navbar-collapse > .icon-btn { margin: 0 3px !important; }
  .navbar .help-dd, .navbar .lang-dd, .navbar .nav-item > .shiny-html-output { display: flex; align-items: center; }
}
/* Research project cards: researchers / lead in their own paragraph, in teal so it stands apart from the description */
.project-grid .project-lead { color: #0e7490; font-size: .92rem; line-height: 1.45; margin: .25rem 0 1rem; padding: .45rem .7rem;
  background: rgba(14,116,144,.07); border-left: 3px solid #0e7490; border-radius: 0 8px 8px 0; }
.project-grid .project-lead .bi { margin-right: .4rem; }
.project-grid .project-lead strong { font-weight: 700; }
/* Share menu (www/share.js): sits with the other right-hand icons */
.share-dd .dropdown-item { display: flex; gap: .55rem; align-items: center; }
.share-dd .dropdown-menu { min-width: 240px; }
@media (min-width: 992px) {
  .navbar .nav-item:has(> .share-dd) { display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; }
  .navbar .share-dd { margin: 0 3px !important; display: flex; align-items: center; }
}
/* About > Trainers (R/trainers.R): one trainer per row, team-style card (1/3) and topics + programs (2/3) */
.trainer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; margin-bottom: 1.5rem;
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 18px; padding: 1.25rem; box-shadow: 0 10px 30px -22px rgba(15,23,42,.35); }
.trainer-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.trainer-photo-link { display: block; width: 100%; max-width: 240px; }
.trainer-card .more-link { align-self: center; margin-top: .3rem; }
.trainer-card h3, .trainer-card h3 a { font-weight: 700; }
.trainer-photo { width: 100%; aspect-ratio: 800 / 880; object-fit: cover; border-radius: 14px; display: block; }
.trainer-card h3 { margin: .9rem 0 .2rem; font-size: 1.2rem; }
.trainer-card .trainer-name { color: var(--navy, #0b1530); text-decoration: none; }
.trainer-card .trainer-name:hover { color: var(--indigo); }
.trainer-role { color: #64748b; font-size: .9rem; line-height: 1.4; margin-bottom: .6rem; }
.trainer-info { display: flex; flex-direction: column; align-items: flex-start; padding: .5rem .5rem .5rem 0; }
.trainer-intro { color: #334155; font-size: 1rem; line-height: 1.6; border-left: 3px solid var(--gold, #e8b84a); padding-left: .9rem; margin-bottom: 1.1rem; }
.trainer-k { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: #b45309; margin: .4rem 0 .5rem; }
.trainer-subjects { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.trainer-subject { background: rgba(232,184,74,.16); color: #8a5a00; border: 1px solid rgba(232,184,74,.45); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; font-weight: 600; }
.trainer-programs { list-style: none; padding: 0; margin: 0 0 1.1rem; width: 100%; display: grid; gap: .45rem; }
.trainer-programs a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; background: #f1f5f9; color: #0f172a; text-decoration: none; font-weight: 500; }
.trainer-programs a:hover { background: rgba(79,70,229,.08); color: var(--indigo); }
.trainer-programs .bi { color: var(--indigo); }
.trainer-ask { margin-top: auto; }
.trainer-more { text-align: center; margin-top: 2rem; }
@media (max-width: 767.98px) { .trainer-row { grid-template-columns: 1fr; } .trainer-info { padding: 0; } }
/* Partner cards: the partner's logo on a white plate in the card header, instead of the generic icon */
.feature-card > .feature-icon.has-logo img { display: block; height: 70px; width: auto; max-width: 78%; object-fit: contain; background: #fff;
  border-radius: 12px; padding: 8px 16px; box-sizing: border-box; box-shadow: 0 8px 22px -10px rgba(0,0,0,.55); }
.feature-card > .feature-icon.has-logo { width: auto; height: 84px; background: #fff; }
.page:not(.hero + .page) .feature-card > .feature-icon.has-logo { height: auto; min-height: 0; overflow: hidden; }
/* Partner cards: logo straight on a white header (no navy grid, no plate), like the Our network tiles (user, Oct 2026) */
.page:not(.hero + .page) .feature-card > .feature-icon.has-logo { background: #fff !important; aspect-ratio: auto; height: 130px; padding: 18px 24px; box-sizing: border-box; }
.feature-card > .feature-icon.has-logo img { background: none; box-shadow: none; padding: 0; border-radius: 0; height: 88px; max-height: 88px; width: auto; max-width: 85%; object-fit: contain; }

/* Installable app: "Install app" button (www/pwa.js shows it when the browser offers to install) */
#pwa-install[hidden] { display: none !important; }

/* Area rows (Research, Activities, Collaboration): the gold icon in the middle over a banner image (area_img), like the project cards */
.page:not(.hero + .page) .area-row > .feature-icon.has-img { background: linear-gradient(90deg, rgba(11,18,32,.55), rgba(11,18,32,.35)), var(--area-bg) right center / cover no-repeat, #0b1220; }
.page:not(.hero + .page) .area-row > .feature-icon.has-img .bi { filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }

/* Collaboration projects (R/zz_collab_projects.R): navy/gold cards at the end of the Collaboration page, and one page per project.
   Restored 2026-11-16: the block of 27 Oct was lost when styles.css was replaced. */
.cp-section { margin: 3rem 0 2rem; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.cp-card { display: flex; flex-direction: column; gap: .6rem; background: var(--navy); color: #fff; border: 1px solid rgba(232,184,74,.35);
  border-top: 4px solid var(--gold); border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; transition: transform .15s ease, box-shadow .15s ease; }
.cp-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(11,18,32,.55); }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cp-num { font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.cp-status { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(232,184,74,.15); color: var(--gold); border: 1px solid rgba(232,184,74,.45); }
.cp-status.done { background: rgba(16,185,129,.15); color: #34d399; border-color: rgba(16,185,129,.45); }
.cp-card h3 { color: #fff; font-size: 1.12rem; font-weight: 700; margin: .1rem 0 0; }
.cp-partners { display: flex; gap: .45rem; align-items: center; color: rgba(255,255,255,.7); font-size: .85rem; }
.cp-partners .bi { color: var(--gold); }
.cp-summary { color: rgba(255,255,255,.78); margin: 0; flex: 1; }
.cp-card .more-link { color: var(--gold); font-weight: 600; text-decoration: none; margin-top: .2rem; }
.cp-card .more-link:hover { color: #fff; }
.cp-progress { margin-top: .3rem; }
.cp-progress-top { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .3rem; }
.cp-progress-top strong { color: var(--gold); }
.cp-track { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.cp-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f5d27a); border-radius: 999px; }
.cp-fill.done { background: linear-gradient(90deg, #10b981, #34d399); }
.cp-progress.big { max-width: 34rem; margin-top: 1rem; }
.cp-progress.big .cp-track { height: 12px; }
.cp-progress.big .cp-progress-top { font-size: .9rem; }
.cp-hero { position: relative; background: var(--navy); color: #fff; border-left: 6px solid var(--gold); border-radius: 16px; padding: 2rem 2rem 1.6rem; margin-bottom: 1.5rem; }
.cp-hero h2 { color: var(--gold); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .3rem 0 .6rem; }
.cp-hero .lead { color: rgba(255,255,255,.85); max-width: 52rem; }
.cp-eyebrow { color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cp-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .8rem; }
.cp-chips-k { color: rgba(255,255,255,.65); font-size: .85rem; margin-right: .2rem; }
.cp-chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; border: 1px solid rgba(232,184,74,.55); color: var(--gold); font-size: .85rem; text-decoration: none; }
a.cp-chip:hover { background: var(--gold); color: var(--navy); }
.cp-facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1rem; font-size: .9rem; }
.cp-facts span { color: rgba(255,255,255,.6); margin-right: .45rem; }
.cp-facts strong { color: #fff; }
.cp-about p { color: #334155; margin: 0 0 .6rem; }
.cp-diag { font-size: .82rem; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: .45rem .7rem; margin-bottom: 1rem; }

/* 2026-11-17 12:15 (VN) - Projects for research: performance table (www/perftable.js, R/projects_tools.R) */
.perf-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; margin-bottom: .75rem; }
.perf-bar .perf-q { flex: 1 1 14rem; max-width: 22rem; }
.perf-f { display: flex; flex-direction: column; font-size: .75rem; color: #5b6875; gap: .15rem; }
.perf-f select { min-width: 7.5rem; }
.perf-count { margin-left: auto; font-size: .8rem; color: #5b6875; white-space: nowrap; }
.perf-wrap { overflow-x: auto; border: 1px solid #dde5ea; border-radius: .5rem; }
.perf-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.perf-table { table-layout: auto; }
.perf-table th { position: sticky; top: 0; background: #12355B; color: #fff; font-weight: 600; padding: .45rem .5rem; cursor: pointer; user-select: none;
  white-space: normal; vertical-align: bottom; line-height: 1.2; font-size: .78rem; }  /* 12:12 user: optimise column widths: titles wrap, numbers stay narrow */
.perf-table th.num { max-width: 6.2rem; }
.perf-table td:first-child, .perf-table th:first-child { white-space: normal; min-width: 11rem; width: 30%; }
.perf-table td { padding: .35rem .5rem; border-top: 1px solid #edf1f4; white-space: nowrap; }
.perf-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.perf-table tbody tr:hover td { background: #eaf3f6; }
.perf-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.perf-table td.code { font-family: Consolas, monospace; font-size: .74rem; color: #5b6875; }
.perf-table .pos { color: #13795b; }
.perf-table .neg { color: #b42318; }
.perf-more { margin-top: .6rem; }
.perf-note { font-size: .78rem; color: #5b6875; margin: .6rem 0 0; }

/* 12:15 user: pages of 10 rows by default, 20, 50, 100 (www/perftable.js) */
.perf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .6rem; }
.perf-size { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: #5b6875; margin-right: auto; }
.perf-size select { width: auto; }
.perf-pageno { font-size: .8rem; color: #5b6875; min-width: 6rem; text-align: center; }
/* 12:50 user: the index table goes at the end of the page, full width */
.perf-full { margin-top: 1.5rem; }
.perf-full .perf-table th:first-child, .perf-full .perf-table td:first-child { width: auto; min-width: 14rem; }
/* 2026-11-17 18:50 (VN) document thumbnails on project pages (perftable.js, files/thumbs): page 1 of the PDF in place of the icon */
.project-doc-thumb { flex: 0 0 auto; width: 132px; height: auto; align-self: flex-start; border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .15); box-shadow: 0 4px 14px rgba(15, 23, 42, .18); background: #fff; }
@media (max-width: 576px) { .project-doc-thumb { width: 84px; } }