/* Dr. Xuebin Yin, MD - the whole website's look. One file for every page and language. */

/* Figtree (SIL Open Font License, assets/fonts/Figtree-OFL.txt), served from this site */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --rose-900: #5c1236;
  --rose-700: #a3245e;            /* buttons and links: 7:1 on white */
  --rose-600: #b92d6c;
  --rose-500: #d6337f;
  --rose-300: #f0a3c6;
  --rose-200: #f6c9de;
  --rose-100: #fbe6f0;
  --rose-50: #fdf4f8;
  --ink: #2a2230;                 /* headings */
  --text: #3f3744;
  --muted: #6e6574;               /* 5.5:1 on white */
  --line: #ece2e8;
  --soft: #fbf7f9;
  --white: #fff;
  --ok: #1f7a4d;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 34, 48, .06), 0 10px 30px rgba(42, 34, 48, .07);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1160px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Chinese and Korean get fonts made for them (the right shapes for Simplified vs Traditional) */
:lang(zh-Hans) { --font: "Figtree", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; }
:lang(zh-Hant) { --font: "Figtree", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", system-ui, sans-serif; }
:lang(ko) { --font: "Figtree", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(ko) h1 { letter-spacing: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--rose-100); color: var(--ink); }
html { caret-color: var(--rose-700); accent-color: var(--rose-700); scrollbar-color: var(--rose-200) transparent; }
.hours, .phone-big { font-variant-numeric: tabular-nums; }
a { color: var(--rose-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, label.choice:focus-within {
  outline: 3px solid var(--rose-700);
  outline-offset: 2px;
}
.site-footer a:focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose-700); color: var(--white); }
.btn-primary:active { background: var(--rose-900); }
.btn-ghost { background: var(--white); color: var(--rose-700); border-color: var(--rose-200); }
.btn-ghost:active { background: var(--rose-50); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--rose-900); }
  .btn-ghost:hover { border-color: var(--rose-300); background: var(--rose-50); }
  a:hover { text-decoration-thickness: 2px; }
}

/* ------------------------------------------------------------------ the top: text-us line and language (its own strip) */
.utility { background: var(--rose-50); border-bottom: 1px solid var(--line); font-size: .9375rem; padding-top: env(safe-area-inset-top); }
.utility-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.text-us { display: inline-flex; align-items: center; gap: .45em; color: var(--ink); text-decoration: none; padding: 6px 0; }
.text-us svg { width: 18px; height: 18px; color: var(--rose-700); flex: none; }
.text-us strong { color: var(--rose-700); font-weight: 700; white-space: nowrap; }
.text-us .label { white-space: nowrap; }

.lang { position: relative; margin-left: auto; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: .4em;
  min-height: 36px; padding: 4px 10px 4px 12px;
  border: 1px solid var(--rose-200); border-radius: 999px; background: var(--white);
  color: var(--ink); font-weight: 600; cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary svg { width: 18px; height: 18px; color: var(--rose-700); flex: none; }
.lang > summary .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 180ms var(--ease-out); }
.lang[open] > summary .chev { transform: rotate(180deg); }
.lang[open] > summary { border-color: var(--rose-300); background: var(--rose-50); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  transform-origin: top right;
  animation: menu-in 180ms var(--ease-out);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.lang-menu a[aria-current="true"] { background: var(--rose-50); color: var(--rose-700); font-weight: 700; }
.lang-menu a[aria-current="true"]::after { content: "✓"; }
.lang-menu a:active { background: var(--rose-100); }
@media (hover: hover) and (pointer: fine) {
  .lang > summary:hover { border-color: var(--rose-300); }
  .lang-menu a:hover { background: var(--rose-50); }
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* ------------------------------------------------------------------ header: name, pages, Schedule */
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); } }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 760; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { font-size: .875rem; color: var(--rose-700); font-weight: 600; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 560; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.main-nav a[aria-current="page"] { color: var(--rose-700); background: var(--rose-50); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--rose-700); background: var(--rose-50); } }
.header-cta { white-space: nowrap; }
.header-cta-short { display: none; white-space: nowrap; min-height: 44px; padding: .55em 1em; font-size: .9375rem; }

/* the small-screen menu */
.menu { display: none; position: static; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 650; color: var(--ink); cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 35;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(42, 34, 48, .10);
  padding: 8px 20px 20px; animation: panel-in 200ms var(--ease-out);
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.menu-panel a[aria-current="page"] { color: var(--rose-700); }
.menu-panel .btn { width: 100%; margin-top: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .header-cta-short { display: inline-flex; }
  .menu { display: block; }
  .header-in { gap: 10px; }
  .header-in { min-height: 68px; }
}
@media (max-width: 440px) {
  /* phones: the name on one line, the short Schedule button and the menu beside it */
  .brand { gap: 8px; }
  .brand .mark { width: 32px; height: 32px; }
  .brand-name { white-space: nowrap; font-size: .98rem; }
  .brand-sub { display: none; }
  .header-cta-short { padding: .5em .85em; }
}
@media (max-width: 359px) { .header-cta-short { display: none !important; } }
@media (max-width: 560px) {
  .brand .mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .8125rem; }
  .text-us .label { display: none; }
  .utility { font-size: .875rem; }
  .menu > summary .menu-word { display: none; }
  .menu > summary { padding: 0 12px; }
}

/* ------------------------------------------------------------------ sections */
main { display: block; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--text); max-width: 760px; }

/* ------------------------------------------------------------------ home: first screen */
.hero { position: relative; background: var(--rose-50); border-bottom: 1px solid var(--line); }
.hero-in > * { animation: enter 640ms var(--ease-out) backwards; }
.hero-in > .hero-photo { animation-delay: 90ms; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(96px, 10vw, 124px); }
.hero h1 { max-width: 15em; }
.hero-text { font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem); max-width: 34em; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 420px); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 24px; box-shadow: var(--shadow); background: #8a6a4a; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-bottom: 84px; }
  .hero-photo { justify-self: start; width: min(64%, 300px); order: -1; }
  .hero-photo img { border-radius: 20px; }
}

/* the Schedule an Appointment card, right under the first screen */
.schedule-card {
  position: relative; z-index: 2; margin-top: -64px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
  padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.schedule-card h2 { margin-bottom: .2em; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); }
.schedule-card p { margin: 0; color: var(--muted); }
.schedule-choices { display: flex; gap: 12px; flex-wrap: wrap; }
.choice-link {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 230px; min-height: 72px; padding: 12px 18px 12px 18px;
  border-radius: 16px; border: 1.5px solid var(--rose-200); background: var(--rose-50); color: var(--ink); text-decoration: none;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; position: relative; padding-right: 44px;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.choice-link strong { font-size: 1.0625rem; color: var(--rose-700); }
.choice-link span { font-size: .9375rem; color: var(--muted); }
.choice-link::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--rose-700); font-weight: 700; transition: transform 160ms var(--ease-out); }
.choice-link:active { transform: scale(.98); background: var(--rose-100); }
@media (hover: hover) and (pointer: fine) {
  .choice-link:hover { border-color: var(--rose-300); background: var(--rose-100); transform: translateY(-2px); }
  .choice-link:hover::after { transform: translate(3px, -50%); }
}
@media (max-width: 900px) {
  .schedule-card { grid-template-columns: 1fr; }
  .choice-link { flex: 1 1 220px; min-width: 0; }
}

/* ------------------------------------------------------------------ info cards: address, hours, text us */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.info-grid .info-card { border: 0; border-radius: 0; background: none; padding: 26px 28px; }
.info-grid .info-card + .info-card { border-left: 1px solid var(--line); }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.info-card h3 { display: flex; align-items: center; gap: .5em; font-size: 1.0625rem; margin-bottom: .6em; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--rose-700); flex: none; }
.info-card p { margin: 0 0 .35em; }
.info-card .btn { margin-top: 12px; min-height: 44px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 4px 0; text-align: left; vertical-align: top; font-weight: 500; }
.hours th { padding-right: 12px; color: var(--text); }
.hours td { color: var(--ink); font-weight: 650; white-space: nowrap; }
.hours tr.closed td { color: var(--muted); font-weight: 500; }
.side .hours tr { display: block; margin-bottom: 8px; }
.side .hours th, .side .hours td { display: block; padding: 0; }
.phone-big { font-size: 1.35rem; font-weight: 750; color: var(--rose-700); white-space: nowrap; text-decoration: none; }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .info-card + .info-card { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.cards .card { padding: 24px 0 28px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--rose-100); color: var(--rose-700); margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: .35em; margin-top: 24px; font-weight: 650; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ meet Dr. Yin, office photos, hospitals */
.meet { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.meet p { max-width: 62ch; }
.meet img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--white); box-shadow: var(--shadow); }
@media (max-width: 700px) { .meet { grid-template-columns: 1fr; } .meet img { width: 160px; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.gallery figcaption { font-size: .9375rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; }
  .gallery li { scroll-snap-align: start; }
}

.hospitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hospitals li { padding: 18px 0 0; border-top: 1px solid var(--line); }
.hospitals strong { display: block; color: var(--ink); }
.hospitals span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .hospitals { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ inner pages */
.page-head { background: var(--rose-50); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; color: var(--muted); }
.prose { max-width: 68ch; }
.wrap.prose { max-width: var(--wrap); }          /* full-width pages: the text column lines up with the title */
.wrap.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--rose-500); }
.notice-headline { font-weight: 700; color: var(--ink); padding: 16px 20px; border: 1px solid var(--rose-200); background: var(--rose-50); border-radius: var(--radius-sm); }
.notice h2 { font-size: 1.3rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 24px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .side { position: static; } }

.portrait { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.awards { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.awards li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.awards svg { width: 22px; height: 22px; color: var(--rose-700); flex: none; margin-top: 2px; }
.note-box { padding: 20px 22px; border-radius: var(--radius); background: var(--rose-50); border: 1px solid var(--rose-100); }
.note-box h3 { margin-bottom: .3em; }
.note-box p:last-child { margin: 0; }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2em 0 0; }
.proof img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.svc-grid > .card:not(.note-box), .guide > .card { padding: 24px 0 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.card h2.h3 { font-size: 1.25rem; margin-bottom: .35em; }
.card.note-box .btn { margin-top: 14px; }
.guide-note { margin: 20px 0 0; font-weight: 600; color: var(--ink); }
.after-cards { margin-top: 40px; }
.svc-grid .card ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--text); }
.svc-grid .card li { margin-bottom: .3em; }
.svc-grid .card li::marker { color: var(--rose-500); }
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } }
.guide { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0 48px; margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-500); box-shadow: 0 0 0 4px var(--rose-100); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 1.3em; bottom: -.2em; width: 2px; background: var(--rose-100); }
.timeline li:last-child::after { display: none; }
@media (max-width: 800px) { .guide { grid-template-columns: 1fr; } }

.steps { display: grid; gap: 16px; }
.step { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step h2 { font-size: 1.3rem; margin-bottom: .4em; }
.step ul { margin: 0; padding-left: 1.2em; }
.step p:last-child { margin: 0; }
.downloads { list-style: none; padding: 0; margin: .6em 0 0; display: grid; gap: 8px; }
.downloads a { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; min-height: 44px; }
.downloads svg { width: 20px; height: 20px; flex: none; }
.alert-911 { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bad-bg); color: #7a1c15; font-weight: 600; }
.alert-911 svg { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------------ Schedule an Appointment form */
.form-wrap { max-width: 720px; }
.form-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.form-intro { display: grid; gap: 6px; margin-bottom: 24px; }
.form-intro p { margin: 0; }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend, .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; font-size: 1.0625rem; }
.hint { display: block; font-size: .9375rem; color: var(--muted); margin: -4px 0 8px; }
.field { margin-bottom: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
label.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; min-height: 72px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
label.choice:active { transform: scale(.985); }
label.choice input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; flex: none; border: 2px solid #8a7c8b; border-radius: 50%; background: var(--white); transition: border-color 160ms ease, box-shadow 160ms ease; }
label.choice input:checked { border-color: var(--rose-700); box-shadow: inset 0 0 0 5px var(--rose-700); }
label.choice:has(input:checked) { border-color: var(--rose-700); background: var(--rose-50); }
label.choice strong { display: block; color: var(--ink); }
label.choice span span { display: block; font-size: .9375rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { label.choice:hover { border-color: var(--rose-300); } }

input.text, select.text {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: max(16px, 1.0625rem); color: var(--ink);
  border: 1.5px solid #8a7c8b; border-radius: 12px; background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select.text { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236e6574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input.text:focus, select.text:focus { outline: none; border-color: var(--rose-700); box-shadow: 0 0 0 4px var(--rose-100); }
input.text::placeholder { color: #a197a6; }
input.text:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); }
.dob { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 10px; }      /* month, day, year */
.dob.dmy { grid-template-columns: .8fr 1.6fr 1fr; }                               /* día, mes, año */
.dob.ymd { grid-template-columns: 1.1fr 1fr .8fr; }                               /* 年 月 日 */
.dob label { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; margin-top: -6px; touch-action: manipulation; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rose-700); flex: none; }

.field.invalid input.text, .field.invalid select.text, fieldset.invalid label.choice { border-color: var(--bad); }
.error { display: none; color: var(--bad); font-size: .9375rem; font-weight: 600; margin-top: 6px; }
.field.invalid .error, fieldset.invalid .error { display: block; }
.error-summary { display: none; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: #7a1c15; font-weight: 600; }
.error-summary.show { display: block; }
.send-problem { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: #7a1c15; font-weight: 600; }
.send-problem.show { display: block; }
.small-print { font-size: .9375rem; color: var(--muted); margin: 0 0 12px; }
.small-print.consent { margin-top: 20px; }
.muted-field { opacity: .55; }
.muted-field .hint, .muted-field .label { color: var(--muted); }
.lock-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--muted); margin: 0 0 20px; }
.lock-line svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.form-actions .btn { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: clamp(28px, 6vw, 48px) clamp(16px, 4vw, 36px); }
.done .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e6f4ec; color: var(--ok); }
.done .tick svg { width: 34px; height: 34px; }
.done h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.done p { max-width: 520px; margin-left: auto; margin-right: auto; }
.done .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.done:focus { outline: none; }

/* ------------------------------------------------------------------ "Text us" on a computer: the number to copy */
.sms-pop {
  position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 32px)); transform: translateX(-50%);
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(42, 34, 48, .08), 0 18px 44px rgba(42, 34, 48, .16);
  animation: pop-in 220ms var(--ease-out);
}
.sms-pop p { margin: 0 0 14px; color: var(--ink); }
.sms-pop strong { color: var(--rose-700); font-size: 1.15em; }
.sms-pop-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #241b22; color: #d9cfd5; padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.footer-grid p { margin: 0 0 .4em; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: #fff; font-weight: 700; }
.footer-brand .mark { width: 36px; height: 36px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 6px; color: #b9adb4; }
.footer-bottom p { margin: 0; }
.site-footer .hours th { color: #d9cfd5; }
.site-footer .hours td { color: #fff; }
.site-footer .hours tr.closed td { color: #b9adb4; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ less motion when asked */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .btn:active, label.choice:active, .choice-link:active { transform: none; }
}

@media print {
  .utility, .site-header, .site-footer, .hero-photo, .schedule-card, .skip { display: none !important; }
  body { font-size: 12pt; }
}
