/* The American Veterinarian — shared styles */
:root {
  --ink: #1d2a2a;
  --ink-soft: #4a5857;
  --bg: #faf7f1;
  --paper: #ffffff;
  --forest: #14423d;
  --forest-2: #1f5c55;
  --sage: #e3ece6;
  --clay: #c2603a;
  --clay-soft: #f6e5dc;
  --gold: #d9a441;
  --line: #e4ddd1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 66, 61, .06), 0 8px 24px rgba(20, 66, 61, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--forest); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay); margin-bottom: .8rem;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 680px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.1; white-space: nowrap; }
.brand-name span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: .93rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--sage); color: var(--forest); }
.nav-links a[aria-current="page"] { color: var(--forest); background: var(--sage); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--forest);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: .98rem; border: 2px solid transparent; transition: .15s;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: #a94f2d; color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-art { background: var(--forest); border-radius: 24px; padding: 32px; color: #fff; box-shadow: var(--shadow); }
.hero-art h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.mini-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.mini-steps li {
  counter-increment: s; display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); margin: 0;
}
.mini-steps li:last-child { border-bottom: 0; }
.mini-steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--forest); font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.mini-steps b { display: block; color: #fff; }
.mini-steps span { color: #cfe0db; font-size: .92rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0; } }

/* Page header */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--sage), var(--bg)); }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.crumbs a { color: var(--ink-soft); }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 720px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--forest-2); }
a.card .more { color: var(--clay); font-weight: 600; font-size: .92rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sage); color: var(--forest);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

/* Stats */
.stat { text-align: left; }
.stat .num { font-family: var(--serif); font-size: 2.3rem; color: var(--forest); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: .95rem; color: var(--ink-soft); margin-top: 8px; }

/* Callouts */
.callout {
  border-left: 4px solid var(--clay); background: var(--clay-soft); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0;
}
.callout.green { border-color: var(--forest-2); background: var(--sage); }
.callout p:last-child { margin-bottom: 0; }
.callout .t { font-weight: 700; display: block; margin-bottom: 4px; color: var(--ink); }

.doc-note {
  display: flex; gap: 16px; align-items: flex-start; background: var(--forest); color: #e7f0ec;
  border-radius: var(--radius); padding: 24px; margin: 2em 0;
}
.doc-note .avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--forest);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.doc-note b { color: #fff; display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.doc-note p { margin: 0; }

/* Article layout */
.article { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--forest); border-color: var(--clay); }
.prose h2 { margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage); color: var(--forest); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.4em 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 48px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--clay);
}
.timeline .when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); }
.timeline h4 { margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* Checklist */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314423d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Sources */
.sources { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.sources h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.sources ul { padding-left: 1.1em; }

/* Next page nav */
.next-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 3em; flex-wrap: wrap; }
.next-nav a {
  flex: 1 1 240px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; background: var(--paper);
}
.next-nav a small { display: block; color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.next-nav a span { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.next-nav a.right { text-align: right; }

/* FAQ */
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 12px;
}
summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex;
  justify-content: space-between; gap: 16px; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--clay); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 16px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--forest); color: #dbe8e3; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--forest); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.site-footer { background: #0f302c; color: #b9cfc8; padding: 56px 0 32px; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #e7f0ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.foot-grid ul { list-style: none; padding: 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--gold); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge.ok { background: #dcefe4; color: #14532d; }
.badge.prov { background: #e0ecf7; color: #1e3a5f; }
.badge.dev { background: #efe7f7; color: #4b2a6b; }
.badge.warn { background: #fbe9c9; color: #7a4a00; }
.badge.no { background: #f7dcd3; color: #8a2d12; }

/* School facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.2em 0 1.6em; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact-l { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 6px; }
.fact-v { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); line-height: 1.25; }
.fact-v span { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.fact-v.small-v { font-family: var(--sans); font-size: 1rem; color: var(--ink); font-weight: 500; }
.fact-n { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.stat .num.num-sm { font-size: 1.3rem; }

/* Directory */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.filters label { flex: 0 1 auto; }
.filters .f-search { flex: 1 1 260px; }
.filters input, .filters select {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--forest-2); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.dir { min-width: 760px; }
table.dir td { vertical-align: middle; }
table.dir a { text-decoration: none; }
table.dir .sub { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.prose { min-width: 0; }