/* Radioloq Dr. Emil Yusif — site styles.
   Visual language: graphite ultrasound console, amber caliper accent, convex-sector shapes,
   depth rulers and slice-by-slice reveals. No dependencies. */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0F1A1F;
  --ink-2: #172429;
  --ink-3: #22343B;
  --paper: #F4F6F5;
  --paper-2: #EBEFEE;
  --white: #FFFFFF;
  --line: #DCE3E1;
  --line-2: #C7D1CF;
  --text: #16232A;
  --muted: #536970;
  --amber: #F2B33D;
  --amber-d: #E3A126;
  --amber-ink: #835600;
  --amber-tint: #FFF6E3;
  --link: #1D5C86;
  --link-h: #0F3F60;
  --echo: #A9BCC0;
  --on-dark: #EAF0EF;
  --dop-r: #D9432F;
  --dop-b: #2F63D9;
  --urgent: #A8261D;
  --urgent-bg: #FBEEEC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 26, 31, .05), 0 10px 30px -16px rgba(15, 26, 31, .22);
  --shadow-lg: 0 2px 6px rgba(15, 26, 31, .08), 0 24px 60px -24px rgba(15, 26, 31, .35);
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1rem/1.65 var(--font); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; min-width: 320px;
}
html.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-h); }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber-d); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .fill { fill: currentColor; stroke: none; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(860px + var(--gut) * 2); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ badges, kickers, chips, links */
.badge {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 12px 12px 12px 4px; background: var(--paper-2); color: var(--ink);
}
.badge .i { width: 21px; height: 21px; }
.badge--sm { width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; }
.badge--sm .i { width: 18px; height: 18px; }
.badge--xs { width: 24px; height: 24px; border-radius: 8px 8px 8px 2px; }
.badge--xs .i { width: 15px; height: 15px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 500 .8rem/1.2 var(--mono); letter-spacing: .02em; color: var(--muted);
}
.kicker .badge { background: var(--ink); color: var(--amber); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font: 500 .8rem/1.2 var(--font); white-space: nowrap; background: var(--paper-2); color: #33464C;
}
.chip .i { width: 15px; height: 15px; }
.chip--fasting { background: #FFF1D6; color: #7A4E00; }
.chip--bladder { background: #E7EFFA; color: #1C4A84; }
.chip--none { background: #E3F2EA; color: #1C6646; }
.chip--varies { background: #ECEFF0; color: #3A4D53; }
.link-arrow {
  display: inline; width: fit-content; font-weight: 500; color: var(--link); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease);
}
.link-arrow .i { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-left: 6px; transition: transform .25s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 26, 31, .5); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 600; font-size: 1.08rem; line-height: 1.15; letter-spacing: -.01em; }
.brand__role { font: 500 .72rem/1.3 var(--mono); color: var(--muted); letter-spacing: .01em; }
.mark { width: 40px; height: 40px; flex: none; }
.mark__tile { fill: var(--ink); }
.mark__fan { fill: #22343B; stroke: #CFDAD8; stroke-width: 1.4; stroke-linejoin: round; }
.mark__arc { fill: none; stroke: #CFDAD8; stroke-opacity: .45; stroke-width: 1; }
.mark__beam { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; transform-origin: 20px 2px; }
.m-on .brand:hover .mark__beam { animation: markSweep 1.1s var(--ease); }
@keyframes markSweep { 0% { transform: rotate(0); } 35% { transform: rotate(-38deg); } 70% { transform: rotate(30deg); } 100% { transform: rotate(0); } }
.mark--lg { width: 56px; height: 56px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: 10px 10px; font-size: .97rem; font-weight: 400; color: var(--text); text-decoration: none;
  border-radius: 10px; transition: color .15s, background-color .15s;
}
.has-sub .nav__link { padding-right: 2px; }
.nav__link:hover, .nav__item.is-current > .nav__link { color: var(--ink); }
.nav__item.is-current > .nav__link { font-weight: 500; }
.nav__item.is-current > .nav__link::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--amber); }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 8px; }
.nav__toggle .i { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open .nav__toggle .i { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: -8px; z-index: 30; min-width: 280px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .18s, translate .22s var(--ease), visibility 0s .22s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .18s, translate .22s var(--ease), visibility 0s; }
.sub__list { list-style: none; }
.sub__list a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.3;
}
.sub__list a:hover { background: var(--paper); color: var(--ink); }
.sub__list a:hover .badge { background: var(--ink); color: var(--amber); }
.sub__list .badge { transition: background-color .15s, color .15s; }
.sub--mega { left: 50%; translate: -50% 6px; width: min(860px, calc(100vw - 48px)); padding: 18px; }
.has-sub:hover > .sub--mega, .has-sub:focus-within > .sub--mega, .has-sub.is-open > .sub--mega { translate: -50% 0; }
.has-mega--sm .sub--mega { width: min(600px, calc(100vw - 48px)); }
.mega { display: grid; gap: 6px 14px; }
.mega--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega__col { min-width: 0; padding: 4px 0 8px; }
.mega__title { margin: 4px 10px 6px; font: 500 .74rem/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }
.mega__foot { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.mega__foot a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; text-decoration: none; color: var(--text); font-size: .93rem; font-weight: 500; }
.mega__foot a:hover { background: var(--paper); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.iconbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.iconbtn--menu { display: none; }

.cta {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px;
  border-radius: 13px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px -10px rgba(227, 161, 38, .9);
  transition: background-color .15s, transform .15s;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%) -120% 0 / 60% 100% no-repeat;
}
.cta:hover { background: var(--amber-d); color: var(--ink); }
.m-on .cta:hover::after { animation: ctaSheen .7s var(--ease); }
@keyframes ctaSheen { to { background-position: 220% 0; } }
.cta__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--amber); }
.cta__ic .i { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--flush { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.section__head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.section__more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; }

/* ------------------------------------------------------------------ hero (light) */
.hero {
  position: relative; background: var(--white); color: var(--text); padding: 18px 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line); overflow: hidden; overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(83, 105, 112, .3) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__readout {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 12px; border-bottom: 1px solid var(--line);
  font: 500 .76rem/1.3 var(--mono); color: var(--muted); text-align: left;
}
.hero__readout span { display: inline-flex; align-items: center; gap: 8px; }
.hero__readout .i { width: 15px; height: 15px; color: var(--amber-ink); }
.hero__title { margin: clamp(30px, 5vw, 52px) auto 0; max-width: 980px; color: var(--ink); }
.hero__name { display: block; font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.hero__sub { display: block; margin-top: 12px; font-size: clamp(1.15rem, 2.3vw, 1.65rem); font-weight: 400; color: var(--muted); letter-spacing: -.005em; }
.hero__lead { max-width: 700px; margin: 20px auto 0; font-size: clamp(1rem, 1.4vw, 1.1rem); color: #3A4E54; }

/* hero photo: whole photo, plain rounded frame */
.hphoto { max-width: 600px; margin: clamp(28px, 4vw, 44px) auto 0; }
.hphoto__frame {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(15, 26, 31, .05), 0 24px 50px -30px rgba(15, 26, 31, .35);
}
.hphoto__frame img { display: block; width: 100%; height: auto; }
.hphoto__line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(242, 179, 61, .95) 18%, rgba(242, 179, 61, .95) 82%, transparent);
  box-shadow: 0 0 14px 2px rgba(242, 179, 61, .4);
}
.hphoto__cap {
  display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px auto 0; font: 500 .76rem/1.4 var(--mono); color: var(--muted); text-align: center;
}
.hphoto__cap .i { width: 15px; height: 15px; color: var(--amber-ink); }
.m-on .hphoto:not(.is-in) .hphoto__frame { opacity: 0; }
.m-on .hphoto.is-in .hphoto__frame { animation: photoIn .7s var(--ease) .1s backwards; }
.m-on .hphoto.is-in .hphoto__line { animation: photoScan 1.6s var(--ease) .35s; }
@keyframes photoIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes photoScan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: .9; } 100% { top: calc(100% - 2px); opacity: 0; } }
.m-done .hphoto .hphoto__frame { opacity: 1; }

/* depth ruler (page heads) */
.ruler { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; width: 14px; }
.ruler i { display: block; width: 6px; height: 1px; background: currentColor; opacity: .55; }
.ruler i.is-major { width: 12px; opacity: .9; }
.ruler__focus { position: absolute; right: 16px; top: 42%; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 7px solid var(--amber); }

/* readouts (measurement panel) */
.readouts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(32px, 4vw, 48px) 0 0; padding: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.readout { padding: 18px 20px 20px; border-left: 1px solid var(--line); min-width: 0; }
.readout:first-child { border-left: 0; }
.readout dt { display: flex; align-items: center; gap: 8px; font: 500 .74rem/1.3 var(--mono); color: var(--muted); margin-bottom: 6px; }
.readout dd { margin: 0; color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1.4; }
.caliper { width: 30px; height: 10px; flex: none; }
.caliper path { fill: none; stroke: var(--amber-d); stroke-width: 1.4; stroke-linecap: round; }
.caliper .caliper__dots { stroke-dasharray: 1.5 2.5; stroke-opacity: .8; }

/* ------------------------------------------------------------------ entity card */
.section--entity { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 7vw, 88px); }
.entity {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.entity .kicker { margin: 4px 0 0; }
.entity__text { margin: 0; font-size: clamp(1.04rem, 1.5vw, 1.16rem); line-height: 1.65; color: var(--text); }

/* ------------------------------------------------------------------ worklist */
.worklist { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.worklist li + li { border-top: 1px solid var(--line); }
.wl {
  position: relative; display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) auto 28px; align-items: center; gap: 16px;
  padding: 16px 20px; text-decoration: none; color: var(--text); isolation: isolate;
}
.wl::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 179, 61, .16) 45%, rgba(242, 179, 61, .26) 50%, transparent 56%) -60% 0 / 60% 100% no-repeat, var(--paper);
  transition: opacity .2s;
}
.wl:hover { color: var(--ink); }
.wl:hover::before { opacity: 1; }
.m-on .wl:hover::before { animation: rowScan .8s var(--ease) forwards; }
@keyframes rowScan { to { background-position: 160% 0, 0 0; } }
.wl__no { font: 500 .78rem/1 var(--mono); color: var(--muted); }
.wl__badge { transition: background-color .15s, color .15s; }
.wl:hover .wl__badge { background: var(--ink); color: var(--amber); }
.wl__name { display: flex; flex-direction: column; min-width: 0; }
.wl__name strong { font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.wl__name span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.wl__go { display: grid; place-items: center; color: var(--muted); }
.wl__go .i { transition: transform .2s var(--ease); }
.wl:hover .wl__go { color: var(--ink); }
.wl:hover .wl__go .i { transform: translateX(3px); }

/* ------------------------------------------------------------------ elastography band */
.section--elasto { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.elasto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.elasto__text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 16px; }
.elasto__text p { color: var(--text); }
.elasto__panel { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.elasto__label { margin: 0 0 14px; font: 500 .76rem/1.3 var(--mono); color: var(--echo); }
.elasto__facts { list-style: none; display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.elasto__facts li { display: flex; align-items: center; gap: 12px; }
.elasto__facts .badge { background: var(--ink-3); color: var(--amber); }
.escale { display: grid; gap: 8px; }
.escale__bar { position: relative; display: block; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.escale__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, #2F63D9 0%, #26A6C4 22%, #3DBE6E 42%, #F2D03D 62%, #E8862F 80%, #D9432F 100%);
}
.escale__roi {
  position: absolute; top: -1px; bottom: -1px; left: 22%; width: 18%; border: 1.5px solid rgba(255, 255, 255, .95); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 26, 31, .35);
}
.escale__labels { display: flex; justify-content: space-between; font: 500 .74rem/1.2 var(--mono); color: var(--echo); }
.m-on .escale .escale__fill { clip-path: inset(0 100% 0 0); }
.m-on .escale.is-in .escale__fill { animation: fillIn 1.4s var(--ease) .15s forwards; }
.m-on .escale.is-in .escale__roi { animation: roi 7s ease-in-out 1.6s infinite alternate; }
@keyframes fillIn { to { clip-path: inset(0 0 0 0); } }
@keyframes roi { from { left: 22%; } to { left: 58%; } }
.m-done .escale .escale__fill { clip-path: none; }
.mode .escale { margin-top: 14px; max-width: 420px; }
.mode .escale__bar { background: var(--paper-2); }
.mode .escale__roi { border-color: var(--ink); box-shadow: none; }
.mode .escale__labels { color: var(--muted); }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 54px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step { position: relative; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step__no { position: absolute; top: 18px; right: 20px; font: 500 .8rem/1 var(--mono); color: var(--amber-ink); }
.step .badge { margin-bottom: 18px; background: var(--ink); color: var(--amber); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ reports (cases) */
.section--cases { background: var(--paper-2); }
.reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.report { position: relative; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.report .badge { margin-bottom: 16px; }
.report dl { margin: 0; display: grid; gap: 14px; }
.report dt { font: 500 .72rem/1.2 var(--mono); color: var(--muted); margin-bottom: 3px; }
.report dd { margin: 0; line-height: 1.45; }
.report div:nth-child(2) dd { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ dark section + PACS frames */
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2 { color: var(--white); }
.section--dark .section__head p { color: var(--echo); }
.section--dark .kicker { color: var(--echo); }
.section--dark .kicker .badge { background: var(--ink-3); }
.section--dark .link-arrow { color: var(--amber); }
.pacs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pacs-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.pacs { margin: 0; min-width: 0; }
.pacs__view {
  position: relative; display: block; padding: 28px 10px; border-radius: 14px; background: #05090B; border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden; color: var(--echo);
}
.pacs__view img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 45% 30%; border-radius: 4px; transition: filter .3s; }
.pacs-row--2 .pacs__view img, .about__photo .pacs__view img, .event__photo .pacs__view img { aspect-ratio: auto; }
.pacs__view::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 28px; height: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(242, 179, 61, .0) 60%, rgba(242, 179, 61, .35) 98%, rgba(242, 179, 61, .9));
}
.m-on .pacs__view:hover::after { animation: frameScan 1.1s var(--ease); }
@keyframes frameScan { 0% { opacity: 0; transform: translateY(-100%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(170%); } }
.pacs__view:hover img { filter: brightness(1.06) contrast(1.03); }
.pacs__corner { position: absolute; font: 500 .66rem/1 var(--mono); letter-spacing: .04em; white-space: nowrap; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.pacs__corner--tl { top: 10px; left: 12px; }
.pacs__corner--tr { top: 10px; right: 12px; }
.pacs__corner--bl { bottom: 10px; left: 12px; color: var(--amber); }
.pacs__zoom { position: absolute; bottom: 5px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; color: var(--echo); }
.pacs__zoom .i { width: 16px; height: 16px; }
.pacs figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.4; color: var(--echo); }
.pacs--light figcaption { color: var(--muted); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); font-size: 1.04rem; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { color: var(--muted); transition: transform .25s var(--ease); }
.faq__item[open] summary .i { transform: rotate(180deg); color: var(--ink); }
.faq__item summary:hover { background: var(--paper); }
.faq__a { padding: 0 20px 18px; color: var(--text); }
.faq__a p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

/* ------------------------------------------------------------------ locator */
.section--contact { padding-top: 0; }
.locator {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: 20px;
}
.locator__scope { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--amber); overflow: hidden; }
.locator__scope > .i { position: relative; z-index: 2; width: 34px; height: 34px; }
.locator__ring { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(242, 179, 61, .55); }
.locator__ring--2 { inset: 8%; border-color: rgba(234, 240, 239, .18); }
.locator__cross { position: absolute; inset: 0; background: linear-gradient(rgba(234, 240, 239, .12), rgba(234, 240, 239, .12)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgba(234, 240, 239, .12), rgba(234, 240, 239, .12)) 0 50% / 100% 1px no-repeat; }
.m-on .locator.is-in .locator__ring { animation: wave 3.2s ease-out infinite; }
.m-on .locator.is-in .locator__ring--2 { animation-delay: 1.6s; }
@keyframes wave { 0% { transform: scale(.35); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.locator__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.locator__addr { font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.locator__note { color: var(--muted); max-width: 560px; }

/* ------------------------------------------------------------------ contact icons */
.cicons { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cicon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.cicon:hover { background: var(--ink); border-color: var(--ink); color: var(--amber); transform: translateY(-1px); }
.cicons--lg .cicon { width: 54px; height: 54px; border-radius: 15px; }
.cicons--lg .cicon .i { width: 23px; height: 23px; }
.site-footer .cicons .cicon { background: transparent; border-color: rgba(255, 255, 255, .18); color: var(--on-dark); }
.site-footer .cicons .cicon:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ------------------------------------------------------------------ inner page head */
.phead { position: relative; background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 0 clamp(32px, 4.5vw, 52px); overflow: hidden; overflow: clip; }
.phead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, rgba(83, 105, 112, .32) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 55%); mask-image: linear-gradient(to left, #000, transparent 55%);
}
.phead__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
.phead--aside .phead__grid { grid-template-columns: minmax(0, 1fr) 340px; }
.phead__title { font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.02em; max-width: 920px; }
.phead__lead { margin: 18px 0 0; max-width: 780px; font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.65; color: #3A4E54; }
.headscan { position: absolute; inset: 0; pointer-events: none; }
.headscan__ruler { position: absolute; top: 18px; bottom: 18px; left: max(8px, calc(50% - var(--wrap) / 2 - var(--gut) - 2px)); color: var(--line-2); }
.headscan__ruler .ruler__focus { display: none; }
.headscan__line {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 179, 61, .9) 20%, rgba(242, 179, 61, .9) 80%, transparent);
  box-shadow: 0 0 12px 1px rgba(242, 179, 61, .45);
}
.m-on .headscan.is-in .headscan__line { animation: headScan 1.5s var(--ease) .1s; }
@keyframes headScan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .84rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.phead .kicker { margin-top: 26px; }

/* ------------------------------------------------------------------ document pages */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
.doc__main { min-width: 0; max-width: 760px; }
.doc--wide .doc__main { max-width: 820px; }
.doc__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; min-width: 0; }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font: 500 .8rem/1.3 var(--mono); margin-bottom: 26px; }
.doc__meta .i { width: 16px; height: 16px; }
.doc__updated { margin: 36px 0 0; font: 500 .78rem/1.3 var(--mono); color: var(--muted); }
.doc__faq { margin-top: 44px; }
.doc__faq > h2 { font-size: 1.5rem; margin-bottom: 18px; }

.practice { padding: 22px 24px 20px; margin-bottom: 30px; background: var(--amber-tint); border: 1px solid #F0DCAF; border-radius: var(--radius); }
.practice__title { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; margin-bottom: 14px; }
.practice__title .badge { background: var(--ink); color: var(--amber); }
.practice ul { list-style: none; display: grid; gap: 10px; }
.practice li { position: relative; padding-left: 22px; line-height: 1.55; }
.practice li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber-d); }

.genchip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: #3A4E54; font: 500 .78rem/1.35 var(--mono); }
.genchip .i { width: 15px; height: 15px; }
.doc--wide .genchip { border-radius: 12px; }

.prose__sec { margin-top: 30px; }
.prose h2, .prose__sec h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 12px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose ul, .prose ol, .prose__sec ul, .prose__sec ol { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose ul > li, .prose__sec ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before, .prose__sec ul > li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.prose ol, .prose__sec ol { counter-reset: n; }
.prose ol > li, .prose__sec ol > li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol > li::before, .prose__sec ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .15em; font: 500 .8rem/1.4 var(--mono); color: var(--amber-ink); }
.prose strong { color: var(--ink); font-weight: 600; }

.t { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .95rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.t th { text-align: left; font: 500 .74rem/1.3 var(--mono); color: var(--muted); background: var(--paper); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.t tr:first-child td { border-top: 0; }
.t .yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #1C6646; }
.t .yes .i { width: 16px; height: 16px; }

.note { padding: 22px 24px; margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.note__title { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; margin-bottom: 12px; }
.note ul:not(.cicons) { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.note ul:not(.cicons) > li { position: relative; padding-left: 22px; }
.note ul:not(.cicons) > li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.note p:last-child { margin-bottom: 0; }
.note__more { margin: 6px 0 0; }
.note--prep { background: #F1F6FB; border-color: #D5E3F1; }
.note--prep .badge { background: var(--white); color: #1C4A84; }
.note--urgent { background: var(--urgent-bg); border-color: #F1CFCB; }
.note--urgent .badge { background: var(--urgent); color: var(--white); }
.note--urgent .note__title { color: var(--urgent); }

.sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; margin-bottom: 12px; }
.sources ul { list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.sources a { display: inline; }
.sources .i { display: inline-block; vertical-align: -3px; width: 15px; height: 15px; margin-left: 6px; }

.examcard { padding: 22px; border-radius: 18px; background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.examcard__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 .8rem/1.2 var(--mono); color: var(--echo); }
.examcard__head .mark { width: 32px; height: 32px; }
.examcard dl { margin: 0 0 18px; display: grid; gap: 0; }
.examcard dl > div { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.examcard dt { font: 500 .72rem/1.2 var(--mono); color: var(--echo); margin-bottom: 5px; }
.examcard dd { margin: 0; color: var(--white); line-height: 1.4; }
.examcard .link-arrow { color: var(--amber); }
.related { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.related__title { margin: 0 0 10px; font: 500 .76rem/1.2 var(--mono); color: var(--muted); }
.related ul { list-style: none; display: grid; gap: 2px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 11px; color: var(--text); text-decoration: none; line-height: 1.3; font-size: .95rem; }
.related a:hover { background: var(--paper); color: var(--ink); }
.related a:hover .badge { background: var(--ink); color: var(--amber); }

/* ------------------------------------------------------------------ hubs */
.hub { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.hub__group + .hub__group { margin-top: clamp(32px, 4vw, 48px); }
.hub__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.hub__title .badge { background: var(--ink); color: var(--amber); }
.hub__note { max-width: 860px; margin: 28px 0 0; color: var(--muted); }
.hub__note .i { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; color: var(--urgent); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .acard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 52px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover, .acard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card .badge, .acard .badge { margin-bottom: 4px; transition: background-color .15s, color .15s; }
.card:hover .badge, .acard:hover .badge { background: var(--ink); color: var(--amber); }
.card__title, .acard__title { font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.card__text, .acard__text { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card__go { position: absolute; left: 22px; bottom: 18px; color: var(--muted); }
.card:hover .card__go, .acard:hover .card__go { color: var(--ink); }
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.acard__meta { font: 500 .74rem/1.2 var(--mono); color: var(--muted); }

/* ------------------------------------------------------------------ about */
.about { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.about__text h2 { font-size: 1.4rem; margin-bottom: 10px; }
.about__text section + section { margin-top: 28px; }
.plainlist { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.about__block { margin-top: clamp(48px, 6vw, 72px); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tile .badge { margin-bottom: 14px; background: var(--ink); color: var(--amber); }
.tile h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.principles li > span:last-child { min-width: 0; padding-top: 4px; }
.about__edu { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.about__edu p { margin: 0; }

/* ------------------------------------------------------------------ timeline */
.timeline { list-style: none; position: relative; padding: clamp(32px, 5vw, 56px) 0 8px; display: grid; gap: 18px; }
.tl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: start; }
.tl__when { padding-top: 14px; font: 500 .9rem/1.2 var(--mono); color: var(--amber-ink); }
.tl__body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.tl__body > div { min-width: 0; }
.tl__body h2 { font-size: 1.18rem; margin-bottom: 6px; }
.tl__body p { margin: 0 0 6px; color: var(--text); }
.tl__body p:last-child { margin-bottom: 0; }
.tl__body .badge { background: var(--ink); color: var(--amber); }
.tl__meta { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted) !important; }
.tl__meta .i { width: 16px; height: 16px; }
.tl--plain .tl__when { color: var(--muted); }

/* ------------------------------------------------------------------ events */
.events { display: grid; gap: 22px; padding-top: clamp(32px, 5vw, 56px); }
.event { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 28px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; align-items: start; }
.event:not(:has(.event__photo)) { grid-template-columns: 220px minmax(0, 1fr); }
.event.event--nodate { grid-template-columns: minmax(0, 1fr); }
.page-pad { padding-bottom: clamp(56px, 8vw, 96px); }
.event__meta { display: grid; gap: 8px; font: 500 .82rem/1.35 var(--mono); color: var(--muted); }
.event__meta p { display: flex; gap: 8px; margin: 0; }
.event__meta .i { width: 16px; height: 16px; margin-top: 1px; color: var(--amber-ink); }
.event__date { color: var(--ink); }
.event__body h2 { font-size: 1.25rem; margin-bottom: 10px; }
.event__src a { font-size: .9rem; }
.event__src .i { display: inline-block; vertical-align: -3px; width: 15px; height: 15px; margin-left: 6px; }
.event__photo { min-width: 0; }

/* ------------------------------------------------------------------ cases page */
.caselist { list-style: none; margin-top: clamp(32px, 5vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.caselist__head, .case { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 14px 20px; align-items: start; }
.caselist__head { font: 500 .74rem/1.2 var(--mono); color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.case + .case { border-top: 1px solid var(--line); }
.case__no { font: 500 .8rem/1.6 var(--mono); color: var(--muted); }
.case__cell { display: flex; gap: 10px; align-items: flex-start; min-width: 0; line-height: 1.5; }
.case__cell .badge { margin-top: -1px; }
.case__find { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ prep page */
.prepkinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: clamp(32px, 5vw, 56px); }
.prepkind { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prepkind .chip { margin-bottom: 12px; }
.prepkind p { margin: 0; color: var(--muted); font-size: .94rem; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; padding-bottom: clamp(48px, 7vw, 88px); }
.t--prep td:first-child { width: 32%; }

/* ------------------------------------------------------------------ FAQ page */
.faqnav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(28px, 4vw, 44px); }
.faqnav a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .93rem; }
.faqnav a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.faqgroup { padding-top: 36px; }
.faqgroup:last-child { padding-bottom: clamp(56px, 8vw, 96px); }
.faqgroup > h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* ------------------------------------------------------------------ booking */
.booking { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
.booking__qr { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.booking__qr img { width: 220px; height: 220px; margin: 14px auto; image-rendering: pixelated; }
.booking__label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 .8rem/1.2 var(--mono); color: var(--muted); }
.booking__hint { margin: 0; color: var(--muted); font-size: .92rem; }
.booking__info .note:first-child { margin-top: 0; }
.booking__info .cicons { margin-top: 14px; }

/* contact */
.p-contact .locator { margin-top: clamp(32px, 5vw, 56px); }
.p-contact .twocol { padding-bottom: 0; }
.p-contact .hub__note { margin-bottom: clamp(56px, 8vw, 96px); }

/* ------------------------------------------------------------------ search */
.searchpage { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); padding: 8px 8px 8px 18px; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; }
.searchpage > .i { color: var(--muted); }
.searchpage input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: 400 1.08rem var(--font); color: var(--ink); }
.iconbtn--go { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search__count { margin: 16px 0 8px; font: 500 .82rem/1.3 var(--mono); color: var(--muted); min-height: 1.3em; }
.results { list-style: none; display: grid; gap: 8px; }
.results a { display: grid; gap: 3px; padding: 14px 16px; border-radius: 13px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.results a:hover, .results a.is-active { border-color: var(--ink); }
.results__kind { font: 500 .7rem/1.2 var(--mono); color: var(--amber-ink); }
.results__title { font-weight: 600; color: var(--ink); }
.results__snip { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.results mark { background: #FFE7B3; color: inherit; border-radius: 3px; padding: 0 1px; }
.search__suggest { margin: 24px 0 clamp(56px, 8vw, 96px); }
.search__suggest p { color: var(--muted); margin-bottom: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; }
.chips a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* legal + sitemap + 404 */
.legal { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); }
.legal h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.smap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.smap__col h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 12px; }
.smap__col ul { list-style: none; display: grid; gap: 8px; }
.smap__col a { color: var(--text); text-decoration: none; }
.smap__col a:hover { color: var(--link); text-decoration: underline; }
.nf { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 12vw, 140px) 0; overflow: hidden; overflow: clip; }
.nf__inner { position: relative; text-align: center; }
.nf__code { margin: 0; font: 500 min(clamp(5rem, 16vw, 9rem), 30vw)/1 var(--mono); color: var(--amber); letter-spacing: .04em; }
.nf h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.nf p { color: var(--echo); }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 24px; }
.nf .link-arrow { color: var(--amber); }
.nf__scan { position: absolute; left: 50%; top: -20px; width: min(520px, 90%); height: calc(100% + 40px); translate: -50% 0; pointer-events: none; }
.nf__scan span { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .7; }
.m-on .nf__scan span { animation: nfScan 3.2s ease-in-out infinite alternate; }
@keyframes nfScan { from { top: 0; } to { top: 100%; } }

/* doppler flow bar (imaging page) */
.flowbar { display: block; position: relative; height: 10px; margin-top: 14px; max-width: 420px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(90deg, var(--dop-b), #7FA2F0 30%, var(--paper-2) 50%, #F09A8C 70%, var(--dop-r)); }
.flowbar span { position: absolute; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); left: -25%; }
.m-on .flowbar.is-in span { animation: flow 2.8s linear infinite; }
@keyframes flow { to { left: 105%; } }
.modes { display: grid; gap: 16px; margin-top: 14px; }
.mode { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.mode .badge { grid-row: span 3; background: var(--ink); color: var(--amber); }
.mode h2 { font-size: 1.2rem; margin: 6px 0 6px; }
.mode p { margin: 0; }
.mode > .escale, .mode > .flowbar { grid-column: 2; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; background: var(--ink); color: var(--echo); padding-top: clamp(48px, 6vw, 72px); }
.footer__scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.footer__scan::after { content: ""; position: absolute; top: 0; left: -20%; width: 18%; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.m-on .footer__scan.is-in::after { animation: flow 3.4s var(--ease) 1; }
.footer__top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 40px; }
.brand--footer { color: var(--white); }
.brand--footer:hover { color: var(--white); }
.brand--footer .brand__role { color: var(--echo); }
.footer__addr { display: flex; gap: 10px; margin: 22px 0 18px; line-height: 1.5; color: var(--on-dark); }
.footer__addr .i { color: var(--amber); margin-top: 2px; }
.footer__vcard { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--on-dark); text-decoration: none; font-weight: 500; }
.footer__vcard .i { color: var(--amber); }
.footer__vcard:hover { color: var(--amber); }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__title { margin: 0 0 14px; font: 500 .76rem/1.2 var(--mono); color: var(--echo); }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.footer__col a:hover { color: var(--amber); }
.footer__note { padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__note p { display: flex; gap: 10px; margin: 0; font-size: .9rem; line-height: 1.55; }
.footer__note .i { color: var(--amber); margin-top: 1px; }
.footer__note strong { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--echo); text-decoration: none; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }
.footer__otx { margin-left: auto !important; }
.footer__otx a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer__otx a:hover { color: var(--amber); }

/* ------------------------------------------------------------------ dialogs */
.dlg { padding: 0; border: 0; color: var(--text); background: var(--white); max-width: none; max-height: none; }
.dlg::backdrop { background: rgba(8, 14, 17, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100%; margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { min-height: 0; overflow-y: auto; padding: 10px 12px; }
.dnav { border-bottom: 1px solid var(--line); }
.dnav summary { display: flex; align-items: center; gap: 12px; padding: 12px 6px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.dnav summary::-webkit-details-marker { display: none; }
.dnav summary > span:not(.badge) { flex: 1; }
.dnav summary > .i { color: var(--muted); transition: transform .2s; }
.dnav[open] summary > .i { transform: rotate(180deg); }
.dnav ul { list-style: none; display: grid; gap: 2px; padding: 0 0 10px 6px; }
.dnav a, .dlink { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 11px; text-decoration: none; color: var(--text); line-height: 1.3; }
.dlink { padding: 12px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.dnav a:hover, .dlink:hover { background: var(--paper); }
.drawer__foot { display: grid; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cta-slot:empty { display: none; }
.cta-slot .cta { display: flex; justify-content: center; width: 100%; height: 52px; }

.searchdlg { position: fixed; top: 9vh; margin: 0 auto; width: min(720px, calc(100% - 24px)); max-height: 80vh; border-radius: 20px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; box-shadow: var(--shadow-lg); }
.searchdlg__form { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.searchdlg__form > .i { color: var(--muted); }
.searchdlg__form input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: 400 1.1rem var(--font); color: var(--ink); }
.searchdlg__body { min-height: 0; overflow-y: auto; padding: 14px 16px 18px; }
.searchdlg__hint p { color: var(--muted); margin-bottom: 10px; }
.searchdlg .results { margin-bottom: 4px; }
.cta-slot--dlg { padding: 0 16px 16px; }

.vcard { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100% - 24px)); height: fit-content; border-radius: 22px; padding: 0; overflow: visible; background: transparent; }
.vcard__close { position: absolute; top: -14px; right: -6px; z-index: 2; box-shadow: var(--shadow); }
.vcard__card { padding: 26px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lg); }
.vcard__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.vcard__name { margin: 0; font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.vcard__role { margin: 0; font: 500 .8rem/1.3 var(--mono); color: var(--muted); }
.vcard__addr { display: flex; gap: 10px; margin-bottom: 18px; line-height: 1.5; }
.vcard__addr .i { color: var(--amber-ink); margin-top: 2px; }
.vcard .cta-slot--dlg { padding: 12px 0 0; }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(5, 9, 11, .94); display: grid; place-items: center; }
.lightbox__fig { margin: 0; padding: 20px; display: grid; gap: 12px; justify-items: center; }
.lightbox__fig img { max-width: min(92vw, 1000px); max-height: 82vh; width: auto; border-radius: 6px; }
.lightbox__fig figcaption { color: var(--echo); font-size: .92rem; text-align: center; max-width: 60ch; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ reveal ("slice acquisition") */
.m-on .rv:not(.is-in) { opacity: 0; }
.m-on .rv.is-in { animation: slice .75s var(--ease) var(--m-d, 0ms) backwards; }
@keyframes slice {
  from { opacity: 0; clip-path: inset(0 0 100% 0); translate: 0 12px; }
  55% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0 0 0 0); translate: 0 0; }
}
.m-done .rv { opacity: 1 !important; animation: none !important; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut .2s ease both; }
  ::view-transition-new(root) { animation: vtIn .42s var(--ease) both; }
  @keyframes vtOut { to { opacity: .4; } }
  @keyframes vtIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1239.98px) {
  .nav { display: none; }
  .iconbtn--menu { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 1099.98px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .event, .event:not(:has(.event__photo)) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .event__photo { max-width: 380px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { position: static; max-width: 520px; }
  .phead--aside .phead__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959.98px) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout:nth-child(3) { border-left: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--line); }
  .entity { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .elasto { grid-template-columns: minmax(0, 1fr); }
  .steps, .reports, .cards { grid-template-columns: minmax(0, 1fr); }
  .steps::before { display: none; }
  .pacs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .prepkinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking__qr { max-width: 420px; }
  .caselist__head { display: none; }
  .case { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .case__cell { grid-column: 2; }
  .case__cell[data-label]::before { content: attr(data-label); display: block; font: 500 .7rem/1.4 var(--mono); color: var(--muted); }
  .case__cell { flex-direction: column; gap: 2px; }
  .case__cell .badge { display: none; }
  .case__no { grid-row: span 3; }
  .t--stack thead { display: none; }
  .t--stack, .t--stack tbody, .t--stack tr, .t--stack td { display: block; width: 100%; }
  .t--stack tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .t--stack tr:first-child { border-top: 0; }
  .t--stack td { border: 0; padding: 4px 0; }
  .t--stack td::before { content: attr(data-label); display: block; font: 500 .7rem/1.4 var(--mono); color: var(--muted); }
  .t--prep td:first-child { width: auto; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header__row { gap: 12px; }
  .brand { gap: 10px; }
  .mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1rem; }
  .brand__role { font-size: .66rem; }
  .site-header .cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; justify-content: center; height: 56px;
    font-size: 1.02rem; box-shadow: 0 10px 30px -10px rgba(15, 26, 31, .55), 0 0 0 1px rgba(15, 26, 31, .08);
  }
  .iconbtn { width: 42px; height: 42px; }
  .hero__readout { flex-direction: column; gap: 4px; }
  .hero__modes { display: none !important; }
  .hphoto__frame { border-radius: 16px; }
  .hphoto__cap .i { display: none; }
  .headscan__ruler { display: none; }
  .wl { grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 4px 14px; padding: 14px 14px; }
  .wl__no { display: none; }
  .wl__badge { grid-row: span 2; align-self: start; width: 36px; height: 36px; }
  .wl__name { grid-column: 2; }
  .wl__prep { grid-column: 2; grid-row: 2; justify-self: start; }
  .wl__go { grid-column: 3; grid-row: 1 / span 2; }
  .locator { grid-template-columns: minmax(0, 1fr); }
  .locator__scope { width: 140px; }
  .tiles, .principles, .articles, .twocol, .prepkinds, .pacs-row--2 { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl__when { padding-top: 0; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__otx { margin-left: 0 !important; }
  .searchdlg { top: 0; width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .doc__aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559.98px) {
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .readout, .readout:nth-child(3) { border-left: 0; padding: 14px 18px 16px; }
  .readout + .readout { border-top: 1px solid var(--line); }
  .pacs-row { grid-template-columns: minmax(0, 1fr); }
  .smap { grid-template-columns: minmax(0, 1fr); }
  .brand__name { white-space: normal; }
  .mode { grid-template-columns: minmax(0, 1fr); }
  .mode .badge { grid-row: auto; }
  .mode > .escale, .mode > .flowbar { grid-column: 1; }
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 379.98px) {
  .brand__role { display: none; }
}
