/* 辛隆士家庭醫學科診所 — tokens from the clinic design system (colors_and_type.css) */
:root {
  --brand-red: #D7083A;
  --brand-red-deep: #A8052D;
  --brand-red-wash: #FBEEF1;
  --brand-blue: #137D93;
  --brand-blue-deep: #0B5566;
  --brand-blue-soft: #C9E0E6;
  --brand-blue-wash: #E8F2F5;
  --brand-cream: #FAF6EE;

  --gray-50: #FBFAF7;
  --gray-100: #F4F2EC;
  --gray-200: #E8E4DA;
  --gray-300: #D4CEC0;
  --gray-400: #ADA694;
  --gray-500: #7E7866;
  --gray-700: #3D3A30;
  --gray-900: #131210;

  /* doctor colours, matching the printed business card */
  --dr-hsin: #D7083A;
  --dr-lai: #1F7FA0;
  --dr-hsiao: #5E4A3C;
  --dr-wei: #E89A12;

  --line-green: #06C755;
  --success: #2E8B57;

  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
  --font-latin: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --r-md: 8px;
  --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(46, 36, 22, .06), 0 1px 3px rgba(46, 36, 22, .04);
  --shadow-2: 0 2px 6px rgba(46, 36, 22, .08), 0 4px 12px rgba(46, 36, 22, .05);
  --shadow-3: 0 6px 16px rgba(46, 36, 22, .10), 0 12px 32px rgba(46, 36, 22, .06);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--gray-900); background: #fff;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); }
a:hover { color: var(--brand-blue-deep); }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-md); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .12s var(--ease-out); border: 0;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-red { background: var(--brand-red); color: #fff; }
.btn-red:hover { background: var(--brand-red-deep); color: #fff; }
.btn-blue { background: var(--brand-blue); color: #fff; }
.btn-blue:hover { background: var(--brand-blue-deep); color: #fff; }
.btn-amber { background: #F5B335; color: #3B2A06; }
.btn-amber:hover { background: #F9C55A; color: #3B2A06; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray-200);
  height: 72px; display: flex; align-items: center; gap: 24px; padding: 0 32px;
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup > span { display: flex; flex-direction: column; line-height: 1.25; }
.lockup img { width: 40px; height: auto; }
.lockup .zh { font-weight: 900; font-size: 18px; color: var(--brand-blue); letter-spacing: .06em; }
.lockup .en { font-family: var(--font-latin); font-weight: 600; font-size: 9px; color: var(--brand-blue); letter-spacing: .16em; text-transform: uppercase; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { color: var(--gray-900); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:hover { color: var(--brand-blue); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .phone { display: flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.nav-cta .phone svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--brand-blue); padding: 8px; cursor: pointer; }

/* ---- hero ---- */
.hero { background: var(--brand-blue); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.07), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.06), transparent 38%);
}
.hero-inner {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 72px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.eyebrow { display: block; font-family: var(--font-latin); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 8px; }
.eyebrow.light { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.eyebrow.red { color: var(--brand-red); }
.hero h1 { font-weight: 900; font-size: 52px; line-height: 1.2; letter-spacing: .05em; margin: 0 0 20px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.9); margin: 0 0 32px; max-width: 500px; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.hero-actions .btn { width: 100%; white-space: nowrap; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.today-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; color: var(--gray-900);
  border-radius: var(--r-md); padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-2);
  font-size: 14px; line-height: 1.5;
}
.today-card[hidden] { display: none; }
.today-card div { display: flex; flex-direction: column; }
.today-card b { font-size: 15px; }
.today-card span:not(.dot) { color: var(--gray-700); white-space: pre-line; }
.today-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-400); }
.today-card.live .dot { background: var(--success); box-shadow: 0 0 0 4px rgba(46,139,87,.2); }

/* ---- quick actions ---- */
.quick {
  max-width: 1120px; margin: -32px auto 0; padding: 0 32px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.quick-item {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  text-decoration: none; color: var(--gray-900); transition: box-shadow .22s var(--ease-out);
}
.quick-item:hover { box-shadow: var(--shadow-3); color: var(--gray-900); }
.quick-item svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-md); background: var(--brand-blue-wash); color: var(--brand-blue); }
.quick-item:first-child svg { background: var(--brand-red-wash); color: var(--brand-red); }
.quick-item b { font-size: 17px; }
.quick-item span { font-size: 14px; color: var(--gray-500); }

/* ---- sections ---- */
.section { max-width: 1120px; margin: 0 auto; padding: 80px 32px; }
.band { background: var(--brand-cream); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-weight: 900; font-size: 36px; letter-spacing: .04em; margin: 0; line-height: 1.3; }
.lede { color: var(--gray-700); margin: 12px 0 0; max-width: 640px; }

/* ---- news ---- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-200); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.news-item time { color: var(--brand-blue); font-weight: 600; padding-top: 2px; }
.news-item b { font-size: 18px; }
.news-item p { margin: 4px 0 0; color: var(--gray-700); }
.news-item { align-items: center; }
.news-link { display: flex; align-items: center; gap: 10px; color: var(--gray-900); text-decoration: none; }
.news-link::after { content: "›"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--gray-400); transition: transform .15s var(--ease-out), color .15s var(--ease-out); }
.news-link:hover, .news-link:focus-visible { color: var(--brand-red); }
.news-link:hover::after, .news-link:focus-visible::after { color: var(--brand-red); transform: translateX(3px); }
.news-link .pin { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-red); padding: 2px 9px; border-radius: 999px; }
.news-item.pinned { background: var(--brand-red-wash); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-md); }
.news-link .has-img { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-wash); padding: 1px 8px; border-radius: 999px; }

/* ---- hours ---- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chip {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-style: normal; font-weight: 700; font-size: 15px; margin: 2px;
}
.c-hsin { background: var(--dr-hsin); }
.c-lai { background: var(--dr-lai); }
.c-hsiao { background: var(--dr-hsiao); }
.c-wei { background: var(--dr-wei); }
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-1); background: #fff; }
.hours { width: 100%; min-width: 640px; border-collapse: collapse; }
.hours th, .hours td { border-bottom: 1px solid var(--gray-200); text-align: center; padding: 12px 6px; }
.hours thead th { background: var(--brand-blue); color: #fff; font-weight: 700; letter-spacing: .06em; border-bottom: 0; }
.hours thead th.today { background: var(--brand-blue-deep); }
.hours tbody th { text-align: left; padding-left: 16px; background: var(--gray-50); white-space: nowrap; font-weight: 500; }
.hours tbody th b { font-size: 18px; margin-right: 8px; color: var(--brand-blue); }
.hours tbody th .num { font-size: 15px; color: var(--gray-700); }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours td.off { background: repeating-linear-gradient(135deg, #fff 0 8px, var(--gray-100) 8px 9px); }
.hours td.today { background-color: var(--brand-blue-wash); }

/* ---- services ---- */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px 20px;
  box-shadow: var(--shadow-1); overflow: hidden; outline: none;
  transition: box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out); }
.svc .ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-blue-wash); color: var(--brand-blue); display: grid; place-items: center; margin-bottom: 12px; transition: background .22s var(--ease-out), color .22s var(--ease-out); }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: .04em; transition: color .22s var(--ease-out); }
.svc p { margin: 0; color: var(--gray-700); font-size: 15px; }
.svc:hover, .svc:focus-visible, .svc:active { box-shadow: var(--shadow-2); border-color: var(--brand-red-soft, #F5D6DD); }
.svc:hover::before, .svc:focus-visible::before, .svc:active::before { transform: scaleX(1); }
.svc:hover .ico, .svc:focus-visible .ico, .svc:active .ico { background: var(--brand-red-wash); color: var(--brand-red); }
.svc:hover h3, .svc:focus-visible h3, .svc:active h3 { color: var(--brand-red); }
.svc .award {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; padding: 10px;
  background: var(--brand-red-wash); border-left: 3px solid var(--brand-red); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--brand-red); font-weight: 700; font-size: 13.5px; line-height: 1.55; letter-spacing: -.01em;
}
.nw { white-space: nowrap; display: inline-block; }
.svc .award svg { width: 18px; height: 18px; margin-top: 2px; }

/* ---- doctors ---- */
.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doc { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.doc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--gray-100); }
.doc-body { padding: 20px; }
.doc .role { font-size: 13px; font-weight: 700; color: var(--brand-red); letter-spacing: .1em; }
.doc h3 { margin: 2px 0 12px; font-size: 22px; letter-spacing: .04em; }
.doc ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.doc li { padding-left: 14px; position: relative; margin-bottom: 4px; }
.doc li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-blue); }

/* ---- articles ---- */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.topic { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; }
.topic summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 18px; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary::after { content: ""; width: 9px; height: 9px; margin-left: 4px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease-out); }
.topic[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.topic summary:hover b, .topic[open] summary b { color: var(--brand-red); }
.topic .count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-wash); padding: 2px 10px; border-radius: 999px; }
.topic ul { list-style: none; margin: 0; padding: 0 0 6px; border-top: 1px solid var(--gray-200); }
.topic-link { display: flex; align-items: center; padding: 12px 20px; color: var(--gray-900); text-decoration: none; font-size: 16px; }
.topic-link::after { content: "›"; margin-left: auto; padding-left: 12px; font-size: 22px; line-height: 1; color: var(--gray-400); }
.topic-link:hover, .topic-link:focus-visible { color: var(--brand-red); background: var(--brand-red-wash); }
.topic-link:hover::after { color: var(--brand-red); }
.topic li + li .topic-link { border-top: 1px dashed var(--gray-200); }
.empty { grid-column: 1 / -1; color: var(--gray-700); background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--r-lg); padding: 24px; margin: 0; }

/* ---- visit ---- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.contact li { display: flex; gap: 14px; }
.contact svg { color: var(--brand-blue); width: 24px; height: 24px; margin-top: 2px; }
.contact div { display: flex; flex-direction: column; }
.contact b { font-size: 18px; }
.contact a { text-decoration: none; color: var(--gray-900); }
.contact span { color: var(--gray-700); font-size: 15px; }
.qrs { display: grid; grid-template-columns: repeat(3, minmax(0, 124px)); gap: 16px; margin-top: 28px; }
.qr { display: block; text-align: center; font-size: 14px; color: var(--gray-700); text-decoration: none; transition: transform .15s var(--ease-out); }
.qr span { display: block; margin-top: 4px; white-space: nowrap; transition: color .15s var(--ease-out); }
.qrs img { width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: var(--r-md); padding: 6px; border: 1px solid var(--gray-200); }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); background: var(--gray-100); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---- footer ---- */
.footer { background: var(--brand-blue); color: #fff; position: relative; overflow: hidden; }
.footer::after {
  content: ""; position: absolute; right: -120px; top: 40px; width: 420px; height: 380px; pointer-events: none;
  background: url("assets/logo-white.png") center / contain no-repeat; opacity: .05;
}
.foot-rule { height: 10px; background: linear-gradient(var(--brand-blue-deep) 0 3px, transparent 3px 6px, rgba(255,255,255,.35) 6px 7px, transparent 7px); }
.foot-inner {
  position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 56px 32px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr .9fr 1.1fr; gap: 40px;
}
.foot-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.foot-lockup img { width: 64px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.foot-lockup > span { display: flex; flex-direction: column; line-height: 1.3; }
.foot-lockup .zh { font-weight: 900; font-size: 22px; letter-spacing: .08em; }
.foot-lockup .en { font-family: var(--font-latin); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.foot-tagline { text-wrap: balance; max-width: 300px; margin: 18px 0 20px; padding-left: 12px; border-left: 3px solid var(--brand-red); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.92); letter-spacing: .04em; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.88); }
.foot-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand-blue-soft); }
.foot-contact small { display: block; font-size: 13px; color: rgba(255,255,255,.6); }
.foot-contact .big { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none; }
.foot-contact .big:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer h4 { margin: 0 0 18px; font-size: 16px; font-weight: 700; letter-spacing: .1em; color: #fff; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: var(--brand-red); border-radius: 2px; }
.footer h4 .en { display: block; font-family: var(--font-latin); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.foot-hours { margin: 0; display: grid; gap: 8px; }
.foot-hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.foot-hours dt { font-size: 14px; color: rgba(255,255,255,.7); }
.foot-hours dd { margin: 0; font-size: 15px; font-weight: 600; }
.foot-note { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.65); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.foot-links a { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.82); text-decoration: none; transition: color .12s var(--ease-out); }
.foot-links a::before { content: "›"; margin-right: 6px; color: var(--brand-blue-soft); }
.foot-links a:hover { color: #fff; }
.foot-actions { display: grid; gap: 10px; }
.fa { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .12s var(--ease-out), border-color .12s var(--ease-out); }
.fa svg { width: 18px; height: 18px; }
.fa-red { background: var(--brand-red); color: #fff; }
.fa-red:hover { background: var(--brand-red-deep); color: #fff; }
.fa-amber { background: #F5B335; color: #3B2A06; }
.fa-amber:hover { background: #F9C55A; color: #3B2A06; }
.fa-line { background: #fff; color: #05a748; }
.fa-line:hover { background: #effbf3; color: #05a748; }
.foot-bottom { position: relative; z-index: 1; background: var(--brand-blue-deep); }
.foot-bottom-inner { max-width: 1120px; margin: 0 auto; padding: 16px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 12px; font-weight: 300; letter-spacing: .04em; color: rgba(255,255,255,.62); }

/* ---- floating LINE + mobile bar ---- */
.line-fab {
  position: fixed; right: 24px; bottom: 88px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--line-green); color: #fff; display: grid; place-items: center; text-decoration: none;
  font-weight: 900; font-size: 13px; box-shadow: var(--shadow-2);
}
.line-fab:hover { color: #fff; background: #05b14b; }
.mobile-bar { display: none; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .menu { gap: 16px; }
  .nav-cta .phone { display: none; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-actions { grid-template-columns: repeat(3, 1fr); }
  .doctors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 17px; padding-bottom: 68px; }
  .nav { padding: 0 16px; height: 64px; }
  .lockup .zh { font-size: 16px; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-2);
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 20px; border-top: 1px solid var(--gray-100); font-size: 17px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px 64px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn-lg { padding: 14px 8px; font-size: 16px; }
  .quick { grid-template-columns: repeat(2, 1fr); padding: 0 16px; gap: 12px; }
  .quick-item { padding: 14px; grid-template-columns: 1fr; row-gap: 6px; }
  .quick-item svg { grid-row: auto; }
  .quick-item b { font-size: 16px; }
  .section { padding: 56px 16px; }
  .section-head h2 { font-size: 28px; }
  .services { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .visit { grid-template-columns: 1fr; gap: 32px; }
  .map iframe { height: 320px; }
  .qrs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .qr { font-size: 13px; }
  .foot-inner { grid-template-columns: 1fr 1fr; padding: 40px 16px 32px; gap: 32px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-actions { grid-template-columns: 1fr; }
  .foot-bottom-inner { padding: 14px 16px; flex-direction: column; }
  .hours { min-width: 0; table-layout: fixed; }
  .hours th, .hours td { padding: 8px 2px; }
  .hours thead th:first-child { width: 72px; }
  .hours tbody th { padding-left: 8px; white-space: normal; line-height: 1.3; }
  .hours tbody th b { display: block; margin: 0; }
  .hours tbody th .num { font-size: 12px; }
  .hours td { vertical-align: middle; }
  .hours .chip { display: grid; width: 26px; height: 26px; font-size: 13px; margin: 3px auto; }
  .line-fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--gray-200); box-shadow: 0 -2px 10px rgba(46,36,22,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 13px; font-weight: 700; color: var(--brand-blue); text-decoration: none; }
  .mobile-bar a:first-child { color: var(--brand-red); }
  .mobile-bar a.line { color: var(--line-green); }
  .mobile-bar a.queue { color: var(--gray-900); }
  .mobile-bar svg { width: 22px; height: 22px; }
}
@media (max-width: 520px) {
  .doctors { grid-template-columns: 1fr; }
  .doc { flex-direction: row; }
  .doc img { width: 38%; aspect-ratio: auto; }
  .doc-body { padding: 16px; }
  .doc h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- link hover states ---- */
/* Colour shift plus a sliding underline; weight stays fixed so text never jumps. */
.menu a, .foot-links a, .contact a b, .foot-contact .big, .nav-cta .phone, .empty a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color .15s var(--ease-out), background-size .22s var(--ease-out), text-shadow .15s var(--ease-out);
  text-decoration: none; padding-bottom: 2px;
}
.menu a:hover, .menu a:focus-visible { color: var(--brand-red); background-size: 100% 2px; text-shadow: .3px 0 0 currentColor; }
.nav-cta .phone:hover { color: var(--brand-red); background-size: 100% 2px; }
.contact a:hover b { color: var(--brand-red); background-size: 100% 2px; }
.empty a { color: var(--brand-blue); font-weight: 700; background-size: 100% 1px; }
.empty a:hover { color: var(--brand-red); background-size: 100% 2px; }
.foot-links a:hover, .foot-links a:focus-visible { color: #fff; background-size: 100% 1px; text-shadow: .3px 0 0 currentColor; }
.foot-links a::before { display: inline-block; transition: transform .15s var(--ease-out), color .15s var(--ease-out); }
.foot-links a:hover::before { transform: translateX(3px); color: #fff; }
.foot-contact .big:hover { text-decoration: none; background-size: 100% 2px; }
.quick-item b, .doc h3 { transition: color .15s var(--ease-out); }
.quick-item:hover b { color: var(--brand-red); }
.quick-item svg { transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.quick-item:hover svg { background: var(--brand-red-wash); color: var(--brand-red); }
.qr:hover { transform: translateY(-2px); color: var(--gray-700); }
.qr:hover span { color: var(--brand-red); text-shadow: .3px 0 0 currentColor; }
.qr:hover img { border-color: var(--brand-red-soft, #F5D6DD); box-shadow: var(--shadow-2); }
.lockup { transition: opacity .15s var(--ease-out); }
.lockup:hover { opacity: .85; }
.fa:hover svg, .btn:hover svg { transform: translateX(2px); }
.fa svg, .btn svg { transition: transform .15s var(--ease-out); }

/* ---- formatted text (admin editor, news and article pages) ---- */
.article-body { --rte-base: 18px; }
.rte { --rte-base: 17px; }
.t-norm { font-size: var(--rte-base); }
.t-lg { font-size: calc(var(--rte-base) * 1.25); }
.t-xl { font-size: calc(var(--rte-base) * 1.5); font-weight: 700; }
.t-red { color: var(--brand-red); }
.t-blue { color: var(--brand-blue); }
.t-green { color: #1F8A4C; }
.t-orange { color: #C76A00; }
.t-black { color: var(--gray-900); }
