/* Shared styles for public disease-advisory pages
   (advisory-kfd.html, advisory-avian.html, advisory-brucellosis.html).
   Sits alongside css/styles.css. */

body {
  padding-top: 0; margin: 0;
  background: #f5f7fb;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--oh-slate-700);
}

/* ---------- Top bar ---------- */
.adv-topbar { background: #0a1e3d; color: white; border-bottom: 1px solid rgba(255,255,255,0.08); }
.adv-nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; gap: 20px;
}
.adv-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.adv-nav .right { display: flex; align-items: center; gap: 20px; }
.adv-nav .partner-marks { display: inline-flex; align-items: center; gap: 10px; }
.adv-nav .partner-mark { display: inline-flex; text-decoration: none; transition: opacity 0.15s; }
.adv-nav .partner-mark:hover { opacity: 0.85; }
.adv-nav .partner-mark img { display: block; height: 36px; width: auto; max-width: 74px; object-fit: contain; }
.adv-nav .btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); color: white;
  padding: 7px 14px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.adv-nav .btn-back:hover { background: rgba(255,255,255,0.18); }

/* ---------- Alert level band ---------- */
.adv-alert-band { color: white; padding: 8px 24px; font-size: 0.78rem; }
.adv-alert-band.alert-red   { background: #b91c1c; }
.adv-alert-band.alert-amber { background: #b45309; }
.adv-alert-band.alert-yellow{ background: #92400e; }
.adv-alert-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.adv-alert-band .chip {
  background: white; color: #b91c1c; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px;
}
.adv-alert-band.alert-amber .chip { color: #b45309; }
.adv-alert-band.alert-yellow .chip { color: #92400e; }

/* ---------- Hero ---------- */
.adv-hero {
  position: relative; color: white;
  padding: 36px 24px 40px;
  background-size: cover; background-position: center;
}
.adv-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,30,61,0.90) 0%, rgba(20,55,110,0.82) 100%);
}
.adv-hero > * { position: relative; z-index: 1; }
.adv-hero-kfd  { background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Pic_from_Lamb%27s_Rock.jpg/1280px-Pic_from_Lamb%27s_Rock.jpg'), url('img/hero-3-analysis.jpg'); }
.adv-hero-avian{ background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Poultry_Farm_in_Namakkal%2C_Tamil_Nadu.jpg/1280px-Poultry_Farm_in_Namakkal%2C_Tamil_Nadu.jpg'), url('img/art-avian.jpg'); }
.adv-hero-bruc { background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Goat_rearing_rural_woman_India_village_livestock_management.jpg/1280px-Goat_rearing_rural_woman_India_village_livestock_management.jpg'), url('img/art-bruc.jpg'); }

.adv-hero .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
}
.adv-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800;
  line-height: 1.2; margin-top: 12px; max-width: 900px;
}
.adv-hero h1 span { display: block; color: #86efac; font-weight: 600; font-size: 0.65em; margin-top: 4px; }
.adv-hero p { margin-top: 12px; color: rgba(255,255,255,0.9); max-width: 780px; font-size: 0.92rem; line-height: 1.55; }
.hero-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
  margin-top: 20px; max-width: 780px; font-size: 0.78rem;
}
@media (min-width: 800px) { .hero-meta { grid-template-columns: repeat(4, 1fr); } }
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta b {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}

/* ---------- Body layout ---------- */
.adv-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.adv-body {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding-top: 26px; padding-bottom: 40px;
}
@media (min-width: 960px) { .adv-body { grid-template-columns: 1fr 320px; gap: 28px; } }

.adv-content { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Content cards ---------- */
.adv-card {
  background: white; border-radius: 12px;
  border: 1px solid var(--oh-slate-200);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 22px 24px;
}
.adv-card h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--oh-slate-900);
  margin-bottom: 10px;
}
.adv-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--oh-slate-900); margin-bottom: 4px; }
.adv-card p { font-size: 0.88rem; color: var(--oh-slate-700); line-height: 1.6; margin-top: 6px; }
.adv-card p.lead { font-size: 0.92rem; color: var(--oh-slate-500); margin-bottom: 12px; }
.adv-card ul { margin-top: 8px; padding-left: 20px; font-size: 0.86rem; color: var(--oh-slate-700); }
.adv-card ul li { margin: 4px 0; line-height: 1.55; }
.adv-card b { color: var(--oh-slate-900); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* Situation stats */
.situation {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 8px 0 14px;
}
@media (min-width: 700px) { .situation { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--oh-slate-50);
  border: 1px solid var(--oh-slate-200);
  border-radius: 10px; padding: 12px 14px;
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--oh-slate-900); line-height: 1; }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--oh-slate-500); margin-top: 6px; }
.stat-sub { font-size: 0.72rem; color: var(--oh-slate-500); margin-top: 2px; }

/* Zones */
.zones { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.zone-item {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: 10px; padding: 12px 14px;
  border: 1px solid;
}
.zone-item .zone-text { flex: 1; min-width: 0; }
.zone-item b { display: block; color: var(--oh-slate-900); font-size: 0.92rem; }
.zone-item p { font-size: 0.82rem; margin-top: 4px; line-height: 1.5; color: var(--oh-slate-700); }
.zone-tag {
  flex-shrink: 0; width: 56px; text-align: center;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 6px; border-radius: 4px;
  line-height: 1.2; margin-top: 1px;
}
.zone-red    { background: #fef2f2; border-color: #fecaca; }
.zone-red .zone-tag    { background: #b91c1c; color: white; }
.zone-orange { background: #fff7ed; border-color: #fed7aa; }
.zone-orange .zone-tag { background: #c2410c; color: white; }
.zone-yellow { background: #fefce8; border-color: #fef08a; }
.zone-yellow .zone-tag { background: #a16207; color: white; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.step {
  display: grid; grid-template-columns: 68px 1fr; gap: 16px;
  padding: 14px 16px;
  background: var(--oh-slate-50);
  border: 1px solid var(--oh-slate-200); border-radius: 12px;
}
.step-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.step .step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.step h4 { font-size: 0.98rem; font-weight: 700; color: var(--oh-slate-900); margin: 0; }
.step-source {
  display: inline-flex; align-items: center;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--oh-slate-100); color: var(--oh-slate-700);
  border: 1px solid var(--oh-slate-200);
}
.step-source.src-who   { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.step-source.src-woah  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.step-source.src-cdc   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.step-source.src-ncdc  { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.step-source.src-dahd  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.step p  { font-size: 0.85rem; line-height: 1.55; color: var(--oh-slate-700); margin: 0; }

/* Source attribution at the end of the precautions section */
.adv-source {
  margin-top: 18px; padding: 12px 14px;
  background: var(--oh-slate-50); border: 1px solid var(--oh-slate-200);
  border-left: 3px solid var(--oh-slate-500);
  border-radius: 8px;
  font-size: 0.78rem; color: var(--oh-slate-700); line-height: 1.55;
}
.adv-source b { color: var(--oh-slate-900); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.adv-source a { color: var(--oh-green-dark); text-decoration: none; font-weight: 600; }
.adv-source a:hover { text-decoration: underline; }

/* ---------- Sidebar ---------- */
.adv-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: white; border-radius: 12px;
  border: 1px solid var(--oh-slate-200);
  padding: 16px 18px;
}
.side-card h3 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--oh-slate-500); margin-bottom: 10px;
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card ul li { padding: 6px 0; border-bottom: 1px solid var(--oh-slate-100); font-size: 0.85rem; }
.side-card ul li:last-child { border-bottom: none; }
.side-emergency ul li {
  display: flex; align-items: center; justify-content: space-between;
}
.side-emergency ul li span { color: var(--oh-slate-500); }
.side-emergency ul li b { color: var(--oh-slate-900); font-family: 'JetBrains Mono', ui-monospace, monospace; }

.side-card ul.camps li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.side-card ul.camps li b { color: var(--oh-slate-900); font-size: 0.9rem; }
.side-card ul.camps li span { color: var(--oh-slate-500); font-size: 0.78rem; }

.side-card ul.refs li a { color: var(--oh-green-dark); font-weight: 600; text-decoration: none; }
.side-card ul.refs li a:hover { text-decoration: underline; }

.side-share { background: linear-gradient(135deg, #0a1e3d 0%, #1e3a8a 100%); color: white; border: none; }
.side-share h3 { color: rgba(255,255,255,0.7); }
.side-share p { font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.adv-footer {
  background: #0a1e3d; color: rgba(255,255,255,0.7);
  padding: 20px 24px; margin-top: 20px;
}
.adv-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.adv-footer a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; }
.adv-footer a:hover { text-decoration: underline; color: white; }
