:root {
  --green: #1a6b2a;
  --green-pale: #eaf5eb;
  --gold: #f5a623;
  --cream: #fcf8ef;
  --white: #ffffff;
  --text: #2f261d;
  --text-soft: #6a5a4b;
  --border: #e7d8c3;
  --shadow: 0 22px 48px rgba(88, 58, 24, 0.10);
  --shadow-soft: 0 12px 28px rgba(86, 59, 28, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --nav-h: 62px;
  --quick-nav-h: 64px;
  --earth-deep: #7a4b22;
  --earth-mid: #a76a35;
  --earth-warm: #c6905c;
  --earth-soft: #f5ede2;
  --earth-leaf: #5a7b45;
  --earth-cream: #fffaf3;
  --overlay: rgba(17, 11, 6, 0.52);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 144, 92, 0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(90, 123, 69, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #f9f3ea 48%, #fcf8f1 100%);
  color: var(--text);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-stack { padding: 28px 0 72px; }
.section-block { margin-top: 30px; }
.section-block[id],
.detail-note[id] { scroll-margin-top: calc(var(--nav-h) + var(--quick-nav-h) + 26px); }
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(198, 144, 92, 0.22), rgba(90, 123, 69, 0.12));
  box-shadow: inset 0 0 0 1px rgba(122, 75, 34, 0.08);
  font-size: 1.35rem;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--earth-mid);
  margin-bottom: 3px;
}
.section-heading h2,
.table-head h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
  color: var(--text);
}
.section-note {
  margin-bottom: 18px;
  color: var(--text-soft);
  line-height: 1.78;
  max-width: 920px;
}
.section-note--highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(90, 123, 69, 0.08));
  border: 1px solid rgba(122, 75, 34, 0.10);
  color: var(--text);
  font-weight: 600;
}

nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(213, 229, 215, 0.88);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.nav-logo {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none;
  color: #685c51;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.active { background: var(--green-pale); color: var(--green); }
.lang-select {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.tip-bar {
  background: linear-gradient(90deg, #75502d 0%, #9b683d 52%, #6a844f 100%);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.livestock-hero {
  position: relative;
  min-height: clamp(560px, 84vh, 780px);
  overflow: hidden;
  background: linear-gradient(140deg, #f7efe4 0%, #f4eadf 42%, #fbf6ee 100%);
}
.hero-video,
.hero-overlay,
.hero-backdrop {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  background: linear-gradient(135deg, rgba(28, 17, 8, 0.68) 0%, rgba(62, 39, 19, 0.58) 42%, rgba(35, 55, 27, 0.42) 78%, rgba(17, 11, 6, 0.7) 100%);
}
.hero-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 224, 194, 0.18), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(183, 214, 154, 0.16), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(198, 144, 92, 0.14), transparent 30%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding-top: 56px;
  padding-bottom: 24px;
}
.hero-copy,
.hero-card {
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 50px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-copy {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(247, 232, 212, 0.08));
  color: white;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(251, 230, 205, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 0.96;
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.75;
  color: #fff8f0;
  max-width: 720px;
}
.hero-support {
  margin-top: 12px;
  color: #f5eadc;
  font-size: 0.92rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill-action,
.primary-cta,
.secondary-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.pill-action {
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(198, 144, 92, 0.30), rgba(90, 123, 69, 0.26));
  border: 1px solid rgba(255, 240, 224, 0.28);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(68, 43, 16, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pill-action:hover,
.pill-action:focus-visible,
.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-1px);
}
.hero-card {
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.84), rgba(252, 244, 233, 0.72));
  color: var(--text);
}
.hero-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(198, 144, 92, 0.24), rgba(90, 123, 69, 0.14));
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.hero-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.hero-card p {
  color: var(--text-soft);
  line-height: 1.72;
}
.hero-stat-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-stat-grid div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(122, 75, 34, 0.10);
}
.hero-stat-grid strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--earth-deep);
}
.hero-stat-grid span {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.hero-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 28px;
}
.hero-highlights span {
  background: rgba(255,255,255,0.9);
  color: var(--earth-deep);
  border: 1px solid rgba(122, 75, 34, 0.10);
  border-radius: 999px;
  padding: 11px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.quick-nav-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(252, 248, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 216, 195, 0.95);
}
.quick-nav {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  color: #785741;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(167, 106, 53, 0.14);
  font-size: 0.81rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.quick-nav a:hover,
.quick-nav a.active {
  background: linear-gradient(135deg, rgba(198, 144, 92, 0.18), rgba(90, 123, 69, 0.15));
  color: var(--earth-deep);
}

.summary-grid,
.systems-grid,
.notes-grid,
.notes-detail-grid {
  display: grid;
  gap: 16px;
}
.four-up { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.three-up { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.systems-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.notes-grid,
.notes-detail-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.premium-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,251,246,0.92));
  border: 1px solid rgba(189, 160, 130, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.summary-card h3,
.mini-card h3,
.system-card h3,
.disease-card h3,
.note-card h3,
.detail-note h3,
.checklist-card h3,
.troubleshoot-strip h3,
.faq-item summary,
.exam-strip span,
.ai-cta h3,
.table-card h3 {
  font-family: 'Poppins', sans-serif;
}
.summary-card p,
.mini-card p,
.system-card p,
.system-card li,
.disease-card p,
.note-card p,
.detail-note p,
.section-block li,
.table-card td,
.table-card th,
.faq-item p,
.ai-cta p {
  color: var(--text-soft);
  line-height: 1.7;
}
.summary-card,
.mini-card,
.disease-card,
.note-card,
.detail-note,
.system-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.summary-card:hover,
.mini-card:hover,
.disease-card:hover,
.note-card:hover,
.detail-note:hover,
.system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 106, 53, 0.28);
  box-shadow: 0 18px 34px rgba(86, 59, 28, 0.11);
}

.system-card {
  padding: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(198, 144, 92, 0.12);
}
.badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--earth-deep);
  background: rgba(198, 144, 92, 0.14);
  border: 1px solid rgba(167, 106, 53, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
}
.system-card ul {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.system-card li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(249, 241, 231, 0.82);
}
.accent-earth { background: linear-gradient(180deg, #fffdfa 0%, #fbf4ea 100%); }
.accent-golden { background: linear-gradient(180deg, #fffdf8 0%, #fff5df 100%); }
.accent-leaf { background: linear-gradient(180deg, #fffef9 0%, #f3f8ee 100%); }

.table-card { margin-top: 18px; }
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  text-decoration: none;
  color: var(--earth-deep);
  font-weight: 700;
}
.card-link:hover { color: var(--green); }

.secondary-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(122, 75, 34, 0.08);
  color: var(--earth-deep);
  font-weight: 700;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(167, 106, 53, 0.14);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: white;
}
.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(167, 106, 53, 0.10);
}
.table-wrap th {
  background: #f9f0e3;
  color: var(--earth-deep);
  font-size: 0.82rem;
}
.table-wrap tr:last-child td { border-bottom: none; }

.checklist-card,
.troubleshoot-strip,
.ai-cta,
.exam-strip {
  margin-top: 18px;
}
.check-grid,
.tips-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.check-grid li,
.tips-grid li {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffefb 0%, #f8f1e7 100%);
  border: 1px solid rgba(167, 106, 53, 0.12);
  color: var(--text-soft);
  line-height: 1.65;
}
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.trouble-grid div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(167, 106, 53, 0.12);
}
.trouble-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--earth-deep);
}
.trouble-grid span { color: var(--text-soft); line-height: 1.65; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(167, 106, 53, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 0 18px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  color: var(--text);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 0 18px;
}

.note-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(90, 123, 69, 0.10);
  color: var(--earth-leaf);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.note-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--earth-deep);
  font-weight: 700;
}
.exam-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exam-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(167, 106, 53, 0.12);
  color: var(--earth-deep);
  font-size: 0.82rem;
}
.notes-detail-grid { margin-top: 18px; }
.detail-note {
  background: linear-gradient(180deg, #fffdf9 0%, #fbf5ec 100%);
}

.ai-input-row {
  display: grid;
  gap: 12px;
}
.ai-input-row input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(167, 106, 53, 0.16);
  background: #fffdf9;
  padding: 15px 16px;
  outline: none;
}
.ai-input-row input:focus {
  border-color: rgba(167, 106, 53, 0.42);
  box-shadow: 0 0 0 4px rgba(198, 144, 92, 0.14);
}
.primary-cta {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4b22, #a76a35);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(122, 75, 34, 0.18);
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.prompt-chips button {
  border: 1px solid rgba(167, 106, 53, 0.16);
  background: #fffaf2;
  color: var(--earth-deep);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.anchor-focus {
  animation: anchorPulse 1.3s ease;
}
@keyframes anchorPulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 106, 53, 0.24); }
  100% { box-shadow: 0 0 0 18px rgba(167, 106, 53, 0); }
}

footer {
  background: #17311c;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 34px 18px 42px;
}
.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-links a {
  color: #d9f0dc;
  text-decoration: none;
}
.footer-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.72;
}

.page-nav-wrap{
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(122, 75, 34, 0.16);
  box-shadow: 0 1px 4px rgba(65,39,16,0.05);
}
.page-nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.page-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 106, 53, 0.26);
  background: #faf1e5;
  color: #6d4220;
  font: 700 0.82rem/1 'Hind', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(67,43,19,0.08);
  transition: background-color .2s ease, border-color .2s ease, transform .18s ease, box-shadow .2s ease;
}
.page-back:hover,
.page-back:focus-visible { background: #f4e5cf; border-color: rgba(167,106,53,0.38); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(67,43,19,0.12); }
.page-back:focus-visible { outline: 2px solid rgba(111,141,87,0.35); outline-offset: 2px; }
.page-back:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(67,43,19,0.1); }
.breadcrumb{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  column-gap: 9px;
  color: #6d5c4d;
  font-size: 0.8rem;
  line-height: 1.4;
}
.breadcrumb span[aria-hidden="true"]{ color: #8a7867; font-size: 0.74rem; }
.breadcrumb a{
  color: #6f8d57;
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: #567141; text-decoration: underline; text-decoration-color: rgba(86,113,65,0.52); }
.breadcrumb a:focus-visible { outline: 2px solid rgba(111,141,87,0.32); outline-offset: 2px; border-radius: 6px; }
.breadcrumb [aria-current="page"]{
  color: #302419;
  font-weight: 700;
}
@media (max-width: 560px) {
  .page-nav { gap: 10px; }
  .breadcrumb { font-size: 0.78rem; column-gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-back, .breadcrumb a { transition: none; }
}

@media (min-width: 840px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
  }
  .hero-highlights { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ai-input-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (max-width: 839px) {
  :root { --quick-nav-h: 58px; }
  .table-head { align-items: flex-start; flex-direction: column; }
}
