/* o3tek.com Design System · Tier 3 Utilitarian / Clinical Precision · Pure English Font Stack */
:root {
  --paper: #FFFFFF;
  --band: #F8FAFC;
  --band-subtle: #F1F5F9;
  --ink: #0F172A;
  --ink2: #1E293B;
  --mute: #475569;
  --hair: #CBD5E1;
  --hair-light: #E2E8F0;
  
  --accent: #0D7377;
  --accent-text: #0A5659;
  --accent-bg: #F0FDF4;
  --accent-light: #E6F7F7;
  --accent-border: #99F6E4;

  --red-flag-bg: #FEF2F2;
  --red-flag-border: #EF4444;
  --red-flag-text: #991B1B;
  --red-flag-pill: #DC2626;

  --warning-bg: #FFFBEB;
  --warning-border: #F59E0B;
  --warning-text: #92400E;

  --tag-food: #0D7377;
  --tag-env: #0284C7;
  --tag-animal: #7C3AED;
  --tag-insect: #D97706;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --font-main: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hair);
  padding: 16px clamp(20px, 6vw, 64px);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14.5px;
  align-items: center;
}

.nav-links a {
  color: var(--ink2);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Page container */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(20px, 6vw, 64px) 80px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--mute);
  margin-bottom: 24px;
}

.breadcrumbs span.sep {
  color: var(--hair);
}

/* Hero */
.hero {
  margin-bottom: 36px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.pill-food { background: #E6F7F7; color: var(--tag-food); }
.pill-env { background: #E0F2FE; color: var(--tag-env); }
.pill-animal { background: #F3E8FF; color: var(--tag-animal); }
.pill-insect { background: #FEF3C7; color: var(--tag-insect); }
.pill-metric { background: var(--band-subtle); color: var(--ink2); border: 1px solid var(--hair); }

h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-deck {
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink2);
  margin-bottom: 28px;
  max-width: 74ch;
}

/* AI Overview Box */
.ai-overview-box {
  background: var(--accent-light);
  border: 2px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0 40px;
  position: relative;
}

.ai-overview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-overview-verdict {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}

.ai-overview-summary {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink2);
  margin: 0;
}

/* Metric Strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.metric-card {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.metric-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.1;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

.metric-sub {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.45;
}

/* Sections */
.section {
  margin-top: 48px;
}

h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-light);
  padding-bottom: 10px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink2);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--band);
  border: 1px solid var(--hair);
  padding: 22px;
}

.card h3 {
  color: var(--accent-text);
  margin-bottom: 8px;
}

.card p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink2);
  margin: 0;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  color: var(--ink2);
}

.card li {
  margin-bottom: 8px;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--hair-light);
  padding-top: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-text);
  min-width: 28px;
}

.step-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 16px;
  color: var(--ink2);
  margin: 0;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  padding: 10px 14px 10px 0;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hair-light);
  vertical-align: top;
  font-size: 15.5px;
  color: var(--ink2);
}

/* Red Flags Emergency Box */
.red-flag-box {
  background: var(--red-flag-bg);
  border: 2px solid var(--red-flag-border);
  padding: 24px;
  margin-top: 36px;
}

.red-flag-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--red-flag-text);
  margin-bottom: 12px;
}

.red-flag-title svg {
  fill: var(--red-flag-pill);
}

.red-flag-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--red-flag-text);
  font-size: 16px;
  line-height: 1.7;
}

.red-flag-box li {
  margin-bottom: 6px;
}

/* Top Emergency Red Flags (for insect stings) */
.top-emergency-triage {
  background: #FFF1F2;
  border: 2px solid #E11D48;
  border-left: 6px solid #BE123C;
  padding: 20px 24px;
  margin: 20px 0 32px;
}

.top-emergency-triage h2 {
  color: #9F1239;
  font-size: 19px;
  border: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-emergency-triage p, .top-emergency-triage ul {
  color: #881337;
  font-size: 16px;
  margin: 0 0 8px;
}

/* Specialized Allergen Modules */
.specialized-module {
  background: var(--band);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--accent);
  padding: 24px;
  margin-top: 36px;
}

.specialized-module.warning-box {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  border-left: 5px solid #D97706;
}

.specialized-module.warning-box h3 {
  color: var(--warning-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialized-module.warning-box p, .specialized-module.warning-box li {
  color: #78350F;
}

/* Vet Visit Prep Checklist (Printable Component) */
.vet-checklist-box {
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  padding: 28px;
  margin-top: 48px;
}

.vet-checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 12px;
}

.vet-checklist-header h3 {
  margin: 0;
  font-size: 19px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.print-btn {
  background: var(--paper);
  border: 1px solid var(--hair);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.print-btn:hover {
  background: var(--band-subtle);
  border-color: var(--ink);
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink2);
}

.checklist-item input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checklist-item span strong {
  color: var(--ink);
}

/* References Section */
.references-section {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.references-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.references-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mute);
}

.references-list li {
  margin-bottom: 10px;
}

.references-list a {
  color: var(--accent-text);
  font-weight: 500;
  word-break: break-all;
}

/* Internal Linking Flywheel */
.flywheel-section {
  background: var(--band);
  border: 1px solid var(--hair);
  padding: 32px;
  margin-top: 48px;
}

.flywheel-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flywheel-card {
  background: var(--paper);
  border: 1px solid var(--hair-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flywheel-card a {
  font-weight: 600;
  font-size: 16px;
}

.flywheel-card p {
  font-size: 14.5px;
  color: var(--mute);
  margin: 6px 0 0;
}

.flywheel-card span {
  font-size: 12.5px;
  color: var(--mute);
  font-family: var(--font-mono);
  margin-top: 8px;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.faq-card {
  border: 1px solid var(--hair-light);
  padding: 20px;
  background: var(--band);
}

.faq-q {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.7;
  margin: 0;
}

/* Compliance / Policy Page Specifics */
.compliance-article {
  max-width: 820px;
  margin: 0 auto;
}

.compliance-article h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 20px;
}

.compliance-article h2 {
  margin-top: 40px;
}

.compliance-article p, .compliance-article li {
  font-size: 16.5px;
  line-height: 1.78;
}

/* Footer & YMYL Disclaimer */
.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--band);
  padding: 48px clamp(20px, 6vw, 64px) 64px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--mute);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.disclaimer-box {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink2);
}

.footer-compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair-light);
  font-size: 14px;
}

.footer-compliance-links a {
  color: var(--ink2);
  font-weight: 500;
}

.footer-compliance-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}

/* Print styles for checklist */
@media print {
  .site-header, .site-footer, .breadcrumbs, .badge-row, .flywheel-section, .print-btn, .ai-overview-box {
    display: none !important;
  }
  .page-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .vet-checklist-box {
    border: 2px solid #000 !important;
    background: #FFF !important;
    padding: 16px !important;
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
