
/* Layout idea: a deep navy hero carries the search and a row of treatment choices; below, a cool slate page with quiet white panels, where each clinic's Google rating is the loudest number. One light theme by choice. */
:root {
  color-scheme: light;
  --bg: #e7ebee;
  --surface: #ffffff;
  --ink: #0f1d2b;
  --muted: #5a6876;
  --line: #d3dae0;
  --brand: #12384f;
  --brand-deep: #0c2a3c;
  --brand-soft: #e4ebf0;
  --sun: #c39a4b;
  --navy: #0d1f2d;
  --navy-2: #13293a;
  --on-navy: #eef2f5;
  --on-navy-muted: #9fb0be;
  --navy-line: rgba(255, 255, 255, .12);
  --note-bg: #f3ecdc;
  --note-ink: #5b4614;
  --font: "Readex Pro", "DM Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  --shadow: 0 18px 40px -26px rgba(13, 31, 45, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
[dir="rtl"] body { line-height: 1.75; }
button, select, input { font: inherit; color: inherit; }
a { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.inner { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .sf { fill: none; }
.ico .sf2 { fill: none; }
.ico .kf { fill: none; }
.ico .dot { fill: currentColor; stroke: none; }

[data-k] { --cb: #eef2f5; --cf: #12384f; }

.strip { background: var(--note-bg); color: var(--note-ink); font-size: 13px; padding-block: 6px; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 0%, var(--navy-2) 0%, var(--navy) 60%); color: var(--on-navy); padding-bottom: 44px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand svg { width: 30px; height: 34px; flex: none; }
.langsw { display: flex; background: transparent; border: 1px solid var(--navy-line); border-radius: 999px; padding: 3px; gap: 2px; direction: ltr; }
.langsw a { border: 0; background: transparent; color: var(--on-navy-muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.langsw a:hover { color: var(--on-navy); }
.langsw a[aria-pressed="true"] { background: var(--on-navy); color: var(--navy); font-weight: 600; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 40px 6px; max-width: 760px; }
h1 { font-weight: 500; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.035em; }
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.3; }
.lede { margin-top: 18px; max-width: 50ch; color: var(--on-navy-muted); font-size: 19px; font-weight: 300; }
.search { margin-top: 30px; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border: 0; border-radius: 12px; padding-block: 7px; padding-inline: 18px 7px; max-width: 540px; box-shadow: var(--shadow); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(195, 154, 75, .55); }
.search .ico { width: 22px; height: 22px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; font-size: 17px; }
.search button { flex: none; border: 0; background: var(--sun); color: var(--navy); border-radius: 8px; padding: 12px 22px; font-weight: 600; cursor: pointer; }
.search button:hover { background: #d4ad62; }
.basis { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--on-navy-muted); font-size: 14.5px; }
.basis svg { width: 18px; height: 18px; fill: var(--sun); flex: none; }

.need { margin-top: 40px; border-top: 1px solid var(--navy-line); padding-top: 26px; }
.need h2 { font-size: 15px; font-weight: 400; color: var(--on-navy-muted); margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(255, 255, 255, .03); color: var(--on-navy); border: 1px solid var(--navy-line); border-radius: 10px; padding: 18px 6px 14px; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.3; text-align: center; transition: border-color .15s, transform .15s; }
.tile .bub { width: 40px; height: 40px; display: grid; place-items: center; color: var(--sun); }
.tile .bub svg { width: 30px; height: 30px; }
.tile:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.tile[aria-pressed="true"] { background: var(--on-navy); border-color: var(--on-navy); color: var(--navy); }
.tile[aria-pressed="true"] .bub { color: var(--brand); }

/* Sections */
main { display: flex; flex-direction: column; gap: 64px; padding-block: 44px 72px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.big { font-size: clamp(25px, 3.2vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
[dir="rtl"] .big { letter-spacing: 0; line-height: 1.4; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 8px; padding: 10px 20px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn .ico { width: 18px; height: 18px; }

/* Shared clinic parts */
.medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--sun); color: var(--brand); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }
.medal.m1 { background: var(--sun); color: var(--navy); }
.ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 15px; letter-spacing: .02em; line-height: 1; background: var(--brand-soft); color: var(--brand); flex: none; }
.name { font-weight: 600; font-size: 16.5px; line-height: 1.4; overflow-wrap: anywhere; }
.alt { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
html[dir="ltr"] .name, html[dir="ltr"] .alt { text-align: left; }
html[dir="rtl"] .name, html[dir="rtl"] .alt { text-align: right; }
.flag { display: inline-flex; margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding-block: 1px; padding-inline: 5px 8px; }
.tag svg { width: 15px; height: 15px; }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.src svg { width: 13px; height: 13px; }
.rate { font-variant-numeric: tabular-nums; }
.rate b { font-size: 22px; font-weight: 700; line-height: 1.2; }
.rate .rev, .rate.none { font-size: 13px; color: var(--muted); }
.stars { --p: 100%; font-size: 15px; line-height: 1; letter-spacing: 1px; background-image: linear-gradient(90deg, var(--sun) var(--p), var(--line) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .stars { background-image: linear-gradient(270deg, var(--sun) var(--p), var(--line) var(--p)); }
.scorebox { font-variant-numeric: tabular-nums; }
.scorebox small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.scorebox b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--brand-deep); }
.scorebox .parts { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Top three */
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pod.r1 { border-top: 3px solid var(--sun); }
.pod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pod-top .scorebox { text-align: end; }
.idrow { display: flex; gap: 12px; align-items: flex-start; }
.pod .rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pod .btn { margin-top: auto; }
.who { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; background: transparent; border: 1px solid #c4ced6; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: var(--muted); }
.who strong { color: var(--ink); }
.who svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }

/* Ranking */
#ranking { scroll-margin-top: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mini { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding-inline: 12px; height: 42px; min-width: 250px; }
.mini:focus-within { border-color: var(--brand); }
.mini .ico { width: 18px; height: 18px; color: var(--muted); }
.mini input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding-inline: 12px; color: var(--ink); font-size: 15px; }
.toolbar { position: sticky; top: 0; z-index: 5; margin-inline: -20px; padding: 10px 20px; background: rgba(231, 235, 238, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding-block: 7px; padding-inline: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 500; }
.chip .dot { width: 20px; height: 20px; display: grid; place-items: center; color: var(--brand); }
.chip .dot svg { width: 17px; height: 17px; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed="true"] .dot { color: var(--sun); }
.count { margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 44px 48px minmax(0, 1fr) 168px 138px auto; column-gap: 16px; row-gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .15s; }
.row:hover { border-color: #aab7c2; }
.row > .rankc { grid-column: 1; grid-row: 1 / span 2; justify-self: center; }
.rank { font-weight: 600; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row > .ava { grid-column: 2; grid-row: 1 / span 2; }
.row > .names { grid-column: 3; grid-row: 1; align-self: end; }
.row > .tags { grid-column: 3; grid-row: 2; align-self: start; }
.row > .rate { grid-column: 4; grid-row: 1 / span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.row > .rate .rev { grid-column: 1 / -1; }
.foot { display: contents; }
.foot > .scorebox { grid-column: 5; grid-row: 1 / span 2; }
.foot > .mapbtn { grid-column: 6; grid-row: 1 / span 2; }
.mapbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); text-decoration: none; white-space: nowrap; }
.mapbtn svg { width: 17px; height: 17px; }
.mapbtn:hover { border-color: var(--brand); background: var(--brand-soft); }
.empty { background: var(--surface); border: 1px dashed #b6c2cc; border-radius: 18px; padding: 28px 18px; color: var(--muted); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty[hidden], .more[hidden] { display: none; }
.more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* Method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps li::before { counter-increment: step; content: counter(step); display: block; color: var(--sun); font-size: 28px; font-weight: 300; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; margin-top: 18px; }
.formula-card { background: var(--navy); color: #eaf4f5; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.formula { background: rgba(255, 255, 255, .09); border-radius: 14px; padding: 16px; font-weight: 600; font-size: 16px; direction: ltr; text-align: center; overflow-x: auto; white-space: nowrap; }
.formula-card p { font-size: 14.5px; color: #b9d1d5; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc h3 { font-size: 18px; font-weight: 600; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.calc input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; }
.calc .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; align-items: end; }
.calc output { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.calc output b { font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.card ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.sources { display: flex; flex-direction: column; gap: 10px; max-width: 76ch; color: var(--muted); font-size: 15px; }
.sources .big { color: var(--ink); margin-bottom: 6px; }
footer { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: 14px; }
footer .inner { display: flex; align-items: center; gap: 12px; }
footer svg { width: 24px; height: 27px; flex: none; }

@media (max-width: 980px) {
  .row { grid-template-columns: 44px 48px minmax(0, 1fr) 150px 126px; }
  .foot > .mapbtn { grid-column: 3 / -1; grid-row: 3; justify-self: start; }
  .foot > .scorebox { grid-column: 5; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 4px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 4px 10px; font-size: 13.5px; border-radius: 16px; gap: 8px; }
  .tile .bub { width: 34px; height: 34px; }
  .tile .bub svg { width: 26px; height: 26px; }
  .podium, .steps, .method-grid, .two { grid-template-columns: minmax(0, 1fr); }
  main { gap: 52px; padding-block: 36px 60px; }
}
@media (max-width: 720px) {
  .lede { font-size: 17px; }
  .search button { padding-inline: 16px; }
  .mini { min-width: 0; flex: 1; }
  .controls { width: 100%; }
  .row { grid-template-columns: 40px 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .row > .rankc, .row > .ava, .row > .names, .row > .tags, .row > .rate { grid-column: auto; grid-row: auto; }
  .row > .names { align-self: center; }
  .row > .ava { width: 42px; height: 42px; }
  .row > .rate { grid-column: 1 / -1; order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .row > .tags { grid-column: 1 / -1; order: 2; }
  .foot { display: flex; grid-column: 1 / -1; order: 3; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .row { transition: none; }
  .tile:hover { transform: none; }
}

/* 3D layer: every card is a raised panel lit from above; every tab and button is a physical key that presses in. */
:root {
  --lift: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(13, 31, 45, .05), 0 1px 1px rgba(13, 31, 45, .06), 0 3px 6px rgba(13, 31, 45, .06), 0 12px 24px -6px rgba(13, 31, 45, .14), 0 30px 60px -22px rgba(13, 31, 45, .28);
  --lift-hi: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(13, 31, 45, .05), 0 2px 2px rgba(13, 31, 45, .06), 0 6px 12px rgba(13, 31, 45, .08), 0 22px 40px -8px rgba(13, 31, 45, .2), 0 48px 80px -28px rgba(13, 31, 45, .36);
  --panel: linear-gradient(180deg, #ffffff 0%, #fbfcfd 55%, #f2f5f7 100%);
  --gold-face: radial-gradient(circle at 32% 26%, #fff3cf 0%, #f0cf7f 22%, #c99a3f 55%, #8f6720 100%);
  --silver-face: radial-gradient(circle at 32% 26%, #ffffff 0%, #e3e9ee 25%, #a9b6c1 60%, #6d7c89 100%);
  --bronze-face: radial-gradient(circle at 32% 26%, #ffe3cc 0%, #e3a476 25%, #b06b3a 60%, #6f3d1b 100%);
}
.pod, .row, .card, .steps li, .calc, .empty {
  background: var(--panel); border: 1px solid rgba(13, 31, 45, .07); box-shadow: var(--lift);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.pod:hover, .row:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); border-color: rgba(13, 31, 45, .07); }
.pod { position: relative; overflow: hidden; }
.pod::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); pointer-events: none; }
.pod > * { position: relative; }
.pod.r1 { border-top: 1px solid rgba(13, 31, 45, .07); box-shadow: inset 0 3px 0 #d6ad5c, var(--lift-hi); }
.who { background: linear-gradient(180deg, #eef1f4, #e4e9ed); border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 2px 5px rgba(13, 31, 45, .1), inset 0 -1px 0 rgba(255, 255, 255, .8); }
.formula-card { background: linear-gradient(165deg, #183248 0%, #0d1f2d 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 40px -14px rgba(13, 31, 45, .55), 0 40px 70px -30px rgba(13, 31, 45, .5); }
.formula { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .08); }
.calc input, .mini, .sort select { background: linear-gradient(180deg, #eef2f5, #f8fafb); box-shadow: inset 0 2px 4px rgba(13, 31, 45, .1), 0 1px 0 rgba(255, 255, 255, .9); border-color: rgba(13, 31, 45, .1); }

/* Treatment tiles in the hero: glass keys with a gold coin. */
.tile {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 2px 0 #08141d, 0 10px 18px -6px rgba(0, 0, 0, .55), 0 22px 30px -18px rgba(0, 0, 0, .6);
  transition: transform .14s, box-shadow .14s, background .14s;
}
.tile:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .22); }
.tile:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 #08141d; }
.tile .bub {
  width: 50px; height: 50px; border-radius: 50%; color: #3b2a0a; background: var(--gold-face);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(80, 50, 5, .45), 0 4px 8px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .2);
}
.tile .bub svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .7)); }
.tile[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f5 60%, #d9e1e7 100%); color: var(--navy); border-color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -3px 0 #b9c6d0, 0 2px 0 #08141d, 0 14px 26px -8px rgba(0, 0, 0, .6);
}
.tile[aria-pressed="true"] .bub { color: #3b2a0a; }

/* Filter tabs: raised pills that press in; the active one is sunk navy. */
.chip {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6f8 60%, #e6ebef 100%); border: 1px solid rgba(13, 31, 45, .12); border-radius: 999px;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 rgba(13, 31, 45, .07), 0 1px 0 rgba(13, 31, 45, .18), 0 4px 8px -2px rgba(13, 31, 45, .16);
  transition: transform .12s, box-shadow .12s;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(13, 31, 45, .2); }
.chip:active { transform: translateY(1px); }
.chip .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-face); color: #3b2a0a; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -2px 3px rgba(80, 50, 5, .4), 0 1px 2px rgba(0, 0, 0, .3); }
.chip .dot svg { width: 15px; height: 15px; }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #0b1a26 0%, #163247 100%); border-color: #0b1a26; color: #fff;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 rgba(255, 255, 255, .8);
}
.chip[aria-pressed="true"] .dot { color: #3b2a0a; }
.langsw { background: rgba(0, 0, 0, .25); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .1); }
.langsw a[aria-pressed="true"] { background: linear-gradient(180deg, #ffffff, #dfe6eb); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, .45); }

/* Rank coins. */
.medal { border: 0; background: linear-gradient(180deg, #ffffff, #e3e9ee); color: var(--brand); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(13, 31, 45, .18), 0 3px 6px rgba(13, 31, 45, .25); text-shadow: 0 1px 0 #fff; }
.medal.m1, .medal.m2, .medal.m3 { width: 44px; height: 44px; font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .25);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .75), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 4px rgba(13, 31, 45, .12), 0 8px 14px rgba(13, 31, 45, .35); }
.medal.m1 { background: var(--gold-face); } .medal.m2 { background: var(--silver-face); } .medal.m3 { background: var(--bronze-face); }
.ava { background: radial-gradient(circle at 35% 28%, #ffffff 0%, #e6edf2 45%, #c6d3dc 100%); box-shadow: inset 0 -2px 3px rgba(13, 31, 45, .18), inset 0 1px 1px #fff, 0 3px 6px rgba(13, 31, 45, .18); text-shadow: 0 1px 0 #fff; }

/* Small keycaps and buttons. */
.tag { background: linear-gradient(180deg, #ffffff, #eef2f5); border-color: rgba(13, 31, 45, .1); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(13, 31, 45, .14), 0 2px 3px -1px rgba(13, 31, 45, .12); }
.btn, .search button { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 3px 0 #071824, 0 8px 16px -4px rgba(13, 31, 45, .45); transition: transform .1s, box-shadow .1s; }
.btn { background: linear-gradient(180deg, #1e4d69 0%, #12384f 60%, #0d2c3f 100%); }
.search button { background: linear-gradient(180deg, #e7c47b 0%, #c99d48 60%, #a97f30 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 3px 0 #7a5a1f, 0 8px 16px -4px rgba(0, 0, 0, .4); text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.btn.ghost, .mapbtn { background: linear-gradient(180deg, #ffffff 0%, #f1f4f7 100%); color: var(--brand); border: 1px solid rgba(13, 31, 45, .14); box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(13, 31, 45, .16), 0 6px 12px -4px rgba(13, 31, 45, .2); transition: transform .1s, box-shadow .1s; }
.btn:hover, .search button:hover, .mapbtn:hover, .btn.ghost:hover { transform: translateY(-1px); }
.btn:active, .search button:active, .mapbtn:active, .btn.ghost:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .3); }
.search { box-shadow: inset 0 -2px 0 rgba(13, 31, 45, .06), 0 2px 0 rgba(0, 0, 0, .25), 0 18px 36px -12px rgba(0, 0, 0, .6); }
.steps li::before { color: transparent; background: linear-gradient(180deg, #e7c47b, #a97f30); -webkit-background-clip: text; background-clip: text; font-weight: 600; font-size: 34px; filter: drop-shadow(0 2px 1px rgba(13, 31, 45, .2)); }
.toolbar { background: rgba(231, 235, 238, .82); box-shadow: 0 10px 18px -16px rgba(13, 31, 45, .5); }
@media (prefers-reduced-motion: reduce) {
  .pod, .row, .tile, .chip, .btn, .mapbtn, .search button { transition: none; }
  .pod:hover, .row:hover, .tile:hover, .chip:hover, .btn:hover, .mapbtn:hover, .search button:hover { transform: none; }
}

/* Each treatment has its own jewel colour: light, mid and dark shades for the 3D coin and key. */
[data-k="all"]       { --c1: #f6f8fa; --c2: #8fa3b3; --c3: #3c5263; }
[data-k="implants"]  { --c1: #c9f1f5; --c2: #1ea3b6; --c3: #0a5562; }
[data-k="ortho"]     { --c1: #d6e1ff; --c2: #4a6fe0; --c3: #1f3584; }
[data-k="pediatric"] { --c1: #ffd9cf; --c2: #ec6a4f; --c3: #8c2a17; }
[data-k="cosmetic"]  { --c1: #fff0c4; --c2: #e0a82a; --c3: #85590a; }
[data-k="gum"]       { --c1: #ffd6e6; --c2: #d9487f; --c3: #7c1940; }
[data-k="endo"]      { --c1: #e7dcff; --c2: #8a5ce0; --c3: #45237f; }
[data-k="surgery"]   { --c1: #d2f5df; --c2: #2fae68; --c3: #135a33; }
.tile .bub, .chip .dot { background: radial-gradient(circle at 32% 26%, #ffffff 0%, var(--c1) 22%, var(--c2) 58%, var(--c3) 100%); color: #fff; }
.tile .bub svg, .chip .dot svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.tile .bub { box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 4px 8px rgba(0, 0, 0, .45); }
.tile { background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 34%, transparent) 0%, color-mix(in srgb, var(--c3) 30%, transparent) 100%); border-color: color-mix(in srgb, var(--c1) 30%, transparent); }
.tile:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 48%, transparent) 0%, color-mix(in srgb, var(--c3) 40%, transparent) 100%); }
.tile[aria-pressed="true"] { background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 62%, var(--c3) 100%); border-color: var(--c1); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 2px 0 #08141d, 0 14px 26px -8px rgba(0, 0, 0, .6); }
.tile[aria-pressed="true"] .bub { color: #fff; }
.chip { background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--c1) 45%, #ffffff) 100%); border-color: color-mix(in srgb, var(--c2) 35%, transparent); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, var(--c2) 0%, var(--c3) 100%); border-color: var(--c3); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.chip[aria-pressed="true"] .dot { color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 0 0 2px rgba(255, 255, 255, .55); }
.tag[data-k] { color: var(--c3); background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--c1) 55%, #ffffff)); border-color: color-mix(in srgb, var(--c2) 30%, transparent); }

/* Coloured clinic cards: a tinted 3D panel with a coloured edge and a matching coin for the initials. */
.tinted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--c1) 85%, #ffffff) 0%, color-mix(in srgb, var(--c1) 30%, #ffffff) 55%, color-mix(in srgb, var(--c1) 60%, #ffffff) 100%);
  border: 1px solid color-mix(in srgb, var(--c2) 30%, transparent);
  box-shadow: inset 5px 0 0 var(--c2), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 color-mix(in srgb, var(--c3) 14%, transparent),
    0 1px 1px rgba(13, 31, 45, .06), 0 4px 8px color-mix(in srgb, var(--c3) 12%, transparent), 0 16px 30px -10px color-mix(in srgb, var(--c3) 32%, transparent), 0 34px 60px -26px rgba(13, 31, 45, .3);
}
[dir="rtl"] .tinted { box-shadow: inset -5px 0 0 var(--c2), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 color-mix(in srgb, var(--c3) 14%, transparent),
    0 1px 1px rgba(13, 31, 45, .06), 0 4px 8px color-mix(in srgb, var(--c3) 12%, transparent), 0 16px 30px -10px color-mix(in srgb, var(--c3) 32%, transparent), 0 34px 60px -26px rgba(13, 31, 45, .3); }
.tinted:hover { box-shadow: inset 5px 0 0 var(--c2), inset 0 1px 0 #fff, 0 2px 2px rgba(13, 31, 45, .06), 0 8px 14px color-mix(in srgb, var(--c3) 16%, transparent), 0 26px 44px -10px color-mix(in srgb, var(--c3) 40%, transparent), 0 50px 80px -30px rgba(13, 31, 45, .38); }
[dir="rtl"] .tinted:hover { box-shadow: inset -5px 0 0 var(--c2), inset 0 1px 0 #fff, 0 2px 2px rgba(13, 31, 45, .06), 0 8px 14px color-mix(in srgb, var(--c3) 16%, transparent), 0 26px 44px -10px color-mix(in srgb, var(--c3) 40%, transparent), 0 50px 80px -30px rgba(13, 31, 45, .38); }
.pod.tinted { box-shadow: inset 0 5px 0 var(--c2), inset 0 1px 0 #fff, 0 4px 8px color-mix(in srgb, var(--c3) 14%, transparent), 0 22px 40px -10px color-mix(in srgb, var(--c3) 38%, transparent), 0 48px 80px -28px rgba(13, 31, 45, .36); }
.pod.tinted::before { display: none; }
.tinted .ava { background: radial-gradient(circle at 32% 26%, #ffffff 0%, var(--c1) 22%, var(--c2) 60%, var(--c3) 100%); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(0, 0, 0, .3), 0 4px 8px color-mix(in srgb, var(--c3) 45%, transparent); }
.tinted .scorebox b { color: var(--c3); }
.tinted .mapbtn, .tinted .btn.ghost { color: var(--c3); border-color: color-mix(in srgb, var(--c2) 35%, transparent); }

.tinted .ava { color: var(--c3); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); font-weight: 600; }
.medal.m1, .medal.m2, .medal.m3 { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.medal.m1 { color: #5a3f0a; } .medal.m2 { color: #33414d; } .medal.m3 { color: #4a2408; }

/* Dark clinic cards: deep teal-navy 3D panels with light text. */
.tinted, [dir="rtl"] .tinted {
  color: #e8f1f4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(145deg, #15465a 0%, #0f3242 50%, #0a2431 100%);
  border: 1px solid rgba(120, 200, 215, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 2px rgba(5, 20, 28, .25), 0 10px 18px rgba(5, 20, 28, .22), 0 26px 46px -14px rgba(5, 20, 28, .55);
}
.row.tinted { box-shadow: inset 5px 0 0 #2bb3c6, inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 2px rgba(5, 20, 28, .25), 0 10px 18px rgba(5, 20, 28, .22), 0 26px 46px -14px rgba(5, 20, 28, .55); }
[dir="rtl"] .row.tinted { box-shadow: inset -5px 0 0 #2bb3c6, inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 2px rgba(5, 20, 28, .25), 0 10px 18px rgba(5, 20, 28, .22), 0 26px 46px -14px rgba(5, 20, 28, .55); }
.pod.tinted { box-shadow: inset 0 4px 0 #2bb3c6, inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 18px rgba(5, 20, 28, .22), 0 30px 54px -16px rgba(5, 20, 28, .6); }
.pod.r1.tinted { box-shadow: inset 0 4px 0 #d9a93c, inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 18px rgba(5, 20, 28, .22), 0 30px 54px -16px rgba(5, 20, 28, .6); }
.tinted:hover, [dir="rtl"] .tinted:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 40%), linear-gradient(145deg, #1a5368 0%, #11384a 50%, #0b2836 100%); }
.row.tinted:hover { box-shadow: inset 5px 0 0 #4fd0e0, inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 26px rgba(5, 20, 28, .3), 0 40px 64px -18px rgba(5, 20, 28, .65); }
[dir="rtl"] .row.tinted:hover { box-shadow: inset -5px 0 0 #4fd0e0, inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 26px rgba(5, 20, 28, .3), 0 40px 64px -18px rgba(5, 20, 28, .65); }
.tinted .name { color: #ffffff; }
.tinted .alt, .tinted .src, .tinted .rate .rev, .tinted .rate.none, .tinted .scorebox small, .tinted .scorebox .parts, .tinted .rank { color: #9fc0cb; }
.tinted .rate b { color: #ffffff; }
.tinted .stars { background-image: linear-gradient(90deg, #f3c35a var(--p), rgba(255, 255, 255, .22) var(--p)); }
[dir="rtl"] .tinted .stars { background-image: linear-gradient(270deg, #f3c35a var(--p), rgba(255, 255, 255, .22) var(--p)); }
.tinted .scorebox b { color: #7fe0ec; }
.tinted .flag { color: #f3d58c; border-color: #f3d58c; }
.tinted .ava { background: radial-gradient(circle at 32% 26%, #e6fbff 0%, #7fd6e3 25%, #1d8ea3 62%, #0b4c5a 100%); color: #06303a; text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .45); }
.tinted .tag[data-k] { color: var(--c1); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border-color: color-mix(in srgb, var(--c2) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .35); }
.tinted .mapbtn, .tinted .btn.ghost { color: #e8f1f4; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 rgba(0, 0, 0, .4), 0 8px 14px -6px rgba(0, 0, 0, .5); }
.tinted .mapbtn:hover, .tinted .btn.ghost:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); }
.tinted a:focus-visible, .tinted:focus-within { outline-color: #f3c35a; }

/* Links for each clinic: its website, Google Maps and a Google search for its pages. */
.links { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.links .mapbtn { justify-content: flex-start; }
.links .mapbtn.web { color: #ffffff; background: linear-gradient(180deg, #2bb3c6, #17879a); border-color: #4fd0e0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 rgba(0, 0, 0, .4), 0 8px 14px -6px rgba(0, 0, 0, .5); }
.links .mapbtn.web:hover { background: linear-gradient(180deg, #3cc2d4, #1b93a7); }
.pod .links { margin-top: auto; }
.pod .links .mapbtn { justify-content: center; padding-block: 10px; font-size: 14.5px; }
@media (max-width: 720px) {
  .foot .links { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
}

/* Trophy medals for places 1 to 10. */
.trophy { display: block; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.pod .trophy { width: 84px; height: 84px; margin: -6px -4px -10px; }
.row { grid-template-columns: 64px 48px minmax(0, 1fr) 168px 138px auto; }
@media (max-width: 980px) { .row { grid-template-columns: 64px 48px minmax(0, 1fr) 150px 126px; } }
@media (max-width: 720px) { .row { grid-template-columns: 56px 44px minmax(0, 1fr); } .row .trophy { width: 56px; height: 56px; } }

/* Large 3D medals: tilted in perspective, lit with a moving sheen, casting a shadow onto the card. */
.trophy3d { position: relative; display: block; width: var(--ms, 104px); height: var(--ms, 104px); perspective: 600px; }
.trophy3d .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(10deg) rotateY(-16deg); animation: swing 6s ease-in-out infinite; }
[dir="rtl"] .trophy3d .tilt { transform: rotateX(10deg) rotateY(16deg); }
.trophy3d .trophy { width: 100%; height: 100%; margin: 0;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35)) drop-shadow(1px 2px 0 rgba(0, 0, 0, .35)) drop-shadow(2px 4px 1px rgba(0, 0, 0, .3)) drop-shadow(4px 12px 10px rgba(0, 0, 0, .5)); }
.trophy3d .sheen { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 60%) no-repeat; background-size: 250% 100%; background-position: 150% 0;
  mix-blend-mode: screen; animation: glint 6s ease-in-out infinite; }
.trophy3d .floor { position: absolute; left: 18%; right: 18%; bottom: -6%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(3px); }
@keyframes swing { 0%, 100% { transform: rotateX(10deg) rotateY(-16deg); } 50% { transform: rotateX(6deg) rotateY(14deg); } }
@keyframes glint { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -60% 0; } }
.row:hover .trophy3d .tilt, .pod:hover .trophy3d .tilt { animation-duration: 2.4s; }
.pod .trophy3d { --ms: 150px; margin: -18px -10px -16px; }
.pod-top { align-items: center; }
.row { grid-template-columns: 112px 48px minmax(0, 1fr) 168px 138px auto; }
.row .trophy3d { --ms: 106px; margin-block: -10px; }
@media (max-width: 980px) { .row { grid-template-columns: 112px 48px minmax(0, 1fr) 150px 126px; } }
@media (max-width: 720px) {
  .row { grid-template-columns: 92px 44px minmax(0, 1fr); }
  .row .trophy3d { --ms: 88px; }
  .pod .trophy3d { --ms: 128px; }
}
@media (prefers-reduced-motion: reduce) { .trophy3d .tilt, .trophy3d .sheen { animation: none; } }
.pod { overflow: visible; }
.pod .trophy3d { margin: -4px -10px -16px; }
.ava.logo { padding: 0; overflow: hidden; background: #ffffff; }
.ava.logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.tinted .ava.logo { background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f3f6f8 70%, #dfe7ec 100%); padding: 4px; width: 54px; height: 54px; }
.row > .ava.logo { width: 54px; height: 54px; }
.row { grid-template-columns: 112px auto minmax(0, 1fr) 168px 138px auto; }
@media (max-width: 980px) { .row { grid-template-columns: 112px auto minmax(0, 1fr) 150px 126px; } }
@media (max-width: 720px) { .row { grid-template-columns: 92px auto minmax(0, 1fr); } }
.tinted .ava.logo.wide, .ava.logo.wide { width: 138px; height: 48px; border-radius: 12px; padding: 4px 8px; background: #ffffff; }
.ava.logo.wide img { border-radius: 0; }
@media (max-width: 720px) { .row > .ava.logo.wide { width: 108px; height: 38px; } }
.tinted .ava.logo.wide, .ava.logo.wide { width: 150px; height: 55px; padding: 0; background: #3a3d44; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.45); }
.ava.logo.wide img { object-fit: cover; }
@media (max-width: 720px) { .row > .ava.logo.wide { width: 120px; height: 44px; } }
.pod .ava.logo.wide { width: 180px; height: 66px; }
/* All clinic logos sit in rounded rectangles, like Magic Tooth's. */
.tinted .ava.logo:not(.wide), .ava.logo:not(.wide) { width: 120px; height: 52px; border-radius: 12px; padding: 4px 8px; background: linear-gradient(180deg, #ffffff, #eef2f5); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(0, 0, 0, .4); }
.ava.logo:not(.wide) img { border-radius: 0; object-fit: contain; }
.pod .ava.logo:not(.wide) { width: 150px; height: 64px; }
@media (max-width: 720px) { .row > .ava.logo:not(.wide) { width: 96px; height: 44px; } }
.row { grid-template-columns: 100px auto minmax(0, 1fr) 150px 120px auto; column-gap: 14px; }
.row > .ava.logo:not(.wide) { width: 96px; height: 42px; padding: 3px 6px; }
.row > .ava.logo.wide { width: 116px; height: 42px; }
.row .trophy3d { --ms: 96px; }
@media (max-width: 980px) { .row { grid-template-columns: 100px auto minmax(0, 1fr) 140px 116px; } }
@media (max-width: 720px) { .row { grid-template-columns: 84px auto minmax(0, 1fr); } .row .trophy3d { --ms: 80px; } .row > .ava.logo:not(.wide) { width: 84px; height: 38px; } .row > .ava.logo.wide { width: 104px; height: 38px; } }
/* Each logo badge takes its logo's own shape and background. */
.ava.logo.fit, .tinted .ava.logo.fit, .row > .ava.logo.fit, .pod .ava.logo.fit {
  --lh: 46px; height: var(--lh); width: calc(var(--lh) * var(--r)); padding: 4px; border-radius: 10px; background: var(--lbg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .45); overflow: hidden; }
.pod .ava.logo.fit { --lh: 62px; }
.ava.logo.fit img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }
.ava.logo.fit.circle { border-radius: 50%; padding: 0; background: transparent; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.ava.logo.fit.circle img { border-radius: 50%; }
.ava.logo.fit.tall { padding: 3px; }
@media (max-width: 720px) { .row > .ava.logo.fit { --lh: 38px; } .pod .ava.logo.fit { --lh: 54px; } }
/* 3D treatment icons. */
.tile .bub, .chip .dot { background: none !important; box-shadow: none !important; }
.tile .bub { width: 60px; height: 60px; }
.tile .bub img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); transition: transform .15s; }
.tile:hover .bub img { transform: translateY(-2px) scale(1.06); }
.tile[aria-pressed="true"] .bub img { transform: scale(1.08); }
.chip .dot { width: 28px; height: 28px; }
.chip .dot img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tag .ti { width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
@media (max-width: 860px) { .tile .bub { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .tile .bub img { transition: none; } .tile:hover .bub img { transform: none; } }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.aitool { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #1b1030; background: linear-gradient(180deg, #e9dcff, #c7a9ff); border-radius: 999px; padding: 2px 10px; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.35); }
.aitool:hover { filter: brightness(1.06); }
.chip.ai-chip .dot { font-size: 13px; font-weight: 700; color: #3b1d6e; background: linear-gradient(180deg, #efe4ff, #c7a9ff) !important; border-radius: 50%; }

/* Static site: links in place of buttons, breadcrumbs, treatment intro, FAQ, clinic profiles, A–Z list. */
.langsw a { text-decoration: none; display: inline-block; }
a.brand { color: inherit; text-decoration: none; }
a.tile, a.chip { text-decoration: none; color: inherit; }
.plink { color: inherit; text-decoration: none; }
.plink:hover, .plink:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 14px; color: var(--on-navy-muted); padding-top: 10px; }
.crumbs:empty { display: none; }
.crumbs a { color: var(--on-navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero.slim { padding-bottom: 22px; }
.intro { margin-top: 28px; }
.intro p { color: var(--muted); font-size: 15.5px; max-width: 72ch; }
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--lift); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 72ch; }
.azfoot { margin-inline-start: auto; color: inherit; }
.pf { padding-block: 28px 48px; display: flex; flex-direction: column; gap: 26px; }
.pf-card { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pf-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-top .name { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.25; margin: 0; }
.pf-top .rankc { flex: none; }
.pf-rank { font-weight: 600; margin: 0; }
.pf-sum { margin: 0; max-width: 72ch; }
.pf-h { font-size: 17px; margin: 6px 0 0; }
.pf-who { margin-top: 4px; }
.pf-card .links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.pf-card .links .mapbtn { width: auto; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-sec h2 { margin: 0; }
.brk { width: 100%; border-collapse: collapse; font-size: 15px; }
.brk th { text-align: start; font-weight: 400; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.brk td { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--line); }
.brk .tot th, .brk .tot td { color: var(--ink); font-weight: 700; border-bottom: 0; font-size: 17px; }
.pf-note { font-size: 14px; color: var(--muted); margin: 0; }
.pf-tags { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tags a.tag { text-decoration: none; }
.checks { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.checks li { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; }
.checks li > span[aria-hidden] { width: 18px; flex: none; font-weight: 700; }
.checks .on { color: var(--ink); } .checks .on > span[aria-hidden] { color: #1f6f44; }
.checks .off { color: #8a96a1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-near h2 { margin-bottom: 14px; }
.pf-back { margin: 0; }
.az { padding-block: 32px 48px; }
.az-lede { color: var(--muted); max-width: 72ch; }
.azlist { list-style: none; padding: 0; margin: 20px 0 0; columns: 2 320px; column-gap: 32px; }
.azlist li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.azlist a { color: var(--brand); text-decoration: none; font-weight: 500; }
.azlist a:hover { text-decoration: underline; }
.azlist span { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.chooser .choose { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.pf-card { color: #d5e3e9; }
.pf-card .pf-rank, .pf-card .pf-h { color: #ffffff; }
.pf-card .who { color: var(--muted); }
.intro[hidden] { display: none; }
