/* ==========================================================================
   ATHENA-WEB v3.0 COLOR DIRECTIVES (The "Eucalyptus Sanctuary" Aesthetic)
   ========================================================================== */
:root {
  --background: #FAF8F5;          /* Warm Alabaster textured paper canvas */
  --foreground: #0F172A;          /* Deep Slate-Navy for typographical authority */
  --surface: #FDFDFD;             /* Pristine White for medical cards */
  --surface-elevated: #F4EFEB;    /* Slightly elevated surface tone */
  --accent-sage: #5F7A61;         /* Calming Sage Green for high-empathy UI borders */
  --accent-sage-dark: #435945;    /* Dark Sage for high-contrast text */
  --accent-sage-light: #EBF1EC;   /* Pale Sage for badge fills */
  --accent-blush: #F5EEE6;        /* Soft blush highlights for breathing room */
  --warning-rose: #991B1B;        /* Muted Crimson Red for urgent clinical alerts */
  --warning-surface: #FEE2E2;     /* Gentle Rose for warning block backgrounds */
  --warning-border: #FCA5A5;      /* Warning outline */
  --conversion-blue: #0070ba;     /* Stripe/PayPal Trust-Blue for checkout CTAs */
  --conversion-hover: #005ea6;    /* Darker blue hover state */
  --border: #CBD5E1;              /* Fine-line slate borders */
  --text-muted: #64748B;          /* Slate secondary text */

  /* TYPOGRAPHICAL HIERARCHY */
  --font-display: "Editorial Georgia", Georgia, Cambria, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(#E2D9CF 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

/* CLS Container Shields */
.ad-container-leaderboard, .printable-preview-frame {
  min-height: 90px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.decision-tree-container {
  min-height: 460px;
  background-color: var(--surface);
  border: 2px solid var(--accent-sage);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(95, 122, 97, 0.08);
  padding: 2rem;
  margin: 2rem 0;
}

/* The Touch-Target Law (>= 44x44px) */
button, input[type="button"], input[type="submit"], .btn-touch, .nav-touch a, .symptom-tab {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

/* Layout Hierarchy */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

.site-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  background-color: var(--accent-blush);
  color: var(--accent-sage-dark);
}

/* Urgent Alert Kicker */
.emergency-banner {
  background-color: var(--warning-surface);
  border-bottom: 1px solid var(--warning-border);
  color: var(--warning-rose);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Hero Section */
.hero-editorial {
  padding: 3.5rem 0 2rem 0;
  text-align: center;
}

.hero-editorial .badge-kicker {
  display: inline-block;
  background-color: var(--accent-sage-light);
  color: var(--accent-sage-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(95, 122, 97, 0.2);
  margin-bottom: 1rem;
}

.hero-editorial h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-editorial p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Medical Triage Grid */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.protocol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.protocol-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: var(--accent-sage);
}

.protocol-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.protocol-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* Interactive Decision Tree Styling */
.tree-step {
  display: none;
}
.tree-step.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.choice-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 70px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-btn:hover {
  border-color: var(--accent-sage);
  background-color: var(--accent-sage-light);
}

.choice-btn strong {
  font-size: 1rem;
  color: var(--foreground);
}

.choice-btn span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Urgent Crisis Red Alert Box */
.crisis-alert-box {
  background-color: var(--warning-surface);
  border: 2px solid var(--warning-rose);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: var(--foreground);
}

.crisis-alert-box h4 {
  color: var(--warning-rose);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sovereign Monetization Tier Section */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tier-card.featured {
  border: 2px solid var(--accent-sage);
  background-color: #FAFCFA;
  position: relative;
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--accent-sage);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.tier-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--conversion-blue);
  margin-bottom: 0.75rem;
}

.tier-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-cta {
  background-color: var(--conversion-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 112, 186, 0.2);
}

.btn-cta:hover {
  background-color: var(--conversion-hover);
}

/* E-E-A-T Author Box */
.author-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 3rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-sage);
  background-color: var(--accent-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-sage-dark);
}

.author-content {
  flex: 1;
  min-width: 260px;
}

.author-content h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.author-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
