@charset "UTF-8";
/*
 * IM Virbac Table of Contents
 *
 * Palette and rhythm are taken from the Q&A article styles in style.css:
 * ink #433b38, brand orange #f29527, warm rules #e4e3dc, 940px column,
 * 960px breakpoint. Everything is namespaced under .vtoc / .vtocFab / .vtocPanel
 * and every property the article stylesheet also sets is restated here, because
 * the inline block is rendered inside .user-edit and inherits its link and list
 * styling otherwise.
 */

.vtoc,
.vtocFab,
.vtocPanel {
  --vtoc-ink: #433b38;
  --vtoc-ink-soft: #6f635d;
  --vtoc-ink-mute: #928476;
  --vtoc-accent: #f29527;
  --vtoc-accent-soft: rgba(242, 149, 39, 0.1);
  --vtoc-surface: #fffdfa;
  --vtoc-surface-alt: #f1ede5;
  --vtoc-line: #e4e3dc;
  --vtoc-radius: 6px;
  --vtoc-num-font: "Geometria", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.vtoc *,
.vtocFab *,
.vtocPanel * {
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * 1. Landing offset for anchors
 * ------------------------------------------------------------------ */

/*
 * Desktop leaves the header in the flow; below 960px style.css pins .l-header
 * at 55px tall, so an anchor has to clear it. toc.js measures the real header
 * and scrolls precisely — this only has to cover a native hash landing.
 */
.user-edit h2[id],
.user-edit h3[id],
.user-edit h4[id],
.user-edit h5[id],
.user-edit h6[id] {
  scroll-margin-top: 24px;
}

/* ------------------------------------------------------------------ *
 * 2. Inline block
 * ------------------------------------------------------------------ */

.vtoc {
  display: block;
  margin: 36px 0 40px;
  padding: 0;
  border: 1px solid var(--vtoc-line);
  border-radius: var(--vtoc-radius);
  background: var(--vtoc-surface);
  box-shadow: 0 1px 2px rgba(67, 59, 56, 0.04);
  color: var(--vtoc-ink);
  text-align: left;
}

.vtoc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vtoc-line);
  background: var(--vtoc-surface-alt);
  border-radius: var(--vtoc-radius) var(--vtoc-radius) 0 0;
}

.vtoc.is-collapsed .vtoc__bar {
  border-bottom-color: transparent;
  border-radius: var(--vtoc-radius);
}

/* Restated wholesale: .user-edit h2 is a grey slab with a folded corner. */
.user-edit .vtoc__title,
.vtoc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vtoc-ink);
  letter-spacing: 0.02em;
}

.user-edit .vtoc__title::after,
.vtoc__title::after {
  content: none;
}

.vtoc__title::before {
  content: "";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='%23f29527'%3E%3Ccircle cx='3' cy='4' r='1.7'/%3E%3Ccircle cx='3' cy='10' r='1.7'/%3E%3Ccircle cx='3' cy='16' r='1.7'/%3E%3C/g%3E%3Cg fill='%23433b38'%3E%3Crect x='7.5' y='3' width='10.5' height='2' rx='1'/%3E%3Crect x='7.5' y='9' width='10.5' height='2' rx='1'/%3E%3Crect x='7.5' y='15' width='10.5' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.vtoc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 4px 5px 10px;
  border: 0;
  background: none;
  color: var(--vtoc-ink-mute);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.vtoc__toggle:hover,
.vtoc__toggle:focus-visible {
  color: var(--vtoc-accent);
}

.vtoc__toggleIcon {
  width: 8px;
  height: 8px;
  margin-bottom: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.25s ease;
}

.vtoc.is-collapsed .vtoc__toggleIcon {
  margin-bottom: 0;
  margin-top: 3px;
  transform: rotate(45deg);
}

.vtoc__panel {
  overflow: hidden;
  /* No fixed ceiling: a long list would be clipped by one. toc.js measures the
     panel and drives an explicit pixel height for the duration of the animation;
     this is the resting state for both the expanded block and a no-script page. */
  max-height: none;
  opacity: 1;
  visibility: visible;
  padding: 14px 20px 18px;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, visibility 0s linear 0s;
}

.vtoc.is-collapsed .vtoc__panel {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, visibility 0s linear 0.3s;
}

/* ------------------------------------------------------------------ *
 * 3. The list — shared by the inline block and the floating panel
 * ------------------------------------------------------------------ */

.vtoc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.vtoc__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vtoc__item::before {
  content: none;
}

.vtoc__item + .vtoc__item {
  margin-top: 2px;
}

/* Nested levels hang off a hairline rule so depth reads at a glance. */
.vtoc__list--1 {
  margin: 4px 0 8px 10px;
  padding-left: 16px;
  border-left: 1px solid var(--vtoc-line);
}

.vtoc__list--2 {
  margin: 2px 0 6px 6px;
  padding-left: 14px;
  border-left: 1px dotted var(--vtoc-line);
}

/* Kill the dashed orange underline .user-edit puts on every anchor. */
.user-edit .vtoc__link,
.vtoc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 0;
  border-radius: 4px;
  color: var(--vtoc-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.user-edit .vtoc__link::after,
.vtoc__link::after {
  content: none;
}

.vtoc__num {
  flex: 0 0 auto;
  font-family: var(--vtoc-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Top level gets a pill; deeper levels a plain orange ordinal. */
.vtoc__item--0 > .vtoc__link .vtoc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vtoc-surface-alt);
  color: var(--vtoc-ink-mute);
  font-size: 12px;
  transform: translateY(2px);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vtoc__item--1 > .vtoc__link,
.vtoc__item--2 > .vtoc__link {
  font-weight: 500;
}

.vtoc__item--1 > .vtoc__link {
  font-size: 14px;
  color: var(--vtoc-ink-soft);
}

.vtoc__item--2 > .vtoc__link {
  font-size: 13px;
  color: var(--vtoc-ink-mute);
}

.vtoc__item--1 > .vtoc__link .vtoc__num,
.vtoc__item--2 > .vtoc__link .vtoc__num {
  min-width: 2.3em;
  color: var(--vtoc-accent);
  font-size: 12px;
}

.vtoc__label {
  flex: 1 1 auto;
}

.user-edit .vtoc__link:hover,
.user-edit .vtoc__link:focus-visible,
.vtoc__link:hover,
.vtoc__link:focus-visible {
  color: var(--vtoc-accent);
  background: var(--vtoc-accent-soft);
}

.vtoc__link:hover .vtoc__num,
.vtoc__link:focus-visible .vtoc__num {
  background: var(--vtoc-accent);
  color: #fff;
}

/* Set by toc.js as the reader moves through the article. */
.user-edit .vtoc__link.is-active,
.vtoc__link.is-active {
  color: var(--vtoc-accent);
  background: var(--vtoc-accent-soft);
  font-weight: 700;
}

.vtoc__link.is-active .vtoc__num {
  background: var(--vtoc-accent);
  color: #fff;
}

.vtoc__item--1 > .vtoc__link.is-active .vtoc__num,
.vtoc__item--2 > .vtoc__link.is-active .vtoc__num {
  background: none;
  color: var(--vtoc-accent);
}

/* ------------------------------------------------------------------ *
 * 4. Floating button and panel
 *
 * The right-hand edge and bottom-right corner already belong to
 * .c-float__side and .c-to-top, and below 960px .c-float__bottom occupies the
 * full bottom edge — so this sits bottom-left, and toc.js lifts it above the
 * mobile bar by measuring it.
 * ------------------------------------------------------------------ */

.vtocFab {
  position: fixed;
  left: 24px;
  bottom: 40px;
  z-index: 102;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--vtoc-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 59, 56, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, box-shadow 0.2s ease;
}

.vtocFab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s, box-shadow 0.2s ease;
}

.vtocFab:hover,
.vtocFab:focus-visible {
  box-shadow: 0 6px 18px rgba(67, 59, 56, 0.32);
}

.vtocFab__icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='3' cy='4' r='1.7'/%3E%3Ccircle cx='3' cy='10' r='1.7'/%3E%3Ccircle cx='3' cy='16' r='1.7'/%3E%3Crect x='7.5' y='3' width='10.5' height='2' rx='1'/%3E%3Crect x='7.5' y='9' width='10.5' height='2' rx='1'/%3E%3Crect x='7.5' y='15' width='10.5' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.vtocPanel__backdrop {
  position: fixed;
  inset: 0;
  z-index: 102;
  background: rgba(67, 59, 56, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.vtocPanel__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.vtocPanel {
  position: fixed;
  left: 24px;
  bottom: 100px;
  z-index: 103;
  display: flex;
  flex-direction: column;
  width: 340px;
  max-width: calc(100vw - 48px);
  max-height: min(62vh, 560px);
  border: 1px solid var(--vtoc-line);
  border-radius: var(--vtoc-radius);
  background: var(--vtoc-surface);
  box-shadow: 0 12px 32px rgba(67, 59, 56, 0.24);
  color: var(--vtoc-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.vtocPanel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.vtocPanel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 12px 14px 18px;
  border-bottom: 1px solid var(--vtoc-line);
  background: var(--vtoc-surface-alt);
  border-radius: var(--vtoc-radius) var(--vtoc-radius) 0 0;
}

.vtocPanel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.vtocPanel__close {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--vtoc-ink-mute);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vtocPanel__close:hover,
.vtocPanel__close:focus-visible {
  background: rgba(67, 59, 56, 0.07);
  color: var(--vtoc-ink);
}

.vtocPanel__close::before,
.vtocPanel__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  margin: -1px 0 0 -7.5px;
  background: currentColor;
  border-radius: 1px;
}

.vtocPanel__close::before {
  transform: rotate(45deg);
}

.vtocPanel__close::after {
  transform: rotate(-45deg);
}

.vtocPanel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 16px;
  overscroll-behavior: contain;
}

/* ------------------------------------------------------------------ *
 * 5. Narrow screens
 * ------------------------------------------------------------------ */

@media screen and (max-width: 960px) {
  .user-edit h2[id],
  .user-edit h3[id],
  .user-edit h4[id],
  .user-edit h5[id],
  .user-edit h6[id] {
    scroll-margin-top: 71px;
  }

  .vtoc {
    margin: 28px 0 32px;
  }

  .vtoc__bar {
    padding: 14px 15px;
  }

  .vtoc__title {
    font-size: 16px;
  }

  .vtoc__panel {
    padding: 12px 12px 14px;
  }

  .vtoc__link {
    font-size: 14px;
    padding: 7px 8px;
  }

  .vtoc__item--1 > .vtoc__link {
    font-size: 13px;
  }

  .vtoc__item--2 > .vtoc__link {
    font-size: 12px;
  }

  .vtocFab {
    left: 15px;
    height: 44px;
    padding: 0 16px 0 13px;
    font-size: 13px;
  }

  /* Bottom sheet: the panel spans the column and rises from the bottom edge. */
  .vtocPanel {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: 68vh;
    transform-origin: center bottom;
  }
}

/* ------------------------------------------------------------------ *
 * 6. Motion and focus preferences
 * ------------------------------------------------------------------ */

.vtoc__link:focus-visible,
.vtoc__toggle:focus-visible,
.vtocFab:focus-visible,
.vtocPanel__close:focus-visible {
  outline: 2px solid var(--vtoc-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .vtoc__panel,
  .vtoc__toggleIcon,
  .vtoc__link,
  .vtoc__num,
  .vtocFab,
  .vtocPanel,
  .vtocPanel__backdrop {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .vtocFab,
  .vtocPanel,
  .vtocPanel__backdrop,
  .vtoc__toggle {
    display: none !important;
  }

  .vtoc__panel {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
