/* ==========================================================================
   Everyday Oral Surgery — Design System
   Clinical & precise. Crisp whites, sharp type, surgical accents.
   --------------------------------------------------------------------------
   Adapted from the design prototype (EDOS REDESIGN/styles.css).
   ========================================================================== */

:root {
  /* Type */
  --font-display: "Fraunces", "Source Serif Pro", Georgia, serif;
  --font-sans:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Neutrals — cool, surgical, slightly blue */
  --ink-900: #0b1320;
  --ink-800: #11192a;
  --ink-700: #1e2a40;
  --ink-600: #3a4863;
  --ink-500: #5a6a85;
  --ink-400: #8593ab;
  --ink-300: #b6bfd0;
  --ink-200: #dde2ec;
  --ink-150: #e8ecf3;
  --ink-100: #f1f4f9;
  --ink-50:  #f8fafd;
  --paper:   #ffffff;

  /* Accent — default: clinical blue */
  --accent:      #1e63d8;
  --accent-soft: #e7efff;
  --accent-ink:  #0a3a8c;
  --accent-on:   #ffffff;

  /* Semantic */
  --positive: #1e8a5a;
  --warning:  #b8722a;
  --danger:   #b8413a;

  /* Layout */
  --maxw: 1200px;
  --gutter: 32px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Density */
  --density: 1;
  --pad-y: calc(20px * var(--density));
  --pad-x: calc(24px * var(--density));
  --gap: calc(20px * var(--density));
  --section-y: calc(96px * var(--density));
  --row-y: calc(18px * var(--density));
}

[data-density="compact"] { --density: 0.78; }

[data-accent="navy"] {
  --accent: #0d3b8c; --accent-soft: #e6ecf7; --accent-ink: #07235a;
}
[data-accent="teal"] {
  --accent: #0f7a82; --accent-soft: #e2f4f3; --accent-ink: #06484c;
}
[data-accent="ink"] {
  --accent: #1e2a40; --accent-soft: #eaedf3; --accent-ink: #0b1320;
}
[data-accent="ember"] {
  --accent: #b34a2a; --accent-soft: #fbece4; --accent-ink: #6e2a16;
}

/* Reset / base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }

/* Typography
   ----------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  font-weight: 500;
}
.eyebrow-accent { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}
h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; }

p { margin: 0; line-height: 1.55; color: var(--ink-700); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Layout primitives
   ----------------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.divider { height: 1px; background: var(--ink-200); border: 0; margin: 0; }

/* Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(0.5px); }

.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--ink-400); background: var(--ink-50); }

.btn-dark { background: var(--ink-900); color: white; }
.btn-dark:hover { background: var(--ink-800); }

.btn-link { background: transparent; color: var(--accent); padding: 8px 0; font-weight: 500; }
.btn-link:hover { color: var(--accent-ink); }

/* Tags / chips
   ----------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink-100);
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
}
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Verified badge
   ----------------------------------------------------------------------- */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.verified svg { width: 14px; height: 14px; }

/* Cards
   ----------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.card-hover:hover { border-color: var(--ink-400); }

/* Avatar
   ----------------------------------------------------------------------- */
.avatar {
  border-radius: 50%;
  background: var(--ink-150);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink-700);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.avatar.size-24 { width: 24px; height: 24px; font-size: 10px; }
.avatar.size-32 { width: 32px; height: 32px; font-size: 12px; }
.avatar.size-40 { width: 40px; height: 40px; font-size: 14px; }
.avatar.size-56 { width: 56px; height: 56px; font-size: 18px; }
.avatar.size-72 { width: 72px; height: 72px; font-size: 22px; }
.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}
a.avatar { text-decoration: none; cursor: pointer; }
a.avatar:hover { opacity: 0.85; }

/* Image placeholder
   ----------------------------------------------------------------------- */
.img-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--ink-100) 0 14px,
      var(--ink-150) 14px 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Top nav
   ----------------------------------------------------------------------- */
.topnav {
  border-bottom: 1px solid var(--ink-200);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
          backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}
.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark img,
.brand-mark .custom-logo {
	height: 44px !important;
	width: 44px !important;
	max-height: 44px !important;
	max-width: 44px !important;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	flex-shrink: 0;
}
.brand-mono {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--ink-900);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px;
  gap: 1px;
}
.brand-mono span { letter-spacing: 0.06em; }
.brand-mono .accent { color: var(--accent); }
.brand-name { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: var(--ink-900); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 1px;
}
.nav-list { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }
.nav-link {
  padding: 8px 14px;
  color: var(--ink-700);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink-900); background: var(--ink-50); }
.nav-link.active, .nav-link.current-menu-item { color: var(--ink-900); font-weight: 500; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-500);
  background: var(--paper);
  margin-left: 12px;
  min-width: 240px;
  transition: border-color .15s, box-shadow .15s;
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-900);
  padding: 0;
  height: 100%;
}
.nav-search-input::placeholder { color: var(--ink-500); }

/* Footer
   ----------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: 18px;
}
.site-footer a:hover { color: white; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer .col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.site-footer .col-list a { color: var(--ink-300); }
.site-footer .col-list li { list-style: none; }
.site-footer .footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Section heading
   ----------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head .lead { max-width: 540px; color: var(--ink-600); font-size: 15px; margin-top: 8px; }

/* Subtle grid background for hero
   ----------------------------------------------------------------------- */
.hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Reset list
   ----------------------------------------------------------------------- */
ul.clean, ol.clean { list-style: none; padding: 0; margin: 0; }

/* Inputs
   ----------------------------------------------------------------------- */
.input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-900);
  background: var(--paper);
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }

/* Specialty cards
   ----------------------------------------------------------------------- */
.specialty-card {
  border: 1px solid var(--ink-200);
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.specialty-card:hover { border-color: var(--ink-900); background: var(--ink-50); }
.specialty-card .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); letter-spacing: 0.06em; }
.specialty-card .title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.specialty-card .name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: var(--ink-900); }
.specialty-card .count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.specialty-card .desc { font-size: 13px; color: var(--ink-600); line-height: 1.5; }
.specialty-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

/* Default content area styling for fallback templates
   (until per-template stylesheets are built in later sessions)
   ----------------------------------------------------------------------- */
.eos-content {
  max-width: 760px;
  margin: 64px auto 96px;
  padding: 0 var(--gutter);
}
.eos-content h1 { margin-bottom: 24px; }
.eos-content h2 { margin: 48px 0 16px; font-size: 30px; }
.eos-content h3 { margin: 32px 0 12px; }
.eos-content p { font-size: 16px; color: var(--ink-700); margin-bottom: 16px; }
.eos-content ul, .eos-content ol { font-size: 16px; color: var(--ink-700); padding-left: 24px; margin-bottom: 16px; }
.eos-content li { margin-bottom: 6px; }
.eos-content img { border-radius: var(--radius); margin: 24px 0; }
.eos-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.eos-content a:hover { color: var(--accent-ink); }
.eos-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 24px 0;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 0 4px 4px 0;
}

/* About page
   ----------------------------------------------------------------------- */
.ab-hero { border-bottom: 1px solid var(--ink-200); padding: 80px 0 56px; }
.ab-hero h1 { margin: 16px 0 28px; max-width: 980px; font-size: clamp(40px, 5vw, 64px); }
.ab-hero-lede { font-size: 19px; max-width: 720px; color: var(--ink-600); line-height: 1.55; }
.ab-section { padding: var(--section-y) 0; }
.ab-grid { display: grid; grid-template-columns: 200px 1fr; gap: 80px; }
.ab-grid-body { max-width: 880px; }
.ab-grid-body p { font-size: 17px; margin-bottom: 20px; color: var(--ink-700); }
.ab-hosts { padding-top: 0; }
.ab-host-card { padding: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.ab-host-portrait { width: 200px; height: 240px; border-radius: 4px; }
.ab-host-since { color: var(--ink-500); font-size: 11px; margin-bottom: 8px; }
.ab-host-name { font-size: 28px; margin-bottom: 4px; letter-spacing: -0.02em; }
.ab-host-role { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.ab-host-bio-p { font-size: 14px; margin-bottom: 12px; color: var(--ink-700); }
.ab-host-stats { display: flex; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ink-200); }
.ab-host-stat-label { color: var(--ink-500); font-size: 10px; }
.ab-host-stat-num { font-family: var(--font-display); font-size: 24px; color: var(--ink-900); }
.ab-timeline-section { background: var(--ink-50); }
.ab-timeline { display: flex; flex-direction: column; }
.ab-timeline-row { display: grid; grid-template-columns: 100px 32px 1fr; gap: 24px; padding-bottom: 32px; }
.ab-timeline-row-last { padding-bottom: 0; }
.ab-timeline-year { color: var(--accent); font-size: 13px; padding-top: 6px; }
.ab-timeline-marker { position: relative; display: flex; justify-content: center; }
.ab-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 8px; position: relative; z-index: 1; }
.ab-timeline-line { position: absolute; top: 18px; bottom: -32px; width: 1px; background: var(--ink-200); }
.ab-timeline-body { padding-bottom: 24px; border-bottom: 1px solid var(--ink-200); }
.ab-timeline-row-last .ab-timeline-body { border-bottom: 0; }
.ab-timeline-title { font-family: var(--font-display); font-size: 20px; color: var(--ink-900); margin-bottom: 6px; letter-spacing: -0.01em; }
.ab-timeline-desc { font-size: 14px; color: var(--ink-600); }
.ab-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ab-value { padding-top: 20px; border-top: 1px solid var(--ink-300); }
.ab-value-num { color: var(--ink-400); font-size: 12px; }
.ab-value-title { font-size: 20px; margin-top: 8px; margin-bottom: 10px; }
.ab-value-desc { font-size: 14px; color: var(--ink-600); }
.ab-cta { background: var(--ink-900); color: white; padding: var(--section-y) 0; }
.ab-cta-inner { text-align: center; max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.ab-cta h2 { color: white; margin-top: 16px; margin-bottom: 24px; font-size: clamp(32px, 4vw, 48px); }
.ab-cta h2 em { font-style: italic; font-weight: 400; color: var(--ink-400); }
.ab-cta p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 36px; }
.ab-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ab-cta-buttons .btn-primary { height: 48px; padding: 0 22px; }
.ab-cta-buttons .btn-ghost { height: 48px; padding: 0 22px; }

/* Page wrapper for non-front-page pages */
.eos-page { min-height: 50vh; }
.eos-content-body p { font-size: 17px; line-height: 1.7; color: var(--ink-800); margin-bottom: 18px; }
.eos-content-body h2 { margin: 48px 0 16px; font-size: 32px; }
.eos-content-body h3 { margin: 32px 0 12px; }
.eos-content-body ul, .eos-content-body ol { font-size: 17px; padding-left: 24px; margin-bottom: 18px; color: var(--ink-800); line-height: 1.7; }
.eos-content-body li { margin-bottom: 6px; }
.eos-content-body img { border-radius: var(--radius); margin: 24px 0; }
.eos-content-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.eos-content-body a:hover { color: var(--accent-ink); }
.eos-content-body blockquote {
	border-left: 3px solid var(--accent);
	padding: 8px 16px;
	margin: 24px 0;
	background: var(--accent-soft);
	color: var(--accent-ink);
	border-radius: 0 4px 4px 0;
}

/* Mobile breakpoints (basic — refined in Session 5)
   ----------------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .ab-grid { grid-template-columns: 1fr; gap: 24px; }
  .ab-host-card { grid-template-columns: 1fr; gap: 20px; }
  .ab-host-portrait { width: 100%; height: 280px; }
  .ab-values-grid { grid-template-columns: 1fr; gap: 24px; }
  .ab-timeline-row { grid-template-columns: 64px 24px 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: calc(64px * var(--density)); }
  .topnav-inner { gap: 16px; height: 60px; }
  .nav-search { display: none; }
  .nav-list { gap: 0; font-size: 13px; }
  .nav-link { padding: 6px 8px; }
  .brand-name { font-size: 16px; }
  .brand-tag { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
