/* ===== 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; }
