:root {
  color-scheme: light dark;
  --bg: #f7f9f8;
  --bg-soft: #eef5f3;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-tint: #f3f8f7;
  --text: #142033;
  --muted: #5e6d7d;
  --brand: #12354a;
  --brand-2: #2f6f78;
  --brand-3: #88aeb1;
  --accent: #c4a66a;
  --accent-soft: #f5efe1;
  --line: #d9e4e3;
  --focus: #d9ab42;
  --danger: #9d3d3d;
  --shadow: 0 18px 45px rgb(18 53 74 / 0.12);
  --shadow-soft: 0 10px 26px rgb(18 53 74 / 0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1120px;
  --header-h: 78px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111c;
    --bg-soft: #0d1a27;
    --surface: #111d2b;
    --surface-raised: #172535;
    --surface-tint: #122232;
    --text: #eef5f6;
    --muted: #b7c6ce;
    --brand: #e8f5f7;
    --brand-2: #9cd5dc;
    --brand-3: #6eaab0;
    --accent: #d6bd80;
    --accent-soft: #2b2619;
    --line: #2d4050;
    --shadow: 0 18px 45px rgb(0 0 0 / 0.30);
    --shadow-soft: 0 10px 26px rgb(0 0 0 / 0.22);
  }
}
:root[data-theme="dark"] {
  --bg: #07111c;
  --bg-soft: #0d1a27;
  --surface: #111d2b;
  --surface-raised: #172535;
  --surface-tint: #122232;
  --text: #eef5f6;
  --muted: #b7c6ce;
  --brand: #e8f5f7;
  --brand-2: #9cd5dc;
  --brand-3: #6eaab0;
  --accent: #d6bd80;
  --accent-soft: #2b2619;
  --line: #2d4050;
  --shadow: 0 18px 45px rgb(0 0 0 / 0.30);
  --shadow-soft: 0 10px 26px rgb(0 0 0 / 0.22);
}
:root[data-theme="light"] {
  --bg: #f7f9f8;
  --bg-soft: #eef5f3;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-tint: #f3f8f7;
  --text: #142033;
  --muted: #5e6d7d;
  --brand: #12354a;
  --brand-2: #2f6f78;
  --brand-3: #88aeb1;
  --accent: #c4a66a;
  --accent-soft: #f5efe1;
  --line: #d9e4e3;
  --shadow: 0 18px 45px rgb(18 53 74 / 0.12);
  --shadow-soft: 0 10px 26px rgb(18 53 74 / 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgb(47 111 120 / 0.16), transparent 36%),
    radial-gradient(circle at 88% 4%, rgb(196 166 106 / 0.12), transparent 32%),
    var(--bg);
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}
main { overflow: clip; }
:target { scroll-margin-top: 96px; }
a { color: var(--brand-2); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.narrow { max-width: 840px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--brand); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
.site-header {
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-weight: 860; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgb(18 53 74 / 0.10)); }
.header-main { flex: 1; min-width: 0; }
.nav-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-2); }
.site-search { position: relative; display: flex; align-items: center; gap: 6px; min-width: 210px; }
.site-search input { width: min(32vw, 260px); min-width: 170px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface-raised); color: var(--text); }
.site-search button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface-raised); color: var(--text); font-weight: 820; cursor: pointer; min-height: 44px; }
.site-search button:hover { border-color: var(--brand-3); }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.search-results a, .search-empty { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.search-results a:hover { background: var(--bg-soft); }
.search-results small { display: block; color: var(--muted); margin-top: 2px; }
.language-menu { position: relative; margin-left: 2px; min-width: 0; max-width: 100%; }
.language-button, .language-option { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: var(--surface-raised); color: var(--text); font-weight: 850; text-decoration: none; cursor: pointer; min-height: 44px; max-width: 100%; }
.language-button { white-space: nowrap; }
.language-button:hover { border-color: var(--brand-3); }
.language-code { line-height: 1; }
.language-caret { font-size: .82em; color: var(--muted); }
.language-button img, .language-option img { width: 20px; height: 14px; flex: 0 0 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); object-fit: cover; }
.language-options { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 6px; width: max-content; max-width: min(88vw, 260px); min-width: 164px; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 70; list-style: none; }
.language-option { width: 100%; justify-content: flex-start; border-radius: 12px; display: grid; grid-template-columns: 20px auto; align-items: center; white-space: nowrap; overflow: hidden; }
.language-option small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 720; }
.language-option[aria-current="true"] { background: var(--brand); color: var(--bg); }
.language-option[aria-current="true"] small { color: color-mix(in srgb, var(--bg) 86%, transparent); }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; padding: 8px 11px; background: rgb(255 255 255 / 0.08); color: #fff; font-weight: 800; cursor: pointer; }
.theme-toggle:hover { border-color: rgb(255 255 255 / 0.55); }
.hero { position: relative; padding: 86px 0 66px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), var(--bg-soft)); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 0 56%, rgb(196 166 106 / .10) 56.2% 56.6%, transparent 57%); opacity: .85; }
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: center; }
.eyebrow, .section-kicker { color: var(--brand-2); text-transform: uppercase; letter-spacing: 0.13em; font-weight: 860; font-size: 0.82rem; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; color: var(--brand); }
h1 { font-size: clamp(2.35rem, 5.7vw, 4.7rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin: 0 0 18px; }
h3 { font-size: 1.18rem; margin: 0 0 10px; }
.lead { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--muted); margin: 0 0 28px; }
.hero-actions, .button-row { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; font-weight: 850; text-decoration: none; border: 1px solid transparent; min-height: 44px; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button.primary { color: var(--bg); background: var(--brand); box-shadow: var(--shadow); }
.button.secondary { color: var(--brand); background: var(--surface-raised); border-color: var(--line); }
.button.inverted { color: #12354a; background: #ffffff; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.profile-card, .side-note, .contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.profile-card { position: relative; overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--brand-2), var(--accent)); }
.profile-card h2 { font-size: 1.32rem; margin-top: 16px; }
.ux-medical-card { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-tint) 72%, var(--surface))); }
.section { padding: 70px 0; }
.section.tight { padding-top: 24px; }
.section.alt { background: color-mix(in srgb, var(--bg-soft) 88%, transparent); border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 42px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 190px; box-shadow: var(--shadow-soft); contain: layout paint; }
.card.deep { min-height: 230px; }
.notice { border-left: 4px solid var(--brand-2); padding: 14px 16px; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); }
.position-section h2 { margin-bottom: 10px; }
.position-intro { max-width: 760px; color: var(--muted); margin: 0 0 28px; }
.position-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; align-items: start; }
.position-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); min-height: 216px; overflow: clip; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.position-card:hover, .position-card[open] { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-3) 72%, var(--line)); box-shadow: var(--shadow); }
.position-card summary { list-style: none; cursor: pointer; padding: 22px; min-height: 216px; display: flex; flex-direction: column; gap: 10px; }
.position-card summary::-webkit-details-marker { display: none; }
.position-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.position-card-number { color: var(--accent); font-weight: 900; letter-spacing: .08em; }
.position-card-action { color: var(--muted); font-size: .88rem; font-weight: 780; }
.position-card-action::after { content: "+"; display: inline-grid; place-items: center; margin-left: 8px; width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line); color: var(--brand-2); }
.position-card[open] .position-card-action::after { content: "−"; }
.position-card h3 { margin: 0; }
.position-card-teaser { margin: 0; color: var(--muted); }
.position-card-body { padding: 0 22px 22px; color: var(--muted); animation: uxDetails .18s ease-out; }
.position-card-body p { margin: 0; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #12354a, #2f6f78); color: #fff; border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.callout h2, .callout .section-kicker { color: #fff; }
.callout p { color: rgb(255 255 255 / 0.84); }
.page-title { padding: 68px 0 42px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), var(--bg-soft)); border-bottom: 1px solid var(--line); }
.page-title.notfound { min-height: 52vh; display: flex; align-items: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; align-items: start; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin-top: 34px; }
.prose h2:first-child, .prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose section + section { margin-top: 32px; }
.legal section { padding-block: 4px; }
.cv-download { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; contain: layout paint; }
.check-list { padding-left: 1.2rem; margin: 16px 0 0; }
.check-list li { margin: 0 0 10px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.timeline li { border-left: 4px solid var(--brand-2); background: var(--surface); padding: 16px 18px; border-radius: 0 14px 14px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline strong { display: block; color: var(--brand); margin-bottom: 4px; }
.timeline span { display: block; color: var(--muted); }
.contact-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; contain: layout paint; }
.contact-link { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 850; overflow-wrap: anywhere; }
.small { font-size: 0.92rem; color: var(--muted); }
.site-footer { background: #081927; color: #d8e4e7; padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
.site-footer a { color: #ffffff; }
.site-footer p { margin: 8px 0 0; color: #b8c9d0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@keyframes uxDetails { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes uxPageIn { from { opacity: .001; transform: translateY(6px); filter: blur(1px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (prefers-reduced-motion: no-preference) {
  body.ux-ready main { animation: uxPageIn .22s ease-out both; }
  body.ux-leaving main { opacity: .001; transform: translateY(6px); filter: blur(1px); transition: opacity .14s ease, transform .14s ease, filter .14s ease; }
  [data-reveal] { opacity: .001; transform: translateY(10px); transition: opacity .32s ease, transform .32s ease; }
  [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
}
@supports not (color: color-mix(in srgb, white, black)) {
  .site-header { background: var(--surface); }
  .hero, .page-title, .section.alt { background: var(--bg-soft); }
}
@media (min-width: 1280px) {
  :root { --max: 1180px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 1800px) and (max-height: 1120px) {
  :root { --max: 1220px; }
  .hero { padding: 78px 0 58px; }
  .section { padding: 64px 0; }
}
@media (min-width: 1440px) and (max-height: 920px) {
  .hero { padding: 70px 0 54px; }
  .section { padding: 58px 0; }
  h1 { font-size: clamp(2.4rem, 4.5vw, 4.35rem); }
}
@media (max-width: 1080px) {
  .cards, .cards.three, .position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-search input { width: 210px; }
  .header-inner { gap: 14px; }
  .nav-row { gap: 10px; }
  .site-nav { gap: 12px; }
}
@media (max-width: 920px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .header-main { width: 100%; }
  .nav-row { width: 100%; align-items: stretch; justify-content: flex-start; }
  .site-header { position: static; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; flex-wrap: nowrap; }
  .site-nav a { white-space: nowrap; }
  .language-menu { margin-left: auto; }
  .hero-grid, .two-col, .content-grid, .contact-box, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 64px 0 48px; }
  .page-title { padding: 52px 0 34px; }
  .site-search input { width: min(70vw, 360px); }
}
@media (max-width: 700px) {
  .nav-row { display: grid; grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; order: 1; }
  .site-search { grid-column: 1 / 2; order: 2; min-width: 0; width: 100%; }
  .language-menu { grid-column: 2 / 3; order: 2; align-self: start; }
  .site-search input { width: 100%; min-width: 0; }
  .cards, .cards.three, .position-grid { grid-template-columns: 1fr; gap: 14px; }
  .card, .profile-card, .side-note, .contact-box, .cv-download { padding: 20px; }
  .position-card, .position-card summary { min-height: auto; }
  .position-card summary { padding: 20px; }
}
@media (max-width: 580px) {
  .site-nav { gap: 12px; }
  .hero { padding-top: 56px; }
  .section { padding: 52px 0; }
  .callout { flex-direction: column; align-items: flex-start; padding: 26px; }
  .site-search { width: 100%; }
  .search-results { left: 0; right: auto; }
}
@media (max-width: 440px) {
  .container { width: min(calc(100% - 18px), var(--max)); }
  .brand span { max-width: calc(100vw - 86px); overflow: hidden; text-overflow: ellipsis; }
  h1 { font-size: clamp(2rem, 12.2vw, 3.08rem); }
  h2 { font-size: clamp(1.38rem, 7vw, 2rem); }
  .lead { font-size: 1.06rem; }
  .hero-actions, .button-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .language-button { padding-inline: 10px; }
  .language-button .language-code { max-width: 2.5rem; overflow: hidden; text-overflow: ellipsis; }
  .language-options { right: 0; min-width: 168px; }
  .site-search button { width: 44px; padding-inline: 0; overflow: hidden; text-indent: -999px; position: relative; }
  .site-search button::before { content: "⌕"; position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; font-weight: 900; }
  .footer-grid { gap: 20px; }
}
@media (width: 414px) and (height: 896px),
       (width: 375px) and (height: 812px),
       (width: 393px) and (height: 873px),
       (width: 384px) and (height: 832px),
       (width: 360px) and (height: 800px),
       (width: 360px) and (height: 780px),
       (width: 390px) and (height: 844px) {
  .hero { padding-block: 48px 40px; }
  .section { padding-block: 48px; }
  .profile-card { border-radius: 20px; }
  .position-card summary { gap: 8px; }
}
@media (width: 402px) and (height: 874px),
       (min-width: 390px) and (max-width: 414px) and (min-height: 840px) {
  .hero { padding-top: 52px; }
  .language-options { max-width: calc(100vw - 18px); }
}
@media (max-width: 370px) and (min-height: 740px) {
  .site-nav { gap: 8px; }
  .site-nav a { font-size: .96rem; }
  .eyebrow, .section-kicker { letter-spacing: .10em; }
  .position-card-top { align-items: flex-start; }
}
@media (max-width: 370px) and (max-height: 810px) {
  .hero { padding-block: 42px 34px; }
  .lead { font-size: 1rem; }
  .section { padding-block: 42px; }
  .position-card summary, .position-card-body { padding-inline: 18px; }
}
@media (min-width: 1536px) and (max-width: 1536px) and (min-height: 864px) and (max-height: 864px),
       (min-width: 1920px) and (max-width: 1920px) and (min-height: 1080px) and (max-height: 1080px) {
  .hero-grid { gap: 56px; }
  .position-grid { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .button-row, .site-search, .language-menu { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section, .page-title, .hero { padding: 20px 0; }
}


/* v4.5.2 mobile language selector hotfix
   Converts the language selector to a touch-safe fixed sheet on narrow/coarse-pointer devices. */
.language-menu {
  z-index: 140;
  isolation: isolate;
}
.language-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.language-button[aria-expanded="true"] {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-3) 22%, transparent);
}
.language-button[aria-expanded="true"] .language-caret {
  transform: rotate(180deg);
}
.language-caret {
  transition: transform .16s ease;
}
.language-options {
  pointer-events: auto;
}
.language-option {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .site-header {
    z-index: 360;
    overflow: visible;
  }
  .header-inner,
  .header-main,
  .nav-row,
  .language-menu {
    overflow: visible;
  }
  .nav-row {
    grid-template-columns: minmax(0, 1fr) 54px;
  }
  .language-menu {
    justify-self: end;
    align-self: start;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    z-index: 380;
  }
  .language-button {
    width: 54px;
    min-width: 54px;
    min-height: 46px;
    justify-content: center;
    padding-inline: 8px;
    border-radius: 999px;
  }
  .language-button .language-code,
  .language-button .language-caret {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .language-button img {
    width: 24px;
    height: 16px;
    flex-basis: 24px;
  }
  .language-options:not([hidden]) {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    z-index: 9999;
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.24);
  }
  .language-option {
    min-height: 56px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    white-space: normal;
  }
  .language-option img {
    width: 28px;
    height: 19px;
    flex-basis: 28px;
  }
  .language-option strong,
  .language-option small {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .language-option small {
    font-size: .9rem;
  }
  .search-results {
    z-index: 300;
  }
}

@media (max-width: 380px) {
  .language-menu,
  .language-button {
    width: 50px;
    min-width: 50px;
  }
  .nav-row {
    grid-template-columns: minmax(0, 1fr) 50px;
  }
}


/* v4.5.3 language selector modal
   The language choice is now a centered modal, independent from header flow. */
.language-menu {
  z-index: 180;
}
.language-button img[src$="/us.svg"],
.language-option img[src$="/us.svg"] {
  width: 30px;
  height: 16px;
  flex-basis: 30px;
  aspect-ratio: 1.9 / 1;
  object-fit: contain;
  background: #ffffff;
}
.language-button img[src$="/us.svg"] {
  width: 32px;
  height: 17px;
  flex-basis: 32px;
}
.language-modal-backdrop[hidden] {
  display: none !important;
}
.language-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(7 15 28 / 0.54);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}
.language-modal {
  width: min(92vw, 420px);
  max-height: min(82dvh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgb(0 0 0 / 0.34);
  padding: 18px;
  transform-origin: center;
  animation: language-modal-in .18s ease-out;
}
@keyframes language-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.language-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}
.language-modal-title {
  margin: 0;
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.language-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.language-modal-close:hover {
  border-color: var(--brand-3);
}
.language-modal .language-options,
.language-modal .language-options:not([hidden]) {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
}
.language-modal .language-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  white-space: normal;
  overflow: visible;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.language-modal .language-option:hover {
  border-color: var(--brand-3);
  background: color-mix(in srgb, var(--bg-soft) 76%, var(--surface));
}
.language-modal .language-option[aria-current="true"] {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.language-modal .language-option[aria-current="true"] small {
  color: color-mix(in srgb, var(--bg) 86%, transparent);
}
.language-modal .language-option img {
  width: 28px;
  height: 19px;
  flex-basis: 28px;
  border-radius: 3px;
  object-fit: cover;
}
.language-modal .language-option img[src$="/us.svg"] {
  width: 34px;
  height: 18px;
  flex-basis: 34px;
  object-fit: contain;
}
.language-modal .language-option strong,
.language-modal .language-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.language-modal .language-option strong {
  font-size: 1rem;
  line-height: 1.15;
}
.language-modal .language-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 720;
}
body.language-modal-lock {
  overflow: hidden;
}
@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .language-modal-backdrop {
    place-items: center;
    padding-inline: max(18px, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .language-modal {
    width: min(91vw, 380px);
    max-height: min(78dvh, 520px);
    padding: 16px;
    border-radius: 26px;
  }
  .language-modal .language-option {
    min-height: 64px;
    padding: 13px 14px;
  }
}
@media (max-width: 380px) {
  .language-modal {
    width: min(94vw, 350px);
    padding: 14px;
  }
  .language-modal .language-option {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-modal {
    animation: none;
  }
}

/* v4.6 privacy, consent and legal-content components */
body.consent-banner-visible {
  padding-bottom: 230px;
}
.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 11000;
  max-height: min(72dvh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgb(7 15 28 / 0.2);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}
.consent-banner-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.consent-banner-copy {
  max-width: 760px;
}
.consent-banner-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  letter-spacing: -0.025em;
}
.consent-banner-copy p,
.consent-settings-intro,
.consent-choice-description {
  margin: 0;
  color: var(--muted);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.consent-button,
.cookie-settings-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.consent-button-primary {
  color: var(--bg);
  background: var(--brand);
  border-color: var(--brand);
}
.consent-button-secondary {
  color: var(--brand);
  background: var(--surface-raised);
  border-color: var(--line);
}
.consent-button-tertiary {
  color: var(--brand-2);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.consent-button:hover,
.cookie-settings-button:hover {
  border-color: var(--brand-3);
  box-shadow: var(--shadow-soft);
}
.cookie-settings-button {
  color: #ffffff;
  background: transparent;
  border-color: rgb(255 255 255 / 0.48);
}
.consent-modal-backdrop[hidden] {
  display: none !important;
}
.consent-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(7 15 28 / 0.62);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}
.consent-modal {
  width: min(94vw, 680px);
  max-height: min(88dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgb(0 0 0 / 0.38);
}
.consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.consent-modal-header h2 {
  margin: 0;
}
.consent-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-raised);
  font-size: 1.35rem;
  cursor: pointer;
}
.consent-choices {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.consent-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.consent-choice-title {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
}
.consent-choice-description {
  font-size: 0.94rem;
}
.consent-toggle {
  width: 48px;
  height: 28px;
  min-width: 48px;
  accent-color: var(--brand-2);
  cursor: pointer;
}
.consent-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.consent-modal-actions {
  justify-content: flex-start;
}
body.consent-modal-lock {
  overflow: hidden;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
}
.legal-meta strong {
  color: var(--text);
}
.legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
}
.legal-table th,
.legal-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  color: var(--brand);
  background: var(--bg-soft);
  font-size: 0.92rem;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-callout {
  padding: 18px;
  margin: 20px 0;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  border-radius: 0 14px 14px 0;
}
.legal-callout p:last-child {
  margin-bottom: 0;
}
@media (max-width: 920px) {
  body.consent-banner-visible {
    padding-bottom: 330px;
  }
  .consent-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .consent-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 580px) {
  body.consent-banner-visible {
    padding-bottom: 430px;
  }
  .consent-banner {
    padding-top: 15px;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .consent-button {
    width: 100%;
  }
  .consent-button-tertiary {
    grid-column: 1 / -1;
  }
  .consent-modal {
    padding: 18px;
    border-radius: 24px;
  }
  .consent-choice {
    gap: 14px;
    padding: 15px;
  }
  .consent-modal-actions {
    grid-template-columns: 1fr;
  }
  .consent-modal-actions .consent-button {
    grid-column: 1;
  }
}
@media (max-width: 370px) {
  body.consent-banner-visible {
    padding-bottom: 500px;
  }
  .consent-actions {
    grid-template-columns: 1fr;
  }
  .consent-button-tertiary {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-modal,
  .consent-banner {
    scroll-behavior: auto;
  }
}
@media print {
  .consent-banner,
  .consent-modal-backdrop,
  .cookie-settings-button {
    display: none !important;
  }
  body.consent-banner-visible {
    padding-bottom: 0;
  }
}
