/* ============================================================
   Verum.vet — Preview G · Premium Minimal
   Palette: #FAFAF9 canvas · #0A0A0A ink · #0E7C5A emerald
   Type: Inter 300/400/500 · Newsreader italic for display
   ============================================================ */

/* ---- Reset + Custom Properties ---- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --canvas:        #FAFAF9;
  --white:         #FFFFFF;
  --ink:           #0A0A0A;
  --ink-soft:      #44403C;   /* stone-700 */
  --ink-muted:     #78716C;   /* stone-500 */
  --ink-faint:     #A8A29E;   /* stone-400 */
  --rule:          rgba(0,0,0,0.09);
  --rule-soft:     rgba(0,0,0,0.06);

  --accent:        #0E7C5A;
  --accent-hover:  #0A6047;
  --accent-light:  #ECFDF5;
  --accent-muted:  rgba(14,124,90,0.12);
  --accent-glow:   rgba(14,124,90,0.06);

  /* severity — restrained tones */
  --sev-emergency-ink: #9B1C1C;
  --sev-emergency-bg:  #FEF2F2;
  --sev-urgent-ink:    #92400E;
  --sev-urgent-bg:     #FFFBEB;
  --sev-routine-ink:   #065F46;
  --sev-routine-bg:    #ECFDF5;

  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --measure: 68ch;
  --radius:  10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }
:focus:not(:focus-visible) { outline: none; }

/* ---- Layout ---- */
.g-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .g-container { padding: 0 20px; } }

.g-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Accessibility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.g-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.g-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.g-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.g-wordmark .dot { color: var(--accent); }

.g-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.g-nav-links a:hover { color: var(--ink); }
.g-nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (max-width: 540px) {
  .g-nav-links li.hide-sm { display: none; }
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.g-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
@media (max-width: 640px) { .g-hero { padding: 72px 0 60px; } }

/* Ambient emerald glow */
.g-hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 55vw; height: 55vw;
  max-width: 680px; max-height: 680px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    var(--accent-glow) 0%,
    rgba(14,124,90,0.02) 50%,
    transparent 70%);
  pointer-events: none;
  animation: g-drift 20s ease-in-out infinite alternate;
}
.g-hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40vw; height: 40vw;
  max-width: 440px; max-height: 440px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(14,124,90,0.03) 0%,
    transparent 65%);
  pointer-events: none;
  animation: g-drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes g-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(1.5%, 2%) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .g-hero::before, .g-hero::after { animation: none; }
}

.g-hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Byline */
.g-byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 32px;
}
.g-byline-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}

/* Vertical ornament */
.g-ornament {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(14,124,90,0.3), transparent);
  margin: 0 auto 32px;
}

/* Display heading */
.g-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 28px;
}
.g-h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Sub-heading */
.g-subhead {
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
  letter-spacing: 0.003em;
}

/* ---- CTA block & Form reveal ---- */
#cta-initial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.g-cta-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 300;
}

#form-wrapper {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(.4,0,.2,1), opacity 0.45s ease;
  text-align: left;
  margin-top: 0;
}
#form-wrapper.open {
  max-height: 2800px; /* large enough for full form */
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  #form-wrapper { transition: none; }
}

/* ---- Trust line ---- */
.g-trust {
  margin-top: 56px;
}
.g-trust-rule {
  display: block;
  width: 36px; height: 1px;
  background: rgba(14,124,90,0.28);
  margin: 0 auto 20px;
}
.g-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.g-trust-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rule);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.g-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
}
.g-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 18px rgba(14,124,90,0.22);
}
.g-btn-primary:active { transform: translateY(1px); }
.g-btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-btn-primary .g-arrow {
  width: 15px; height: 15px; flex-shrink: 0;
  transition: transform 0.18s;
}
.g-btn-primary:hover .g-arrow { transform: translateX(2px); }

.g-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.g-btn-ghost:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.25); }
.g-btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ========================================================
   FORM PANEL
   ======================================================== */
.g-panel {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 36px 40px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 32px rgba(0,0,0,0.04);
  margin-top: 0;
}
@media (max-width: 640px) { .g-panel { padding: 24px 20px 28px; border-radius: 12px; } }

/* Form row / cols */
.g-form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.g-form-row.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .g-form-row.cols-2 { grid-template-columns: 1fr; } }

.g-field { display: flex; flex-direction: column; gap: 6px; }

.g-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.g-label .opt {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

/* Primary fields badge */
.g-primary-fields {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}
@media (max-width: 560px) { .g-primary-fields { grid-template-columns: 1fr; } }

select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
  background: var(--white);
}
select::placeholder, input::placeholder, textarea::placeholder { color: var(--ink-faint); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2378716C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.g-required-mark { color: #B45309; font-size: 0.75rem; margin-left: 2px; }

/* ---- Accordion (optional context) ---- */
.g-accordion-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.18s;
  margin-bottom: 0;
}
.g-accordion-trigger:hover { color: var(--ink); }
.g-accordion-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.g-accordion-chevron {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.g-accordion-trigger[aria-expanded="true"] .g-accordion-chevron {
  transform: rotate(180deg);
}
.g-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.g-accordion-body.open { max-height: 1400px; }
@media (prefers-reduced-motion: reduce) {
  .g-accordion-body { transition: none; }
  .g-accordion-chevron { transition: none; }
}

/* ---- Checkboxes / systems ---- */
.g-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.g-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  transition: border-color 0.18s, background 0.18s;
  min-height: 44px;
  user-select: none;
}
.g-checks label:hover { border-color: var(--accent); background: var(--accent-light); }
.g-checks label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 400;
}
.g-checks input[type="checkbox"] {
  width: 16px; height: 16px;
  min-height: auto;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.g-checks label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Horse hint */
.g-horse-hint {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #991B1B;
  line-height: 1.5;
  display: none;
}

/* Submit row */
.g-form-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Disclaimer */
.g-disclaimer {
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.g-disclaimer strong { color: var(--ink-soft); font-weight: 500; }

/* ========================================================
   TRUST BADGES (recount stats)
   ======================================================== */
.g-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.g-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  border-right: 1px solid var(--rule);
  flex: 1 1 auto;
  min-width: 110px;
}
.g-stat:last-child { border-right: none; }
.g-stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.1;
  font-feature-settings: "tnum";
}
.g-stat-label {
  font-size: 0.6875rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-align: center;
}
.g-stat-meta {
  margin-top: 18px;
  font-size: 0.6875rem;
  color: var(--ink-faint);
  line-height: 1.7;
  text-align: center;
  font-style: italic;
  padding: 0 12px;
}
@media (max-width: 700px) {
  .g-stats { gap: 0; }
  .g-stat { padding: 8px 16px; border-right: none; border-bottom: 1px solid var(--rule); min-width: 90px; }
  .g-stat:last-child { border-bottom: none; }
  .g-stat-num { font-size: 1.5rem; }
}

/* ========================================================
   METHOD SECTION
   ======================================================== */
.g-section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.g-section-head {
  max-width: 600px;
  margin-bottom: 48px;
}
.g-section-num {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.g-section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.g-section-lede {
  font-size: 1rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

/* Pillars */
.g-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 780px) {
  .g-pillars { grid-template-columns: 1fr; gap: 24px; }
}
.g-pillar {
  padding: 28px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}
.g-pillar-num {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.g-pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.g-pillar p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 12px;
}
.g-pillar-marg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* Pull quote */
.g-pullquote {
  margin: 48px 0 0;
  padding: 32px 36px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  max-width: 680px;
}
.g-pullquote blockquote {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.g-pullquote blockquote em {
  font-style: italic;
  color: var(--ink);
}

/* ========================================================
   CASE FORM SECTION
   ======================================================== */
#case.g-section { padding-top: 72px; }
.g-form-section-head { margin-bottom: 32px; }

/* ========================================================
   RESULTS SECTION
   ======================================================== */
#results.g-section { padding-top: 56px; }

/* app.js adds .visible to #results after rendering conditions */
#results:not(.visible) { display: none; }

/* Result cards — app.js generates:
   article.result-card.severity-{emergency|urgent|routine}
   with .name, .severity.{cls}, .descr, .citation, .cl-toggle, .cl-extension */

.result-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.18s;
}
.result-card:hover { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.result-card:last-child { margin-bottom: 0; }

/* Severity accent stripe */
.result-card.severity-emergency { border-left: 4px solid #DC2626; }
.result-card.severity-urgent    { border-left: 4px solid #D97706; }
.result-card.severity-routine   { border-left: 4px solid var(--accent); }

.result-card .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* Severity badges */
.result-card .severity {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.result-card .severity.emergency {
  background: var(--sev-emergency-bg);
  color: var(--sev-emergency-ink);
}
.result-card .severity.urgent {
  background: var(--sev-urgent-bg);
  color: var(--sev-urgent-ink);
}
.result-card .severity.routine {
  background: var(--sev-routine-bg);
  color: var(--sev-routine-ink);
}

.result-card .descr {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 12px;
}
.result-card .match-why {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0 0 8px;
  font-style: italic;
}
.result-card .citation {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  margin-top: 4px;
  line-height: 1.55;
}
.result-card .citation::before {
  content: '§ ';
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}

/* Clinical extension (cl-*) */
.cl-toggle {
  background: none; border: none; cursor: pointer;
  padding: 6px 0; margin-top: 10px;
  font-size: 0.75rem;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); letter-spacing: 0.03em;
  font-weight: 400;
}
.cl-toggle:hover { text-decoration: underline; }
.cl-toggle::after { content: '▾'; font-size: 9px; transition: transform 0.18s; }
.cl-toggle.is-expanded::after { transform: rotate(180deg); }
.cl-extension { padding: 14px 0 4px; border-top: 1px solid var(--rule-soft); margin-top: 6px; }
.cl-extension[hidden] { display: none; }
.cl-section { margin-bottom: 14px; }
.cl-section:last-child { margin-bottom: 0; }
.cl-section h5 {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); margin: 0 0 8px;
}
.cl-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.8125rem; line-height: 1.55;
}
.cl-list li { padding: 5px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-soft); }
.cl-list li:last-child { border-bottom: none; }
.cl-list li.firstline { background: rgba(14,124,90,0.03); padding-left: 8px; margin: 2px -8px; border-radius: 3px; }
.cl-list .priority-gold-standard strong { color: var(--accent); font-weight: 600; }
.cl-list .priority-first-line strong { font-weight: 600; }
.cl-tag {
  display: inline-block; padding: 1px 6px; font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(120,113,108,0.1); border-radius: 3px; color: var(--ink-muted);
}
.cl-tag.firstline-tag { background: var(--accent-muted); color: var(--accent); }
.cl-tag.urgency-stat { background: rgba(220,38,38,0.1); color: #991B1B; }
.cl-ref { font-size: 0.6875rem; color: var(--ink-faint); }
.cl-prog {
  background: rgba(14,124,90,0.04); padding: 8px 12px;
  border-left: 3px solid var(--accent); font-size: 0.8125rem; line-height: 1.55;
  color: var(--ink-soft);
}
.cl-prog-rating { display: inline-block; padding: 1px 8px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 3px; }
.cl-prog-rating.prog-excellent { background: #D1FAE5; color: #064E3B; }
.cl-prog-rating.prog-good      { background: #ECFDF5; color: #065F46; }
.cl-prog-rating.prog-guarded   { background: #FFFBEB; color: #78350F; }
.cl-prog-rating.prog-poor      { background: #FEF2F2; color: #7F1D1D; }
.cl-prog-meta { margin-top: 6px; font-size: 0.6875rem; color: var(--ink-faint); display: flex; gap: 12px; flex-wrap: wrap; }
.cl-needs-verify { background: rgba(217,119,6,0.08); color: #92400E; padding: 6px 10px; font-size: 0.6875rem; border-radius: 3px; margin-top: 8px; border-left: 3px solid #D97706; }

/* ========================================================
   FEEDBACK BLOCK
   ======================================================== */
.g-feedback {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (max-width: 640px) { .g-feedback { padding: 22px 18px; } }
.g-feedback h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.g-feedback .g-lede {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 300;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Rating pills */
.rating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.rating label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--canvas);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: border-color 0.18s, background 0.18s;
  min-height: 44px;
  user-select: none;
}
.rating label:hover { border-color: var(--accent); }
.rating label:has(input:checked) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.rating input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rating label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.expected-block {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--canvas);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
}
.expected-block label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.expected-block label .small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 300;
  font-style: italic;
  margin-left: 6px;
}
.expected-block .hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: 0 0 10px;
  line-height: 1.55;
}
.g-feedback-submit { margin-top: 20px; }

/* ========================================================
   TOAST
   ======================================================== */
#toast.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  border-left: 3px solid var(--accent);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  z-index: 9999;
  max-width: min(400px, calc(100vw - 40px));
}
#toast.toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 480px) { #toast.toast { left: 12px; right: 12px; bottom: 12px; } }

/* ========================================================
   DEMO BLOCK (hero.js)
   ======================================================== */
.g-demo {
  display: none; /* hidden in premium view — hero.js still works via data-* attrs */
}
/* Preserve data-* attributes but keep demo visually minimal */
[data-demo] { display: none; }

/* ========================================================
   DEMO section (if shown) — minimal card
   ======================================================== */

/* ========================================================
   FOOTER / COLOPHON
   ======================================================== */
.g-footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  padding: 40px 0 56px;
  background: var(--canvas);
}
.g-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) { .g-footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.g-footer h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.g-footer p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 300;
  margin: 0 0 6px;
  line-height: 1.6;
}
.g-footer .g-imprint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.g-footer .g-imprint .dot { color: var(--accent); }
.g-footer .g-imprint-sub {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ========================================================
   FADE-UP ANIMATIONS
   ======================================================== */
.g-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.g-fade.g-visible { opacity: 1; transform: translateY(0); }
.g-delay-1 { transition-delay: 0.08s; }
.g-delay-2 { transition-delay: 0.18s; }
.g-delay-3 { transition-delay: 0.3s; }
.g-delay-4 { transition-delay: 0.44s; }
.g-delay-5 { transition-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .g-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ========================================================
   UTILITY
   ======================================================== */
.g-mt-sm { margin-top: 8px; }
.g-mt    { margin-top: 20px; }
.g-mt-lg { margin-top: 32px; }
.g-mb-sm { margin-bottom: 8px; }
.g-mb    { margin-bottom: 20px; }

/* Hidden horse checkboxes */
label[data-only-species="horse"] { display: none; }

/* MT (machine-translation) badge from app.js */
.mt-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--canvas);
  vertical-align: middle;
}

/* ========================================================
   LEGAL / DISCLAIMERS / CONSENT / COOKIE NOTICE  (152-ФЗ)
   ======================================================== */

/* Reinforced warning block (hero + above results) */
.g-warn-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  max-width: 620px;
  margin: 28px auto 0;
  padding: 16px 20px;
  background: var(--sev-emergency-bg);
  border: 1px solid rgba(155,28,28,0.22);
  border-left: 3px solid var(--sev-emergency-ink);
  border-radius: var(--radius-sm);
}
.g-warn-block p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #7A1818;
  font-weight: 400;
}
.g-warn-block strong { color: var(--sev-emergency-ink); font-weight: 600; }
.g-warn-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--sev-emergency-ink);
}
.g-warn-block-results { max-width: none; margin: 0 0 24px; }

/* Strengthened inline form disclaimer */
.g-disclaimer-strong {
  background: var(--sev-emergency-bg);
  border-color: rgba(155,28,28,0.22);
  border-left-color: var(--sev-emergency-ink);
  color: #7A1818;
}
.g-disclaimer-strong strong { color: var(--sev-emergency-ink); }

/* Footer disclaimer line */
.g-footer-disclaimer {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Consent checkbox row (152-ФЗ) */
.g-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.g-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.g-consent a { color: var(--accent); }
.g-consent.g-consent-err { color: var(--sev-emergency-ink); }
.g-consent.g-consent-err input[type="checkbox"] { outline: 2px solid var(--sev-emergency-ink); outline-offset: 2px; }

/* localStorage / cookie notice bar */
.g-cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), opacity 0.32s;
}
.g-cookiebar.show { transform: translateY(0); opacity: 1; }
.g-cookiebar-txt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1 1 280px;
}
.g-cookiebar-txt a { color: var(--accent); }
.g-cookiebar-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s;
}
.g-cookiebar-btn:hover { background: var(--accent-hover); }
.g-cookiebar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
  .g-cookiebar { flex-direction: column; align-items: stretch; text-align: center; }
  .g-cookiebar-btn { width: 100%; }
}

/* Dark-mode adjustments for legal components */
@media (prefers-color-scheme: dark) {
  .g-cookiebar { background: #1C1917; border-color: rgba(255,255,255,0.12); }
  .g-cookiebar-txt { color: #E7E5E4; }
}
