/* ==========================================================================
   VšĮ Ignalinos rajono savivaldybės sveikatos centras — redesign
   Swiss/civic editorial system: hairlines, numbered indices, mono labels.
   ========================================================================== */

:root {
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --white: #fffffc;
  --ink: #0f1a14;
  --ink-2: #47524b;
  --ink-3: #6d776f;
  --line: #d6d5cc;
  --line-2: #c3c2b8;
  --forest: #0c3a22;
  --forest-2: #134a2d;
  --green: #1b7a36;
  --green-ink: #145c29;
  --lime: #b4d84c;
  --lime-2: #d9ec9f;
  --red: #c3361f;

  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: var(--font);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 76px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.fs-lg { font-size: 112.5%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-ink);
  margin: 0 0 .9rem;
}
.eyebrow-light { color: var(--lime); }
.ico { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .7em 1.25em;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  text-decoration: none; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--green); }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #c8e46c; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.header-actions .btn { white-space: nowrap; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover .ico { transform: translateX(3px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r); transition: background .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn-line { border: 1px solid var(--line-2); }

/* Top bar ---------------------------------------------------------------- */
.topbar { background: var(--forest); color: rgba(255,255,255,.86); font-size: .8125rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { text-decoration: underline; }
.status { display: flex; align-items: center; gap: .55rem; margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .01em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open .dot { background: var(--lime); }
.topbar-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar-links span { color: rgba(255,255,255,.55); margin-right: .25rem; }
.topbar-links a { font-family: var(--mono); font-size: .78rem; }
.emergency a { color: #fff; background: var(--red); padding: .1rem .45rem; border-radius: 2px; font-weight: 500; }
.fs button { font-weight: 700; font-size: .8rem; color: #fff; padding: .2rem .45rem; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; }
.fs button span { font-size: 1.05em; margin-left: 1px; }
.fs button[aria-pressed="true"] { background: var(--lime); color: var(--forest); border-color: var(--lime); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,239,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top { font-size: .72rem; font-weight: 500; color: var(--ink-2); letter-spacing: .005em; }
.brand-main { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.nav { margin-left: auto; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  height: var(--header-h); padding: 0 .7rem;
  font-size: .9rem; font-weight: 500; text-decoration: none; letter-spacing: -.005em;
  position: relative; white-space: nowrap;
}
.nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-item:hover .nav-link::after, .nav-item.is-current .nav-link::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(15,26,20,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mega-in { display: grid; grid-template-columns: minmax(220px, 1fr) 2.6fr; gap: 3rem; padding-top: 2.5rem; padding-bottom: 2.75rem; }
.mega-lead { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; margin: 0 0 1.5rem; max-width: 30ch; }
.mega-links { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 2rem; }
.mega-links li { break-inside: avoid; border-top: 1px solid var(--line); }
.mega-links a { display: block; padding: .6rem 0; font-size: .92rem; text-decoration: none; line-height: 1.3; transition: color .2s, padding .3s var(--ease); }
.mega-links a:hover, .mega-links a[aria-current] { color: var(--green); padding-left: .35rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.burger { display: none; flex-direction: column; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(245,244,239,.97); backdrop-filter: blur(6px); padding-top: 18vh; }
.search-overlay .wrap { position: relative; max-width: 960px; }
.search-close { position: absolute; right: var(--gutter); top: -4rem; }
.search-row { display: flex; gap: .75rem; border-bottom: 2px solid var(--ink); padding-bottom: .75rem; }
.search-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: clamp(1.4rem, 3.5vw, 2.5rem); letter-spacing: -.02em; outline: none; color: var(--ink); }
.search-hints { margin-top: 1.25rem; color: var(--ink-3); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.search-hints a { color: var(--ink); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: calc(var(--header-h) + 40px) 0 0; z-index: 45; background: var(--paper); overflow-y: auto; padding: 1rem 0 3rem; }
.m-sec { border-bottom: 1px solid var(--line); }
.m-sec summary, .m-link { display: flex; align-items: baseline; gap: .9rem; padding: 1.05rem 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; list-style: none; cursor: pointer; text-decoration: none; }
.m-sec summary::-webkit-details-marker { display: none; }
.m-num { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); font-weight: 400; }
.m-sec ul { list-style: none; margin: 0 0 1rem; padding: 0 0 0 2.1rem; }
.m-sec li a { display: block; padding: .45rem 0; text-decoration: none; color: var(--ink-2); }
.m-contacts { display: grid; gap: .6rem; margin-top: 2rem; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: clamp(3rem, 8vw, 7.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  line-height: .94; letter-spacing: -.045em; font-weight: 700;
  margin: 0 0 1.75rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--green); }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { to { transform: none; } }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0; letter-spacing: -.01em; }
.hero-panel { background: var(--forest); color: #fff; padding: 1.75rem; border-radius: var(--r); }
.panel-phone { display: block; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none; line-height: 1.1; }
.panel-phone:hover { color: var(--lime); }
.panel-note { color: rgba(255,255,255,.65); font-size: .88rem; margin: .5rem 0 1.4rem; }
.panel-list { margin: 1.4rem 0 0; }
.panel-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
.panel-list dt { color: rgba(255,255,255,.7); }
.panel-list dd { margin: 0; font-family: var(--mono); }
.panel-list a { text-decoration: none; }
.panel-list .urgent dd a { background: var(--red); padding: .1rem .5rem; border-radius: 2px; font-weight: 500; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts li { border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts li > span, .facts li > a { display: flex; flex-direction: column; gap: .15rem; }
.facts li, .facts li > a { padding: 1.35rem 1.25rem 1.5rem; }
.facts li:has(> a) { padding: 0; }
.facts li > a { text-decoration: none; height: 100%; transition: background .25s; }
.facts li > a:hover { background: var(--paper-2); }
.facts li:first-child, .facts li:first-child > a { padding-left: 0; }
.fact-k { font-family: var(--mono); font-size: .72rem;   color: var(--ink-3); }
.fact-v { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.fact-s { font-size: .86rem; color: var(--ink-2); display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .5rem; flex-wrap: wrap; }
.badge:empty { display: none; }
.badge { font-family: var(--mono); font-size: .68rem;   padding: .1rem .4rem; border-radius: 2px; background: var(--paper-2); color: var(--ink-2); }
.badge.is-open { background: var(--lime-2); color: var(--forest); }

/* Notice */
.notice-band { background: #e9f1d2; border-top: 1px solid #d3e0ad; border-bottom: 1px solid #d3e0ad; }
.notice-in { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; padding-top: clamp(2.5rem, 4.5vw, 3.75rem); padding-bottom: clamp(2.5rem, 4.5vw, 3.75rem); }
.notice-tag { margin: 0; font-weight: 700; font-size: .95rem; color: var(--forest); padding-top: .15rem; }
.notice-body p { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink); max-width: 78ch; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-body p:first-child { font-weight: 600; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section + .section:not(.section-dark):not(.section-tint):not(.contact-band) { border-top: 1px solid var(--line); }
.section-dark { background: var(--forest); color: #fff; }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 860px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
.h-section { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 0; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin: 1.25rem 0 0; }

/* Index list */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); counter-reset: none; }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.index-list a {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1rem;
  padding: 1.4rem .25rem; text-decoration: none; overflow: hidden; isolation: isolate;
}
.index-list a::before { content: ""; position: absolute; inset: 0; background: var(--lime); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.index-list a:hover::before, .index-list a:focus-visible::before { transform: none; }
.idx { display: none; }
.idx-title { font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.idx-sub { grid-column: 1; font-size: .9rem; color: var(--ink-2); margin-top: .2rem; }
.index-list .ico { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 1.5rem; height: 1.5rem; }
.index-list a:hover .ico { transform: translateX(4px); }

/* About (dark) */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 7rem); }
.about-head .h-section { margin-bottom: 2rem; max-width: 12ch; }
.about-body p { font-size: 1.12rem; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 1.25rem; }
.about-body p:first-child { font-size: 1.35rem; line-height: 1.45; color: #fff; letter-spacing: -.01em; }
.about-points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.18); }
.about-points li { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .95rem; color: rgba(255,255,255,.85); display: flex; flex-direction: column; gap: .5rem; }
.about-points li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.about-points li:nth-child(even) { padding-left: 1.25rem; }


/* News on home */
.news-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.news-lead a { text-decoration: none; display: flex; flex-direction: column; min-height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s; }
.news-lead a:hover { border-color: var(--ink); }
.nl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.nl-day { font-size: clamp(3rem, 6vw, 5rem); line-height: .9; letter-spacing: -.06em; color: var(--green); font-weight: 400; }
.news-lead .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 1.5rem; border: 0; }
.news-lead .link-arrow { text-decoration: underline; text-underline-offset: .3em; }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); margin-bottom: 1.25rem; border-radius: var(--r); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-lead a:hover img { transform: scale(1.03); }
.news-lead h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1rem; max-width: 18ch; }
.news-lead a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.news-ex { color: var(--ink-2); margin: 0; }
.meta { font-family: var(--mono); font-size: .75rem; color: var(--ink-3);   margin: 0; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.2rem 0; text-decoration: none; }
.news-list time { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.news-list h3 { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.news-list a:hover h3 { color: var(--green); }
.news-list a:hover .ico { transform: translateX(4px); }

/* Branches */
.branches { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.table-list { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 2rem; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.tl-head { font-family: var(--mono); font-size: .7rem;   color: var(--ink-3); padding: .7rem 0; }
.tl-name { font-weight: 600; text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.tl-name:hover { color: var(--green); }
.tl-row a.mono { text-decoration: none; }
.tl-go { justify-self: end; }
.tl-row:hover .tl-go .ico { transform: translateX(4px); }

/* Quotes */
.q-ctrl { display: flex; align-items: center; gap: .5rem; }
.q-count { margin-right: .75rem; color: var(--ink-3); }
.q-item { margin: 0; display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(1.5rem, 5vw, 5rem); animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.q-title { font-family: var(--mono); font-size: .8rem;   color: var(--green); margin: .6rem 0 0; }
.q-item blockquote { margin: 0; }
.q-item blockquote p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.42; letter-spacing: -.015em; margin: 0 0 1rem; max-width: 52ch; }
.q-item blockquote p:first-child::before { content: "„"; }
.q-item blockquote p:last-child::after { content: "“"; }
.q-item figcaption { grid-column: 2; font-weight: 600; margin-top: -.25rem; }
.q-item figcaption::before { content: "— "; color: var(--ink-3); }

/* External links */
.ext-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ext-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ext-grid a, .ext-schemes > div { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 170px; padding: 1.25rem; text-decoration: none; height: 100%; transition: background .25s; }
.ext-grid li > a:hover { background: var(--white); }
.ext-host { color: var(--ink-3); font-size: .74rem; }
.ext-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; padding-right: 1.5rem; }
.ext-grid .ico { position: absolute; right: 1.1rem; bottom: 1.25rem; width: 1.3rem; height: 1.3rem; }
.ext-grid a:hover .ico-ext { transform: translate(2px, -2px); }
.ext-langs { display: flex; gap: .4rem; }
.ext-langs a { display: inline-grid; place-items: center; min-height: 0; width: 48px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); font-family: var(--mono); font-size: .85rem; font-weight: 500; gap: 0; }
.ext-langs a:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Contact band */
.contact-band { background: var(--paper-2); padding: clamp(3rem, 6vw, 5rem) 0; }
.contact-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.contact-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: .92rem; padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .eyebrow { color: rgba(255,255,255,.45); margin-bottom: .75rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.mark-lg { width: 56px; height: 56px; }
.footer-name { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.footer-cta { text-align: right; }
.footer-phone { display: block; font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin-bottom: .75rem; }
.site-footer .footer-phone:hover { text-decoration: none; color: var(--lime); }
.site-footer .link-arrow { border-color: rgba(255,255,255,.35); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.5rem 0; }
.footer-grid p { margin: 0; line-height: 1.65; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.footer-eu { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-eu img { background: #fff; padding: 6px 8px; border-radius: 2px; width: 180px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.75); }

/* Page header ------------------------------------------------------------ */
.page-head { border-bottom: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2rem, 4vw, 3rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 clamp(1.75rem, 4vw, 3rem); padding: 0; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.page-title { font-size: clamp(2.1rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; margin: 0; max-width: 20ch; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.page-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 58ch; margin: 1.25rem 0 0; line-height: 1.45; }
.page-meta { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.75rem; font-family: var(--mono); font-size: .75rem; color: var(--ink-3);   }
.print-btn { font-family: var(--mono); font-size: .75rem;   color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.print-btn:hover { color: var(--ink); border-color: var(--ink); }

.page-body { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.page-body.no-side { grid-template-columns: minmax(0, 1fr); }
.page-body.no-side .prose { max-width: 900px; }
.side { position: relative; }
.side-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.side-nav summary { list-style: none; cursor: default; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); margin: 0; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - var(--header-h) - 6rem); overflow-y: auto; }
.side-nav li { border-bottom: 1px solid var(--line); }
.side-nav a { display: block; padding: .6rem 0 .6rem .9rem; font-size: .88rem; line-height: 1.3; text-decoration: none; color: var(--ink-2); position: relative; transition: color .2s; }
.side-nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--line-2); transition: background .2s; }
.side-nav a:hover { color: var(--ink); }
.side-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.side-nav a[aria-current]::before { background: var(--green); width: 6px; height: 6px; }
.back { font-size: .9rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* Prose ------------------------------------------------------------------ */
.prose { min-width: 0; max-width: 820px; font-size: 1.04rem; line-height: 1.68; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { line-height: 1.15; letter-spacing: -.02em; margin: 2.2em 0 .7em; font-weight: 700; text-wrap: balance; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.prose h4 { font-size: 1.15rem; }
.prose h5, .prose h6 { font-size: 1rem; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }
.prose a { color: var(--green-ink); text-decoration-color: rgba(20,92,41,.35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.ext::after { content: "↗"; font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 650; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 2rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--lime); color: var(--ink-2); }
.prose iframe { width: 100%; border: 0; }
.empty-note { color: var(--ink-3); font-family: var(--mono); font-size: .9rem; padding: 1.5rem; border: 1px dashed var(--line-2); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-top: 1px solid var(--ink); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: .72rem; font-weight: 500;   color: var(--ink-3); white-space: nowrap; }
.prose td p { margin: 0 0 .25em; }
.prose td p:last-child { margin: 0; }
.prose td strong { font-weight: 600; }
.prose tbody tr:hover td { background: rgba(255,255,255,.55); }

/* file lists */
.prose ul.files { list-style: none; padding: 0; margin: 1.25rem 0 2rem; border-top: 1px solid var(--ink); }
.prose ul.files li { margin: 0; border-bottom: 1px solid var(--line); }
.prose a.file { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem .25rem; text-decoration: none; color: var(--ink); line-height: 1.35; transition: background .2s; }
.prose a.file:hover { background: var(--white); }
.prose a.file::before { content: attr(data-ext); font-family: var(--mono); font-size: .66rem; font-weight: 500;   text-align: center; padding: .3rem 0; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); }
.prose a.file[data-ext="pdf"]::before { border-color: rgba(195,54,31,.35); color: var(--red); }
.prose a.file[data-ext^="doc"]::before { border-color: rgba(35,90,170,.35); color: #2a5aa8; }
.prose a.file[data-ext^="xls"]::before { border-color: rgba(27,122,54,.4); color: var(--green); }
.prose a.file::after { content: "↓"; font-family: var(--mono); color: var(--ink-3); transition: transform .3s var(--ease); }
.prose a.file:hover::after { transform: translateY(2px); color: var(--ink); }
.prose a[data-ext]:not(.file)::after { content: " " attr(data-ext); font-family: var(--mono); font-size: .68em;   color: var(--ink-3); }

/* buttons in content */
.prose .btn-row { margin: 0; }
.prose .btn-row + .btn-row { margin-top: -1px; }
.prose a.btn-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.prose a.btn-link::after { content: "→"; font-family: var(--mono); transition: transform .3s var(--ease); }
.prose a.btn-link:hover { color: var(--green); }
.prose a.btn-link:hover::after { transform: translateX(4px); }
.prose .btn-row:last-of-type { margin-bottom: 2rem; }

/* doctor / contact cards */
.prose .card { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); padding: 1.25rem 1.4rem .4rem; margin: 0 0 1rem; }
.prose .card .table-wrap { border-top-color: var(--line-2); margin: 1rem 0 1rem; }
.prose .card hr { display: none; }
.prose .card-head { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.prose .card-head > strong:first-child { display: block; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; margin-bottom: .2rem; }
.prose .card td, .prose .card td strong { font-family: var(--mono); font-size: .82rem; font-weight: 400; }
.prose .card td { white-space: nowrap; }
.prose p.vacation { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .78rem; padding: .3rem .6rem; margin: .25rem 0 0; background: #fbecd9; color: #7a4310; border-radius: 2px; }
.prose p.vacation::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9832b; }

/* tabs */
.tabs { margin: 2rem 0 2.5rem; }
.tabs-list { display: none; }
.js .tabs-list { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line-2); margin-bottom: 1.5rem; scrollbar-width: thin; }
.tab { flex: none; padding: .85rem 1.1rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: left; max-width: 28ch; line-height: 1.3; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--forest); font-weight: 600; }
.js .tab-panel[hidden] { display: none; }
.js .tab-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-panel { animation: fade .4s var(--ease); }

/* accordion */
.accordion { border-top: 1px solid var(--ink); margin: 1.5rem 0 2.5rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc-title { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.35; }
.acc-title::-webkit-details-marker { display: none; }
.acc-title::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); flex: none; }
.acc[open] .acc-title::after { transform: rotate(45deg); }
.acc-title:hover { color: var(--green); }
.acc-body { padding: 0 0 1.25rem; color: var(--ink-2); }

/* media */
.prose .map { aspect-ratio: 16 / 8; margin: 1.5rem 0 2rem; border-radius: var(--r); overflow: hidden; background: var(--paper-2); filter: grayscale(.4) contrast(1.05); }
.prose .map iframe, .prose .embed iframe { width: 100%; height: 100%; }
.prose .embed { aspect-ratio: 16 / 9; margin: 1.5rem 0; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.prose video { width: 100%; background: var(--ink); border-radius: var(--r); }
.prose .media-video { margin: 1.5rem 0; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.prose .gallery figure { margin: 0; }
.post-hero { margin: 0 0 2rem !important; }

/* form */
.form { margin-top: 2rem; padding: 1.75rem; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--r); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; }
.form label span { color: var(--red); }
.form .full { grid-column: 1 / -1; }
.form input[type=text], .form input[type=email], .form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .75rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.form .check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; margin-bottom: 1.25rem; }
.form-note { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin: 1rem 0 0; }

/* Hub list --------------------------------------------------------------- */
.hub-list { list-style: none; margin: 0; padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 4rem); }
.hub-list li { border-bottom: 1px solid var(--line); }
.hub-list li:nth-child(-n+2) { border-top: 1px solid var(--ink); }
.hub-list a { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 1.4rem .25rem 1.5rem; text-decoration: none; transition: background .25s; }
.hub-list a:hover { background: var(--white); }
.hub-title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.hub-ex { grid-column: 1; font-size: .9rem; color: var(--ink-2); margin-top: .4rem; line-height: 1.45; }
.hub-list .ico { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 1.4rem; height: 1.4rem; }
.hub-list a:hover .ico { transform: translateX(4px); }
.hub-intro { border-top: 1px solid var(--line); }

/* News archive */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: 2rem 0 1rem; }
.chip { padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 500; transition: all .2s; }
.chip span { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-left: .25rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.6); }
.news-archive { list-style: none; margin: 0; padding: 0 0 6rem; }
.news-archive .year { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); padding: 2.5rem 0 .75rem; border-bottom: 1px solid var(--ink); }
.news-row { border-bottom: 1px solid var(--line); }
.news-row a { display: grid; grid-template-columns: 8rem 1fr 168px; gap: 1.5rem; padding: 1.4rem 0; text-decoration: none; align-items: start; }
.news-row time { color: var(--ink-3); font-size: .8rem; padding-top: .3rem; }
.nr-main { display: flex; flex-direction: column; gap: .3rem; }
.nr-cat { font-family: var(--mono); font-size: .7rem;   color: var(--green); }
.nr-title { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.nr-ex { font-size: .92rem; color: var(--ink-2); max-width: 70ch; }
.news-row a:hover .nr-title { text-decoration: underline; text-decoration-thickness: 1.5px; }
.nr-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.nr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-row a:hover .nr-img img { transform: scale(1.04); }
.nr-img-empty { display: grid; place-items: center; background: var(--paper-2); }
.nr-img-empty .mark { width: 34px; height: 34px; opacity: .35; filter: grayscale(.3); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; margin-bottom: 5rem; }
.pn { background: var(--paper); padding: 1.75rem var(--gutter); text-decoration: none; display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; transition: background .2s; }
.pn:hover { background: var(--white); }
.pn .eyebrow { margin: 0; }
.pn-next { text-align: right; }

/* Sitemap & search */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; padding-top: 3rem; padding-bottom: 6rem; }
.sitemap h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); display: flex; gap: .75rem; align-items: baseline; }
.sitemap h2 a { text-decoration: none; }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li a { display: block; padding: .4rem 0; font-size: .92rem; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sitemap li a:hover { color: var(--green); }
.search-page { padding-top: 2.5rem; padding-bottom: 6rem; max-width: 960px; margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.search-count { color: var(--ink-3); margin: 1.5rem 0; }
.search-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: 1.25rem 0; text-decoration: none; }
.search-results .sr-sec { font-family: var(--mono); font-size: .7rem;  color: var(--green);  }
.search-results .sr-t { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin: .2rem 0 .35rem; }
.search-results .sr-x { color: var(--ink-2); font-size: .92rem; }
.search-results mark { background: var(--lime-2); color: inherit; padding: 0 .1em; }
.search-results a:hover .sr-t { text-decoration: underline; }
.notfound { padding-top: 6rem; padding-bottom: 8rem; }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-link { padding: 0 .5rem; font-size: .86rem; }
  .nav-link::after { left: .5rem; right: .5rem; }
  .hide-md { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(3), .facts li:nth-child(3) > a { padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .branches, .news-grid { grid-template-columns: 1fr; }
  .ext-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .side-nav { position: static; }
  .side-nav:not([open]) summary, .side-nav summary { cursor: pointer; display: flex; justify-content: space-between; }
  .side-nav summary::after { content: "+"; font-size: 1rem; }
  .side-nav[open] summary::after { content: "–"; }
  .side-nav ul { max-height: none; }
  .back { position: static; }
  .index-list, .hub-list { grid-template-columns: 1fr; }
  .index-list li:nth-last-child(2) { border-bottom: 0; }
  .hub-list li:nth-child(2) { border-top: 0; }
  .q-item { grid-template-columns: 1fr; gap: 1rem; }
  .q-item figcaption { grid-column: 1; }
  .news-row a { grid-template-columns: 1fr 96px; gap: .5rem 1rem; }
  .news-row time { grid-column: 1 / -1; padding: 0; }
  .notice-in { grid-template-columns: 1fr; gap: .5rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hide-sm, .topbar-links li > span, .status { display: none; }
  .topbar-in { justify-content: flex-end; }
  .topbar-links li.emergency span { display: inline; }
  .topbar-links { gap: .9rem; }
  .status { font-size: .68rem; }
  .brand-top { font-size: .64rem; }
  .brand-main { font-size: 1rem; }
  .mark { width: 32px; height: 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  .facts li, .facts li > a { padding-left: 0 !important; }
  .about-points { grid-template-columns: 1fr; }
  .about-points li:nth-child(odd) { border-right: 0; }
  .about-points li:nth-child(even) { padding-left: 0; }
  .tl-row { grid-template-columns: 1fr auto; row-gap: .15rem; }
  .tl-row > span[role=cell] { grid-column: 1; font-size: .88rem; color: var(--ink-2); }
  .tl-row > a.mono { grid-column: 1; }
  .tl-go { grid-row: 1 / 4; grid-column: 2; }
  .tl-head { display: none; }
  .ext-grid { grid-template-columns: 1fr; }
  .ext-grid a, .ext-schemes > div { min-height: 120px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta { text-align: left; }
  .footer-eu { flex-direction: column; align-items: flex-start; }
  .sitemap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .news-list a { grid-template-columns: 1fr auto; }
  .news-list time { grid-column: 1 / -1; }
  .prose .card { padding: 1rem 1rem .25rem; }
  .prose .card thead { display: none; }
  .prose .card table, .prose .card tbody, .prose .card tr { display: block; }
  .prose .card td[data-label] { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; white-space: normal; }
  .prose .card td[data-label]::before { content: attr(data-label); font-family: var(--mono); font-size: .7rem;   color: var(--ink-3); padding-top: .15rem; }
  .prose .card td[data-label] p { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .site-header, .site-footer, .side, .post-nav, .page-meta button, .crumbs { display: none !important; }
  body { background: #fff; }
  .page-body { display: block; padding: 0; }
  .js .tab-panel[hidden] { display: block !important; }
  .js .tab-panel-title { position: static; width: auto; height: auto; clip: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Typography & rhythm: serif headings, plain sans labels, roomier spacing
   ========================================================================== */
body { font-size: 1.0625rem; line-height: 1.6; }
.hero-title, .h-section, .page-title, .prose h2, .prose h3, .news-lead h3, .footer-name,
.mega-title, .sitemap h2, .acc-title, .q-item blockquote p, .m-sec summary, .m-link {
  font-family: var(--serif);
  font-optical-sizing: auto;
}
.hero-title { font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 600; margin-bottom: 2rem; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 600; }
.page-title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 600; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.01em; font-weight: 600; }
.prose h3 { font-weight: 600; letter-spacing: -.005em; }
.prose h4, .prose h5, .prose h6 { letter-spacing: 0; }
.news-lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; font-weight: 600; margin: .75rem 0 1rem; }
.footer-name { font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.acc-title { font-size: 1.15rem; font-weight: 600; }
.q-item blockquote p { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.5; letter-spacing: 0; }
.m-sec summary, .m-link { font-weight: 600; letter-spacing: -.01em; }
.mega-title { font-size: 1.6rem; font-weight: 600; margin: 0 0 .75rem; }
.mega-lead { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.brand-main { letter-spacing: -.01em; }
.idx-title, .hub-title, .nr-title, .tl-name, .ext-title, .fact-v, .panel-phone, .footer-phone { letter-spacing: -.01em; }
.panel-phone, .footer-phone { font-variant-numeric: tabular-nums; }

/* labels: sentence case, regular weight, no tracking */
.fact-k, .tl-head, .nr-cat, .q-title, .meta, .crumbs ol, .page-meta, .print-btn, .badge, .ext-host, .sr-sec, .side-nav summary { font-size: .875rem; letter-spacing: 0; }
.fact-k { color: var(--ink-3); font-weight: 500; }
.meta { color: var(--ink-3); font-size: .9rem; }
.badge { font-size: .78rem; font-weight: 500; }
.prose th { font-size: .82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.prose .card td, .prose .card td strong { font-size: .95rem; }
.prose a.file::before { font-size: .72rem; font-weight: 600; }
.prose p.vacation { font-size: .88rem; }
.side-nav summary { font-weight: 600; color: var(--ink); }
.q-title { color: var(--green-ink); font-weight: 600; font-size: .95rem; }
.nr-cat { color: var(--green-ink); font-weight: 600; font-size: .82rem; }
.tl-head { font-size: .82rem; font-weight: 600; }
.tl-phone { text-decoration: none; font-variant-numeric: tabular-nums; }
.page-meta { gap: 1.5rem; }
.topbar, .status { font-size: .84rem; }
.topbar-links a { font-size: .84rem; }

/* spacing: more air between and inside blocks */
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section-head { margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.section-lead { margin-top: 1rem; }
.hero-in { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-lead { line-height: 1.6; }
.facts li, .facts li > a { padding-top: 1.75rem; padding-bottom: 2rem; }
.fact-v { margin: .2rem 0 .25rem; }
.index-list a { padding: 1.6rem .25rem; }
.hub-list a { padding: 1.6rem .25rem 1.75rem; }
.hub-ex, .idx-sub { margin-top: .35rem; }
.news-list a { padding: 1.4rem 0; }
.tl-row { padding: 1.2rem 0; }
.about-body p:first-child { font-size: 1.3rem; line-height: 1.55; }
.about-points li { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.ext-grid a, .ext-schemes > div { padding: 1.5rem; }
.page-head { padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 4.5vw, 3.5rem); }
.prose .card { padding: 1.5rem 1.6rem .6rem; margin-bottom: 1.25rem; }
.footer-grid { padding: 3rem 0; }
@media (max-width: 860px) { .notice-in { grid-template-columns: 1fr; gap: .75rem; } }

/* Font specimen page */
.specimens { padding-top: 2rem; padding-bottom: 6rem; }
.specimen { font-family: var(--font); border-top: 1px solid var(--ink); padding: 2.5rem 0 3.5rem; }
.spec-head { display: flex; gap: 1.25rem; align-items: baseline; margin-bottom: 2rem; }
.spec-letter { font-family: var(--font); font-size: 2.5rem; font-weight: 700; color: var(--green); line-height: 1; min-width: 2.5rem; }
.spec-name { margin: 0; font-weight: 700; font-size: 1.15rem; }
.spec-note { margin: .2rem 0 0; color: var(--ink-2); }
.spec-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; }
.spec-h1 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; margin: 0 0 1.25rem; }
.spec-lead { color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.5rem; }
.spec-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.spec-phone { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.specimen .prose h2 { margin-top: 0; }
.specimen .btn, .specimen .eyebrow { font-family: var(--font); }
@media (max-width: 860px) { .spec-body { grid-template-columns: 1fr; } }

/* IBM Plex Sans: sturdy headings, wide letterforms -> slightly smaller text */
body { font-size: 1.0625rem; }
.hero-title, .h-section, .page-title, .prose h2, .prose h3, .news-lead h3, .footer-name,
.mega-title, .sitemap h2, .acc-title, .m-sec summary, .m-link { font-weight: 600; }
.hero-title { letter-spacing: -.03em; line-height: 1.02; }
.h-section, .page-title { letter-spacing: -.025em; }
.q-item blockquote p { font-weight: 400; }
.idx-title, .hub-title, .nr-title, .tl-name, .ext-title { font-weight: 600; }
.nav-link { font-size: .92rem; font-weight: 500; }
.btn { font-size: .95rem; }
.prose { font-size: 1.04rem; }
