/* DoctorIndex – one stylesheet, no framework. Light, clinical, modern. */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e4e8f0;
  --brand: #0d7a6f;
  --brand-2: #14b8a6;
  --brand-ink: #064e48;
  --accent: #6366f1;
  --warn: #b45309;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(13, 122, 111, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font: 600 .95rem var(--sans);
  padding: .8rem 1.4rem; border-radius: 12px; box-shadow: 0 6px 18px -8px rgba(13, 122, 111, .7); transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(13, 122, 111, .7); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 999px; background: #eef2f7; color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.wip { background: #e0e7ff; color: #3730a3; }
.tag.warn { background: #fef3c7; color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; color: var(--brand-ink);
  background: rgba(20, 184, 166, .1); border: 1px solid rgba(20, 184, 166, .25); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(247, 248, 251, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(228, 232, 240, .8); }
.nav-in { display: flex; align-items: center; gap: 1.2rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand); font-weight: 700; }
.nav-search { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.nav-search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .5rem .8rem; font: inherit; font-size: .9rem; }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; }
.nav-search + .nav-links { margin-left: 0; }
.nav-links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.nav-links a[aria-current] { color: var(--brand); }
@media (max-width: 720px) { .nav-search { display: none; } .nav-links { gap: .9rem; } .nav-links a { font-size: .85rem; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); text-align: center;
  background: radial-gradient(1200px 500px at 50% -10%, #e6fffb 0%, rgba(230, 255, 251, 0) 60%), var(--bg); }
.hero-glow { position: absolute; inset: -40% -20% auto; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .12), transparent 70%) 20% 40% / 50% 100% no-repeat,
              radial-gradient(closest-side, rgba(20, 184, 166, .16), transparent 70%) 80% 30% / 50% 100% no-repeat; }
.hero-in { position: relative; }
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 680px; margin-inline: auto; }
.small-hero { padding: 5rem 0; }

.big-search { position: relative; display: flex; align-items: center; gap: .5rem; max-width: 720px; margin: 2rem auto 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .45rem .45rem .45rem 1rem; box-shadow: var(--shadow-lg);
  transition: border-color .15s, box-shadow .15s; text-align: left; }
.big-search:focus-within { border-color: var(--brand-2); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(20, 184, 166, .15); }
.big-search .ico { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.08rem; padding: .7rem .2rem; background: transparent; }
.big-search input::-webkit-search-cancel-button { display: none; }
@media (max-width: 520px) { .big-search .btn { padding: .75rem 1rem; } .big-search input { font-size: 1rem; } }

/* suggestions */
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .25); padding: .35rem; max-height: 420px; overflow: auto; text-align: left; }
.suggest a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .8rem; border-radius: 10px; color: var(--ink); }
.suggest a:hover, .suggest a.active { background: #f0fdfa; text-decoration: none; }
.suggest .s-name { font-weight: 500; }
.suggest .s-name mark { background: none; color: var(--brand); font-weight: 700; }
.suggest .s-meta { font-size: .78rem; color: var(--muted); }
.suggest .s-empty { padding: .8rem; color: var(--muted); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  padding: .4rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 500; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--brand-2); text-decoration: none; transform: translateY(-1px); }

/* how */
.how { padding: 1rem 0 3.5rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-card { padding: 1.5rem; }
.how-card .num { font-family: var(--serif); font-size: 1.6rem; color: var(--brand-2); margin-bottom: .4rem; }
.how-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.how-note { text-align: center; color: var(--muted); margin-top: 1.4rem; font-size: .95rem; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

/* catalog */
.catalog { padding: 1rem 0 3rem; }
.section-head { margin-bottom: 1.4rem; }
.areas { columns: 3 260px; column-gap: 1rem; }
.area { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.area h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.area ul { list-style: none; padding: 0; margin: 0; }
.area li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-top: 1px dashed var(--line); }
.area li:first-child { border-top: 0; }
.area a { color: var(--ink); font-size: .95rem; }
.missing { padding-bottom: 4rem; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 2rem;
  background: linear-gradient(135deg, #f0fdfa, #eef2ff); }
.cta-card h2 { margin-bottom: .2rem; }
.cta-card p { margin: 0; }
@media (max-width: 640px) { .cta-card { flex-direction: column; align-items: flex-start; } }

/* disease page */
.d-hero { padding: 2.6rem 0 2rem; background: linear-gradient(180deg, #ecfdf9 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.d-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.d-hero .lead { margin-inline: 0; }
.d-hero .big-search { margin-inline: 0; }
.crumbs { color: var(--muted); margin-bottom: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; padding: 2rem 0 4rem; align-items: start; }
@media (max-width: 960px) { .d-layout { grid-template-columns: 1fr; } }
.summary { font-size: 1.05rem; color: var(--ink-2); }
.notice { padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-2); background: #fffbeb; border-color: #fde68a; margin-bottom: 1.2rem; }
.doctors { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.doc { padding: 1.4rem 1.5rem; }
.doc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); letter-spacing: .02em; }
.doc h2 { font-size: 1.2rem; margin: 0; }
.doc .title { color: var(--muted); font-weight: 500; font-size: .95rem; }
.where { margin: .15rem 0 0; color: var(--ink-2); font-size: .93rem; }
.doc-stats { display: flex; flex-direction: column; gap: .15rem; text-align: right; font-size: .8rem; color: var(--muted); }
.doc-stats b { color: var(--ink); font-size: .95rem; }
@media (max-width: 600px) { .doc-head { grid-template-columns: auto 1fr; } .doc-stats { grid-column: 1 / -1; flex-direction: row; gap: 1rem; text-align: left; } }
.why { margin: 1rem 0 0; padding: .8rem 1rem; background: #f0fdfa; border-radius: 12px; color: var(--brand-ink); font-size: .95rem; }
.facts { display: grid; gap: .9rem; margin-top: 1.1rem; }
.fact-group h3 { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-2); margin-bottom: .35rem; }
.fact-group ul { list-style: none; margin: 0; padding: 0 0 0 2rem; }
.fact-group li { padding: .3rem 0; border-top: 1px solid #f1f4f8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; font-size: .93rem; }
.fact-group li:first-child { border-top: 0; }
.f-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.cat { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px; font-size: .75rem; font-weight: 700; color: #fff; flex: none; }
.cat-A { background: #6366f1; } .cat-B { background: #8b5cf6; } .cat-C { background: #0ea5e9; } .cat-D { background: #0d7a6f; }
.cat-E { background: #f59e0b; } .cat-F { background: #10b981; } .cat-G { background: #ef4444; } .cat-H { background: #64748b; }
.more { margin-top: 1.2rem; padding: 1.5rem; background: linear-gradient(135deg, #ffffff, #f5f3ff); }
.more-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.more-head h2 { margin: 0 0 .2rem; }
.more-head p { margin: 0; }
.stack { display: flex; flex: none; }
.stack span { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #c7d2fe, #99f6e4); border: 3px solid #fff; margin-left: -10px; filter: blur(.4px); }
.stack span:first-child { margin-left: 0; }
.more .req-form { box-shadow: none; }
.wip-card { display: flex; gap: 1rem; padding: 1.5rem; margin-bottom: 1rem; align-items: flex-start; }
.wip-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.d-side { display: grid; gap: 1rem; position: sticky; top: 84px; }
@media (max-width: 960px) { .d-side { position: static; } }
.side-card { padding: 1.2rem 1.3rem; }
.side-card h3 { font-size: .95rem; }
.cats { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; font-size: .9rem; }
.cats li { display: flex; gap: .55rem; align-items: center; }
.rel { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .92rem; }

/* forms */
.req-form { padding: 1.4rem; display: grid; gap: .9rem; }
.req-form h3 { margin: 0; font-size: 1.1rem; }
.req-form p.muted { margin: 0; }
.req-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.req-form .opt { color: var(--muted); font-weight: 400; }
.req-form input:not([type=checkbox]), .req-form textarea { width: 100%; font: inherit; font-size: .95rem; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.req-form input:focus, .req-form textarea:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.req-form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.req-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.req-form .check input { margin-top: .25rem; accent-color: var(--brand); }
.req-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; padding: .75rem 1rem; border-radius: 12px; font-size: .92rem; }
.form-msg.ok { background: #dcfce7; color: #166534; }
.form-msg.err { background: #fee2e2; color: #991b1b; }

/* search results */
.results { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; gap: .6rem; }
.res { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: var(--ink); transition: border-color .15s; }
.res:hover { border-color: var(--brand-2); text-decoration: none; }
.narrow .req-form { margin: 1.5rem 0 4rem; }

/* prose */
.prose { padding: 2rem 0 4rem; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 2.5rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2rem; }
.foot-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.foot-grid a:not(.brand) { display: block; color: var(--ink-2); font-size: .92rem; margin-bottom: .3rem; }
.foot-grid p { margin-top: .6rem; max-width: 360px; }
.foot-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.2rem; } }
.eyebrow { margin: 0 0 .3rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.h1-sub { display: block; font-family: var(--sans); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-top: .4rem; }
.seo-text { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }
.seo-text h2 { color: var(--ink); }
.seo-text li { margin-bottom: .35rem; }
.nav-cta { padding: .4rem .8rem; border-radius: 10px; background: rgba(20, 184, 166, .12); color: var(--brand-ink) !important; }
.nav-cta:hover { text-decoration: none; background: rgba(20, 184, 166, .2); }
@media (max-width: 520px) { .nav-links a:not(.nav-cta) { display: none; } }
.search-hint { margin: .9rem auto 0; max-width: 640px; }
.now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.now-card { display: grid; gap: .4rem; padding: 1.3rem 1.4rem; color: var(--ink); transition: border-color .15s, transform .15s; }
.now-card:hover { border-color: var(--brand-2); text-decoration: none; transform: translateY(-2px); }
.now-card b { font-size: 1.15rem; }
.now-card .tag { justify-self: start; white-space: normal; }
.now-area { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.planned-head { margin-top: .5rem; }
