/* Dr. Mədinə Dilbazi — endokrinoloq-diyetoloq.
   Design system: warm paper, refined thyroid green from the logo, sand from its keyhole, amber data marks.
   Motion runs only under html.m-on (no reduced-motion request, no "pause animations" setting). */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #142321;
  --ink-2: #34433F;
  --muted: #5D6B67;
  --line: #E5E0D6;
  --line-2: #EEEAE2;
  --g-900: #0F2F2A;
  --g-800: #154039;
  --g-700: #1C564E;
  --g-600: #2B6B61;
  --g-500: #4A857A;
  --g-300: #A9C9C1;
  --g-200: #CFE2DD;
  --g-100: #E4EFEC;
  --g-50: #F1F7F5;
  --s-700: #7E6741;
  --s-500: #D5C6AB;
  --s-300: #E6DCCB;
  --s-100: #F2ECE1;
  --s-50: #F8F4EC;
  --amber: #B4772F;
  --amber-2: #8F5C21;
  --rose: #B5543F;
  --rose-bg: #FBEDE8;
  --tint: #F3EEE5;
  --shadow-1: 0 1px 2px rgba(20, 35, 33, .05), 0 8px 24px rgba(20, 35, 33, .06);
  --shadow-2: 0 24px 60px rgba(20, 35, 33, .16), 0 2px 8px rgba(20, 35, 33, .06);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 76px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 18px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--g-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--g-900); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.16; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .88em; background: var(--g-50); padding: .08em .35em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--g-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--g-200); color: var(--ink); }
[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 12px; top: 10px; z-index: 300; padding: .6rem 1rem; border-radius: 10px;
  background: var(--g-800); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; color: #fff; }
.main:focus { outline: none; }

.i { width: 1.25rem; height: 1.25rem; flex: none; display: inline-block; vertical-align: middle; }
.i--sm { width: 1rem; height: 1rem; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container--mid { max-width: 1040px; }
.container--text { max-width: 820px; }

.main { display: block; }
.section { padding-block: clamp(56px, 3.5rem + 2.5vw, 104px); }
.section--first { padding-top: clamp(28px, 1.5rem + 1.5vw, 52px); }
.section--last { padding-bottom: clamp(72px, 4rem + 3vw, 124px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: clamp(26px, 1.4rem + 1vw, 40px); }
.section__head h2 { margin: 0; }
.section__lead { margin: .9rem 0 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 640px; }
.section__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(26px, 1.4rem + 1vw, 40px); }
.section__row .section__head { margin-bottom: 0; }
.section__aside { margin: 0; padding-bottom: .35rem; }

.grid { --cols: 1; display: grid; gap: 18px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .grid--2, .grid--3 { --cols: 2; } }
@media (min-width: 1024px) { .grid--3 { --cols: 3; } }
.more { margin: 1.4rem 0 0; }

/* ------------------------------------------------------------------ small components */
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 1.9rem; height: 1.9rem; border-radius: 10px;
  background: var(--g-100); color: var(--g-700);
}
.badge .i { width: 1.1rem; height: 1.1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%;
  margin: 0 0 1rem; font-size: .875rem; font-weight: 500; letter-spacing: .005em; line-height: 1.3; color: var(--g-700);
}
.kicker > span:not(.badge) { min-width: 0; }

.link-arrow { display: inline; font-weight: 500; text-decoration: none; color: var(--g-700); }
.link-arrow span { text-decoration: underline; text-decoration-color: rgba(28, 86, 78, .32); text-underline-offset: .24em; }
.link-arrow .i { display: inline-block; margin-left: .35rem; vertical-align: -.15em; transition: translate .2s var(--ease); }
.link-arrow:hover span { text-decoration-color: currentColor; }
.link-arrow:hover .i { translate: 3px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1.2rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, translate .18s;
}
.btn--cta {
  background: var(--g-700); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 20px rgba(28, 86, 78, .24);
}
.btn--cta:hover { background: var(--g-800); color: #fff; translate: 0 -1px; }
.btn--cta .i { width: 1.15rem; height: 1.15rem; }
.btn--line { background: var(--surface); color: var(--g-800); border-color: var(--g-300); }
.btn--line:hover { border-color: var(--g-700); color: var(--g-900); background: var(--g-50); }
.btn--text { background: transparent; color: var(--g-700); padding-inline: .6rem; }
.btn--text:hover { color: var(--g-900); background: var(--g-50); }
.btn--sm { min-height: 40px; padding: .45rem .95rem; font-size: .875rem; border-radius: 10px; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  text-decoration: none; transition: border-color .18s, color .18s, background-color .18s;
}
.icon-btn:hover { border-color: var(--g-500); color: var(--g-700); }

.cicons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cicon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--g-700);
  text-decoration: none; transition: background-color .18s, color .18s, border-color .18s, translate .18s;
}
.cicon:hover { background: var(--g-700); border-color: var(--g-700); color: #fff; translate: 0 -1px; }
.cicon--whatsapp { color: #1E7A4E; }
.cicons--lg .cicon { width: 52px; height: 52px; border-radius: 15px; }
.cicons--lg .cicon .i { width: 1.4rem; height: 1.4rem; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px;
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .875rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: border-color .18s, color .18s, background-color .18s;
}
.chip .i { color: var(--g-600); }
.chip:hover { border-color: var(--g-500); color: var(--g-800); }
.chip.is-on { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.chip.is-on .i { color: #fff; }
.chip__n { font-family: var(--mono); font-size: .75rem; opacity: .7; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 244, .88);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); background: rgba(250, 248, 244, .95); }
.header__row { position: relative; display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; flex: 0 1 auto; }
.brand__logo { height: 44px; width: auto; flex: none; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; padding-left: 12px; border-left: 1px solid var(--line); }
.brand__name { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; letter-spacing: -.01em; }
.brand__role { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.has-mega { position: static; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem;
  color: var(--ink-2); font-size: .9rem; font-weight: 400; text-decoration: none; white-space: nowrap; border-radius: 10px;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--g-700); }
.nav__link.is-current { color: var(--ink); font-weight: 500; }
.nav__link.is-current::after {
  content: ""; position: absolute; left: .5rem; right: .5rem; bottom: 6px; height: 2px; border-radius: 2px; background: var(--amber);
}
.has-panel > .nav__link { padding-right: .1rem; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 24px; height: 32px; margin-right: .2rem; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.nav__toggle .i { width: 1rem; height: 1rem; transition: rotate .2s var(--ease); }
.nav__toggle:hover { color: var(--g-700); }
.nav__item.is-open > .nav__toggle .i { rotate: 180deg; }

.nav__panel {
  position: absolute; top: calc(100% - 12px); left: -14px; z-index: 5;
  min-width: 300px; padding-top: 20px;
  visibility: hidden; opacity: 0; translate: 0 6px;
  transition: opacity .18s, translate .18s var(--ease), visibility 0s linear .18s;
}
.nav__panel--mega { left: var(--gutter); right: var(--gutter); }
.panel-card { padding: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-2); }
.nav__panel--mega .panel-card { padding: 18px 18px 12px; }
.nav__item.is-open > .nav__panel,
html:not(.js-menu) .nav__item.has-panel:hover > .nav__panel,
html:not(.js-menu) .nav__item.has-panel:focus-within > .nav__panel {
  visibility: visible; opacity: 1; translate: 0 0; transition: opacity .18s, translate .18s var(--ease), visibility 0s;
}
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 11px;
  color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.3;
}
.panel-list a .i { color: var(--g-600); }
.panel-list a:hover { background: var(--g-50); color: var(--g-800); }
.panel-list a[aria-current="page"] { background: var(--g-100); color: var(--g-900); }
.panel-list a > span { min-width: 0; }
.panel-list--dense a { padding-block: .42rem; font-size: .9rem; }
.panel-list__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.mega { display: grid; gap: 6px 22px; }
.mega--svc { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega--cnd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__group { min-width: 0; padding: 4px 0 8px; }
.mega__title { margin: 0 0 .3rem; padding: 0 .7rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mega__foot { margin-top: 6px; padding: 12px .7rem 4px; border-top: 1px solid var(--line-2); font-size: .9375rem; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex: none; }
.burger { display: none; }

@media (max-width: 1239.98px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
html.nav-collapse .nav { display: none; }
html.nav-collapse .burger { display: inline-grid; }
html.nav-collapse .header__actions { margin-left: auto; }

/* Phone: the single CTA docks to the bottom of the screen and stays there while scrolling. */
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .brand__logo { height: 38px; }
  .brand__text { padding-left: 10px; }
  .brand__name { font-size: 1rem; }
  .brand__role { font-size: .75rem; }
  .cta-home .btn--cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    min-height: 54px; border-radius: 15px; font-size: 1rem;
    box-shadow: 0 12px 32px rgba(15, 47, 42, .3), 0 1px 0 rgba(255, 255, 255, .14) inset;
  }
  .cta-home .btn--cta:hover { translate: none; }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 389.98px) {
  .brand__role { display: none; }
  .brand__name { font-size: .95rem; }
  .header__row { gap: 10px; }
}
@media (max-width: 339.98px) {
  .brand__text { display: none; }
}
.cta-slot:empty { display: none; }
.cta-slot .btn--cta { width: 100%; min-height: 52px; font-size: 1rem; }

/* ------------------------------------------------------------------ dialogs */
.dlg {
  padding: 0; border: 0; background: var(--surface); color: var(--ink);
  max-width: none; max-height: none; overscroll-behavior: contain;
}
.dlg::backdrop { background: rgba(15, 47, 42, .44); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html.dlg-open { overflow: hidden; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line-2); }
.dlg__title { display: flex; align-items: center; gap: .65rem; margin: 0; font-weight: 600; font-size: 1.125rem; }
.dlg__body { padding: 20px; overflow-y: auto; min-height: 0; }
.dlg__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: grid; gap: 14px; }
.brand--sm .brand__logo { height: 34px; }

.dlg--drawer[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; inset: 0 0 0 auto;
}
.drawer { overflow-y: auto; min-height: 0; padding: 8px 12px 18px; }
.drawer__group { border-bottom: 1px solid var(--line-2); }
.drawer__group > summary {
  display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: 0 .6rem; list-style: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink);
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary > .i:first-child { color: var(--g-600); }
.drawer__group > summary > span { flex: 1; min-width: 0; }
.drawer__chev { color: var(--muted); transition: rotate .2s var(--ease); }
.drawer__group[open] .drawer__chev { rotate: 180deg; }
.drawer__group .panel-list { padding: 0 0 6px; }
.drawer__sub { margin: .8rem .7rem .25rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer__all { margin: .4rem .7rem 1rem; font-size: .9375rem; }
.drawer__link {
  display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: 0 .6rem; border-bottom: 1px solid var(--line-2);
  color: var(--ink); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.drawer__link .i { color: var(--g-600); }
.drawer__link:hover { color: var(--g-700); }
.drawer__link[aria-current="page"] { color: var(--g-700); }
.cicons--drawer { justify-content: center; }

.dlg--search[open] {
  display: flex; flex-direction: column;
  width: min(760px, calc(100vw - 24px)); max-height: min(720px, calc(100dvh - 48px));
  margin: clamp(12px, 8vh, 90px) auto auto; border-radius: 22px; box-shadow: var(--shadow-2);
}
.search { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line-2); }
.search__icon { color: var(--g-600); display: grid; place-items: center; }
.search__input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 1.125rem; outline: none;
}
.search__input::placeholder { color: #8A9591; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__body { flex: 1 1 auto; padding: 16px 20px 20px; overflow-y: auto; min-height: 0; }
.search__hint { margin: 0 0 .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.search__chips button {
  min-height: 38px; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-2); font-size: .875rem; transition: border-color .18s, color .18s;
}
.search__chips button:hover { border-color: var(--g-500); color: var(--g-800); }
.search__count { margin: .4rem 0 .6rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.result__a { display: grid; gap: 2px; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.result__a:hover { background: var(--g-50); }
.result__kind { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--amber-2); }
.result__title { font-weight: 600; line-height: 1.3; }
.result__text { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.result__text mark { background: var(--g-100); color: var(--g-900); border-radius: 3px; padding: 0 .1em; }
.search__empty { display: grid; gap: 14px; padding: .6rem .2rem; color: var(--ink-2); }
.dlg__foot--search { display: none; }
@media (max-width: 767.98px) {
  .dlg--search[open] { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .dlg__foot--search { display: grid; }
}
.search--page { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 8px 8px 8px 16px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.search--page .search__input { height: 46px; font-size: 1.0625rem; }
.search__go { flex: none; }

.dlg--booking[open], .dlg--consent[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  margin: auto; border-radius: 22px; box-shadow: var(--shadow-2);
}
.dlg--consent[open] { width: min(560px, calc(100vw - 24px)); }
@media (max-width: 639.98px) {
  .dlg--booking[open], .dlg--consent[open] { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}
.booking__lead { display: grid; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: .975rem; }

/* ------------------------------------------------------------------ page heads */
.page-head { padding-block: clamp(22px, 1.2rem + 1.8vw, 48px) clamp(32px, 1.6rem + 2.4vw, 64px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.page-head--plate .page-head__grid { gap: 22px 56px; }
@media (min-width: 1024px) {
  .page-head--plate .page-head__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
.page-head__text { min-width: 0; }
.page-head__title { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.022em; max-width: 22ch; }
.page-head__lead { margin-top: 1.1rem; max-width: 64ch; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .25vw, 1.175rem); line-height: 1.62; }
.page-head__lead .answer { margin-top: .4rem; }

.crumbs { margin-bottom: 1rem; font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--g-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

.answer {
  position: relative; padding: 18px 20px 18px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--g-200); box-shadow: var(--shadow-1);
}
.answer::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g-600); }
.answer__label { display: flex; align-items: center; gap: .45rem; margin: 0 0 .45rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--g-700); }
.answer__text { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.62; }

/* schematic plates in page heads */
.plate-fig {
  position: relative; margin: 0; padding: 18px 18px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.plate-fig .pl { width: 100%; height: auto; }
.plate-fig figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8125rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 1023.98px) {
  .page-head--plate .plate-fig { max-width: 520px; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(14px, 1rem + 1.5vw, 36px) clamp(48px, 3rem + 2vw, 84px); }
.hero__sheet { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "photo" "monitor" "facts"; }
.hero__photo { grid-area: photo; position: relative; margin: 0; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-lg); background: var(--s-100); }
.hero__badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .45rem; max-width: calc(100% - 24px);
  padding: .4rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--g-800);
  font-size: .8rem; font-weight: 500; box-shadow: 0 4px 14px rgba(20, 35, 33, .12);
}
.hero__text { grid-area: text; min-width: 0; align-self: center; }
.hero__title { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.3rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; }
.hero__role { display: block; margin-top: .35rem; font-size: .52em; line-height: 1.15; letter-spacing: -.015em; font-weight: 500; color: var(--g-700); }
.hero__lead { margin: 1.1rem 0 0; max-width: 60ch; font-size: clamp(1rem, .95rem + .2vw, 1.0625rem); color: var(--ink-2); line-height: 1.6; }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 1.4rem 0 0; }

.hero__monitor {
  grid-area: monitor; position: relative; margin: 0; padding: 14px 16px 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden;
}
.monitor__bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.monitor__live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(180, 119, 47, .16); }
.monitor__unit { margin-left: auto; }
.hero__monitor .pl { width: 100%; height: auto; }
.monitor__cap { margin-top: 8px; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.hero__readouts { grid-area: facts; }

.readouts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.readout { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.readout dt { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-2); }
.readout dt .i { color: var(--g-600); }
.readout dd { margin: 0; font-weight: 500; line-height: 1.4; color: var(--ink); }
.readout dd span { color: var(--muted); font-weight: 400; }

@media (min-width: 640px) {
  .hero__sheet { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-areas: "photo text" "monitor monitor" "facts facts"; column-gap: 28px; }
  .hero__img { aspect-ratio: 4 / 5; }
  .hero__photo { align-self: stretch; }
  .readouts.hero__readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (min-width: 1024px) {
  .hero__sheet {
    grid-template-columns: 280px minmax(0, 1fr) 300px; column-gap: 44px; row-gap: 26px;
    grid-template-areas: "photo text text" "monitor monitor facts";
  }
  .readouts.hero__readouts { grid-template-columns: minmax(0, 1fr); align-self: stretch; align-content: center; border-top: 0; }
  .hero__readouts .readout:first-child { border-top: 1px solid var(--line); }
}
@media (max-width: 639.98px) {
  .pl--hero .pl-lbl { display: none; }
}

/* ------------------------------------------------------------------ home sections */
.signals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .signals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.signal {
  display: flex; align-items: center; gap: 14px; min-height: 76px; height: 100%; padding: 14px 6px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s;
}
.signal__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--g-50); color: var(--g-700); transition: background-color .2s, color .2s; }
.signal__text { flex: 1; min-width: 0; line-height: 1.42; font-size: 1rem; }
.signal__arrow { color: var(--g-500); transition: translate .2s var(--ease), color .2s; }
.signal:hover { color: var(--g-900); }
.signal:hover .signal__icon { background: var(--g-700); color: #fff; }
.signal:hover .signal__arrow { translate: 3px 0; color: var(--g-700); }

.areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.areas > li { min-width: 0; }
.area {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px 20px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, translate .2s var(--ease);
}
.area:hover { border-color: var(--g-300); box-shadow: var(--shadow-1); translate: 0 -2px; color: var(--ink); }
.area__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.area__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--g-100); color: var(--g-700); }
.area__icon .i { width: 1.5rem; height: 1.5rem; }
.area__num { font-family: var(--mono); font-size: .8rem; color: var(--s-700); letter-spacing: .04em; }
.area__title { font-size: 1.125rem; margin-bottom: .5rem; }
.area__text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.area__more { margin-top: auto; padding-top: 16px; color: var(--g-600); }
.area:hover .area__more { color: var(--g-800); }

.approach { background: var(--g-900); color: var(--g-100); position: relative; overflow: hidden; }
.approach::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(169, 201, 193, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 201, 193, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.approach__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 72px; align-items: center; }
@media (min-width: 1024px) { .approach__grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
.approach__visual { max-width: 420px; width: 100%; margin-inline: auto; }
.approach .section__head h2 { color: #fff; }
.approach .kicker { color: var(--g-300); }
.approach .badge { background: rgba(169, 201, 193, .14); color: var(--g-200); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid rgba(169, 201, 193, .18); }
.principle:last-child { border-bottom: 1px solid rgba(169, 201, 193, .18); }
.principle__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--s-500); color: var(--s-300); font-family: var(--mono); font-weight: 500; font-size: .95rem;
}
.principle__title { color: #fff; font-size: 1.125rem; margin: .4rem 0 .35rem; }
.principle p { margin: 0; color: rgba(228, 239, 236, .82); line-height: 1.6; }

.doctor-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: start; }
@media (min-width: 900px) { .doctor-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.doctor-band__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.doctor-band__img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 705 / 790; object-fit: cover; background: var(--s-100); }
.doctor-band__photo figcaption { margin-top: .7rem; font-size: .82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 899.98px) { .doctor-band__photo { position: static; max-width: 460px; } }
.doctor-band__lead { font-size: 1.08rem; color: var(--ink); }
.growth { margin-top: 2rem; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.growth__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-2); }
.growth__list { list-style: none; margin: 0; padding: 0; }
.growth__list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.growth__list li:last-child { border-bottom: 0; }
@media (min-width: 640px) { .growth__list li { grid-template-columns: 150px minmax(0, 1fr); column-gap: 18px; } .growth__where { grid-column: 2; } }
.growth__date { font-family: var(--mono); font-size: .8rem; color: var(--g-700); padding-top: .15rem; }
.growth__what { font-weight: 500; line-height: 1.42; }
.growth__where { color: var(--muted); font-size: .9rem; }

.videos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 768px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tool-teaser {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px dashed var(--g-300); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.tool-teaser:hover { border-color: var(--g-600); border-style: solid; color: var(--ink); }
.tool-teaser__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--s-100); color: var(--s-700); }
.tool-teaser__text { display: grid; gap: .1rem; flex: 1; min-width: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tool-teaser__title { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.tool-teaser__arrow { color: var(--g-600); transition: translate .2s var(--ease); }
.tool-teaser:hover .tool-teaser__arrow { translate: 3px 0; }

.faq-teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 64px; }
@media (min-width: 1024px) { .faq-teaser { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .faq-teaser__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-teaser .section__head { margin-bottom: 0; }

.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; align-items: center; }
@media (min-width: 1024px) { .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.visit__addr { font-size: 1.1rem; font-weight: 500; color: var(--ink); max-width: 36ch; }
.visit__note { display: flex; align-items: center; gap: .5rem; color: var(--muted); margin: -.3rem 0 1.4rem; }

/* ------------------------------------------------------------------ document layout (service, condition, test, article) */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 64px; padding-bottom: clamp(72px, 4rem + 3vw, 124px); }
@media (min-width: 1024px) {
  .doc { grid-template-columns: minmax(0, 1fr) 280px; }
  .doc__aside { grid-column: 2; grid-row: 1; }
  .doc__main { grid-column: 1; grid-row: 1; }
}
.doc--single { grid-template-columns: minmax(0, 1fr) !important; }
.doc__main { min-width: 0; max-width: 780px; }
.doc__aside { min-width: 0; }
@media (min-width: 1024px) { .doc__aside .toc { position: sticky; top: calc(var(--header-h) + 24px); } }

.toc { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.toc__title {
  display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; list-style: none; cursor: pointer;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.toc__title::-webkit-details-marker { display: none; }
.toc__chev { margin-left: auto; transition: rotate .2s var(--ease); }
.toc__box[open] .toc__chev { rotate: 180deg; }
.toc ol { list-style: none; margin: 0; padding: 0 .5rem .6rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: .42rem .5rem; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.4;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--s-700); padding-top: .15rem; }
.toc a:hover { background: var(--g-50); color: var(--g-800); }
.toc a.is-active { background: var(--g-100); color: var(--g-900); }
@media (min-width: 1024px) { .toc__title { cursor: default; } .toc__chev { display: none; } }

.sec { margin-top: clamp(36px, 2rem + 1vw, 52px); }
.sec:first-child { margin-top: 0; }
.sec > h2, .sec .doc-note > h2, .sec .when > h2, .sec .urgent h2 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); margin-bottom: .8rem; }
.sec--intro { margin-top: 0; }
.gen-tag { display: inline-flex; align-items: center; gap: .45rem; margin: -.2rem 0 1rem; padding: .3rem .7rem; border-radius: 999px; background: var(--g-50); color: var(--g-700); font-size: .78rem; font-weight: 500; }

.prose { color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin: 0; }
.prose li + li { margin-top: .55em; }
.prose ul > li::before { content: ""; position: absolute; left: .35rem; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--g-300); box-shadow: 0 0 0 3px var(--g-50); }
.prose ol { counter-reset: ol; }
.prose ol > li { counter-increment: ol; padding-left: 2.1rem; }
.prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--g-100); color: var(--g-800); font-family: var(--mono); font-size: .75rem; font-weight: 500; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }
.prose em { color: var(--muted); }
.pull { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--s-500); }
.pull blockquote { margin: 0; }
.pull p { font-size: 1.18rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.pull figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); font-style: normal; }

.table-wrap { margin: 1.2em 0; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.tbl th, .tbl td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl thead th { background: var(--g-50); color: var(--g-800); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; color: var(--ink); }
.tbl--kv tbody th { width: 42%; }
@media (max-width: 639.98px) {
  .tbl--stack thead, .tbl--kv thead { display: none; }
  .tbl--stack tr, .tbl--kv tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .tbl--stack tbody tr:last-child, .tbl--kv tbody tr:last-child { border-bottom: 0; }
  .tbl--stack th, .tbl--stack td, .tbl--kv th, .tbl--kv td { display: block; width: auto; padding: .35rem .9rem; border: 0; }
  .tbl--stack [data-label]::before, .tbl--kv [data-label]::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

.doc-note { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--s-50); border: 1px solid var(--s-300); }
.doc-note__who { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.doc-note__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--s-500); }
.doc-note__label { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--s-700); }
.doc-note .prose ul > li::before { background: var(--s-500); box-shadow: 0 0 0 3px var(--s-100); }

.when { position: relative; padding: 24px 24px 24px 24px; border-radius: var(--r-lg); background: var(--g-50); border: 1px solid var(--g-200); }
.when__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .8rem; border-radius: 12px; background: var(--g-700); color: #fff; }
.when .prose ul > li::before { content: ""; left: .15rem; top: .35em; width: 1rem; height: .55rem; border-radius: 0; background: none; box-shadow: none; border-left: 2px solid var(--g-600); border-bottom: 2px solid var(--g-600); transform: rotate(-45deg); }

.urgent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: start; padding: 22px; border-radius: var(--r-lg); background: var(--rose-bg); border: 1px solid #F0CFC5; }
.urgent__icon { margin: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--rose); color: #fff; }
.urgent__body h2 { color: #7E2F1F; }
.urgent .prose, .urgent p { color: #5E2A1F; }
.urgent__call { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--rose); color: #fff; text-decoration: none; transition: background-color .2s; }
.urgent__call:hover { background: #963F2D; color: #fff; }
@media (max-width: 479.98px) { .urgent { grid-template-columns: minmax(0, 1fr) auto; } .urgent__icon { grid-column: 1; } .urgent__body { grid-column: 1 / -1; grid-row: 2; } .urgent__call { grid-column: 2; grid-row: 1; } }

.qa-list { display: grid; gap: 10px; }
.qa { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--g-300); box-shadow: var(--shadow-1); }
.qa > summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; list-style: none; cursor: pointer; font-weight: 500; color: var(--ink); line-height: 1.42; }
.qa > summary::-webkit-details-marker { display: none; }
.qa__q { flex: 1; min-width: 0; }
.qa__chev { flex: none; color: var(--g-600); transition: rotate .22s var(--ease); }
.qa[open] .qa__chev { rotate: 180deg; }
.qa > summary:hover { color: var(--g-800); }
.qa__a { padding: 0 18px 18px; color: var(--ink-2); }
.qa__a > * + * { margin-top: .7em; }

.sources { margin-top: 40px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sources__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sources li { position: relative; padding-left: 1rem; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.sources li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--s-500); }

.disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: var(--r); background: var(--g-50); color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.disclaimer .i { color: var(--g-600); margin-top: .1rem; }
.disclaimer p { margin: 0; }

.related { margin-top: 22px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.related__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .4rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .7rem 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.4; }
.related li:last-child a { border-bottom: 0; }
.related a .i { color: var(--g-600); transition: translate .2s var(--ease); }
.related a:hover { color: var(--g-800); }
.related a:hover .i { translate: 3px 0; }

.lab-note { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 28px; padding: 12px 16px; border-radius: 12px; background: var(--s-50); border: 1px solid var(--s-300); color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.lab-note .i { color: var(--s-700); margin-top: .15rem; }

/* ------------------------------------------------------------------ cards, groups, hubs */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px 20px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, translate .2s var(--ease);
}
.card:hover { border-color: var(--g-300); box-shadow: var(--shadow-1); translate: 0 -2px; color: var(--ink); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: var(--g-100); color: var(--g-700); }
.card__icon .i { width: 1.4rem; height: 1.4rem; }
.card__icon--sm { width: 30px; height: 30px; margin: 0; border-radius: 9px; }
.card__icon--sm .i { width: 1rem; height: 1rem; }
.card__title { font-size: 1.1rem; margin-bottom: .45rem; line-height: 1.3; }
.card__text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card__more { margin-top: auto; padding-top: 14px; color: var(--g-600); }
.card__meta { display: flex; align-items: center; gap: .55rem; margin-bottom: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--s-700); }
.card--cond .card__text { margin-bottom: 0; }

.jumpnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(250, 248, 244, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--line-2); }
.jumpnav__list { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 10px 0; scrollbar-width: none; }
.jumpnav__list::-webkit-scrollbar { display: none; }
.group { margin-top: clamp(40px, 2.5rem + 1vw, 64px); scroll-margin-top: calc(var(--header-h) + 76px); }
.group:first-of-type { margin-top: 0; }
.group__title { display: flex; align-items: center; gap: .7rem; margin-bottom: 18px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }

.howto { display: flex; gap: 14px; align-items: flex-start; margin-bottom: clamp(32px, 2rem + 1vw, 48px); padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--g-200); max-width: 900px; }
.howto__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--g-100); color: var(--g-700); }
.howto__title { margin: 0 0 .3rem; font-weight: 600; color: var(--ink); }
.howto p { color: var(--ink-2); font-size: .97rem; }
.howto--warm { border-color: var(--s-300); background: var(--s-50); }
.howto--warm .howto__icon { background: var(--s-100); color: var(--s-700); }

/* ------------------------------------------------------------------ about */
.page-head--profile .page-head__title { max-width: none; }
.page-head--profile .page-head__lead { max-width: 72ch; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 72px; align-items: start; }
@media (min-width: 900px) {
  .profile-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .profile-layout .profile-card { position: sticky; top: calc(var(--header-h) + 24px); }
}
.profile-layout__body { min-width: 0; max-width: 720px; }
.profile-card { margin: 0; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); max-width: 380px; }
@media (max-width: 899.98px) { .profile-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 16px; align-items: center; max-width: 560px; } .profile-card figcaption { padding: 0; } }
@media (max-width: 419.98px) { .profile-card { grid-template-columns: 104px minmax(0, 1fr); } .readouts--card .readout:last-child { display: none; } }
.profile-card__img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--s-100); }
.profile-card figcaption { padding: 14px 6px 4px; }
.profile-card__name { margin: 0 0 .4rem; font-weight: 600; font-size: 1.1rem; }
.readouts--card .readout { padding: .6rem 0; }
.readouts--card .readout:last-child { border-bottom: 0; }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--g-300), var(--s-500)); border-radius: 2px; }
.timeline__item { position: relative; padding: 0 0 26px 58px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--g-300); color: var(--g-700); }
.timeline__item:last-child .timeline__node { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.timeline__when { margin: 0 0 .2rem; font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--amber-2); padding-top: .4rem; }
.timeline__what { font-size: 1.08rem; line-height: 1.38; }
.timeline__note { margin: .3rem 0 0; color: var(--muted); font-size: .94rem; }

.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; }
@media (min-width: 1024px) { .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.quote { margin: 0; padding: 22px 22px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.quote blockquote { margin: 0; flex: 1; }
.quote p { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .84rem; color: var(--muted); }
.quote figcaption .i { color: var(--s-700); }
.quote__ctx { margin: .8rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.quote--lg { padding: 30px; background: var(--g-800); border-color: var(--g-800); }
.quote--lg p { color: #fff; font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; font-style: italic; }
.quote--lg figcaption { color: var(--g-200); }
.quote--lg figcaption .i { color: var(--s-500); }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quotes > li { min-width: 0; }
.quote--note { background: var(--s-50); border-color: var(--s-300); }

.work-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 24px; align-items: start; }
@media (min-width: 1024px) { .work-layout { grid-template-columns: 340px minmax(0, 1fr); } }
.work-photo { margin: 0; max-width: 460px; }
.work-photo__img { width: 100%; aspect-ratio: 732 / 772; object-fit: cover; border-radius: var(--r-lg); background: var(--s-100); }
.work-photo figcaption { margin-top: .6rem; font-size: .84rem; color: var(--muted); }
.work__item { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.work__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; background: var(--g-100); color: var(--g-700); }
.work__item h3 { margin-bottom: .45rem; }
.work__item p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ------------------------------------------------------------------ education */
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cert { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 24px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 720px) { .cert { grid-template-columns: 190px minmax(0, 1fr); } }
.cert__when { margin: 0; font-family: var(--mono); font-size: .86rem; font-weight: 500; color: var(--g-700); padding-top: .15rem; }
.cert__what { font-size: 1.06rem; line-height: 1.4; margin-bottom: .5rem; }
.cert__where, .cert__proof { display: flex; align-items: flex-start; gap: .5rem; margin: .25rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.cert__where .i, .cert__proof .i { margin-top: .15rem; color: var(--g-600); }
.cert__proof { color: var(--g-800); }
@media (min-width: 720px) { .cert--doc { grid-template-columns: 190px minmax(0, 1fr) 136px; } }
.cert__doc {
  position: relative; display: grid; place-items: center; width: 136px; height: 104px; padding: 6px; align-self: start;
  border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.cert__doc img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.cert__doc:hover { border-color: var(--g-500); box-shadow: var(--shadow-1); }
.cert__zoom { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--g-700); color: #fff; box-shadow: 0 2px 6px rgba(20, 35, 33, .25); }

.dlg--lightbox[open] {
  display: block; width: min(1140px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 14px;
  border-radius: 18px; box-shadow: var(--shadow-2); overflow: auto;
}
.dlg__x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lightbox { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 8px; background: var(--paper); }
.lightbox__cap { max-width: 70ch; padding: 0 44px 4px; text-align: center; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* ------------------------------------------------------------------ events */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__item { margin: 0; height: 100%; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.gallery__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--s-100); }
.gallery__item figcaption { display: grid; gap: .25rem; padding: 14px 16px 16px; }
.gallery__title { font-weight: 600; font-size: .95rem; line-height: 1.38; color: var(--ink); }
.gallery__meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); line-height: 1.45; }

.years { display: grid; gap: 0; }
.year { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.year:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .year { grid-template-columns: 120px minmax(0, 1fr); } }
.year__label { margin: 0; font-family: var(--mono); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); font-weight: 500; color: var(--g-700); line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 720px) { .year__label { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.year__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ev { display: grid; gap: .15rem; }
.ev__date { margin: 0; font-family: var(--mono); font-size: .78rem; color: var(--amber-2); }
.ev__title { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.45; }
.ev__meta { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.ev__meta .i { color: var(--g-500); }
.ev--soon { padding: 14px 16px; border-radius: 14px; background: var(--g-50); border: 1px solid var(--g-200); }
.ev--soon .ev__meta { color: var(--g-800); font-weight: 500; }

/* ------------------------------------------------------------------ media */
.video { margin: 0; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; height: 100%; }
.video__media { position: relative; aspect-ratio: 16 / 9; background: var(--g-900); overflow: hidden; }
.video__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 12px; display: flex; align-items: flex-end; justify-content: flex-start;
  border: 0; border-radius: 0; background: transparent; color: var(--g-800); cursor: pointer;
}
.video__play:focus-visible { outline: 3px solid var(--g-600); outline-offset: -3px; border-radius: 0; }
.video__badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--g-800);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transition: transform .2s var(--ease), background-color .2s;
}
.video__badge .i { width: 1.4rem; height: 1.4rem; margin-left: 3px; }
.video__play:hover .video__badge { transform: scale(1.08); background: var(--s-50); }
.video__consent { display: block; margin-top: .25rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.video.is-playing .video__consent, html.cc-media .video__consent { display: none; }
.video__meta { position: relative; display: grid; gap: .3rem; padding: 16px 52px 18px 18px; }
.video__chan { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--s-700); }
.video__title { font-size: 1.1rem; line-height: 1.35; }
.video__info { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--muted); font-size: .9rem; }
.video__ext { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--g-700); border: 1px solid var(--line); text-decoration: none; }
.video__ext:hover { border-color: var(--g-500); color: var(--g-900); }

.appear { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.appear__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 720px) { .appear__item { grid-template-columns: auto minmax(0, 1fr) auto; } }
.appear__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--g-100); color: var(--g-700); }
.appear__chan { margin: 0 0 .2rem; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.appear__fmt { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--s-700); }
.appear__topic { margin: 0; color: var(--ink-2); font-size: .96rem; }
.appear__when { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--g-700); grid-column: 2; }
@media (min-width: 720px) { .appear__when { grid-column: 3; padding-top: .2rem; white-space: nowrap; } }
.note-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--s-50); border: 1px solid var(--s-300); }
.note-card__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--surface); color: var(--s-700); border: 1px solid var(--s-300); }
.note-card h3 { margin-bottom: .4rem; }
.note-card p { color: var(--ink-2); }
.note-card .cicons { margin-top: 1rem; }

/* ------------------------------------------------------------------ articles */
.filter { margin-bottom: 26px; }
.filter__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.art-list > li { min-width: 0; }
.filter__empty { color: var(--muted); }
.page-head--article .page-head__title { max-width: none; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline__text { display: grid; margin: 0; line-height: 1.3; }
.byline__name { font-weight: 600; }
.byline__role { font-size: .85rem; color: var(--muted); }
.byline__read { display: flex; align-items: center; gap: .4rem; margin: 0 0 0 auto; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.article-body { padding-bottom: clamp(64px, 4rem + 2vw, 104px); }
.article-body > .sec:first-child, .article-body > .prose:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ faq page */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 270px minmax(0, 1fr); } .faq-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-nav { padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq-nav__title { display: flex; align-items: center; gap: .45rem; margin: .3rem .5rem .5rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.faq-nav ul { list-style: none; margin: 0; padding: 0; }
.faq-nav a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.3; }
.faq-nav a .i { color: var(--g-600); }
.faq-nav a > span:not(.faq-nav__n) { flex: 1; min-width: 0; }
.faq-nav__n { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.faq-nav a:hover { background: var(--g-50); color: var(--g-800); }
.faq-nav a.is-active { background: var(--g-100); color: var(--g-900); }
@media (max-width: 1023.98px) {
  .faq-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .faq-nav ul::-webkit-scrollbar { display: none; }
  .faq-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .faq-nav__n { display: none; }
}
.faq-groups { min-width: 0; max-width: 820px; }
.faq-group { margin-top: clamp(36px, 2rem + 1vw, 52px); }
.faq-group:first-child { margin-top: 0; }
.faq-group__title { display: flex; align-items: center; gap: .7rem; margin-bottom: 16px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.qa { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ------------------------------------------------------------------ recipes */
.recipes { columns: 1; column-gap: 18px; }
@media (min-width: 720px) { .recipes { columns: 2; } }
@media (min-width: 1100px) { .recipes { columns: 3; } }
.recipe { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 18px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.recipe:target { border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100); }
.recipe__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin-bottom: 12px; }
.recipe__num { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g-100); color: var(--g-800); font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.recipe__title { font-size: 1.1rem; align-self: center; }
.recipe__sub { margin: 0; font-family: var(--mono); font-size: .74rem; color: var(--s-700); line-height: 1.4; }
.recipe__block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); }
.recipe__label { margin: 0 0 .4rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--g-700); }
.recipe__ing { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.recipe__ing li { position: relative; padding-left: 1.1rem; line-height: 1.45; }
.recipe__ing li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--g-500); }

/* ------------------------------------------------------------------ BMI calculator */
.bmi {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: clamp(20px, 1rem + 2vw, 36px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
@media (min-width: 860px) { .bmi { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; } .bmi__legend, .bmi__note { grid-column: 1 / -1; } }
.bmi__form { display: grid; gap: 16px; align-content: start; }
.bmi__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unit-input { position: relative; display: block; }
.unit-input .input { padding-right: 3.2rem; font-family: var(--mono); font-size: 1.15rem; font-weight: 500; height: 58px; }
.unit-input__u { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: .85rem; color: var(--muted); pointer-events: none; }
.bmi__go { justify-self: start; }
.bmi__err { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--rose-bg); color: #7E2F1F; font-size: .9rem; }
.bmi__out { --bmi-c: var(--g-300); position: relative; padding: 22px 22px 16px; border-radius: 20px; background: var(--g-50); border: 1px solid var(--g-200); transition: background-color .3s, border-color .3s; }
.bmi__label { margin: 0; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bmi__value { display: flex; align-items: baseline; gap: .5rem; margin: .2rem 0 0; font-family: var(--mono); font-weight: 500; font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); line-height: 1.05; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bmi__unit { font-size: .9rem; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.bmi__cat { margin: .35rem 0 .9rem; font-weight: 600; font-size: 1.1rem; color: var(--ink-2); }
.bmi__scale { width: 100%; height: auto; overflow: visible; }
.bmi__seg { opacity: .45; transition: opacity .3s; }
.bmi__seg--under { fill: #8FB3C9; }
.bmi__seg--normal { fill: var(--g-500); }
.bmi__seg--over { fill: #D9A75C; }
.bmi__seg--obese { fill: #C97B62; }
.bmi__tick { font-family: var(--mono); font-size: 22px; fill: var(--muted); }
.bmi__marker path { fill: var(--ink); }
.bmi__marker circle { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.bmi__marker { transition: transform .55s var(--ease); }
.bmi__marker.is-empty { opacity: 0; }
.bmi--under { background: #EEF4F8; border-color: #CFE0EA; }
.bmi--under .bmi__seg--under, .bmi--normal .bmi__seg--normal, .bmi--over .bmi__seg--over, .bmi--obese .bmi__seg--obese { opacity: 1; }
.bmi--normal { background: var(--g-50); border-color: var(--g-200); }
.bmi--over { background: #FBF4E8; border-color: #EEDAB8; }
.bmi--obese { background: #FAEFEA; border-color: #EDCFC3; }
.bmi__legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .bmi__legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bmi__leg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .55rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: border-color .25s, background-color .25s; }
.bmi__swatch { grid-row: span 2; width: 12px; height: 12px; border-radius: 4px; }
.bmi__leg--under .bmi__swatch { background: #8FB3C9; }
.bmi__leg--normal .bmi__swatch { background: var(--g-500); }
.bmi__leg--over .bmi__swatch { background: #D9A75C; }
.bmi__leg--obese .bmi__swatch { background: #C97B62; }
.bmi__leg-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.bmi__leg-range { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.bmi__leg[aria-current="true"] { border-color: var(--ink-2); background: var(--surface); }
.bmi__note { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--s-50); border: 1px solid var(--s-300); color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.bmi__note .i { margin-top: .2rem; color: var(--s-700); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 560px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field__label { font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.field__opt { font-weight: 400; color: var(--muted); }
.req { color: var(--rose); }
.input {
  width: 100%; min-width: 0; min-height: 50px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid #D8D2C6; background: #fff;
  color: var(--ink); font-size: 1rem; transition: border-color .18s, box-shadow .18s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--g-300); }
.input:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 4px rgba(43, 107, 97, .14); }
.input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(181, 84, 63, .12); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B6B61' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
.field__hint { margin: .2rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: .12rem 0 0; accent-color: var(--g-700); }
.form__error { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: var(--rose-bg); color: #7E2F1F; font-size: .92rem; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__actions .btn { min-height: 50px; }
.form__actions .btn .i { color: #1E7A4E; }
.form__note { display: flex; gap: .45rem; align-items: flex-start; flex: 1 1 240px; margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.form__note .i { margin-top: .1rem; color: var(--g-500); }
.form__done { display: grid; gap: .6rem; padding: 16px; border-radius: 14px; background: var(--g-50); border: 1px solid var(--g-200); color: var(--ink-2); font-size: .94rem; }
.form__done-title { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; color: var(--g-800); }

/* ------------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 32px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.contact-card, .booking-card { padding: clamp(20px, 1rem + 1.5vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.contact-card__title, .booking-card__title { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin-bottom: 1rem; }
.contact-card__addr { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--ink); line-height: 1.5; }
.contact-card__addr .i { color: var(--g-600); margin-top: .15rem; }
.contact-card__note { display: flex; align-items: center; gap: .5rem; margin: -.3rem 0 1.1rem; color: var(--muted); font-size: .94rem; }
.contact-card .mapcard { margin-top: 22px; }
.booking-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.booking-card__lead { margin: -.4rem 0 1.2rem; color: var(--muted); font-size: .94rem; }
.contact-more { display: grid; grid-template-columns: minmax(0, 1fr); }
.contact-more .prep { max-width: 760px; }
.prep { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.prep h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: .8rem; }
.prep p { color: var(--ink-2); }

.mapcard { margin: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mapcard__frame { position: relative; aspect-ratio: 16 / 10; background: var(--g-50); }
.mapcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapcard__art, .mapcard__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-bg { fill: #EEF3F0; }
.ma-road { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.ma-lane { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .8; }
.ma-ring { fill: rgba(28, 86, 78, .1); stroke: rgba(28, 86, 78, .25); }
.ma-pin { fill: var(--g-700); }
.ma-dot { fill: #fff; }
.mapcard__gate { position: absolute; inset: auto 12px 12px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 12px 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(20, 35, 33, .12); }
.mapcard__gate-text { margin: 0; flex: 1 1 200px; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.mapcard.is-loaded .mapcard__gate, .mapcard.is-loaded .mapcard__art { display: none; }
.mapcard__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; }
.mapcard__addr { display: flex; align-items: flex-start; gap: .5rem; flex: 1 1 260px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.mapcard__addr .i { color: var(--g-600); margin-top: .15rem; }
.mapcard__links { display: flex; align-items: center; gap: 12px; }
.mapcard__ext { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--g-700); text-decoration: none; }
.mapcard__ext:hover { border-color: var(--g-500); color: var(--g-900); }

/* ------------------------------------------------------------------ business card */
.vcard-page { padding-block: clamp(18px, 1rem + 1vw, 36px) clamp(64px, 4rem + 2vw, 110px); }
.vcard {
  position: relative; max-width: 460px; margin: 18px auto 0; padding: 28px 26px 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); text-align: center;
}
.vcard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vcard__logo { height: 54px; width: auto; mix-blend-mode: multiply; }
.vcard__photo { display: block; width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--g-300), var(--s-500)); }
.vcard__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.vcard__name { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-align: left; }
.vcard__role { margin: .2rem 0 0; color: var(--g-700); font-weight: 500; text-align: left; }
.vcard__place { display: flex; align-items: flex-start; gap: .45rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .92rem; text-align: left; line-height: 1.45; }
.vcard__place .i { margin-top: .15rem; color: var(--g-600); }
.cicons--card { justify-content: flex-start; margin: 20px 0 24px; }
.vcard__trace { width: calc(100% + 52px); height: 40px; margin: 0 -26px; }
.vcard__trace path { fill: none; stroke: var(--g-300); stroke-width: 2; vector-effect: non-scaling-stroke; }
.vcard-page__site { margin: 1.2rem 0 0; text-align: center; font-family: var(--mono); font-size: .85rem; }
.vcard-page__site a { color: var(--muted); text-decoration: none; }
.vcard-page__site a:hover { color: var(--g-700); }

/* ------------------------------------------------------------------ legal, sitemap, 404 */
.legal__sec { margin-top: 2.2rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__sec:first-child { margin-top: 0; }
.legal h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.legal p { color: var(--ink-2); }
.terms { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 12px; }
.terms li { counter-increment: t; position: relative; padding: 18px 20px 18px 64px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.terms li::before { content: counter(t); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g-100); color: var(--g-800); font-family: var(--mono); font-size: .85rem; font-weight: 500; }

.smap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 720px) { .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .smap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.smap__col { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.smap__title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: .8rem; }
.smap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.smap__list a { display: block; padding: .35rem 0; color: var(--ink-2); text-decoration: none; font-size: .94rem; line-height: 1.4; }
.smap__list a:hover { color: var(--g-700); text-decoration: underline; }

.nf { padding-block: clamp(36px, 2rem + 3vw, 96px) clamp(72px, 4rem + 3vw, 124px); }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; }
@media (min-width: 900px) { .nf__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.nf__code { margin: 0 0 .4rem; font-family: var(--mono); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--s-500); letter-spacing: -.04em; }
.nf__lead { margin: 1rem 0 1.4rem; color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 1rem 0 0; padding: 0; }
.nf__plate { max-width: 420px; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; margin-top: 0; background: #ECE5D8; color: var(--ink-2); padding-top: 64px; }
.footer__trace { position: absolute; left: 0; right: 0; top: 0; height: 60px; overflow: hidden; pointer-events: none; }
.footer__trace svg { width: 100%; height: 60px; }
.footer__trace path { fill: none; stroke: #CDBFA5; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 40px; padding-bottom: 36px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: auto; } }
.brand--footer .brand__logo { height: 48px; }
.brand--footer .brand__text { border-left-color: var(--s-500); }
.footer__addr, .footer__visit { display: flex; gap: .55rem; align-items: flex-start; margin: 1.2rem 0 0; font-size: .94rem; line-height: 1.5; }
.footer__visit { margin-top: .5rem; color: var(--ink-2); }
.footer__addr .i, .footer__visit .i { margin-top: .2rem; color: var(--g-600); }
.cicons--footer { margin-top: 1.2rem; }
.cicons--footer .cicon { background: rgba(255, 255, 255, .7); border-color: var(--s-300); }
.cicons--footer .cicon:hover { background: var(--g-700); border-color: var(--g-700); }
.footer__vcard { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; padding: .55rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--s-300); color: var(--g-800); font-weight: 500; font-size: .92rem; text-decoration: none; }
.footer__vcard:hover { border-color: var(--g-500); color: var(--g-900); }
.footer__title { margin: 0 0 .8rem; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--g-700); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer__col a { display: inline-block; padding: .3rem 0; color: var(--ink-2); text-decoration: none; font-size: .94rem; line-height: 1.4; }
.footer__col a:hover, .footer__col a[aria-current="page"] { color: var(--g-800); text-decoration: underline; }
.footer__note, .footer__bottom { background-image: linear-gradient(#D9CFBE, #D9CFBE); background-size: calc(100% - 2 * var(--gutter)) 1px; background-position: center top; background-repeat: no-repeat; }
.footer__note { padding-block: 18px; }
.footer__note p { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--ink-2); }
.footer__note .i { margin-top: .15rem; color: var(--g-600); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 18px 26px; font-size: .86rem; color: var(--ink-2); }
.footer__copy { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: var(--ink-2); text-decoration: none; }
.footer__legal a:hover { color: var(--g-800); text-decoration: underline; }
.footer__otx { margin: 0 0 0 auto; }
.footer__otx a { color: var(--g-800); font-weight: 600; }

/* ------------------------------------------------------------------ cookie consent */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 120;
  display: flex; justify-content: center; pointer-events: none;
}
.consent__box {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: start;
  width: min(980px, 100%); padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 47, 42, .22);
}
.consent__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--s-100); color: var(--s-700); }
.consent__title { font-size: 1.05rem; margin: .15rem 0 .35rem; }
.consent__text p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.consent__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .consent__box { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .consent__actions { grid-column: auto; flex-wrap: nowrap; }
}
@media (max-width: 767.98px) {
  .consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .consent__box { max-height: calc(100dvh - 180px); overflow-y: auto; padding: 16px; }
  .consent__actions .btn { flex: 1 1 auto; }
}
html.m-on .consent:not([hidden]) .consent__box { animation: rise .45s var(--ease) backwards; }
.consent-prefs { display: grid; gap: 16px; }
.consent-prefs > p { color: var(--ink-2); font-size: .94rem; }
.pref { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.pref__name { display: block; margin: 0 0 .25rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.pref__desc { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.consent-prefs__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: .1rem; }
.switch__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__input:disabled { cursor: not-allowed; }
.switch__track { display: block; width: 100%; height: 100%; border-radius: 999px; background: #C9C3B7; transition: background-color .2s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch__input:checked + .switch__track { background: var(--g-700); }
.switch__input:checked + .switch__track .switch__knob { transform: translateX(20px); }
.switch__input:focus-visible + .switch__track { outline: 2px solid var(--g-600); outline-offset: 3px; }
.switch.is-locked .switch__track { background: var(--g-300); }

/* ------------------------------------------------------------------ schematic plates (SVG) */
.pl { overflow: visible; }
.pl text { font-family: var(--mono); }
.pl-lbl { font-size: 11px; fill: var(--muted); letter-spacing: .02em; }
.pl-lbl--num { font-size: 10.5px; fill: #7D8985; }
.pl-lbl--unit { font-size: 10.5px; fill: #8A9591; }
.pl-lbl--node { font-family: var(--font) !important; font-size: 13px; font-weight: 500; fill: var(--ink); letter-spacing: 0; }
.pl-lbl--sig { font-size: 11px; fill: var(--amber-2); }
.pl-lbl--fb { font-size: 10.5px; fill: var(--g-600); }
.pl-lbl--out { font-family: var(--font) !important; font-size: 12.5px; font-weight: 500; fill: var(--g-800); letter-spacing: 0; }
.pl-lbl--alert { font-size: 11px; fill: var(--rose); font-weight: 500; }
.pl-lbl--sm { font-size: 10px; fill: var(--muted); }
.pl-lbl--formula { font-size: 13px; fill: var(--ink-2); }
.pl-band { fill: var(--g-100); opacity: .8; }
.pl-rule { fill: none; stroke: var(--g-300); stroke-width: 1; stroke-dasharray: 4 4; }
.pl-axis { fill: none; stroke: #C9C3B7; stroke-width: 1.2; }
.pl-tick { fill: none; stroke: #C9C3B7; stroke-width: 1.2; }
.pl-trace { fill: none; stroke: var(--g-700); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-trace--b { stroke: var(--amber); stroke-width: 2.2; }
.pl-ghost { fill: none; stroke: var(--s-500); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 5; opacity: .9; }
.pl-dot { fill: var(--amber); }
.pl-ring { fill: rgba(180, 119, 47, .14); stroke: rgba(180, 119, 47, .5); stroke-width: 1; }
.pl-alert { fill: var(--rose); }
.pl-key { fill: var(--g-700); }
.pl-key--b { fill: var(--amber); }
.pl-faint { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; }
.pl-organ { fill: none; stroke: var(--g-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl-organ--thin { stroke-width: 1.4; stroke: var(--g-500); }
.pl-nodule { fill: rgba(213, 198, 171, .55); stroke: var(--s-700); stroke-width: 1.4; }
.pl-nodule-core { fill: var(--s-700); opacity: .5; }
.pl-leader { fill: none; stroke: var(--muted); stroke-width: 1; }
.pl-scanline { fill: none; stroke: var(--g-600); stroke-width: 1.6; }
.pl-scanglow { fill: rgba(43, 107, 97, .1); }
.pl-scan { transform: translateX(262px); }
.pl-scan--v { transform: translateY(150px); }
.pl-path { fill: none; stroke: var(--s-500); stroke-width: 1; stroke-dasharray: 3 4; }
.pl-needle-line { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.pl-node { fill: var(--surface); stroke: var(--g-300); stroke-width: 1.4; }
.pl-node-c { fill: var(--surface); stroke: var(--g-500); stroke-width: 1.6; }
.pl-flow { fill: none; stroke: var(--g-200); stroke-width: 3; stroke-linecap: round; }
.pl-pulse { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .12 .88; stroke-dashoffset: 0; opacity: 0; }
.pl-pulse--fb { stroke: var(--g-600); stroke-width: 2.4; }
.pl-head { fill: none; stroke: var(--g-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-head--fb { stroke: var(--g-600); }
.pl-head--good { stroke: var(--g-700); }
.pl-feedback { fill: none; stroke: var(--g-500); stroke-width: 1.6; stroke-dasharray: 5 5; }
.pl-rim { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.pl-seg { fill: none; stroke-width: 34; stroke-linecap: butt; }
.pl-seg--veg { stroke: var(--g-500); }
.pl-seg--pro { stroke: var(--s-700); opacity: .75; }
.pl-seg--carb { stroke: var(--s-500); }
.pl-divider { fill: none; stroke: var(--surface); stroke-width: 4; }
.pl-key--veg { fill: var(--g-500); }
.pl-key--pro { fill: var(--s-700); opacity: .75; }
.pl-key--carb { fill: var(--s-500); }
.pl-seg-bar--under { fill: #8FB3C9; }
.pl-seg-bar--normal { fill: var(--g-500); }
.pl-seg-bar--over { fill: #D9A75C; }
.pl-seg-bar--obese { fill: #C97B62; }
.pl-seg-bar--track { fill: var(--line-2); }
.pl-seg-bar--t1 { fill: var(--g-200); }
.pl-seg-bar--t2 { fill: var(--g-300); }
.pl-seg-bar--t3 { fill: var(--g-500); }
.pl-frame { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; }
.pl-chip--fat { fill: var(--s-500); }
.pl-chip--muscle { fill: var(--g-500); }
.pl-chip--water { fill: #8FB3C9; }
.pl-chip--bone { fill: var(--line); stroke: #B9B2A4; }
.pl-ray { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
.pl-mark { fill: var(--g-700); }
.pl-window { fill: rgba(180, 119, 47, .12); stroke: rgba(180, 119, 47, .55); stroke-width: 1; stroke-dasharray: 3 3; }

/* care loop on the dark approach band */
.pl--loop .pl-loop-track { fill: none; stroke: rgba(169, 201, 193, .14); stroke-width: 26; }
.pl--loop .pl-loop-arc { fill: none; stroke: var(--g-300); stroke-width: 1.6; stroke-linecap: round; }
.pl--loop .pl-loop-head { fill: none; stroke: var(--g-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl--loop .pl-loop-pulse { fill: none; stroke: var(--s-500); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .03 .97; opacity: 0; }
.pl--loop .pl-loop-node circle { fill: var(--g-800); stroke: var(--s-500); stroke-width: 1.6; }
.pl--loop .pl-loop-node text { font-family: var(--mono); font-size: 15px; font-weight: 500; fill: var(--s-300); }
.pl--loop .pl-loop-node.is-hot circle { fill: var(--s-500); }
.pl--loop .pl-loop-node.is-hot text { fill: var(--g-900); }
.pl--loop .pl-loop-core path { fill: none; stroke: var(--g-300); stroke-width: .42; stroke-linecap: round; opacity: .55; }

/* motion — only when allowed (html.m-on) and once the figure is in view (.is-in) */
@keyframes pl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes pl-grow { from { transform: scaleX(0); } }
@keyframes pl-travel { 0% { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pl-scan-x { 0% { transform: translateX(96px); opacity: 0; } 12% { opacity: 1; } 45% { transform: translateX(304px); } 80% { transform: translateX(160px); } 100% { transform: translateX(262px); } }
@keyframes pl-scan-y { 0% { transform: translateY(30px); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateY(272px); } 100% { transform: translateY(150px); } }
@keyframes pl-needle-in { from { transform: translate(46px, -52px); opacity: 0; } }
@keyframes pl-ghost-out { from { opacity: .95; } to { opacity: .35; } }
@keyframes pl-ring { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.pl-draw { stroke-dasharray: 1; }
.pl-pop, .pl-ring, .pl-loop-node { transform-box: fill-box; transform-origin: center; }
.pl-grow { transform-box: fill-box; transform-origin: left center; }
.pl-needle { transform-box: view-box; }

html.m-on [data-plate]:not(.is-in) .pl-draw { stroke-dashoffset: 1; }
html.m-on [data-plate]:not(.is-in) :is(.pl-fade, .pl-pop, .pl-needle, .pl-scan) { opacity: 0; }
html.m-on [data-plate]:not(.is-in) .pl-grow { transform: scaleX(0); }
html.m-on [data-plate].is-in .pl-draw { animation: pl-draw 1.5s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-trace.pl-draw { animation-duration: 2s; }
html.m-on [data-plate].is-in .pl-fade { animation: pl-fade .8s ease backwards; }
html.m-on [data-plate].is-in .pl-pop { animation: pl-pop .6s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-grow { animation: pl-grow .9s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-pulse { animation: pl-travel 1.6s var(--ease-io) 3 backwards; }
html.m-on [data-plate].is-in .pl-scan { animation: pl-scan-x 3.6s var(--ease-io) .6s backwards; }
html.m-on [data-plate].is-in .pl-scan--v { animation-name: pl-scan-y; }
html.m-on [data-plate].is-in .pl-needle { animation: pl-needle-in 1.3s var(--ease) 1.1s backwards; }
html.m-on [data-plate].is-in .pl-ghost { animation: pl-ghost-out 2.4s ease .6s both; }
html.m-on [data-plate].is-in .pl-ring { animation: pl-ring 1.8s ease-out 2.2s 2 backwards; }
html.m-on [data-plate].is-in .pl-loop-pulse { animation: pl-travel 3.2s linear 1.4s 2 backwards; }
.pl-d1 { animation-delay: .1s !important; }
.pl-d2 { animation-delay: .4s !important; }
.pl-d3 { animation-delay: .7s !important; }
.pl-d4 { animation-delay: 1s !important; }
.pl-d5 { animation-delay: 1.3s !important; }
html.m-on [data-plate].is-in .pl-pulse.pl-d2 { animation-delay: .9s !important; }
html.m-on [data-plate].is-in .pl-pulse.pl-d3 { animation-delay: 1.3s !important; }
html.m-on [data-plate].is-in .pl-pulse.pl-d4 { animation-delay: 1.7s !important; }
html.m-on [data-plate].is-in .pl-pulse.pl-d5 { animation-delay: 2.2s !important; }

/* reveal on scroll */
html.m-on [data-rv]:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.m-on [data-rv].is-in { animation: rise .7s var(--ease) backwards; }
html.m-on .grid > :nth-child(3n + 2)[data-rv].is-in, html.m-on .grid > :nth-child(3n + 2) > [data-rv].is-in,
html.m-on .areas > :nth-child(4n + 2) > [data-rv].is-in, html.m-on .areas > :nth-child(4n + 2)[data-rv].is-in { animation-delay: .08s; }
html.m-on .grid > :nth-child(3n)[data-rv].is-in, html.m-on .grid > :nth-child(3n) > [data-rv].is-in,
html.m-on .areas > :nth-child(4n + 3)[data-rv].is-in { animation-delay: .16s; }
html.m-on .areas > :nth-child(4n)[data-rv].is-in { animation-delay: .24s; }

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer .footer__trace, .dlg, .consent, .jumpnav, .doc__aside, .uwa-launch, .cta-home, .video__play, .mapcard__gate { display: none !important; }
  body { background: #fff; padding: 0; }
  .section--tint, .approach { background: #fff; color: var(--ink); }
  html.m-on [data-rv]:not(.is-in) { opacity: 1; transform: none; }
}
