/* Short branded page-entry screen. Content remains server-rendered underneath. */
.site-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .24s ease, visibility .24s ease;
}
.site-loader img {
  display: block;
  width: clamp(64px, 12vw, 88px);
  height: auto;
  animation: site-loader-spin 1.1s linear infinite;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes site-loader-spin {
  from { transform: perspective(480px) rotateY(0deg); }
  to { transform: perspective(480px) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader img { animation: none; }
  .site-loader { transition-duration: .01ms; }
}
/* ===========================================================================
   diagnosticshub.org — production stylesheet

   Brand palette from assets/theme-color.txt (see AGENTS.md):
     Deep Indigo #2F2D5E (C100 M100 Y25 K25) — primary
     Signal Blue #196AB4 (C85 M50 Y0 K0)   — secondary
     Clear Cyan  #00A7DB (C88 M0 Y13 K0)   — accent ONLY
     Darkened cyan #036C92                 — cyan text on light surfaces

   Contrast rule: every text colour below was measured, not guessed. Clear Cyan
   is never used for body text or large areas; on light backgrounds the darkened
   cyan is used instead so each pairing meets WCAG AA.
   =========================================================================== */

:root {
  --ink: #2f2d5e;
  --ink-soft: #4a4778;
  --blue: #196ab4;
  --cyan: #00a7db;
  --cyan-ink: #036c92;
  --muted: #63628a;      /* 5.76:1 on white */
  --muted-on-dark: #a8a7cc; /* 5.47:1 on Deep Indigo */
  --content-bg: #fafbfe;
  --paper: var(--content-bg);
  --tint: #f0f0f8;
  --line: #dedeee;
  --white: #fff;
  --gutter: max(5.5vw, 30px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans Thai', 'Anuphan', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  /* Thai has no inter-word spaces to break on, so allow breaks inside long runs
     instead of overflowing narrow screens. */
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px;
  font-size: 14px; font-weight: 600; transition: top .18s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header -- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h); padding: 0 var(--gutter);
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
/* The homepage hero is a dark full-bleed field, so the header sits on Deep Indigo
   to match rather than cutting a white band across it. Scoped to .page-home so
   every other route keeps the light header. The logo swaps to the reversed
   lockup in layout.js rather than being CSS-filtered -- a filter would flatten
   the blue tagline to white along with the wordmark. */
body.page-home .site-header {
  background: var(--ink); border-bottom-color: rgb(255 255 255 / 16%); color: #fff;
}
body.page-home .site-nav-list > li > a { color: rgb(255 255 255 / 88%); }
body.page-home .site-nav-list > li > a:hover,
body.page-home .site-nav-list > li > a[aria-current] { color: #fff; border-bottom-color: var(--cyan); }
body.page-home .site-submenu { background: var(--white); }
body.page-home .site-submenu a { color: var(--ink-soft); }
body.page-home .site-lang { color: rgb(255 255 255 / 72%); }
body.page-home .site-lang:hover { color: #fff; }
body.page-home .site-menu-btn { color: #fff; }
.site-brand { flex: none; }
.site-brand img { width: 219px; height: 60px; object-fit: contain; object-position: left center; }

.site-nav { flex: 1; min-width: 0; }
.site-nav-list { display: flex; align-items: center; gap: 24px; }
.site-nav-list > li { position: relative; }
.site-nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 0; font-size: 14px; font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.site-nav-list > li > a:hover,
.site-nav-list > li > a[aria-current] { color: var(--blue); border-bottom-color: var(--cyan); }
.site-caret { width: 13px; height: 13px; flex: none; transition: transform .18s; }

/* Submenus open on hover AND :focus-within, so keyboard users reach them by
   tabbing to the parent. No JS, no aria-expanded bookkeeping. */
.site-submenu {
  position: absolute; top: 100%; left: -14px; z-index: 60;
  min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgb(47 45 94 / 12%);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav-list > li:hover > .site-submenu,
.site-nav-list > li:focus-within > .site-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav-list > li:hover > .site-caret,
.site-nav-list > li:focus-within > .site-caret { transform: rotate(180deg); }
.site-submenu a { display: block; padding: 10px 12px; font-size: 14px; color: var(--ink-soft); transition: background .15s, color .15s; }
.site-submenu a:hover { background: var(--tint); color: var(--ink); }

.site-lang {
  flex: none; padding: 8px 4px;
  font: 700 11px 'Space Grotesk', sans-serif; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px solid transparent;
}
.site-lang:hover { color: var(--ink); }

.site-menu-btn {
  display: none; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 8px;
  background: none; border: 0; color: inherit;
}
.site-menu-btn svg { width: 25px; height: 25px; }

/* ------------------------------------------------------------------ hero --
   ORBIT LAYOUT (concept 08): full-bleed cinematic hero, copy bottom-left,
   orbital path behind the copy.

   Orbit's own palette (#0a0f1e space, #2e5cff accent) is deliberately NOT used --
   the client's brand is authoritative. Orbit's colour ROLES are mapped onto it:
     space -> Deep Indigo, accent -> Signal Blue, highlight -> Clear Cyan.
   ------------------------------------------------------------------------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(88vh, 780px); min-height: min(88svh, 780px);
  overflow: hidden; background: var(--ink) url('/media/diagnostic-original-poster.jpg') center / cover no-repeat; color: var(--white);
}
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) 34px; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .14em;
  color: rgb(255 255 255 / 84%); margin-bottom: 26px;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--cyan); box-shadow: 0 0 0 5px rgb(0 167 219 / 24%);
}
/* Thai has no inter-word spaces, so the headline would otherwise run as one very
   long line. Constraining the measure forces it onto two lines and keeps the
   orbital ring clear of the type. word-break:break-word (inherited from body)
   stops mid-word overflow on narrow screens. */
.hero h1 {
  font-family: 'Anuphan', sans-serif;
  font-size: clamp(34px, 4.6vw, 66px); font-weight: 600;
  line-height: 1.18; letter-spacing: -.04em; margin: 0 0 20px; max-width: 13em;
}
.hero-lead { max-width: 44ch; font-size: 16px; line-height: 1.9; color: rgb(255 255 255 / 88%); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }

.video-toggle {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 42%);
  color: #fff; backdrop-filter: blur(6px);
  transition: background .18s, border-color .18s, color .18s;
}
.video-toggle:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.video-toggle svg { width: 17px; height: 17px; }

/* Orbital path + satellite. Decorative; the spin is disabled under
   prefers-reduced-motion. Sized in vmin so it scales with the viewport. */
.hero-orbit {
  position: absolute; top: 3%; right: -16vmin; width: 118vmin; height: 50vmin;
  border: 1px solid rgb(0 167 219 / 34%); border-radius: 50%;
  transform: rotate(-16deg); pointer-events: none;
}
.hero-satellite { position: absolute; inset: -10vmin; animation: orbit-spin 46s linear infinite; }
.hero-satellite i {
  position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px 3px rgb(0 167 219 / 55%);
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 44px; padding: 13px 18px;
  font-size: 14px; font-weight: 700; border: 1px solid transparent; border-radius: 2px;
  transition: background .18s, border-color .18s, color .18s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--tint); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--blue);
  padding-bottom: 3px; border-bottom: 1px solid #b3b1d0;
}
.btn-link:hover { color: var(--ink); border-bottom-color: var(--cyan); }
.btn-link svg { width: 15px; height: 15px; }
/* Inverted variant for links sitting on the dark hero. */
.btn-link-invert { color: #fff; border-bottom-color: rgb(255 255 255 / 55%); }
.btn-link-invert:hover { color: #fff; border-bottom-color: var(--cyan); }

.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Scrim, not decoration: this is what keeps overlay text at AA contrast over
   arbitrary footage rather than only this particular clip. Two axes -- vertical
   to seat the copy, horizontal to hold the left edge. */
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(47 45 94 / 62%) 0%, rgb(47 45 94 / 24%) 34%, rgb(47 45 94 / 88%) 82%),
    linear-gradient(90deg, rgb(47 45 94 / 72%) 0%, rgb(47 45 94 / 16%) 58%, transparent 100%);
}

/* ----------------------------------------------------------------- stats -- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px var(--gutter); }
.stats li { display: flex; flex-direction: column; gap: 6px; }
.stats b { font: 600 32px 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: var(--cyan-ink); }
.stats span { font-size: 13px; color: var(--muted); }
.stats-inline ul { padding: 0 0 30px; }

/* -------------------------------------------------------------- sections -- */
.section { padding: 88px var(--gutter) 96px; }
.section-alt { background: var(--tint); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.section h2 {
  font-family: 'Anuphan', sans-serif;
  font-size: clamp(28px, 2.8vw, 42px); font-weight: 600; line-height: 1.3; letter-spacing: -.04em;
}
.section-head .btn-link { flex: none; }
.sub {
  font-family: 'Anuphan', sans-serif; font-size: 22px; font-weight: 600;
  margin: 46px 0 18px; padding-top: 24px; border-top: 1px solid var(--line);
}
.page-head { padding: 72px var(--gutter) 40px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: 'Anuphan', sans-serif; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.04em; margin-top: 14px; }
.page-head .btn { margin-top: 26px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--blue); border-bottom: 1px solid #b3b1d0; }
.empty { padding: 40px 0; color: var(--muted); }
.pending { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------ people/org -- */
.person-grid, .org-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.org-grid { grid-template-columns: repeat(3, 1fr); }

.person-card a, .org-card a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--white); border: 1px solid var(--line); padding: 22px;
  transition: border-color .18s, transform .18s;
}
.person-card a:hover, .org-card a:hover { border-color: var(--ink); transform: translateY(-2px); }
.person-avatar, .org-logo {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--tint); margin-bottom: 12px; flex: none;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.person-avatar-empty, .org-logo-empty { border: 1px dashed #c9c8de; background: var(--tint); }
.person-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.person-expertise { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 6px; }
.person-topic { max-width: 100%; padding: 3px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); background: var(--tint); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.person-card a:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.person-pos { font-size: 13px; color: var(--muted); }
.person-org { font-size: 13px; color: var(--blue); }
.org-logo { width: 88px; height: 88px; border-radius: 8px; background: var(--white); padding: 8px; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--line), 0 5px 14px rgb(47 45 94 / 10%); }
.org-name { font-size: 16px; font-weight: 600; line-height: 1.5; }
.org-card a {
  min-height: 220px; align-items: stretch; justify-content: center; perspective: 900px;
  padding: 20px 8px; border: 0; background: transparent; box-shadow: none;
}
.org-card a:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.org-card .org-logo {
  width: 124px; height: 124px; padding: 12px; border: 1px solid #e4e5ef;
  box-shadow: 0 8px 24px rgb(47 45 94 / 9%);
}
.org-card .org-name { max-width: 28ch; color: var(--ink); }
.org-grid {
  display: grid; grid-auto-columns: minmax(240px, 28%); grid-auto-flow: column;
  grid-template-columns: none; gap: clamp(18px, 3vw, 38px); overflow-x: auto;
  padding: 12px 8px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent; overscroll-behavior-inline: contain;
}
.org-grid::-webkit-scrollbar { height: 5px; }
.org-grid::-webkit-scrollbar-track { background: transparent; }
.org-grid::-webkit-scrollbar-thumb { background: #aeb8d0; border-radius: 5px; }
.page-networks .org-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none;
}
#networks .org-grid { scrollbar-width: none; padding-block: 24px 32px; scroll-snap-type: x proximity; }
#networks .org-grid::-webkit-scrollbar { display: none; }
:is(#networks, .page-networks) .org-card-back { background: #2f2d5e; box-shadow: none; border-radius: 8px; }
:is(#networks, .page-networks) .org-card-back .org-name { color: white; font-size: 18px; line-height: 1.65; }
:is(#networks, .page-networks) .org-card-front { background: white; border-radius: 8px; }
:is(#networks, .page-networks) .org-logo-empty { border: 0; }
.org-card { position: relative; z-index: 0; min-width: 0; scroll-snap-align: start; }
.org-card:hover, .org-card:focus-within { z-index: 2; }
.org-card a { transition: transform .2s ease; }
.org-card:hover a, .org-card:focus-within a { transform: translateY(-10px) scale(1.035); }
.org-card-inner { position: relative; display: block; width: 100%; min-height: 178px; flex: 1; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.org-card:hover .org-card-inner, .org-card:focus-within .org-card-inner { transform: rotateY(180deg); }
.org-card-front, .org-card-back {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.org-card-back { transform: rotateY(180deg); padding: 24px; text-align: center; background: #eef3fa; box-shadow: inset 0 3px var(--cyan-ink); }
.org-card-front { background: transparent; }
.org-card .org-logo { width: min(80%, 180px); height: 160px; margin: 0; border: 0; padding: 10px; box-shadow: none; background: transparent; transition: transform .25s ease; }
.org-card .org-logo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.org-card:hover .org-logo { transform: scale(1.04); }
.org-card .org-logo-empty { display: grid; place-items: center; border: 1px solid #d9d9e8; background: var(--white); color: var(--ink); }
.org-card .org-logo-empty span { display: grid; place-items: center; width: 58%; aspect-ratio: 1; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font: 700 24px/1 'Space Grotesk', sans-serif; letter-spacing: -.08em; }
@media (prefers-reduced-motion: reduce) {
  .org-card-inner, .org-card a, .org-card .org-logo { transition: none; }
  .org-card:hover a, .org-card:focus-within a { transform: none; }
}

.person-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.person-hero-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--tint); flex: none; }
.person-hero h1 { margin-top: 0; }
.page-specialist-detail .page-head { background: #f1f3fa; border-bottom: 1px solid #dcdfea; }
.page-specialist-detail .crumbs { margin-bottom: 28px; font-size: 14px; }
.page-specialist-detail .crumbs a { color: var(--blue); text-underline-offset: 5px; }
.page-specialist-detail .person-hero { align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: nowrap; padding-block: 8px 20px; }
.page-specialist-detail .person-hero-photo { width: 180px; height: 180px; border-radius: 12px; border: 6px solid white; box-shadow: 0 8px 28px rgb(47 45 94 / 8%); }
.page-specialist-detail .person-hero > div { min-width: 0; max-width: 760px; }
.page-specialist-detail .person-hero h1 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.3; margin-bottom: 12px; overflow-wrap: anywhere; }
.page-specialist-detail .person-pos { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.page-specialist-detail .person-org { font-size: 16px; line-height: 1.7; }
.page-specialist-detail .person-org a { text-decoration: underline; text-underline-offset: 4px; }
.page-specialist-detail .section { max-width: 1180px; margin-inline: auto; }
.page-specialist-detail .sub { font-size: 24px; margin-top: 48px; padding-top: 18px; border-top: 2px solid var(--ink); }
.page-specialist-detail .sub:first-child { margin-top: 0; }
.page-specialist-detail .tag-list { gap: 10px; margin-block: 20px 36px; }
.page-specialist-detail .tag { display: inline-block; padding: 9px 16px; color: #196ab4; background: #eef4fb; border: 1px solid #d6e4f5; border-radius: 4px; line-height: 1.6; }
.page-specialist-detail .tag:hover { background: #196ab4; color: white; }
.page-specialist-detail .edu-list li { padding: 20px 0 20px 20px; border-left: 3px solid #d6e4f5; font-size: 16px; line-height: 1.85; }
.page-specialist-detail .work-list li { padding-block: 24px; }
.page-specialist-detail .work-title { font-size: 19px; font-weight: 600; line-height: 1.65; max-width: 75ch; margin-bottom: 12px; }
.page-specialist-detail .work-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; line-height: 1.8; overflow-wrap: anywhere; }
.page-specialist-detail .work-meta a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .page-specialist-detail .person-hero { flex-direction: column; align-items: flex-start; }
  .page-specialist-detail .person-hero-photo { width: 132px; height: 132px; }
  .page-specialist-detail .sub { margin-top: 36px; }
}
.org-hero { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.org-hero-logo { width: 150px; height: 150px; object-fit: contain; background: var(--white); padding: 14px; flex: none; }
.org-short { font: 700 12px 'Space Grotesk', sans-serif; letter-spacing: .12em; color: var(--muted); margin-top: 6px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-stats li { display: flex; flex-direction: column; }
.detail-stats b { font: 600 28px 'Space Grotesk', sans-serif; color: var(--cyan-ink); }
.detail-stats span { font-size: 13px; color: var(--muted); }
.org-address, .org-phone, .org-site { font-size: 15px; color: #5c5b7d; margin-bottom: 6px; }
.org-site a, .org-phone a { color: var(--blue); border-bottom: 1px solid #b3b1d0; }

/* ------------------------------------------------------------- filters -- */
.page-specialists .page-head { background: #f1f3fa; padding-bottom: 24px; border-bottom: 0; }
.page-specialists .filters { background: #f1f3fa; padding-top: 0; padding-bottom: 40px; border-bottom: 1px solid #dcdfea; }
.page-specialists .filter-label { font-size: 15px; margin-bottom: 10px; }
.page-specialists .filter-row { max-width: 820px; background: white; border: 1px solid #b7bfd7; border-radius: 6px; padding: 8px 8px 8px 18px; }
.page-specialists .filter-row input { padding-block: 14px; }
.page-specialists .filter-row .btn { border-radius: 3px; }
.page-specialists .cloud { margin-top: 28px; max-width: 1040px; }
.page-specialists .filter-sub { font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.page-specialists .cloud-list { gap: 8px; }
.page-specialists .cloud-list a { font-size: 14px; line-height: 1.6; padding: 7px 12px; border-radius: 4px; background: white; color: #196ab4; border: 1px solid #d2dcee; }
.page-specialists .cloud-list a:hover, .page-specialists .cloud-list a[aria-current] { background: #2f2d5e; color: white; border-color: #2f2d5e; }
.page-specialists .result-count { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 15px; }
:is(.page-specialists, .home-experts) .person-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
:is(.page-specialists, .home-experts) .person-card { min-width: 0; }
:is(.page-specialists, .home-experts) .person-card a { padding: 26px; border: 1px solid #dce1ed; border-top: 3px solid #196ab4; border-radius: 6px; gap: 10px; }
:is(.page-specialists, .home-experts) .person-card a:hover { border-color: #196ab4; box-shadow: 0 8px 22px rgb(47 45 94 / 7%); }
:is(.page-specialists, .home-experts) .person-avatar { width: 96px; height: 96px; border-radius: 8px; margin-bottom: 12px; }
:is(.page-specialists, .home-experts) .person-name { font-family: 'Anuphan', sans-serif; font-size: 19px; line-height: 1.55; letter-spacing: -.04em; overflow-wrap: anywhere; }
:is(.page-specialists, .home-experts) .person-pos { font-size: 14px; line-height: 1.7; }
:is(.page-specialists, .home-experts) .person-org { margin-top: auto; padding-top: 16px; border-top: 1px solid #e7eaf2; font-size: 14px; line-height: 1.7; }
.page-specialists .empty { padding: 32px; background: #f1f3fa; border-radius: 6px; }
.filters { background: var(--white); border-bottom: 1px solid var(--line); padding: 32px var(--gutter) 36px; }
.filter-label { display: block; margin-bottom: 12px; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: var(--blue); }
.filter-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); padding: 6px 6px 6px 14px; max-width: 620px; }
.filter-icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.filter-row input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 0; font: inherit; color: var(--ink); }
.filter-row input:focus { outline: none; }
.filter-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(0 167 219 / 16%); }
.filter-sub { font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: var(--muted); margin: 28px 0 14px; }
.cloud-list { display: flex; flex-wrap: wrap; gap: 9px 10px; }
.cloud-list a {
  display: inline-block; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: calc(13px + min(var(--n, 4) * 0.7px, 6px)); font-weight: 600; line-height: 1.3;
  transition: background .18s, border-color .18s, color .18s;
}
.cloud-list a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cloud-list a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-set { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 26px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.filter-set legend { font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: var(--muted); padding: 0; margin-bottom: 12px; }
.filter-set label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5c5b7d; }
.filter-set input { width: 16px; height: 16px; accent-color: var(--ink); }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.result-count b { color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tabs a { padding: 9px 16px; border: 1px solid var(--line); font-size: 14px; background: var(--paper); }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ----------------------------------------------------------- detail data -- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 8px 14px; background: #eef0fa; font-size: 13px; font-weight: 600; }
.tag:hover { background: var(--ink); color: var(--white); }
.edu-list li, .work-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.work-title { font-weight: 600; line-height: 1.6; }
.work-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 500 12px 'Space Grotesk', sans-serif; color: var(--muted); margin-top: 6px; }
.work-meta a { color: var(--blue); }
.work-meta .trl { color: var(--cyan-ink); font-weight: 700; }

/* ---------------------------------------------------------------- posts -- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 24px; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.post-date { display: flex; align-items: center; gap: 7px; font: 500 12px 'Space Grotesk', sans-serif; color: var(--muted); }
.post-date svg { width: 14px; height: 14px; }
.post-card h3 { font-family: 'Anuphan', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.5; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.post-more { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.post-more svg { width: 15px; height: 15px; }

.event-list { border-top: 1px solid var(--line); }
.event-row { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.event-when { display: flex; flex-direction: column; gap: 5px; flex: none; min-width: 180px; }
.event-when b { font: 600 15px 'Space Grotesk', sans-serif; color: var(--ink); }
.event-venue { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.event-venue svg { width: 14px; height: 14px; flex: none; }
.event-body { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; }
.event-body a:hover { color: var(--blue); }
.event-video { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; font-weight: 700; color: var(--blue); }
.event-video svg { width: 15px; height: 15px; }

.post { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.post h1 { font-family: 'Anuphan', sans-serif; font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; margin-bottom: 14px; }
.post .post-date { margin-bottom: 8px; }
.post-cover { width: 100%; height: auto; margin: 26px 0; }
.post-body { margin-top: 30px; font-size: 17px; line-height: 1.95; white-space: pre-wrap; }
.post-body p { margin-bottom: 1.1em; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 26px 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------- contact/footer -- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-block { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.contact-key { display: block; margin-bottom: 12px; font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: var(--cyan-ink); }
.contact-block p { font-size: 15px; line-height: 1.85; color: #5c5b7d; }
.contact-block p + p { margin-top: 6px; }
.contact-block a { color: var(--blue); border-bottom: 1px solid #b3b1d0; }
/* Secondary line under a primary value, e.g. fax under telephone. */
.contact-sub { font-size: 13px; color: var(--muted); }

.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility-card { background: var(--white); border: 1px solid var(--line); padding: 22px; }
.facility-card h3 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.facility-meta { font: 500 12px 'Space Grotesk', sans-serif; color: var(--muted); margin-top: 6px; }
.facility-org { font-size: 13px; color: var(--blue); margin-top: 10px; }

.site-footer { display: grid; gap: 20px; padding: 40px var(--gutter); background: var(--ink); color: var(--muted-on-dark); }
.footer-brand img { width: 219px; height: 60px; object-fit: contain; object-position: left center; opacity: .9; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { font-size: 13px; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.footer-nav a:hover { color: var(--white); border-bottom-color: var(--cyan); }
.footer-legal, .footer-copy { font-size: 12px; }
.footer-legal a { border-bottom: 1px solid #ffffff33; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  :root { --gutter: 4vw; }
  .site-nav-list { gap: 16px; }
  .site-nav-list > li > a { font-size: 13px; }
  .site-brand img { width: 196px; }
  .hero { min-height: min(78vh, 640px); }
  .person-grid, .post-grid, .facility-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav. Seven top-level items plus three submenus, so this switches earlier
   than a typical site. Submenus become static indented blocks — hover does not
   exist on touch. */
@media (max-width: 1060px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 6px var(--gutter) 18px; box-shadow: 0 14px 24px rgb(47 45 94 / 12%);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.menu-open .site-nav { display: block; }
  .site-header.menu-open { align-items: center; }
  .site-menu-btn { display: grid; margin-left: 4px; }
  .site-lang { margin-left: auto; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-list > li > a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); width: 100%; }
  .site-nav-list > li > a[aria-current] { border-bottom-color: var(--line); }
  body.page-home .site-nav-list > li > a { color: var(--ink); }
  body.page-home .site-nav-list > li > a:hover,
  body.page-home .site-nav-list > li > a[aria-current] { color: var(--blue); border-bottom-color: var(--line); }
  .site-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none;
  }
  .site-submenu a { padding: 9px 0; color: var(--muted); }
  .site-caret { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 74px; }
  .site-brand img { width: 172px; height: 48px; }
  .site-header { gap: 12px; }
  .hero-copy { padding: 0 var(--gutter) 26px; }
  .hero h1 { margin-bottom: 16px; }
  .hero { min-height: min(72vh, 560px); }
  .hero-orbit { top: 6%; right: -40vmin; width: 150vmin; height: 62vmin; }
  .video-toggle { bottom: 26px; width: 42px; height: 42px; }
  .section, .page-head, .post, .filters { padding-left: var(--gutter); padding-right: var(--gutter); }
  .section { padding-top: 60px; padding-bottom: 68px; }
  .page-head { padding-top: 48px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .person-grid, .post-grid, .facility-grid, .contact-grid { grid-template-columns: 1fr; }
  .filter-row { flex-wrap: wrap; padding: 8px; }
  .filter-row input { flex-basis: 100%; }
  .filter-row .btn { width: 100%; justify-content: center; }
  .event-row { gap: 14px; }
  .event-when { min-width: 0; }
  .event-video { margin-left: auto; }
  .org-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .person-hero-photo { width: 96px; height: 96px; }
  .footer-brand img { width: 172px; height: 48px; }
}

@media (max-width: 620px) {
  .org-grid { grid-auto-columns: minmax(78vw, 1fr); }
  .hero h1 { font-size: clamp(30px, 8.4vw, 42px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { gap: 18px; }
  .section h2, .page-head h1 { font-size: clamp(26px, 7.4vw, 36px); }
  .section-head { margin-bottom: 28px; }
  .stats b { font-size: 26px; }
}

/* -------------------------------------------------------- home discovery -- */
.home-discovery { padding: 58px var(--gutter) 64px; background: var(--tint); border-bottom: 1px solid var(--line); }
.home-discovery-inner { width: min(100%, 1180px); margin-inline: auto; }
.hero-search { width: min(100%, 850px); margin-top: 24px; }
.hero-search label { display: block; margin-bottom: 9px; color: var(--white); font-size: 15px; font-weight: 600; }
.hero-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; background: var(--white); border: 2px solid var(--cyan); border-radius: 8px; box-shadow: 0 10px 36px rgb(12 13 38 / 25%); }
.hero-search-row:focus-within { box-shadow: 0 0 0 4px rgb(0 167 219 / 30%), 0 10px 36px rgb(12 13 38 / 25%); }
.hero-search-field { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding-left: 8px; }
.hero-search-field > svg { width: 21px; height: 21px; color: var(--blue); }
.hero-search-row input { min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--ink); font: inherit; }
.hero-search-row input:focus { outline: 0; }
.hero-search-row .btn { min-height: 48px; padding-inline: 22px; }
.hero-search-scope { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; border: 0; color: white; }
.hero-search-scope legend { margin-bottom: 6px; font-weight: 600; }
.hero-search .home-search-scope label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.home-search-scope input { accent-color: #196ab4; width: 18px; height: 18px; }
.org-logo img { object-fit: contain; }
.home-expertise { background: #f4f7fc; }
.home-expertise-inner { max-width: 1180px; margin-inline: auto; }
.home-expertise h2 { color: #2f2d5e; margin: 0; }
.home-expertise .hero-search { margin-top: 20px; }
.home-expertise .hero-search label, .home-expertise .home-search-scope { color: #20233d; }
.home-expertise .hero-search-row, .specialists-search .hero-search-row { border-color: #196ab4; box-shadow: none; }
.specialists-search .hero-search-row { max-width: 850px; }
/* Specialists directory: page-scoped body treatment; shared header stays intact. */
.page-specialists .specialists-search {
  background: #f1f3fa;
  padding-bottom: 48px;
}
.page-specialists .specialists-search .hero-search-row {
  max-width: none; padding: 12px; border: 1px solid #c8d3e5;
  border-radius: 12px; box-shadow: 0 8px 24px rgb(47 45 94 / 4%);
}
.page-specialists .specialists-search .hero-search-row:focus-within {
  border-color: var(--blue); outline: 3px solid #c8e5f2; outline-offset: 3px;
}
.page-specialists .specialists-search .hero-search-row input { padding-block: 16px; }
.page-specialists .specialists-search .btn { border-radius: 7px; }
.page-specialists .cloud { max-width: none; margin-top: 30px; }
.page-specialists .filter-sub { font-weight: 600; }
.page-specialists .cloud-list { gap: 9px; }
.page-specialists .cloud-list a {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  padding: 8px 16px; border-radius: 24px; background: #fff;
  font-size: 14px; overflow-wrap: anywhere; text-underline-offset: 4px;
}
.page-specialists .cloud-list a[aria-current] { box-shadow: inset 0 0 0 1px var(--ink); }
.page-specialists .cloud-list a:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.page-specialists main > .section { background: #fafbfe; padding-block: 44px 80px; }
.page-specialists .result-count {
  display: flex; align-items: center; gap: 10px; padding-bottom: 22px; margin-bottom: 30px;
  color: var(--ink-soft);
}
.page-specialists .result-count b {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 36px;
  padding-inline: 9px; border-radius: 8px; background: #e9eff8; color: var(--ink); font-size: 18px;
}
.page-specialists .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-specialists .person-card a {
  position: relative; padding: clamp(22px, 2.4vw, 34px); gap: 10px;
  border-radius: 12px; border-color: #dce1ed; border-top: 3px solid var(--blue);
  box-shadow: 0 4px 18px rgb(47 45 94 / 3%);
}
.page-specialists .person-card a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(47 45 94 / 8%); }
.page-specialists .person-avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top;
  margin-bottom: 14px; border: 5px solid #f1f4fa; background: #edf1f8;
}
.page-specialists .person-avatar-empty { position: relative; overflow: hidden; }
.page-specialists .person-avatar-empty::before {
  content: ''; position: absolute; width: 30px; height: 30px; top: 22px; left: calc(50% - 15px);
  border: 2px solid #8797b4; border-radius: 50%;
}
.page-specialists .person-avatar-empty::after {
  content: ''; position: absolute; width: 64px; height: 44px; top: 60px; left: calc(50% - 32px);
  border: 2px solid #8797b4; border-radius: 40px 40px 0 0;
}
.page-specialists .person-name { font-size: 20px; line-height: 1.6; letter-spacing: -.02em; }
.page-specialists .person-expertise { gap: 7px; margin-block: 8px 14px; }
.page-specialists .person-topic { background: #f0f5fb; border-color: #e1e9f5; color: var(--ink-soft); border-radius: 5px; }
.page-specialists .person-org { padding-top: 18px; }
.page-specialists .empty { padding: 48px 28px; text-align: center; border: 1px dashed #bcc8dd; background: white; border-radius: 12px; }
@media (max-width: 1100px) {
  .page-specialists .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 620px) {
  .page-specialists .person-grid { grid-template-columns: minmax(0, 1fr); }
  .page-specialists .specialists-search .hero-search-row { gap: 8px; padding: 8px; }
  .page-specialists .specialists-search .hero-search-field { gap: 8px; }
  .page-specialists .specialists-search .hero-search-row .btn { padding-inline: 14px; }
  .page-specialists .cloud-list a { padding-inline: 13px; }
  .page-specialists .person-card a { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-specialists .person-card a { transition: none; }
  .page-specialists .person-card a:hover { transform: none; }
}
.autocomplete-panel { position: absolute; z-index: 30; top: calc(100% + 14px); left: -8px; right: -8px; padding: 8px; background: var(--white); border: 1px solid #cdd6e6; border-top: 3px solid var(--blue); border-radius: 6px; box-shadow: 0 16px 36px rgb(47 45 94 / 14%); }
.autocomplete-panel[hidden] { display: none; }
.autocomplete-list { max-height: min(310px, 42dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.autocomplete-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 48px; padding: 11px 12px; border-left: 3px solid transparent; border-radius: 3px; cursor: pointer; }
.autocomplete-option + .autocomplete-option { border-top: 1px solid #edf0f6; }
.autocomplete-option[aria-selected="true"], .autocomplete-option:hover { background: #eef4fc; border-left-color: var(--blue); }
.autocomplete-option > svg { width: 16px; height: 16px; margin-top: 5px; color: var(--blue); }
.autocomplete-name, .autocomplete-secondary { display: block; overflow-wrap: anywhere; }
.autocomplete-name { color: var(--ink); font-size: 15px; line-height: 1.65; }
.autocomplete-name mark, .autocomplete-secondary mark { background: transparent; color: inherit; font-weight: 700; }
.autocomplete-secondary { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.autocomplete-empty { margin: 0; padding: 16px 12px 20px; color: var(--muted); font-size: 14px; }
.autocomplete-submit { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 12px 15px 6px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.autocomplete-submit[hidden] { display: none; }
.autocomplete-submit:hover { color: var(--ink); }
.autocomplete-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.hero-actions { margin-top: 24px; }
.home-experts .section-head { margin-bottom: 22px; }
.home-experts-empty { padding: 18px 0; color: var(--muted); }
.search-page-results { min-height: 30vh; }
.search-page-results > .result-count { margin-bottom: 34px; }
.search-group { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.search-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; font: 600 21px/1.4 'Anuphan', sans-serif; }
.search-group h2 span { color: var(--muted); font: 500 13px/1.4 'Space Grotesk', sans-serif; }
.search-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-result-list a { display: grid; gap: 5px; height: 100%; padding: 18px 20px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--blue); }
.search-result-list a:hover { border-color: var(--blue); }
.search-result-list strong { font-size: 16px; font-weight: 600; }
.search-result-subtitle { color: var(--blue); font-size: 13px; }
.search-result-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.search-result-list a:focus-visible, .home-experts .section-head a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 620px) {
  .home-discovery { padding-top: 42px; padding-bottom: 48px; }
  .hero-search { margin-top: 20px; }
  .hero-search-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
  .hero-search-field { gap: 10px; padding-left: 2px; }
  .autocomplete-panel { top: calc(100% + 6px); }
  .hero-search-row .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .hero-actions { margin-top: 18px; }
  .home-experts .section-head { align-items: center; }
  .search-result-list { grid-template-columns: 1fr; }
}
/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* Hide rather than pause: a paused first frame is an arbitrary still, whereas
     the poster was chosen to be representative. */
  .hero-video { display: none; }
  /* The orbit ring stays (it is static geometry) but the satellite stops
     travelling. The global rule above already neutralises the animation; this
     just makes the intent explicit at the element. */
  .hero-satellite { animation: none; }
  .video-toggle { display: none; }
}

/* ------------------------------------------------------------------ print -- */
@media print {
  .site-header, .site-footer, .video-embed, .filters, .hero-video { display: none; }
  body { background: #fff; }
  .section { padding: 16px 0; page-break-inside: avoid; }
}

.org-capability-description { white-space: pre-line; overflow-wrap: anywhere; }
.org-capabilities, .org-summary { margin-block: 2rem; }

/* Questionnaire content remains readable at phone widths, including long URLs. */
.page-network-detail .org-summary { margin-block: 28px; }
.page-network-detail .facility-card { min-width: 0; overflow-wrap: anywhere; }
.org-capability-detail { margin-top: 18px; }
.org-capability-detail h4 { margin-bottom: 6px; }
.org-capability-detail p { margin-top: 0; }
.org-certification-status { margin-top: 18px; font-size: .9rem; }

/* Shared public patterns documented in templates/current-design/frontend.html. */
body:not(.page-home) .page-head { background: #f1f3fa; }
main, main > .section, main > .section-alt { background: var(--content-bg); }
.post-card, .facility-card, .contact-block {
  min-width: 0; border: 1px solid #dce1ed; border-top: 3px solid var(--blue);
  border-radius: 12px; padding: clamp(22px, 2.4vw, 34px);
  background: var(--white); box-shadow: 0 4px 18px rgb(47 45 94 / 3%);
  overflow-wrap: anywhere;
}
.post-card img, .post-cover { border-radius: 8px; }
.contact-key { font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; }
body:not(.page-home) .sub { color: var(--ink); border-top-color: #dce1ed; line-height: 1.6; }
body:not(.page-home) .section > .sub:first-child { margin-top: 0; }
.page-search .specialists-search { background: #f1f3fa; }
.page-search .specialists-search .hero-search-row { max-width: none; border: 1px solid #c8d3e5; border-radius: 12px; padding: 12px; }
.post { width: 100%; max-width: 960px; }
.post-body { overflow-wrap: anywhere; }
@media (min-width: 821px) and (max-width: 1100px) {
  .post-grid, .facility-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Consent is a non-modal enhancement; optional embeds stay blocked without JS. */
body { padding-bottom: var(--cookie-banner-height, 0px); }
.cookie-banner[hidden], .cookie-settings[hidden], .video-consent[hidden], [data-consent-allow][hidden], .cookie-storage-error[hidden] { display: none; }
.cookie-banner {
  position: fixed; z-index: 80; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); max-height: min(60vh, calc(100vh - 32px)); max-height: min(60dvh, calc(100dvh - 32px)); overflow: auto;
  display: flex; align-items: center; gap: 24px; padding: 22px 24px;
  background: #fff; color: #2f2d5e; border: 1px solid #b7bfd7; border-radius: 8px;
  box-shadow: 0 8px 36px rgb(47 45 94 / 18%);
}
.cookie-banner-copy { flex: 1; min-width: 0; }
.cookie-banner h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; }
.cookie-banner p { margin: 0 0 8px; font-size: 15px; line-height: 1.8; }
.cookie-banner a, .video-consent a { color: #196ab4; text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { min-height: 44px; justify-content: center; }
.footer-legal { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cookie-settings { display: block; padding: 0; background: none; border: 0; border-bottom: 1px solid #ffffff33; border-radius: 0; font: inherit; color: inherit; cursor: pointer; }
.video-embed[data-consent-video] { aspect-ratio: auto; background: var(--paper); border: 1px solid var(--line); }
.video-embed[data-consent-video].has-video { aspect-ratio: 16 / 9; border: 0; background: #000; }
.video-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px; min-height: 240px; text-align: center; }
.video-consent p { max-width: 620px; margin: 0; }
.cookie-notice { max-width: 900px; overflow-wrap: anywhere; }
.cookie-notice p { margin-bottom: 20px; }
.cookie-notice dt { font-weight: 600; margin-top: 20px; }
.cookie-notice dd { margin: 6px 0 24px; }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .cookie-banner-actions { flex-shrink: 1; }
  .cookie-banner-actions .btn { flex: 1 1 140px; }
}

/* Activity cards: full poster artwork, then title and practical details. */
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; border-top: 0; }
.event-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--blue); min-width: 0; background: #fff; }
.event-poster { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #F1F3FA; overflow: hidden; }
.event-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.event-poster-empty { padding: 24px; color: var(--muted); text-align: center; }
.event-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; overflow-wrap: anywhere; }
.event-content .event-body { flex: none; margin: 0; font-size: 21px; line-height: 1.6; color: #2F2D5E; }
.event-date, .event-content .event-venue { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; line-height: 1.7; }
.event-date svg, .event-content .event-venue svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }

.post-facts { display: grid; gap: 16px; padding: 24px; margin: 24px 0; background: #F1F3FA; border-top: 3px solid #196AB4; }
.post-facts dt { font-weight: 700; color: #2F2D5E; }
.post-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.post-posters { margin: 32px 0; }
.post-posters h2 { margin-bottom: 16px; }
.post-poster-open { display: flex; justify-content: center; width: fit-content; max-width: 100%; padding: 16px; margin: 0 auto; background: #F1F3FA; }
.post-poster-open img { display: block; width: auto; height: auto; max-width: 100%; }
.poster-dialog { width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 16px; border: 0; overflow: hidden; background: white; cursor: zoom-out; }
.poster-dialog::backdrop { background: rgb(47 45 94 / 85%); }
.poster-dialog img { display: block; width: auto; height: auto; max-width: calc(100vw - 64px); max-height: calc(100dvh - 64px); object-fit: contain; }
.post-body .post-detail-list { padding-left: 1.5em; white-space: normal; }
.post-detail-list li { padding-left: 8px; margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 1.5em; }
.post-body li { margin-bottom: 12px; }

/* One content canvas and reading rhythm across public routes. */
.page-home .home-discovery, .page-home .home-expertise { background: var(--content-bg); }
body:not(.page-home) main > .section { max-width: 1180px; margin-inline: auto; }
.page-post .post { max-width: 1180px; padding: 64px var(--gutter) 80px; background: var(--content-bg); }
.page-post .post h1 { font-family: inherit; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.3; letter-spacing: normal; color: var(--ink); }
.page-post .crumbs { margin-bottom: 28px; font-size: 14px; color: var(--blue); }
.page-post .post-body { font-size: 16px; line-height: 1.85; }
.page-post .post-facts { background: var(--content-bg); border-top: 2px solid var(--ink); padding: 20px 0; }
.page-post .post-body li::marker { color: var(--blue); }
.post-body .post-detail-list { list-style: disc; }
@media (max-width: 620px) {
  .page-post .post { padding-block: 36px 56px; }
  .post-facts { gap: 20px; }
}

.post-body :is(h1, h2, h3), .org-summary :is(h1, h2, h3) { margin: 1.5em 0 .6em; font-family: inherit; line-height: 1.5; letter-spacing: normal; }
.page-post .post-body h1, .org-summary h1 { font-size: 28px; }
.post-body h2, .org-summary h2 { font-size: 24px; }
.post-body h3, .org-summary h3 { font-size: 20px; }
.post-body a, .org-summary a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-photos { display: grid; gap: 24px; margin-top: 32px; }
.post-photo .post-cover { display: block; width: 100%; height: auto; margin: 0; }
.post-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.post-photo-credit { display: block; }
