/* Shared styling for the static ImplantForum knowledge articles.
   These pages are plain HTML (no JavaScript), so they cannot use the app's
   Tailwind build. Colors mirror the app theme in src/index.css. */
:root {
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1c2533;
  --muted: #5b6776;
  --primary: #0f2a4a;
  --accent: #c98a1b;
  --border: #dde3ea;
  --soft: #eef2f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1522;
    --card: #111f31;
    --text: #eef2f6;
    --muted: #a3afbd;
    --primary: #e7b04a;
    --accent: #e7b04a;
    --border: #22344a;
    --soft: #16273c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.0625rem;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.site-header { background: #0f2a4a; color: #fff; }
.site-header .inner {
  max-width: 64rem; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand span { color: #e7b04a; }
.brand:hover { color: #fff; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.site-header nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-header nav a:hover { color: #e7b04a; }

main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.breadcrumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; padding-right: 0.4rem; color: var(--border); }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
h1 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--primary); font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem;
  text-wrap: balance;
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 2rem; }
h2 { color: var(--primary); font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

.facts {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  margin: 1.5rem 0; overflow: hidden;
}
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 0.75rem 1.1rem; border-top: 1px solid var(--border); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 40rem) {
  .facts div { grid-template-columns: 11rem 1fr; gap: 1rem; }
}

.note {
  background: var(--soft); border-left: 4px solid var(--accent); border-radius: 0.5rem;
  padding: 0.9rem 1.1rem; margin: 2rem 0; font-size: 0.975rem;
}

.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 1.15rem; }

.site-footer { background: #0f2a4a; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer .inner { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem; }
.site-footer a { color: #e7b04a; }
.site-footer address { font-style: normal; margin-bottom: 0.75rem; }

/* Editorial hero image (16:9, dimensions set in HTML to avoid layout shift) */
.hero {
  margin: 2rem 0 2.5rem;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--soft);
  box-shadow: 0 10px 30px -18px rgba(15, 42, 74, 0.45);
}
.hero figcaption {
  margin-top: 0.75rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--accent);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
