@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Marcellus&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================================
   ISTANBUL — Ottoman bazaar identity for a dental-rating site.
   Deep Turkish red + Iznik teal + ivory, brass accents.
   Serif display (Marcellus / Cormorant) over a clean sans body.
   Ornate-but-tasteful: arabesque borders, medallion motifs,
   framed sections, warm and opulent yet legible.
   ============================================================ */

:root {
  /* Core tokens (names fixed by template; values re-imagined) */
  --ink: #2a1c18;            /* dark walnut-brown ink */
  --ink-soft: #6f584d;       /* muted sepia */
  --line: #e3d4b8;           /* aged parchment rule */
  --bg: #fbf4e6;             /* warm ivory */
  --bg-soft: #f4e7cf;        /* soft sand panel */
  --accent: #146b6b;         /* Iznik teal */
  --accent-soft: #dcecea;    /* pale teal wash */
  --good: #1c6b4a;           /* deep green (earned) */
  --good-bg: #dbeadd;
  --mid: #9a5b12;            /* brass-amber (partial) */
  --mid-bg: #f7e6c6;
  --bad: #9a2b26;            /* deep Turkish red (missed) */
  --bad-bg: #f5dcd6;
  --unknown: #8a7a68;        /* faded taupe */
  --max-width: 74rem;

  /* Decorative extensions */
  --turkish-red: #9a2b26;
  --turkish-red-deep: #7a1f1c;
  --iznik: #146b6b;
  --iznik-deep: #0d4d4d;
  --brass: #b58a3c;
  --brass-light: #d9b26a;
  --ivory: #fbf4e6;
  --shadow-warm: 0 2px 6px rgba(60, 30, 20, 0.10), 0 8px 22px rgba(60, 30, 20, 0.07);
  --shadow-soft: 0 1px 3px rgba(60, 30, 20, 0.09);

  /* Reusable arabesque / geometric fill */
  --arabesque:
    radial-gradient(circle at 50% 0%, rgba(20,107,107,0.10) 0 8%, transparent 9%),
    radial-gradient(circle at 0% 50%, rgba(154,43,38,0.08) 0 8%, transparent 9%),
    radial-gradient(circle at 100% 50%, rgba(154,43,38,0.08) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 100%, rgba(20,107,107,0.10) 0 8%, transparent 9%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* faint tiled geometric field behind everything */
  background-image:
    radial-gradient(circle at 1rem 1rem, rgba(181,138,60,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 3rem 3rem, rgba(20,107,107,0.045) 0 1px, transparent 2px);
  background-size: 4rem 4rem, 4rem 4rem;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.35rem; }
main.container { padding-top: 1.75rem; padding-bottom: 3.5rem; }

a { color: var(--accent); text-decoration-color: var(--brass-light); text-underline-offset: 0.15em; }
a:hover { color: var(--iznik-deep); text-decoration-thickness: 2px; }

/* --- Display typography --- */
h1, h2, h3 { font-family: "Marcellus", "Cormorant Garamond", Georgia, serif; font-weight: 500; color: var(--turkish-red-deep); letter-spacing: 0.005em; }
h1 { font-size: 2.15rem; line-height: 1.18; margin: 0.5rem 0 0.85rem; }
h2 {
  font-size: 1.55rem; margin: 2.25rem 0 0.65rem; position: relative;
  padding-bottom: 0.35rem; color: var(--iznik-deep);
}
/* small medallion/diamond flourish under each H2 */
h2::after {
  content: ""; display: block; margin-top: 0.4rem; height: 10px; width: 100%;
  background:
    linear-gradient(to right, var(--brass), var(--brass-light) 40%, transparent 41%) left / 5rem 2px no-repeat,
    radial-gradient(circle, var(--turkish-red) 0 3px, transparent 4px) 5.5rem center / 12px 12px no-repeat,
    linear-gradient(90deg, transparent, transparent) ;
  background-color: transparent;
}
h3 { font-size: 1.2rem; margin: 1.35rem 0 0.45rem; color: var(--turkish-red-deep); }

p { margin: 0.5rem 0 1rem; }
.lead { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft); max-width: 52rem; font-style: italic; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   HEADER — brass-framed banner over deep teal
   ============================================================ */
.site-header {
  border-bottom: 3px solid var(--brass);
  background:
    linear-gradient(180deg, var(--iznik-deep), var(--iznik));
  box-shadow: 0 2px 0 var(--turkish-red-deep), var(--shadow-warm);
  position: relative;
}
/* arabesque ribbon along the very bottom edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 10px, var(--turkish-red) 10px 20px);
  opacity: 0.9;
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem;
  padding-top: 1.15rem; padding-bottom: 1rem;
}
.brand { text-decoration: none; color: var(--ivory); display: flex; flex-direction: column; }
.brand-name {
  font-family: "Marcellus", serif; font-weight: 500; font-size: 1.5rem;
  letter-spacing: 0.04em; color: var(--ivory);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.brand-tagline { font-size: 0.8rem; color: var(--brass-light); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.site-nav a {
  text-decoration: none; color: var(--accent-soft); padding: 0.15rem 0.1rem;
  border-bottom: 2px solid transparent; font-weight: 400;
}
.site-nav a:hover { color: var(--ivory); border-bottom-color: var(--brass-light); }
.site-nav a[aria-current="page"] { color: var(--brass-light); border-bottom-color: var(--brass); }

.lang-switcher { margin-left: auto; font-size: 0.85rem; white-space: nowrap; color: var(--accent-soft); }
.lang-switcher a { text-decoration: none; color: var(--accent-soft); }
.lang-switcher a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--brass); }
.lang-current { font-weight: 600; color: var(--brass-light); }
.lang-sep { color: rgba(217,178,106,0.4); }

/* ============================================================
   HERO — ornate framed medallion panel
   ============================================================ */
.hero {
  position: relative;
  margin-top: 1.5rem; margin-bottom: 1rem;
  padding: 2rem 2.25rem 1.75rem;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(20,107,107,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 2px solid var(--brass);
  border-radius: 4px;
  box-shadow: var(--shadow-warm), inset 0 0 0 6px rgba(251,244,230,0.9), inset 0 0 0 7px var(--iznik);
}
/* corner medallions */
.hero::before, .hero::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  background: radial-gradient(circle, var(--turkish-red) 0 5px, transparent 6px 8px, var(--brass) 9px 10px, transparent 11px);
}
.hero::before { top: 10px; left: 10px; }
.hero::after { bottom: 10px; right: 10px; }
.hero h1 { max-width: 46rem; color: var(--turkish-red-deep); }
.hero-links { font-size: 0.98rem; }

/* ============================================================
   PROFILE CONTROLS — brass-pill switches
   ============================================================ */
.ranking-controls { margin: 1.75rem 0 1rem; }
.profile-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile-btn {
  font: inherit; font-size: 0.88rem; letter-spacing: 0.01em;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--brass); border-radius: 999px;
  background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s ease;
}
.profile-btn:hover { border-color: var(--iznik); color: var(--iznik); background: var(--accent-soft); }
.profile-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--iznik), var(--iznik-deep));
  border-color: var(--iznik-deep); color: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--brass-light);
}
.profile-desc { min-height: 1.4em; margin: 0.65rem 0 0; font-size: 0.92rem; color: var(--ink-soft); font-style: italic; }

.table-filter { margin-top: 0.85rem; }
.table-filter input {
  font: inherit; font-size: 0.92rem; width: 100%; max-width: 20rem;
  padding: 0.45rem 0.75rem; border: 1px solid var(--brass); border-radius: 6px;
  background: #fff; color: var(--ink);
}
.table-filter input:focus { outline: 2px solid var(--iznik); outline-offset: 1px; border-color: var(--iznik); }

/* ============================================================
   TABLES — parchment ledger
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--brass); border-radius: 6px;
  background: #fff; box-shadow: var(--shadow-soft);
}
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: "Jost", sans-serif; font-weight: 600;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ivory); background: linear-gradient(180deg, var(--iznik), var(--iznik-deep));
  border-bottom: 2px solid var(--brass);
}
thead th a { color: var(--brass-light); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.ranking-table tbody tr:nth-child(even) { background: rgba(244,231,207,0.4); }
.ranking-table tbody tr:hover { background: var(--accent-soft); }
.rank-cell { font-variant-numeric: tabular-nums; color: var(--turkish-red); font-weight: 700; width: 2.4rem; font-family: "Cormorant Garamond", serif; font-size: 1.05rem; }
.name-cell a { font-weight: 600; text-decoration: none; color: var(--iznik-deep); }
.name-cell a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.score-cell { white-space: nowrap; }
.th-sub { font-size: 0.7em; color: var(--brass-light); margin-left: 0.15em; text-transform: none; }
.cat-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-max { color: var(--ink-soft); font-size: 0.8em; }
.flags-cell .flag-count { color: var(--bad); font-weight: 700; }
.flags-cell .flag-none { color: var(--ink-soft); }
.table-note { margin-top: 0.85rem; max-width: 52rem; color: var(--ink-soft); }

.excluded-note { margin-top: 1rem; font-size: 0.92rem; }
.excluded-note summary { cursor: pointer; color: var(--iznik); font-weight: 600; }

/* ============================================================
   SCORE BADGES — brass-framed medallions
   ============================================================ */
.score-badge {
  display: inline-block; min-width: 2.6em; text-align: center;
  padding: 0.14em 0.5em; border-radius: 6px;
  font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1px solid transparent; box-shadow: var(--shadow-soft);
}
.score-high { background: var(--good-bg); color: var(--good); border-color: rgba(28,107,74,0.35); }
.score-mid  { background: var(--mid-bg);  color: var(--mid);  border-color: rgba(154,91,18,0.35); }
.score-low  { background: var(--bad-bg);  color: var(--bad);  border-color: rgba(154,43,38,0.35); }
.score-na   { background: var(--bg-soft);  color: var(--unknown); border-color: var(--line); }

/* ============================================================
   BARS — inlaid brass channel
   ============================================================ */
.bar {
  background: var(--bg-soft); border: 1px solid var(--brass);
  border-radius: 999px; height: 0.65rem; overflow: hidden; min-width: 6rem; flex: 1;
  box-shadow: inset 0 1px 2px rgba(60,30,20,0.12);
}
.bar-fill { background: linear-gradient(90deg, var(--iznik), var(--iznik-deep)); height: 100%; }

/* ============================================================
   CARDS — framed bazaar stalls
   ============================================================ */
.cards-section { margin-top: 2.75rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.15rem; }
.clinic-card {
  border: 1px solid var(--brass); border-radius: 8px;
  padding: 1.1rem 1.2rem; background: #fff;
  box-shadow: var(--shadow-soft);
  position: relative; transition: box-shadow 0.18s ease, transform 0.18s ease;
}
/* thin teal inner keyline for an inlaid feel */
.clinic-card::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid var(--accent-soft);
  border-radius: 5px; pointer-events: none;
}
.clinic-card:hover { box-shadow: var(--shadow-warm); transform: translateY(-2px); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.card-head h3 { margin: 0; font-size: 1.08rem; color: var(--iznik-deep); }
.card-head a { text-decoration: none; }
.card-head a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.card-summary { font-size: 0.88rem; color: var(--ink-soft); }
.card-bars { display: flex; flex-direction: column; gap: 0.32rem; margin: 0.65rem 0; }
.card-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.card-bar-label { flex: 0 0 9.5rem; color: var(--ink-soft); }
.card-bar-pts { flex: 0 0 3.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.card-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   CLINIC PAGE
   ============================================================ */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.clinic-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--brass); padding-bottom: 1.15rem;
}
.clinic-headline { font-family: "Cormorant Garamond", serif; font-size: 1.28rem; font-style: italic; max-width: 46rem; color: var(--ink-soft); }
.clinic-score-big { font-family: "Marcellus", serif; font-size: 2.1rem; display: flex; align-items: baseline; gap: 0.25rem; color: var(--turkish-red-deep); }
.clinic-score-big .score-badge { padding: 0.15em 0.55em; }
.score-of { color: var(--ink-soft); font-size: 1rem; }

.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  border: 1px solid var(--brass); border-radius: 999px;
  padding: 0.32rem 0.8rem; font-size: 0.85rem; background: #fff;
}
.chip-ranked { background: var(--accent-soft); border-color: var(--iznik); }
.chip-rank { font-weight: 700; color: var(--iznik-deep); font-family: "Cormorant Garamond", serif; }
.chip-excluded { color: var(--ink-soft); background: var(--bg-soft); }
.chip-excluded .chip-rank { color: var(--unknown); font-weight: 400; }
.chip-score { color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.25rem; }
@media (max-width: 44rem) { .two-col { grid-template-columns: 1fr; } }
.plus-list li::marker { color: var(--good); }
.minus-list li::marker { color: var(--bad); }

.cat-section {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-left: 4px solid var(--iznik);
  border-radius: 0 6px 6px 0; background: rgba(251,244,230,0.6);
}
.cat-section-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cat-section-head h3 { margin: 0; }
.cat-section-score { display: flex; align-items: center; gap: 0.6rem; min-width: 14rem; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.crit-table { font-size: 0.9rem; }
.crit-table td { padding: 0.38rem 0.5rem; }
.crit-status { width: 1.6rem; }
.crit-pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); width: 4rem; }
.crit-note { color: var(--ink-soft); font-size: 0.85em; }
.crit-unknown .crit-label { color: var(--unknown); }

.status { font-weight: 700; }
.st-earned { color: var(--good); }
.st-partial { color: var(--mid); }
.st-missed { color: var(--bad); }
.st-unknown { color: var(--unknown); }

.flag-list { list-style: none; padding: 0; }
.flag {
  padding: 0.55rem 0.8rem; border-left: 4px solid var(--bad);
  background: var(--bad-bg); border-radius: 0 6px 6px 0;
  margin-bottom: 0.5rem; font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}
.flag-low { border-left-color: var(--mid); background: var(--mid-bg); }
.flag-sev { text-transform: uppercase; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; margin-right: 0.35rem; color: var(--turkish-red-deep); }

.unknown-list { columns: 2; column-gap: 2rem; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 44rem) { .unknown-list { columns: 1; } }

.kv-table th { width: 9rem; font-weight: 600; color: var(--iznik-deep); }
.src-id { font-variant-numeric: tabular-nums; color: var(--ink-soft); width: 3rem; }
.src-ref { font-size: 0.82em; text-decoration: none; color: var(--accent); }
.src-manual { color: var(--ink-soft); font-style: italic; }
.sources-table td { word-break: break-word; }
:target { background: var(--mid-bg); transition: background 0.6s; }

.report-cta {
  margin-top: 2.75rem; border: 2px solid var(--brass); border-radius: 8px;
  padding: 1.15rem 1.4rem;
  background:
    linear-gradient(180deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-warm), inset 0 0 0 4px rgba(20,107,107,0.06);
}

/* ============================================================
   BUTTONS & FORMS
   ============================================================ */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--turkish-red), var(--turkish-red-deep));
  color: var(--ivory);
  border: 1px solid var(--turkish-red-deep); border-radius: 6px;
  padding: 0.55rem 1.25rem; font: inherit; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(217,178,106,0.5), var(--shadow-soft);
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-secondary {
  background: #fff; color: var(--iznik-deep);
  border: 1px solid var(--iznik); box-shadow: none;
}
.btn-secondary:hover { background: var(--accent-soft); }
.report-form { max-width: 36rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--iznik-deep); }
.form-row .check-label { font-weight: 400; color: var(--ink); }
.form-row input[type="url"], .form-row input[type="email"], .form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.5rem 0.7rem; border: 1px solid var(--brass); border-radius: 6px; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--iznik); outline-offset: 1px; border-color: var(--iznik);
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.formula {
  background: var(--bg-soft); border: 1px solid var(--brass); border-radius: 8px;
  padding: 0.85rem 1.1rem; font-size: 0.9rem; overflow-x: auto;
  box-shadow: inset 0 0 0 3px rgba(251,244,230,0.7);
}
.method-table td, .method-table th { font-size: 0.9rem; }
.profile-matrix td, .profile-matrix th { white-space: nowrap; }
.profile-matrix td:last-child, .profile-matrix th:last-child { white-space: normal; min-width: 14rem; }

/* ============================================================
   HOME AUDIT BLOCK
   ============================================================ */
.home-audit { margin-top: 2.75rem; border-top: 2px solid var(--brass); padding-top: 1.25rem; }

/* ============================================================
   FOOTER — deep teal with brass rule
   ============================================================ */
.site-footer {
  border-top: 3px solid var(--brass);
  background: linear-gradient(180deg, var(--iznik-deep), #0a3d3d);
  margin-top: 2.5rem; font-size: 0.85rem; color: var(--accent-soft);
}
.site-footer::before {
  content: ""; display: block; height: 3px;
  background: repeating-linear-gradient(90deg, var(--turkish-red) 0 10px, var(--brass) 10px 20px);
}
.site-footer .container { padding-top: 1.4rem; padding-bottom: 1.65rem; }
.site-footer p { max-width: 60rem; }
.site-footer a { color: var(--brass-light); }
.site-footer a:hover { color: var(--ivory); }

/* ============================================================
   LICENSING & CREDENTIALS
   ============================================================ */
#licensing .lic-missing { color: var(--bad); font-weight: 600; }
.doctors-table { margin-top: 0.5rem; font-size: 0.92rem; }
.doctors-table th {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ivory); background: linear-gradient(180deg, var(--iznik), var(--iznik-deep));
}
.doctors-table td .lic-missing { color: var(--bad); font-size: 0.9em; font-weight: 600; }

/* ============================================================
   FEEDBACK FORM (unified)
   ============================================================ */
.req { color: var(--bad); }
.contact-fieldset {
  border: 1px solid var(--brass); border-radius: 8px;
  padding: 0.6rem 1.1rem 1.1rem; margin: 1.35rem 0;
  background: rgba(251,244,230,0.6);
}
.contact-fieldset legend {
  font-family: "Marcellus", serif; font-weight: 500; padding: 0 0.5rem;
  color: var(--turkish-red-deep);
}
.contacts-hint { margin: 0.3rem 0 0.85rem; color: var(--ink-soft); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); font-size: 0.9rem; margin-top: 0.4rem; }
.form-status { min-height: 1.2em; font-size: 0.95rem; margin-top: 0.5rem; }
.form-ok { color: var(--good); font-weight: 700; }
.form-err { color: var(--bad); font-weight: 600; }
.cf-turnstile { margin: 1rem 0; }

/* Optional data banner if present */
.data-banner {
  background: linear-gradient(180deg, var(--mid-bg), #f2dcb2);
  border: 1px solid var(--brass); border-left: 4px solid var(--turkish-red);
  border-radius: 0 6px 6px 0; padding: 0.65rem 1rem; margin: 1rem 0;
  font-size: 0.9rem; color: var(--ink);
}

/* ============================================================
   RESPONSIVE — mobile ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 1.4rem 1.25rem; }
  .clinic-score-big { font-size: 1.7rem; }
  .site-header .container { padding-top: 0.9rem; padding-bottom: 0.8rem; }
  .lang-switcher { margin-left: 0; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer { background: #fff; color: #000; box-shadow: none; }
  .site-header::after, .site-footer::before { display: none; }
  .btn, .profile-buttons, .table-filter, .cf-turnstile { display: none; }
  .hero, .clinic-card, .report-cta, .cat-section, .contact-fieldset {
    box-shadow: none; border-color: #999; background: #fff;
  }
  thead th, .doctors-table th { background: #eee; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* RTL (Arabic) */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .site-nav, [dir="rtl"] .lang-switcher { margin-left: 0; margin-right: auto; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .num, [dir="rtl"] td.num, [dir="rtl"] th.num { text-align: left; }
[dir="rtl"] .bar-fill { direction: ltr; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-right: 1.2em; padding-left: 0; }
