/* Canadian Plastic Surgery Guide - Enhanced Styling */
:root {
  --primary: #0f3d5e;
  --primary-dark: #0a2d45;
  --secondary: #1e88a8;
  --accent: #e3f2fd;
  --gold: #d4af37;
  --gold-dark: #b8960f;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --light: #f5f7fa;
  --white: #ffffff;
  --success: #27ae60;
  --shadow: 0 8px 24px rgba(15, 61, 94, 0.08);
  --shadow-hover: 0 12px 32px rgba(15, 61, 94, 0.15);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
}

header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }

nav ul { list-style: none; display: flex; gap: 1.75rem; }
nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
  opacity: 0.4;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 700; position: relative; }
.hero p { font-size: 1.15rem; max-width: 780px; margin: 0 auto 2rem; opacity: 0.95; position: relative; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  margin: 0.4rem;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); }

.container { max-width: 1140px; margin: 2.5rem auto; padding: 0 1.5rem; }

.section { margin-bottom: 3.5rem; }
.section h2 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section h2 i { color: var(--secondary); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(15,61,94,0.06);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card h3 { color: var(--secondary); margin-bottom: 0.75rem; font-size: 1.2rem; }
.card h3 i { margin-right: 0.4rem; }

/* Featured #1 card */
.featured-rank {
  background: linear-gradient(135deg, #fffdf5, #fff);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.featured-rank h3 { color: var(--primary); margin-bottom: 0.5rem; }
.featured-rank .score {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Fancy Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}
th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
th:first-child { border-radius: var(--radius) 0 0 0; }
th:last-child { border-radius: 0 var(--radius) 0 0; }
td {
  padding: 1rem 1rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fbff; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}
.rank-badge.top { background: var(--gold); color: var(--primary-dark); }
.score-cell {
  font-weight: 700;
  color: var(--secondary);
}

.disclaimer {
  background: #fff8e6;
  border-left: 5px solid #f39c12;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: #5d4e37;
}

footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.procedure-intro {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-top: 4px solid var(--secondary);
}
.procedure-intro h2 { margin-top: 0; }

@media (max-width: 768px) {
  nav ul { flex-direction: column; gap: 0.75rem; padding: 0.5rem 0; }
  .hero h1 { font-size: 2.1rem; }
  .cards { grid-template-columns: 1fr; }
}
/* ===== Additions (Dec 2026): procedure education + surgeon profiles ===== */
h1 { color: var(--primary); font-size: 2rem; line-height: 1.25; margin-bottom: 0.75rem; }
.section ul, .section ol { padding-left: 1.4rem; margin: 0.5rem 0 1rem; }
.section li { margin-bottom: 0.35rem; }
.section p { margin-bottom: 0.75rem; }
.muted { color: var(--text-light); font-size: 0.92rem; }
nav ul { flex-wrap: wrap; }

a.surgeon-link { color: var(--secondary); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--secondary); }
a.surgeon-link:hover { color: var(--primary); border-bottom-style: solid; }
.featured-rank h3 a.surgeon-link { color: var(--primary); }
.text-link { color: var(--secondary); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Procedure education */
.procedure-education { margin-bottom: 2.5rem; }
.toc {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.92rem; line-height: 1.9;
}
.toc a { color: var(--secondary); text-decoration: none; white-space: nowrap; }
.toc a:hover { text-decoration: underline; }
.info-box {
  background: var(--accent); border-left: 5px solid var(--secondary); border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.95rem;
}
.edu-section {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; scroll-margin-top: 90px;
}
.edu-section h2 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.recovery-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--primary); }
details.faq { border: 1px solid #e3e9f0; border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.6rem; background: #fbfdff; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); }
details.faq[open] summary { margin-bottom: 0.5rem; }
ol.sources { font-size: 0.88rem; }
ol.sources a { color: var(--secondary); word-break: break-word; }

/* Surgeon directory */
.breadcrumb { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.surgeon-card h3 a { color: var(--secondary); text-decoration: none; }
.surgeon-card h3 a:hover { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.chip { background: var(--accent); color: var(--primary); border-radius: 20px; padding: 0.2rem 0.65rem; font-size: 0.8rem; font-weight: 600; }

/* Profile */
.profile-header {
  display: flex; align-items: center; gap: 1.25rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--secondary);
  padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.profile-header h1 { margin-bottom: 0.3rem; }
.avatar {
  flex: 0 0 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); font-size: 1.9rem;
}
.profile-sub { color: var(--text-light); }
.profile-sub i { color: var(--secondary); }
.profile-table th {
  background: #f3f7fb; color: var(--primary); width: 30%; font-weight: 600; vertical-align: top;
  border-bottom: 1px solid #eef2f6; border-radius: 0 !important; font-size: 0.9rem;
}
.profile-table td { vertical-align: top; font-size: 0.95rem; }
.profile-table a { color: var(--secondary); }
a.cite { font-size: 0.75rem; text-decoration: none; vertical-align: super; margin-left: 1px; }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.provider-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(15,61,94,0.06); padding: 1.4rem 1.5rem; display: flex; flex-direction: column;
}
.provider-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 0.6rem; }
.provider-score { margin-bottom: 0.4rem; }
.rating-big { font-size: 2rem; font-weight: 700; color: var(--secondary); line-height: 1.1; }
.rating-big span { font-size: 1rem; color: var(--text-light); font-weight: 500; }
.rating-big.unverified { font-size: 1.05rem; color: #b5651d; padding: 0.4rem 0; }
.stars { color: var(--gold); font-size: 0.95rem; }
.rating-count { font-size: 0.9rem; color: var(--text-light); }
.checked { font-size: 0.8rem; color: var(--text-light); margin: 0.3rem 0 0.6rem; }
.provider-card p { font-size: 0.92rem; }
.provider-link { margin-top: auto; padding-top: 0.5rem; }
.provider-link a { color: var(--secondary); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.provider-link a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  nav { flex-direction: column; gap: 0.4rem; }
  nav ul { flex-direction: row; justify-content: center; gap: 0.5rem 1rem; }
  nav a { font-size: 0.88rem; }
  header { position: static; }
  h1 { font-size: 1.6rem; }
  .edu-section { padding: 1.15rem 1.1rem; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-table th { width: 38%; }
  .recovery-table td:first-child { white-space: normal; }
}

/* SEO / AI-search additions (Dec 2026) */
.answer-box { background: var(--accent); border-left: 5px solid var(--primary); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.6; }
.answer-box p { margin-bottom: 0.5rem; }
.answer-box .updated { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--text-light); }
.related-links ul { padding-left: 1.4rem; }
.breadcrumb { margin: 0 0 0.75rem; }
.answer-box a { color: var(--secondary); }

/* Home hero gold buttons: the decorative .hero::before overlay sat on top of
   the in-flow buttons and intercepted clicks. Keep the texture but let the
   whole button be a real, keyboard-accessible link. */
.hero::before { pointer-events: none; }
.hero .btn { position: relative; z-index: 1; }
.hero .btn:hover,
.hero .btn:focus {
  background: var(--gold-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.hero .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ===== Phase 2 (Dec 2026): unified navigation, footer, female category ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--primary); padding: .5rem 1rem; z-index: 3000; }
.skip-link:focus { left: 0; }
header nav.main-nav { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
nav.main-nav .logo { color: var(--white); text-decoration: none; }
nav.main-nav .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.2rem; list-style: none; margin: 0; padding: 0; }
nav.main-nav .nav-links > li { position: relative; }
nav.main-nav .nav-links > li > a { display: block; padding: .5rem 0; font-size: .93rem; }
nav.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; flex-direction: column; gap: 0;
  background: var(--primary-dark); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.25); padding: .4rem 0; z-index: 1100; list-style: none; }
nav.main-nav .has-sub:hover > .sub, nav.main-nav .has-sub:focus-within > .sub { display: flex; }
nav.main-nav .sub a { display: block; padding: .5rem 1rem; font-size: .9rem; }
nav.main-nav .sub a:hover { background: rgba(255,255,255,.09); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; cursor: pointer; font-size: 1.4rem; padding: .25rem .6rem; color: var(--white); }
@media (max-width: 960px) {
  header { position: sticky; }
  nav.main-nav { flex-direction: row; }
  nav.main-nav .nav-burger { display: block; }
  nav.main-nav .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    order: 3; max-height: 72vh; overflow-y: auto; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  nav.main-nav .nav-links > li > a { padding: .7rem .25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 1rem; }
  nav.main-nav .sub { display: flex; position: static; min-width: 0; background: rgba(255,255,255,.07); box-shadow: none; border-radius: 6px; margin: 0 0 .4rem .6rem; }
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto 1.5rem; text-align: left; padding: 0 1rem; }
.footer-grid ul { list-style: none; margin-top: .5rem; }
.footer-grid li { margin-bottom: .3rem; font-size: .92rem; }
.footer-grid strong { color: var(--white); }
footer p { max-width: 900px; margin: 0 auto .4rem; padding: 0 1rem; font-size: .88rem; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) { .btn { display: block; margin: .5rem 0; text-align: center; } }

.notice-box { background: #fff7e6; border-left: 5px solid #d98e04; border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: .96rem; }
.notice-box i { color: #d98e04; }
.notice-box a { color: var(--primary); font-weight: 600; }

/* polish: accessibility + layout stability */
:root { --secondary: #157089; }
.breadcrumb a, .answer-box a, .toc a { text-decoration: underline; text-underline-offset: 2px; }
.unverified.rating-big, .rating-big.unverified { color: #9a540f; }
.fas, .far, .fab { display: inline-block; min-width: 1em; text-align: center; }
.sr-only { 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-link { position: absolute; left: -9999px; top: 0; background: #0f3d5e; color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
.table-wrapper:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #d4af37; outline-offset: 2px; }
main.container { display: block; }
.hero h1 { color: #fff; }
img { max-width: 100%; height: auto; }

/* ---- visitor reviews (tools/reviews.py) ---- */
.review-form{display:grid;gap:.9rem;max-width:44rem;position:relative}
.review-field{display:flex;flex-direction:column;gap:.3rem}
.review-field input,.review-field select,.review-field textarea{font:inherit;padding:.55rem .7rem;border:1px solid #c9d1db;border-radius:8px;background:#fff;width:100%;box-sizing:border-box}
.review-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.9rem}
.review-check{display:flex;gap:.55rem;align-items:flex-start}.review-check input{margin-top:.3rem}
.star-rating{border:0;padding:0;margin:0;display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:.15rem}
.star-rating legend{width:100%;margin-bottom:.2rem}
.star-rating input{position:absolute;opacity:0;width:1px;height:1px}
.star-rating label{font-size:1.9rem;line-height:1;color:#c9d1db;cursor:pointer}
.star-rating input:checked~label,.star-rating label:hover,.star-rating label:hover~label{color:#d4a017}
.star-rating input:focus-visible+label{outline:2px solid var(--secondary,#157089);outline-offset:2px}
.review-form .btn{justify-self:start}
.review-form-status:empty{display:none}
.review-link{font-size:.82rem;white-space:nowrap;margin-left:.35rem}
.visitor-review-items{list-style:none;padding:0;margin:0;display:grid;gap:1rem}
.visitor-review{border:1px solid #e1e6ec;border-radius:10px;padding:1rem 1.1rem;background:#fff}
.visitor-review-stars{color:#d4a017;letter-spacing:.1em}
.visitor-review-title{margin:.3rem 0 .2rem;font-size:1.05rem}
.visitor-review-meta{font-size:.88rem;margin:.1rem 0 .5rem}

/* ---- sponsor slots (tools/ads.py) ---- */
.sponsor-slot {
  margin: 1.15rem 0 1.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sponsor-slot--banner,
.sponsor-slot--ranking,
.sponsor-slot--inline {
  min-height: 90px;
}
.sponsor-label {
  font-family: var(--sans, inherit);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light, #556170);
  margin: 0 0 .4rem;
}
.sponsor-creative {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #ebe3d4);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}
.sponsor-creative img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  aspect-ratio: 728 / 90;
}
.sponsor-creative--text {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.05rem;
  color: var(--primary, #14233b);
  padding: .9rem 1.1rem;
  min-height: 90px;
}
.sponsor-slot--house {
  min-height: 72px;
  border: 1px dashed var(--line, #d9d1c3);
  border-radius: 10px;
  background: transparent;
}
.sponsor-slot--house.sponsor-slot--banner,
.sponsor-slot--house.sponsor-slot--ranking,
.sponsor-slot--house.sponsor-slot--inline {
  min-height: 72px;
}
a.sponsor-house {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: .7rem 1rem;
  text-align: center;
  color: var(--text-light, #556170);
  font-size: .9rem;
  letter-spacing: .01em;
  text-decoration: none;
}
a.sponsor-house:hover,
a.sponsor-house:focus {
  color: var(--primary, #14233b);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .sponsor-slot--banner,
  .sponsor-slot--ranking,
  .sponsor-slot--inline {
    min-height: 100px;
  }
  .sponsor-creative {
    min-height: 100px;
  }
  .sponsor-slot--house,
  .sponsor-slot--house.sponsor-slot--banner,
  .sponsor-slot--house.sponsor-slot--ranking,
  .sponsor-slot--house.sponsor-slot--inline,
  a.sponsor-house {
    min-height: 80px;
  }
}

/* ===== Canadian Plastic Surgery Guide — premium design layer (Dec 2026) =====
   Ink navy + champagne gold on warm ivory. Loaded after style.css; presentation only.
   Fonts: Playfair Display & Inter (SIL OFL 1.1, self-hosted). Icons: Lucide (ISC), inline SVG. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/playfair-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/playfair-display-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --ink: #0f1b2d;
  --primary: #14233b;
  --primary-dark: #0b1626;
  --secondary: #24527a;
  --accent: #f5eee1;
  --gold: #c9a45c;
  --gold-light: #e6d3a7;
  --gold-dark: #a9853f;
  --champagne: #f3e9d6;
  --bronze: #8a6a2f;
  --text: #1f2a37;
  --text-light: #556170;
  --light: #faf7f1;
  --white: #ffffff;
  --line: #ebe3d4;
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 30px -12px rgba(15,27,45,.14);
  --shadow-hover: 0 2px 4px rgba(15,27,45,.05), 0 22px 44px -18px rgba(15,27,45,.28);
  --radius: 16px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { font-family: var(--sans); font-size: 16.5px; line-height: 1.7; color: var(--text); background: var(--light);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .section h2, .card h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; color: var(--primary); }
h1 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); line-height: 1.18; }
a { color: var(--secondary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-light); color: var(--ink); }

/* icons */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.17em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic-star { fill: currentColor; }
.ic-star.star-empty { fill: none; }
.stars { color: var(--gold); display: inline-flex; gap: 2px; font-size: 1rem; }
.stars .star-empty { color: #cdbf9f; }
.ic-star { color: var(--gold); }

/* header & navigation */
header { background: rgba(14,26,44,.97); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(201,164,92,.35); box-shadow: 0 6px 24px rgba(5,12,24,.25); padding: .55rem 0; }
nav { max-width: 1200px; }
.logo, nav.main-nav .logo { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.logo span { color: var(--gold); font-style: italic; font-weight: 400; }
.logo .logo-mark { width: 1.55rem; height: 1.55rem; color: var(--gold); stroke-width: 1.4; }
nav a { color: #e9edf3; }
nav a .ic { color: var(--gold); opacity: .9; margin-right: .1rem; }
nav a:hover, nav a:focus-visible { color: var(--gold-light); }
nav.main-nav .nav-links > li > a { padding: .55rem .15rem; letter-spacing: .01em; position: relative; }
nav.main-nav .nav-links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav.main-nav .nav-links > li > a:hover::after { transform: scaleX(1); }
nav.main-nav .city-menu > a { border: 1px solid rgba(201,164,92,.6); border-radius: 999px; padding: .32rem .85rem !important; margin: .2rem 0; }
nav.main-nav .city-menu > a::after { display: none; }
nav.main-nav .city-menu > a:hover { background: rgba(201,164,92,.14); }
nav.main-nav .sub { background: #101d31; border: 1px solid rgba(201,164,92,.25); border-top: 2px solid var(--gold); border-radius: 0 0 12px 12px; }
nav.main-nav .sub a { color: #e9edf3; }
nav.main-nav .sub a:hover { background: rgba(201,164,92,.12); color: var(--gold-light); }
.nav-burger { color: var(--gold); border: 1px solid rgba(201,164,92,.5); border-radius: 10px; line-height: 1; padding: .4rem .55rem; }
.nav-burger .ic { width: 1.3rem; height: 1.3rem; vertical-align: middle; }
.skip-link { background: var(--gold); color: var(--ink); font-weight: 600; border-radius: 0 0 8px 0; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(201,164,92,.20), transparent 60%),
    radial-gradient(900px 500px at -10% 120%, rgba(36,82,122,.55), transparent 60%),
    linear-gradient(160deg, #13223a 0%, #0e1a2d 55%, #0b1424 100%);
  padding: 5.5rem 1.5rem 3.5rem; text-align: left; isolation: isolate; }
.hero::before { pointer-events: none; z-index: 0; opacity: .25; }
.hero > *:not(.hero-art) { position: relative; z-index: 1; max-width: 1140px; margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.08; color: #fff; max-width: 1140px; }
.hero h1, .hero > p { padding-right: min(38%, 460px); }
.hero > p:not(.eyebrow) { font-size: 1.14rem; color: #dbe3ee; opacity: 1; margin-bottom: 2rem; }
.hero .eyebrow { display: block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1.1rem; font-weight: 600; }
.hero .eyebrow .ic { color: var(--gold); }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-illus { position: absolute; right: max(-40px, calc((100% - 1140px) / 2 - 90px)); top: 50%; transform: translateY(-52%);
  width: min(640px, 58%); height: auto; }
.hero-illus .h-ring circle { stroke: rgba(201,164,92,.38); stroke-width: 1; }
.hero-illus .h-disc { fill: rgba(201,164,92,.07); }
.hero-illus .h-face { stroke: #e6d3a7; }
.hero-illus .h-leaf .au { stroke: rgba(201,164,92,.75); stroke-width: .7; }
.hero-illus .h-spark { fill: var(--gold); }
.hero-illus .h-dot { fill: var(--gold-light); }
.hero .btn { position: relative; z-index: 2; margin: .35rem .6rem .35rem 0; }
.hero .btn:nth-of-type(n+2) { background: transparent; color: #fff; border: 1px solid rgba(230,211,167,.7); box-shadow: none; }
.hero .btn:nth-of-type(n+2):hover, .hero .btn:nth-of-type(n+2):focus { background: rgba(201,164,92,.16); color: #fff; border-color: var(--gold); }
.hero .btn:nth-of-type(n+2) .ic { color: var(--gold); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.4rem !important; padding-top: 1.4rem;
  border-top: 1px solid rgba(230,211,167,.22); color: #cfd8e4; font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust .ic { color: var(--gold); width: 1.15em; height: 1.15em; }

/* buttons */
.btn { background: linear-gradient(135deg, #dcc085 0%, #c9a45c 55%, #b8914a 100%); color: var(--ink); border: 1px solid rgba(169,133,63,.6);
  font-weight: 600; letter-spacing: .015em; padding: .85rem 1.6rem; box-shadow: 0 8px 22px -10px rgba(169,133,63,.8);
  display: inline-flex; align-items: center; gap: .5rem; }
.btn:hover, .btn:focus { background: linear-gradient(135deg, #e3c991 0%, #c39d55 60%, #a9853f 100%); color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(169,133,63,.9); }
.btn .ic { width: 1.1em; height: 1.1em; }

/* layout */
.container { max-width: 1160px; margin: 3rem auto; }
.section { margin-bottom: 4rem; }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section h2 .ic, .section h2 .h-ic { color: var(--bronze); width: 1.5rem; height: 1.5rem; padding: .35rem; box-sizing: content-box;
  background: var(--champagne); border-radius: 50%; stroke-width: 1.6; }
.section h2 a { color: inherit; text-decoration: none; }
.section h2 a:hover { color: var(--secondary); }
.page-home .container > .section > h2::after, .page-guide .container > .section:not(.page-head) > h2::after,
.page-methodology .container > .section:not(.page-head) > h2::after {
  content: ""; flex-basis: 100%; height: 10px; margin-top: .2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M0 5h50M70 5h50' stroke='%23c9a45c' stroke-width='1'/%3E%3Cpath d='M60 1l4 4-4 4-4-4z' fill='%23c9a45c'/%3E%3C/svg%3E") left center / 120px 10px no-repeat; }
/* section divider between home sections */
.page-home .container > .section + .section::before {
  content: ""; display: block; height: 18px; margin: -1.5rem auto 3rem; max-width: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 18'%3E%3Cpath d='M0 9h180M240 9h180' stroke='%23d9c79f' stroke-width='1'/%3E%3Cpath d='M210 2l7 7-7 7-7-7z' fill='none' stroke='%23c9a45c'/%3E%3Ccircle cx='190' cy='9' r='1.6' fill='%23c9a45c'/%3E%3Ccircle cx='230' cy='9' r='1.6' fill='%23c9a45c'/%3E%3C/svg%3E") center / contain no-repeat; }

/* page header band (inner pages) */
.page-head { display: grid; grid-template-columns: 1fr minmax(180px, 260px); align-items: center; gap: 1.5rem;
  background: linear-gradient(135deg, #fffdf8 0%, #f6eedf 100%); border: 1px solid var(--line); border-radius: 22px;
  padding: 2rem 2.25rem; box-shadow: var(--shadow); margin-bottom: 2rem; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--gold), var(--gold-dark)); }
.page-head h1 { margin-bottom: .6rem; }
.page-head h1 .ic { color: var(--gold-dark); }
.page-head p { color: var(--text-light); margin-bottom: .5rem; }
.page-head-art .illus { width: 100%; height: auto; display: block; }

/* illustrations (colours via custom properties so they reach the <use> clones) */
.illus { --ill-bg: var(--champagne); --ill-au: var(--gold); --ill-ln: var(--primary); --ill-dot: var(--gold-dark); }

/* cards */
.cards { gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.5rem; position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold-light); }
.card h3 { color: var(--primary); font-size: 1.22rem; line-height: 1.3; }
.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a:hover { color: var(--secondary); }
.ic-wrap { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-right: .65rem;
  background: var(--champagne); color: var(--bronze); vertical-align: middle; border: 1px solid rgba(201,164,92,.35); }
.ic-wrap .ic { width: 1.25rem; height: 1.25rem; vertical-align: 0; margin: 0; stroke-width: 1.6; }
.card h3 > .ic-wrap, .card h3 a .ic-wrap { float: none; }
.why-card { border-top: 3px solid var(--gold); }
.why-card h3 { display: flex; align-items: center; }
/* stretched links: whole card clickable; inner links stay clickable on top */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.proc-card p a, .city-card p a, .surgeon-card p a { position: relative; z-index: 2; }
.proc-card { padding: 0 0 1.4rem; overflow: hidden; display: flex; flex-direction: column; }
.proc-card .proc-art { background: linear-gradient(180deg, #fbf6ec, #f4ead6); border-bottom: 1px solid var(--line); padding: .6rem 1rem 0; }
.proc-card .proc-art .illus { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; transition: transform .4s ease; }
.proc-card:hover .proc-art .illus { transform: scale(1.04); }
.proc-card h3 { padding: 1.1rem 1.4rem 0; display: flex; align-items: center; }
.proc-card h3 a { display: flex; align-items: center; }
.proc-card p { padding: 0 1.4rem; margin-top: .6rem; color: var(--text-light); }
.proc-card.cat-face .proc-art { background: linear-gradient(180deg, #f8f3ee, #efe4da); }
.proc-card.cat-body .proc-art { background: linear-gradient(180deg, #f6f4ee, #e9e6d9); }
.proc-card.cat-intimate .proc-art { background: linear-gradient(180deg, #faf2f0, #f1e1dc); }
.proc-card.cat-intimate .illus { --ill-bg: #f0dcd5; }
.proc-card.cat-face .illus { --ill-bg: #efe1d3; }
.proc-card.cat-body .illus { --ill-bg: #e8e3d1; }
.city-card { padding: 1.15rem 1.3rem; }
.city-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.city-card h3 a { display: flex; align-items: center; }
.city-card .ic-wrap { width: 2rem; height: 2rem; }
.city-card .ic-wrap .ic { width: 1rem; height: 1rem; }
.city-card p { font-size: .92rem; color: var(--text-light); }

a.surgeon-link { color: var(--secondary); border-bottom: 1px solid rgba(36,82,122,.3); font-weight: 600; }
a.surgeon-link:hover { color: var(--primary); border-bottom-color: var(--gold); }

/* featured #1 */
.featured-rank { position: relative; background: linear-gradient(135deg, #fffaf0 0%, #ffffff 70%); border: 1px solid #e9d9b5;
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.75rem 1.5rem 4.6rem; }
.featured-rank .featured-crown { position: absolute; left: 1.35rem; top: 1.55rem; width: 2.1rem; height: 2.1rem; padding: .4rem; box-sizing: border-box;
  color: var(--ink); background: linear-gradient(135deg, #e6cd92, #c9a45c); border-radius: 50%; stroke-width: 1.8; }
.featured-rank h3 { font-size: 1.35rem; }
.featured-rank .score { background: var(--primary); color: var(--gold-light); border-radius: 999px; padding: .2rem .8rem; letter-spacing: .02em; }

/* tables */
.table-wrapper { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
th { background: var(--primary); color: #f3ead6; font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; padding: .9rem 1rem; }
td { border-bottom: 1px solid #f0eadf; padding: .9rem 1rem; }
tr:hover td { background: #fcf8f0; }
.rank-badge { width: 34px; height: 34px; background: #fff; color: var(--primary); border: 1.5px solid #c8cfda; font-family: var(--serif); font-size: 1rem; }
.rank-badge.medal { border: none; color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 4px 10px -4px rgba(15,27,45,.45); position: relative; }
.rank-badge.medal-1 { background: linear-gradient(135deg, #f1dc9f 0%, #d4af5f 50%, #b48d42 100%); }
.rank-badge.medal-2 { background: linear-gradient(135deg, #f1f3f6 0%, #c9cfd8 55%, #a3acb8 100%); }
.rank-badge.medal-3 { background: linear-gradient(135deg, #f0cfb2 0%, #cf9a6e 55%, #a8724a 100%); }
.rank-table tbody tr:nth-child(1) td { background: linear-gradient(90deg, #fffaf0, #fff 60%); }
.score-cell { color: var(--primary); white-space: nowrap; min-width: 110px; }
.score-num { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--primary); display: inline-block; min-width: 2ch; }
.score-bar { display: block; height: 5px; width: 100%; max-width: 110px; background: #efe6d3; border-radius: 99px; margin-top: .35rem; overflow: hidden; }
.score-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d9bd7f, #b48d42); }
.factor-table td:first-child { font-weight: 600; color: var(--primary); white-space: nowrap; }
.factor-table td:first-child .ic { color: var(--bronze); margin-right: .35rem; }
.weight-cell { min-width: 120px; }

/* content blocks */
.answer-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow); padding: 1.2rem 1.4rem; }
.info-box { background: #f2f6fa; border: 1px solid #dce6f0; border-left: 4px solid var(--secondary); border-radius: 14px; }
.notice-box { background: #fff9ec; border: 1px solid #f0dfb5; border-left: 4px solid #c88a12; border-radius: 14px; }
.notice-box .ic { color: #a46c00; }
.disclaimer { background: #fbf7ef; border: 1px solid var(--line); border-left: 4px solid var(--gold-dark); border-radius: 14px; color: #4a4232; }
.disclaimer .ic { color: var(--bronze); }
.procedure-intro { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: var(--radius); position: relative; overflow: hidden; }
.procedure-intro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.procedure-intro h2 .ic { color: var(--bronze); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; line-height: 2.3; }
.toc strong { font-family: var(--serif); color: var(--primary); margin-right: .3rem; }
.toc a { display: inline-block; padding: 0 .7rem; border-radius: 999px; background: var(--accent); color: var(--primary); text-decoration: none; line-height: 1.9; font-size: .86rem; }
.toc a:hover { background: var(--champagne); color: var(--ink); }
.edu-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edu-section h2 { font-size: 1.4rem; }
details.faq { border: 1px solid var(--line); background: #fffdf9; border-radius: 12px; transition: border-color .2s; }
details.faq[open] { border-color: var(--gold-light); background: #fff; }
details.faq summary { color: var(--primary); list-style: none; position: relative; padding-right: 1.6rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.3rem; color: var(--gold-dark); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
.breadcrumb, .breadcrumb a { font-size: .84rem; letter-spacing: .02em; }
.breadcrumb a { color: var(--bronze); }
.muted { color: var(--text-light); }
.chip { background: var(--accent); color: var(--primary); border: 1px solid var(--line); }

/* guide & methodology: sections as soft cards */
.page-guide .container > .section:not(.page-head), .page-methodology .container > .section:not(.page-head) {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 2rem; margin-bottom: 1.6rem; }
.page-guide .section li::marker { color: var(--gold-dark); }

/* profiles & surgeon cards */
.profile-header { background: linear-gradient(135deg, #fffdf8, #f6eedf); border: 1px solid var(--line); border-top: 0; position: relative; overflow: hidden; border-radius: 22px; }
.profile-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.avatar { background: radial-gradient(circle at 30% 30%, #1f3556, var(--primary)); color: var(--gold-light); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -12px rgba(15,27,45,.6); }
.avatar .ic { width: 2rem; height: 2rem; stroke-width: 1.4; }
.profile-sub .ic { color: var(--bronze); }
.profile-table th { background: #faf6ee; color: var(--primary); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.provider-card { border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.provider-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rating-big { font-family: var(--serif); color: var(--primary); }
.surgeon-card { border-top: 3px solid var(--gold-light); }
.surgeon-card h3 a { color: var(--primary); }
.surgeon-card .muted .ic { color: var(--bronze); }

/* footer */
footer { background: radial-gradient(800px 300px at 90% 0%, rgba(201,164,92,.12), transparent 60%), linear-gradient(180deg, #0f1b2d, #0a1322);
  color: #c4cdd9; text-align: left; padding: 3.2rem 1rem 2.2rem; margin-top: 5rem; border-top: 1px solid rgba(201,164,92,.45); position: relative; }
footer::before { content: ""; position: absolute; top: -11px; left: 50%; width: 20px; height: 20px; margin-left: -10px; transform: rotate(45deg);
  background: #0f1b2d; border: 1px solid rgba(201,164,92,.6); }
.footer-brand { max-width: 1100px; margin: 0 auto 2rem; padding: 0 1rem 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo-mark { width: 2rem; height: 2rem; color: var(--gold); stroke-width: 1.3; }
.fb-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.fb-tag { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 1rem; }
.footer-grid strong { font-family: var(--serif); font-weight: 600; color: var(--gold-light); font-size: 1.05rem; letter-spacing: .02em; }
.footer-grid a, footer a { color: #d7dee8; }
.footer-grid a:hover, footer a:hover { color: var(--gold-light); }
footer p { color: #a9b4c2; text-align: center; }

/* mobile */
@media (max-width: 960px) {
  .hero h1, .hero > p { padding-right: 0; }
  .hero-illus { width: 120%; right: -45%; opacity: .32; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { padding: 3.2rem 1.25rem 2.6rem; }
  .hero .btn { display: flex; justify-content: center; margin: .55rem 0; }
  .trust { gap: .6rem 1rem; font-size: .88rem; }
  .trust li { flex: 1 1 45%; }
  .container { margin: 2rem auto; padding: 0 1.1rem; }
  .page-head { grid-template-columns: 1fr; padding: 1.4rem 1.3rem; }
  .page-head-art { order: -1; max-width: 200px; margin: -0.4rem auto -0.6rem; }
  .featured-rank { padding: 1.3rem 1.2rem 1.2rem 1.2rem; }
  .featured-rank .featured-crown { position: static; display: block; margin-bottom: .6rem; }
  .page-guide .container > .section:not(.page-head), .page-methodology .container > .section:not(.page-head) { padding: 1.3rem 1.15rem; }
  .section h2 .ic, .section h2 .h-ic { width: 1.2rem; height: 1.2rem; }
  .proc-card .proc-art .illus { max-width: 220px; }
}
@media (max-width: 640px) {
  .table-wrapper:has(.rank-table) { overflow: visible; }
  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody { display: block; }
  .rank-table tr { display: grid; grid-template-columns: auto 1fr; gap: .2rem .85rem; padding: .95rem 1rem; border-bottom: 1px solid #f0eadf; }
  .rank-table tr:last-child { border-bottom: 0; }
  .rank-table td { display: block; padding: 0; border: 0; background: none !important; }
  .rank-table td:first-child { grid-row: span 6; align-self: start; padding-top: .1rem; }
  .rank-table td:nth-child(2) { font-weight: 600; font-size: 1.02rem; }
  .rank-table td:nth-child(n+3) { grid-column: 2; font-size: .9rem; color: var(--text); }
  .rank-table td:nth-child(n+3)::before { content: attr(data-label) " · "; color: var(--text-light); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
  .rank-table td.score-cell { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
  .rank-table td.score-cell .score-bar { flex: 1 1 80px; margin-top: 0; }
  .rank-table tbody tr:nth-child(1) { background: linear-gradient(90deg, #fffaf0, #fff 70%); }
}
@media print { header, .hero-art, .page-head-art, .proc-art, footer::before { display: none !important; } body { background: #fff; } }

/* refinements */
.hero { padding-left: max(1.5rem, calc((100% - 1140px) / 2)); padding-right: max(1.5rem, calc((100% - 1140px) / 2)); }
.hero > *:not(.hero-art) { max-width: none; margin-left: 0; margin-right: 0; }
.hero > .btn { margin: .35rem .6rem .35rem 0; }
.hero::before { background: none !important; }
.score-num, .rank-badge, .rating-big, .featured-rank .score, .featured-rank h3, .weight-cell { font-variant-numeric: lining-nums tabular-nums; }
.rank-table tbody tr:nth-child(1) td { background: #fffaf0; }
.city-quick { display: none; }
@media (max-width: 960px) {
  nav.main-nav .city-quick { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; margin-right: .6rem; color: #fff; text-decoration: none;
    border: 1px solid rgba(201,164,92,.6); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; }
  nav.main-nav .city-quick .ic { color: var(--gold); }
  nav.main-nav .city-quick:hover { background: rgba(201,164,92,.14); }
}
@media (max-width: 768px) { .hero > .btn { margin: .55rem 0; } }
@media (max-width: 520px) {
  header nav.main-nav { padding: 0 .9rem; gap: .25rem .4rem; flex-wrap: wrap; }
  nav.main-nav .logo { font-size: 1.2rem; gap: .4rem; }
  .logo .logo-mark { width: 1.3rem; height: 1.3rem; }
  nav.main-nav .city-quick { padding: .25rem .65rem; margin-right: .2rem; font-size: .85rem; }
  .nav-burger { padding: .3rem .45rem; }
}
@media (max-width: 640px) {
  .factor-table { display: block; overflow-x: auto; }
  .factor-table td:first-child { white-space: normal; }
  .factor-table th, .factor-table td { padding: .7rem .6rem; }
  .weight-cell { min-width: 70px; }
}
.score-num, .rank-badge, .featured-rank .score { font-family: var(--sans); font-weight: 700; }
.score-num { font-size: 1.05rem; }
.rating-big { font-feature-settings: "lnum" 1; }
.profile-header .avatar { width: 72px; height: 72px; flex: 0 0 72px; min-height: 72px; }
@media (max-width: 768px) { .profile-header .avatar { flex: 0 0 auto; } }
.review-form input[type="text"], .review-form input[type="email"], .review-form textarea, .review-form select {
  border: 1px solid #d9cfbd; border-radius: 10px; background: #fffdf9; font-family: var(--sans); }
.review-form input:focus, .review-form textarea:focus, .review-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.visitor-reviews { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.75rem; }
