/* Thailand STI Center — National Care Network */

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f1f9f8;
  --bg-subtle: #eaf5f3;

  --nav-bg: #163b42;
  --nav-text: #f4fbf7;
  --ink: #163b42;
  --ink-soft: #285b61;

  --accent: #087f81;
  --accent-hot: #076c70;
  --accent-alert: #c2410c;
  --accent-soft: #e7f5f2;
  --accent-glow: rgba(8, 127, 129, 0.12);

  --text-main: #213f45;
  --text-muted: #536e73;
  --text-light: #627c81;
  --text-inverse: #f4fbf7;

  --border: #dceae8;
  --border-focus: #087f81;

  --font: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(16, 40, 32, 0.05);
  --shadow-md: 0 12px 28px rgba(16, 40, 32, 0.08);
  --shadow-lg: 0 20px 44px rgba(16, 40, 32, 0.12);

  --max-w: 1240px;
  --header-height: 88px;

  /* legacy aliases used by shared templates */
  --navy-dark: var(--ink);
  --navy-slate: #0b1c18;
  --navy-surface: #163a32;
  --accent-cyan: var(--accent);
  --accent-teal: #2f6f5e;
  --accent-light: var(--accent-soft);
  --hot-coral: var(--accent-alert);
  --hot-amber: var(--accent);
  --hot-soft: #fff1eb;
  --max: var(--max-w);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--header-height);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(201, 137, 46, 0.10), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(47, 111, 94, 0.08), transparent 55%),
    var(--bg);
}

a { color: var(--accent-hot); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }
.hidden { display: none !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-hot);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #1a1408;
  box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-primary:hover { background: #d6a045; color: #1a1408; }
.btn-secondary {
  background: transparent;
  color: var(--nav-text);
  border: 1px solid rgba(244, 251, 247, 0.28);
}
.btn-secondary:hover { background: rgba(244, 251, 247, 0.08); color: var(--nav-text); }
.home-hero .btn-secondary,
.articles-section .btn-secondary,
.empty-state-card .btn-secondary {
  color: var(--ink);
  border-color: var(--border);
  background: #fff;
}
.home-hero .btn-secondary:hover,
.articles-section .btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn-hot {
  background: var(--accent-alert);
  color: #fff;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(16, 40, 32, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 251, 247, 0.08);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--nav-text);
  flex-shrink: 0;
}
.brand-logo:hover { color: var(--nav-text); opacity: .92; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: .72rem;
  color: rgba(244, 251, 247, 0.62);
  margin-top: 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  color: rgba(244, 251, 247, 0.78);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(201, 137, 46, 0.16);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--nav-text);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  color: var(--text-main);
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(16, 40, 32, 0.04), transparent 45%),
    radial-gradient(700px 320px at 80% 20%, rgba(201, 137, 46, 0.14), transparent 60%);
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 14px;
}
.hero-heading { margin-bottom: 18px; }
.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 10px;
}
.hero-tagline {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-desc {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 40, 32, 0.08);
  animation: heroRise .8s ease both;
}
.hero-visual img { width: 100%; height: auto; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.home-hero-copy { animation: copyIn .7s ease both; }
@keyframes copyIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section-header { margin-bottom: 28px; }
.section-header.compact { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); max-width: 46rem; }
.article-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.triage-section,
.hub-section,
.articles-section,
.trust-section { padding: 28px 0 56px; }

.triage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.triage-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.triage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 137, 46, 0.45);
  color: inherit;
}
.triage-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.triage-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.triage-card p { color: var(--text-muted); font-size: .92rem; }

.hub-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hub-card,
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card {
  padding: 22px;
}
.article-card {
  padding: 0;
  overflow: hidden;
}
.hub-card:hover,
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.hub-card-meta,
.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: .8rem;
}
.hub-card-title,
.article-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.hub-card-lead,
.article-card-excerpt { color: var(--text-muted); font-size: .92rem; flex: 1; }
.article-card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #163b42 0%, #C9892E 100%);
}
.article-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.article-card:hover .article-thumb-wrap img {
  transform: scale(1.04);
}
.hub-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--accent-hot);
  font-weight: 600;
}

.empty-state-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}
.empty-state-card p { color: var(--text-muted); margin-bottom: 18px; }

.eeat-strip {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #163a32, #163b42);
  color: var(--nav-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.eeat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(201, 137, 46, 0.18);
  color: var(--accent);
  flex-shrink: 0;
}
.eeat-content h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.eeat-content p { color: rgba(244, 251, 247, 0.78); margin-bottom: 12px; }
.eeat-content a { color: #f0d39a; font-weight: 600; }
.eeat-content a:hover { color: #fff; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--nav-bg);
  color: rgba(244, 251, 247, 0.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-tagline { margin-top: 14px; font-size: .92rem; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.footer-contact a,
.footer-links a { color: rgba(244, 251, 247, 0.78); }
.footer-contact a:hover,
.footer-links a:hover { color: #f0d39a; }
.footer-hotline { font-weight: 700; color: #f0d39a !important; }
.eeat-badge-box {
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.5;
  background: rgba(255,255,255,0.04);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.eeat-badge-box strong { color: #f0d39a; display: block; margin-bottom: 4px; }
.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
}
.footer-links { list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  font-size: .84rem;
  color: rgba(244, 251, 247, 0.55);
}

/* Cookie */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 40, 32, 0.96);
  color: var(--nav-text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
}
.cookie-text { font-size: .9rem; }
.cookie-text a { color: #f0d39a; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Shared page chrome leftovers */
.site-main { flex: 1; }
.static-mast,
.page-mast {
  padding: 42px 0 18px;
  background:
    linear-gradient(180deg, rgba(16, 40, 32, 0.04), transparent);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-hot); }

.article-content,
.guide-content,
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #24352f;
}
.article-content h2,
.guide-content h2,
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.6em 0 .6em;
  color: var(--ink);
}
.article-content h3,
.guide-content h3,
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.3em 0 .5em;
  color: var(--ink-soft);
}
.article-content p,
.guide-content p,
.prose p { margin-bottom: 1em; }
.article-content ul,
.guide-content ul,
.prose ul {
  margin: 0 0 1em 1.2em;
}
.article-content li,
.guide-content li,
.prose li { margin-bottom: .4em; }

@media (max-width: 980px) {
  .home-hero-grid,
  .footer-grid,
  .hub-grid,
  .article-grid { grid-template-columns: 1fr 1fr; }
  .triage-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(16, 40, 32, 0.98);
    padding: 18px 24px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 640px) {
  .home-hero { padding-top: 36px; }
  .home-hero-grid,
  .footer-grid,
  .hub-grid,
  .article-grid,
  .triage-grid { grid-template-columns: 1fr; }
  .article-section-header { flex-direction: column; align-items: flex-start; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .eeat-strip { flex-direction: column; }
  .hero-name { font-size: 2rem; }
}

/* Article / guide detail layout */
.article-page { padding: 28px 0 72px; }
.article-header { margin-bottom: 28px; max-width: 760px; }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 10px 0 12px;
}
.article-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 18px; }
.article-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.article-sidebar { display: grid; gap: 16px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.article-card-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/10; background: var(--bg-soft); }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-cat-badge {
  display: inline-flex;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-hot);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}
@media (max-width: 900px) {
  .article-main-grid { grid-template-columns: 1fr; }
}

/* Keep desktop nav on one line; earlier hamburger when it would wrap */
.main-nav {
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-link {
  white-space: nowrap;
}
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; color: inherit; }
}

.about-expanded, .contact-expanded, .privacy-expanded { line-height: 1.75; }
.about-expanded p, .contact-expanded p, .privacy-expanded p { margin: 0 0 14px; color: #334155; }
.privacy-expanded {
  max-width: 860px;
  margin: 36px auto 0;
}
.privacy-expanded h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}
.btn-cookie-necessary { color: #f8fafc !important; background: rgba(255,255,255,0.08) !important; border: 1.5px solid rgba(255,255,255,0.7) !important; }

.article-promo,
.article-ad {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 720px;
}
.article-promo a,
.article-ad a { display: block; line-height: 0; }
.article-promo img,
.article-ad img,
.article-sidebar-ad img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.article-sidebar-ad { padding: 12px; }

/* Contact desk — thailandsticenter unique */
.contact-desk { width: min(860px, calc(100% - 32px)); margin: 8px auto 72px; }
.contact-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 22px 26px;
  padding: 26px 30px;
  margin: 0 auto 28px;
  border-radius: 4px;
  background: var(--bg-card, var(--surface, #fff));
  border: 1px solid var(--border, rgba(15,23,42,.1)); border-top: 4px solid var(--accent,#0f766e);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.contact-card__kicker {
  margin: 0 0 6px;
    font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #0f766e);
}
.contact-card__email {
  display: inline-block;
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.2vw, 1.50rem);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
  color: var(--navy-dark, var(--ink, var(--black, #0f172a)));
  text-decoration: none;
}
.contact-card__email:hover { text-decoration: underline; }
.contact-card__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, var(--grey-4, #64748b));
}
.contact-card .btn, .contact-card .btn--primary, .contact-card .btn-primary, .contact-card .btn-accent {
  flex: 0 0 auto; white-space: nowrap;
}

.contact-expanded {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 8px 0 24px;
  border-radius: 0px;
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 1.8;
  color: var(--text, var(--ink, #1e293b));
}
.contact-expanded p { margin: 0 0 15px; }
.contact-expanded p:first-child { font-size:1.05rem;font-weight:600; color: var(--navy-dark, var(--ink, #0f172a)); }
.contact-expanded p:last-child { margin-bottom: 0; }
.contact-expanded a { color: var(--accent, #0f766e); font-weight: 650; text-underline-offset: 2px; }
.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 0 auto 40px;
}
@media (max-width: 720px) {
  .contact-card, .contact-expanded { padding: 20px; text-align: left; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-action-grid { grid-template-columns: 1fr; }
}

/* In-article ads as spaced sections, not a pile */
.article-ad-section {
  display: block;
  margin: 2.75rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  clear: both;
  text-align: center;
}
.article-ad-section a {
  display: block;
  line-height: 0;
}
.article-ad-section img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.article-ad-section + .article-ad-section {
  margin-top: 3.25rem;
}

/* Bright clinic redesign — shared chrome and page compositions. */
body { background: #fff; }
:focus-visible { outline: 3px solid #087f81; outline-offset: 4px; }
html { scroll-padding-top: 110px; }
.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: fixed; top: -100px; left: 16px; z-index: 2000; padding: 12px 20px; background: #fff; border: 2px solid var(--accent); }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { gap: 20px; }
.brand-logo, .brand-logo:hover { color: var(--ink); }
.brand-logo > svg { flex-shrink: 0; }
.brand-title { font-size: .94rem; }
.brand-sub { color: var(--text-muted); font-size: .58rem; letter-spacing: .14em; margin-top: 7px; }
.nav-link { color: var(--text-muted); padding: 9px 10px; font-size: .86rem; }
.nav-link:hover, .nav-link.active { color: var(--accent-hot); background: var(--accent-soft); }
.btn { border-radius: 10px; min-height: 46px; line-height: 1.5; }
.btn-primary, .btn-primary:hover { color: #fff; background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: #07686b; }
.btn-secondary, .btn-secondary:hover { background: #fff; color: var(--ink); border: 1px solid #bdcfcc; }
.btn-secondary:hover { background: var(--bg-soft); }
.header-book-btn { font-size: .85rem; padding: 11px 17px; }
.mobile-toggle { color: var(--ink); border-radius: 8px; }
.home-hero { padding: 60px 0 50px; background: linear-gradient(110deg,#f1faf7 0%,#f6fbfa 57%,#e3f2ef 100%); }
.home-hero-grid { grid-template-columns: 1.14fr 1fr; gap: 44px; }
.hero-eyebrow { color: var(--accent-hot); letter-spacing: .1em; font-size: .72rem; display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.hero-eyebrow > span { font-size: 22px; font-weight: 400; line-height: 1; }
.hero-heading { font-family: var(--font); font-size: clamp(2rem,3.4vw,2.9rem); line-height: 1.5; font-weight: 700; letter-spacing: -.045em; margin-bottom: 18px; }
.hero-heading > span { color: var(--accent); }
.hero-desc { font-size: 1rem; line-height: 1.9; margin-bottom: 26px; }
.hero-actions { gap: 10px; }
.hero-actions .btn { padding: 14px 22px; }
.hero-note { font-size: .72rem; color: var(--text-muted); margin-top: 24px; }
.hero-visual { background: #fff; border: 0; box-shadow: none; border-radius: 100px 16px 16px 16px; }
.hero-visual img { height: 330px; width: 100%; object-fit: cover; object-position: 52% center; }
.hero-visual figcaption { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.hero-visual figcaption strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.hero-visual figcaption div > span { display: block; color: var(--text-muted); font-size: .75rem; margin-top: 4px; }
.visual-cross { font: 300 38px/1 var(--font-display); color: var(--accent); }
.search-section { background: #fff; border-bottom: 1px solid var(--border); }
.search-panel { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 42px; padding-top: 30px; padding-bottom: 30px; }
.search-panel h2 { font-size: 1.22rem; font-weight: 600; }
.search-panel .section-tag { font-size: .62rem; letter-spacing: .13em; margin-bottom: 3px; }
.knowledge-search { display: flex; background: var(--bg-soft); border: 1px solid var(--border); padding: 6px; border-radius: 12px; gap: 8px; }
.knowledge-search input { width: 100%; min-width: 0; border: none; background: transparent; padding: 10px 12px; font: inherit; font-size: .9rem; color: var(--ink); }
.knowledge-search .btn { flex-shrink: 0; }
.triage-section, .hub-section, .articles-section { padding: 64px 0; }
.section-tag { font-size: .68rem; letter-spacing: .14em; }
.section-title { font-family: var(--font); font-size: clamp(1.4rem,2.5vw,1.95rem); line-height: 1.5; font-weight: 650; }
.section-subtitle { font-size: .95rem; }
.triage-grid { gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.triage-card { border: none; border-right: 1px solid var(--border); box-shadow: none; border-radius: 0; padding: 26px; position: relative; }
.triage-card:last-child { border-right: 0; }
.triage-card:hover { transform: none; box-shadow: none; background: var(--bg-soft); }
.triage-card::after { content: '↗'; position: absolute; top: 25px; right: 24px; color: var(--accent); font-size: 20px; }
.triage-index { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 10px; margin-bottom: 25px; }
.triage-card h3 { font-family: var(--font); font-size: 1.02rem; }
.triage-card p { font-size: .85rem; line-height: 1.8; }
.hub-section { background: var(--bg-soft); }
.hub-grid { gap: 20px; }
.hub-card { padding: 26px; border: 1px solid var(--border); border-radius: 14px; box-shadow: none; }
.hub-card-title, .article-card-title { font-family: var(--font); font-weight: 600; line-height: 1.65; font-size: 1.13rem; }
.hub-card-lead { font-size: .87rem; line-height: 1.85; }
.hub-card-meta { margin-bottom: 20px; color: var(--text-muted); }
.hub-card-footer { font-weight: 500; font-size: .78rem; }
.hub-card-footer > span:first-child::after { content: ' →'; }
.article-grid { gap: 28px 24px; }
.article-card { border: 0; border-radius: 0; background: transparent; }
.article-card:hover { box-shadow: none; }
.article-thumb-wrap { border-radius: 14px; aspect-ratio: 16/10; background: var(--bg-soft); }
.article-card-body { padding: 20px 0 0; }
.article-card-excerpt { font-size: .9rem; line-height: 1.8; }
.article-card-meta { color: var(--text-muted); }
.article-cat-badge { align-self: start; font-weight: 500; }
.care-section { padding: 12px 0 70px; }
.care-panel { background: #eaf6f3; padding: 40px; border-radius: 20px; display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.care-panel h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 12px; }
.care-panel p { color: var(--text-muted); font-size: .95rem; }
.care-panel .care-disclaimer { max-width: 620px; font-size: .78rem; margin-top: 18px; }
.care-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.site-footer { background: #f7faf9; border-top: 1px solid var(--border); color: var(--text-muted); padding-top: 54px; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 70px; }
.footer-tagline { max-width: 390px; line-height: 1.9; }
.footer-contact a, .footer-links a { color: var(--text-muted); }
.footer-contact a:hover, .footer-links a:hover { color: var(--accent); }
.footer-hotline { color: var(--accent-hot) !important; }
.footer-heading { color: var(--ink); }
.footer-links { gap: 12px; }
.eeat-badge-box { border: 1px solid var(--border); background: #fff; max-width: 390px; color: var(--text-muted); }
.eeat-badge-box strong { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); color: var(--text-muted); }
.cookie-bar { background: #fff; color: var(--ink); border: 1px solid var(--border); max-width: 1160px; margin: auto; }
.cookie-text { font-size: .8rem; }
.cookie-text a { color: var(--accent-hot); text-decoration: underline; }
.btn-cookie-necessary { color: var(--ink) !important; background: #fff !important; border: 1px solid #a7c5c0 !important; }
.static-mast { padding: 54px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.static-mast .badge { margin-bottom: 14px; }
.static-mast h1 { font: 650 clamp(1.8rem,3vw,2.6rem)/1.5 var(--font); letter-spacing: -.03em; margin-bottom: 12px; color: var(--ink); }
.static-mast p { color: var(--text-muted); max-width: 790px; font-size: 1.05rem; line-height: 1.9; }
.article-page { background: #f8fbfa; padding: 38px 0 72px; }
.article-header { max-width: 900px; padding: 18px 0 22px; }
.article-title { font-family: var(--font); line-height: 1.55; font-weight: 650; }
.article-main-grid { gap: 32px; }
.article-content { padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow-wrap: anywhere; line-height: 1.95; }
.article-content h2, .article-content h3 { font-family: var(--font); line-height: 1.65; }
.article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: .92rem; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--border); }
.article-content th { background: var(--bg-soft); }
.article-content a { text-underline-offset: 4px; }
.article-content p a, .article-content li a { text-decoration: underline; }
.article-sidebar { min-width: 0; }
.sidebar-widget { box-shadow: none; padding: 24px; }
.eeat-strip { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.eeat-content p { color: var(--text-muted); }
.eeat-content a, .eeat-content a:hover { color: var(--accent-hot); }
.eeat-icon { background: #d5eee7; }
.about-expanded { max-width: 860px; margin: 40px auto 0; padding: 0 24px; }
.contact-card { border-radius: 16px; }
details { transition: border-color .2s; }
details[open] { border-color: #73bab1 !important; }
summary { min-height: 44px; }
@media (max-width: 1140px) {
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--header-height); left: 0; right: 0; padding: 16px 24px 22px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .main-nav .nav-link { padding: 12px; }
  .home-hero-grid { gap: 26px; }
  .hero-heading { font-size: 2.25rem; }
  .hero-visual img { height: 310px; }
  .hero-note { font-size: .67rem; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 800px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .home-hero-copy { max-width: 620px; }
  .hero-heading { font-size: 2.6rem; }
  .hero-visual { border-radius: 60px 14px 14px 14px; }
  .hero-visual img { height: 300px; }
  .search-panel { grid-template-columns: 1fr; gap: 16px; }
  .triage-grid { grid-template-columns: 1fr 1fr; }
  .triage-card { border-bottom: 1px solid var(--border); }
  .triage-card:nth-child(2n) { border-right: 0; }
  .triage-card:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .care-panel { margin: 0 24px; width: auto; flex-direction: column; align-items: stretch; padding: 30px; gap: 24px; }
  .care-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --header-height: 76px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 10px; }
  .brand-logo { gap: 8px; }
  .brand-logo > svg { width: 32px; height: 32px; }
  .brand-title { font-size: .75rem; }
  .brand-sub { font-size: .49rem; letter-spacing: .07em; }
  .header-book-btn { min-height: 40px; padding: 8px; }
  .header-book-btn svg { display: none; }
  .header-actions { gap: 4px; }
  .mobile-toggle { width: 34px; height: 40px; }
  .home-hero { padding: 36px 0 30px; }
  .hero-heading { font-size: clamp(1.85rem,7vw,2.6rem); line-height: 1.55; }
  .hero-eyebrow { margin-bottom: 14px; font-size: .64rem; }
  .hero-desc { font-size: .95rem; }
  .desktop-break { display: none; }
  .hero-actions .btn { padding: 12px 16px; font-size: .87rem; }
  .hero-note { font-size: .7rem; line-height: 1.8; margin-top: 18px; }
  .hero-visual img { height: 235px; }
  .hero-visual figcaption { padding: 16px 18px; }
  .hero-visual figcaption strong { font-size: .82rem; }
  .hero-visual figcaption div > span { font-size: .7rem; }
  .search-panel { padding-top: 24px; padding-bottom: 24px; }
  .knowledge-search input { padding: 8px; font-size: .8rem; }
  .knowledge-search .btn { padding: 10px 14px; font-size: .85rem; }
  .triage-section, .hub-section, .articles-section { padding: 42px 0; }
  .triage-card { padding: 20px 16px; }
  .triage-card::after { right: 16px; }
  .triage-card h3 { font-size: .9rem; }
  .triage-card p { font-size: .79rem; }
  .hub-grid, .article-grid { grid-template-columns: 1fr; }
  .hub-card { padding: 24px; }
  .article-card-body { padding-top: 16px; }
  .care-panel { margin: 0 20px; padding: 26px; }
  .care-panel h2 { font-size: 1.35rem; }
  .care-section { padding-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-links { font-size: .85rem; }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; gap: 10px; padding: 14px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1; }
  .static-mast { padding: 36px 0; }
  .static-mast h1 { font-size: 1.8rem; }
  .static-mast p { font-size: .95rem; }
  .article-content { padding: 20px 16px; font-size: 1rem; }
  .article-title { font-size: 1.8rem; }
  .article-header { padding-top: 0; }
  .eeat-strip { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Connected-care mark and wordmark. */
.brand-mark { flex-shrink: 0; width: 44px; height: 44px; }
.brand-text { gap: 4px; }
.brand-title { font-size: 1.16rem; font-weight: 650; letter-spacing: -.035em; }
.brand-sub { font-family: var(--font-display); font-size: .65rem; font-weight: 600; color: var(--accent-hot); letter-spacing: .2em; margin: 0; }
@media (max-width:640px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-title { font-size: 1.05rem; }
  .brand-sub { font-size: .58rem; }
}
.category-filter { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.category-filter summary { display: list-item; cursor: pointer; font-size: .9rem; padding: 10px 0; color: var(--ink); }
.category-filter summary span { font-size: .78rem; color: var(--text-muted); margin-left: 12px; }
.category-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
/* Cloudflare live article views */
.section { padding:40px 0 72px; }
.filter-panel { padding:24px;border:1px solid var(--border);border-radius:16px;margin-bottom:24px; }
.results-count { color:var(--text-muted);margin-bottom:24px; }
.pagination { display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin-top:36px; }
.article-featured { width:100%;height:auto;border-radius:12px;margin-bottom:26px; }
.article-share { display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid var(--border);padding-top:24px;margin-top:24px;font-size:.85rem; }
.medical-note { padding:20px;background:var(--bg-soft);border-radius:12px;font-size:.85rem;margin-top:28px; }
.sidebar-widget ul { list-style:none;display:grid;gap:16px;font-size:.9rem; }
.sidebar-widget .article-ad-section { margin:0;padding:0;border:0; }
.booking-widget { background:var(--bg-soft); }
.booking-widget p { margin-bottom:18px; }
.booking-widget .widget-title { margin-top:16px; }
.category-options [aria-current="page"] { color:#fff;background:var(--accent); }
