:root {
  /* Natuurpalet: stro, gras, hout */
  --straw: #f0e6cf;
  --straw-light: #faf6ef;
  --grass: #4a6340;
  --grass-dark: #3a5032;
  --grass-light: #e8efe4;
  --wood: #6b4f37;
  --wood-dark: #4a3628;
  --wood-light: #f3ebe3;
  --logo-orange: #d86b27;
  /* Zelfde merk-oranje, verdiept voor tekst-op-oranje (demo-badges/banner): WCAG AA 4.5:1 op cream */
  --logo-orange-deep: #b8551f;
  --cream: #fffef9;
  --ink: #2c2318;
  --ink-soft: #5c4f42;
  --ink-muted: #6f6255; /* verdiept t.o.v. eerdere #8a7d70: die haalde geen 4.5:1 op cream */
  --white: #fffef9;
  --border: #d9cdb8;
  --shadow: 0 2px 12px rgba(44, 35, 24, .08);
  --shadow-lg: 0 8px 28px rgba(44, 35, 24, .12);
  --radius: .375rem;
  --radius-lg: .625rem;
  --focus: var(--grass-dark);
  --header-h: 4rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--grass-dark);
  transition: color .2s;
}

a:hover { color: var(--wood); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Focus-ring blijft zichtbaar op donkere secties (anders valt --grass weg tegen --grass) */
.jh-stats,
.jh-section--grass,
.jh-section--wood,
.jh-foot {
  --focus: var(--cream);
}

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

/* —— Header —— */
.jh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s var(--ease);
}

.jh-header.is-scrolled {
  box-shadow: var(--shadow);
}

.jh-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.jh-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.jh-logo-mark {
  display: block;
  width: 3.6rem;
  height: 2.625rem;
  object-fit: contain;
  flex-shrink: 0;
}

.jh-logo-wordmark {
  display: inline-flex;
  gap: .26em;
  color: var(--wood-dark);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
}

.jh-logo-wordmark > span {
  color: var(--logo-orange);
}

.jh-lang {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
  margin-right: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.jh-lang-link {
  color: var(--ink-muted, #5a5348);
  text-decoration: none;
  padding: .2rem .15rem;
  border-radius: .2rem;
}

.jh-lang-link:hover {
  color: var(--grass-dark);
}

.jh-lang-link.is-active {
  color: var(--grass-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jh-lang-sep {
  color: var(--border);
  user-select: none;
  font-weight: 400;
}

.jh-nav {
  display: none;
  align-items: center;
  gap: .15rem;
  margin-left: 0;
}

.jh-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: .75rem 1rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.jh-nav-link {
  display: block;
  min-height: 2.75rem;
  padding: .65rem .85rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

.jh-nav-link:hover {
  background: var(--straw-light);
  color: var(--grass-dark);
}

.jh-nav-link--account {
  color: var(--grass-dark);
}

.jh-nav-logout {
  margin: 0;
  padding: 0;
  display: block;
}

.jh-nav-link--btn {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.jh-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.jh-menu-btn span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

.jh-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.jh-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.jh-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 860px) {
  .jh-menu-btn { display: none; }

  .jh-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .jh-nav-link { padding: .5rem .75rem; }
}

/* —— Buttons —— */
.jh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.jh-btn--primary {
  background: var(--grass);
  color: var(--cream);
}

.jh-btn--primary:hover {
  background: var(--grass-dark);
  color: var(--cream);
}

.jh-btn--outline {
  background: transparent;
  border-color: var(--grass);
  color: var(--grass-dark);
}

.jh-btn--outline:hover {
  background: var(--grass-light);
}

.jh-btn--light {
  background: var(--cream);
  color: var(--grass-dark);
}

.jh-btn--light:hover {
  background: var(--straw-light);
  color: var(--grass-dark);
}

.jh-btn--wood {
  background: var(--wood);
  color: var(--cream);
}

.jh-btn--wood:hover {
  background: var(--wood-dark);
  color: var(--cream);
}

/* —— Reveal —— */
.jh-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.jh-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.jh-reveal--d1 { transition-delay: .08s; }
.jh-reveal--d2 { transition-delay: .16s; }
.jh-reveal--d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jh-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .jh-news-card,
  .jh-step {
    transition: none;
  }

  .jh-news-card:hover,
  .jh-step:hover {
    transform: none;
  }
}

/* —— Eyebrow / section titles (WereldOuders-stijl) —— */
.jh-eyebrow {
  margin: 0 0 1.75rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grass-dark);
}

.jh-eyebrow--light {
  color: var(--straw-light);
}

/* —— Hero —— */
.jh-hero {
  background: var(--straw-light);
  border-bottom: 1px solid var(--border);
}

.jh-hero-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .jh-hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.jh-badge {
  display: inline-block;
  margin: 0 0 .85rem;
  padding: .35rem .75rem;
  background: var(--grass-light);
  color: var(--grass-dark);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.jh-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.jh-lead {
  margin: 1.25rem 0 1.75rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.jh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.jh-hero-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.jh-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

/* —— Stats / kernpunten-band —— */
.jh-stats {
  background: var(--grass);
  color: var(--cream);
  border-bottom: 1px solid var(--grass-dark);
}

.jh-stats-inner {
  display: grid;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1rem, 4vw, 2rem);
}

@media (min-width: 768px) {
  .jh-stats-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.jh-stat {
  padding: 1.25rem 0;
  text-align: center;
}

.jh-stat + .jh-stat {
  border-top: 1px solid rgba(255, 254, 249, .2);
}

@media (min-width: 768px) {
  .jh-stat {
    padding: 0 1rem;
    border-top: 0;
    border-right: 1px solid rgba(255, 254, 249, .2);
  }

  .jh-stat:last-child { border-right: 0; }
}

.jh-stat-value {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--cream);
}

.jh-stat-label {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: rgba(255, 254, 249, .88);
  max-width: 20rem;
  margin-inline: auto;
}

/* —— Sections —— */
.jh-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.jh-section--straw { background: var(--straw-light); }
.jh-section--grass {
  background: var(--grass);
  color: var(--cream);
}

.jh-section--wood {
  background: var(--wood);
  color: var(--cream);
}

/* —— Actueel / news cards —— */
.jh-news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .jh-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .jh-news-grid { grid-template-columns: repeat(3, 1fr); }
}

.jh-news-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.jh-news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.jh-news-photo {
  overflow: hidden;
}

.jh-news-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.jh-news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.5rem;
}

.jh-news-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.jh-news-body p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.jh-link {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grass-dark);
}

.jh-link:hover {
  color: var(--wood);
  text-decoration: underline;
}

/* —— Steps (Hoe werkt het?) —— */
.jh-steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .jh-steps { grid-template-columns: repeat(3, 1fr); }
}

.jh-step {
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.jh-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.jh-step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  background: var(--grass);
  color: var(--cream);
  font-size: .875rem;
  font-weight: 800;
  border-radius: 50%;
}

.jh-step h3 {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.jh-step p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.jh-steps-cta {
  margin: 2rem 0 0;
  text-align: center;
}

/* —— FAQ —— */
.jh-faq-wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .jh-faq-wrap {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
  }
}

.jh-faq-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 24rem;
}

.jh-faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.jh-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
}

.jh-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
}

.jh-faq-item summary::-webkit-details-marker { display: none; }

.jh-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--grass);
  line-height: 1;
}

.jh-faq-item[open] summary::after {
  content: "−";
}

.jh-faq-item summary:hover {
  background: var(--straw-light);
}

.jh-faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* —— Succesverhalen —— */
.jh-stories {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .jh-stories { grid-template-columns: 1fr 1fr; }
}

.jh-stories-headline {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
}

.jh-stories-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 28rem;
}

.jh-stories-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.jh-stories-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
}

/* —— Testimonials —— */
.jh-quotes-note {
  margin: -.75rem 0 1.75rem;
  font-size: .875rem;
  font-style: italic;
  color: rgba(255, 254, 249, .82);
}

.jh-quotes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .jh-quotes { grid-template-columns: repeat(3, 1fr); }
}

.jh-quote {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: rgba(255, 254, 249, .08);
  border-left: 3px solid var(--straw);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.jh-quote p {
  margin: 0 0 .65rem;
  font-size: .9375rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--cream);
}

.jh-quote cite {
  font-size: .75rem;
  color: rgba(255, 254, 249, .82);
  font-style: normal;
  letter-spacing: .02em;
}

/* —— CTA band —— */
.jh-cta-band {
  background: var(--straw);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.jh-cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.jh-cta-band h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.jh-cta-band p {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-inline: auto;
}

.jh-cta-band .jh-btn--light {
  background: var(--grass);
  color: var(--cream);
  border-color: var(--grass);
}

.jh-cta-band .jh-btn--light:hover {
  background: var(--grass-dark);
  color: var(--cream);
}

/* —— Newsletter —— */
.jh-newsletter {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .jh-newsletter { grid-template-columns: 1fr 1fr; }
}

.jh-newsletter-copy p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 254, 249, .9);
  max-width: 28rem;
}

.jh-signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jh-signup-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.jh-signup-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 254, 249, .85);
}

.jh-signup-form input[type="email"] {
  width: 100%;
  min-height: 2.75rem;
  padding: .85rem 1rem;
  border: 2px solid rgba(255, 254, 249, .25);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
}

.jh-signup-form input[type="email"]:focus {
  border-color: var(--straw);
  outline: none;
}

.jh-signup-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 2.75rem;
  padding-block: .3rem;
  font-size: .875rem;
  line-height: 1.45;
  color: rgba(255, 254, 249, .88);
  cursor: pointer;
}

.jh-signup-consent input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .15rem;
  accent-color: var(--straw);
}

.jh-signup-consent a {
  color: var(--straw-light);
  text-decoration: underline;
}

.jh-signup-consent a:hover {
  color: var(--cream);
}

.jh-signup-form button:disabled { opacity: .6; cursor: wait; }

.jh-signup-msg {
  margin: .5rem 0 0;
  font-size: .9375rem;
  font-weight: 600;
}

.jh-signup-msg.is-ok { color: var(--straw-light); }

.jh-signup-msg.is-err {
  color: var(--ink);
  background: var(--cream);
  padding: .65rem .85rem;
  border-radius: var(--radius);
  display: inline-block;
}

/* —— Footer —— */
.jh-foot {
  background: var(--wood-dark);
  color: rgba(255, 254, 249, .78);
}

.jh-foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.jh-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin-bottom: .45rem;
  color: var(--cream);
  text-decoration: none;
}

.jh-foot-logo .jh-logo-wordmark {
  color: var(--cream);
  font-size: 1.15rem;
}

.jh-logo-mark--footer {
  width: 3.75rem;
  height: 2.75rem;
}

.jh-foot-brand p {
  margin: 0 0 1.25rem;
  font-size: .875rem;
  line-height: 1.5;
  max-width: 28rem;
}

.jh-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin-bottom: 1.5rem;
}

.jh-foot-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 254, 249, .88);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
}

.jh-foot-nav a:hover { color: var(--straw-light); }

.jh-foot-meta {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 254, 249, .15);
  font-size: .8125rem;
}

.jh-foot-meta a {
  color: rgba(255, 254, 249, .65);
  text-decoration: none;
}

.jh-foot-meta a:hover { color: var(--cream); }

/* —— Legal page —— */
.jh-page-hero {
  background: var(--straw-light);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--header-h) + 1.5rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.jh-page-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.jh-page-hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.jh-page-hero p {
  margin: 0;
  color: var(--ink-soft);
}

.jh-legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
}

.jh-legal h2 {
  margin: 2rem 0 .65rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.jh-legal h2:first-child { margin-top: 0; }

.jh-legal p,
.jh-legal li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.jh-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.jh-legal a { color: var(--grass-dark); }

.jh-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grass-dark);
}

.jh-back:hover { text-decoration: underline; }

/* —— Under construction toast —— */
.jh-soon-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  transform: translate(-50%, 120%);
  padding: .85rem 1.25rem;
  background: var(--wood-dark);
  color: var(--cream);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.jh-soon-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .jh-soon-toast { transition: none; }
}

/* —— Demo banner —— */
.jh-demo-banner {
  background: var(--logo-orange-deep);
  color: var(--cream);
  text-align: center;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem 1rem;
}

.jh-badge--demo {
  background: var(--logo-orange-deep);
  color: var(--cream);
}

.jh-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .5rem 0 0;
  padding: .4rem .75rem;
  background: var(--logo-orange-deep);
  color: var(--cream);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: var(--radius);
}

.jh-demo-badge::before {
  content: "⚠";
  font-size: .8125rem;
}

/* —— Nav active —— */
.jh-nav-link.is-active {
  color: var(--grass-dark);
  background: var(--straw-light);
}

/* —— Flash —— */
.jh-flash-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem clamp(1rem, 4vw, 2rem) 0;
}

.jh-flash {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
}

.jh-flash--ok {
  background: var(--grass-light);
  color: var(--grass-dark);
}

.jh-flash--err {
  background: #fde8e8;
  color: #6b2020;
}

/* —— Forms & app pages —— */
.jh-narrow { max-width: 32rem; }

.jh-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jh-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 0 0 1rem;
  background: var(--cream);
}

.jh-fieldset legend {
  font-weight: 800;
  padding: 0 .35rem;
  color: var(--grass-dark);
}

.jh-fieldset-hint {
  margin: -.35rem 0 1rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.jh-fieldset-grid {
  display: grid;
  gap: 0 1.25rem;
}

@media (min-width: 640px) {
  .jh-fieldset-grid { grid-template-columns: 1fr 1fr; }
}

.jh-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .75rem;
  min-width: 0;
}

.jh-field--full { grid-column: 1 / -1; }

.jh-field .jh-hint {
  margin: -.1rem 0 0;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-muted);
}

.jh-field span {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.jh-field input,
.jh-field select,
.jh-field textarea {
  min-height: 2.75rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

.jh-field textarea { min-height: 5rem; resize: vertical; }

.jh-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 2.75rem;
  padding-block: .55rem;
  font-size: .9375rem;
  cursor: pointer;
}

.jh-check input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .2rem;
  accent-color: var(--grass);
}

.jh-check--full { grid-column: 1 / -1; }

.jh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.jh-form-actions--top { margin-bottom: 1.5rem; }

.jh-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.jh-btn--small {
  min-height: 2.25rem;
  padding: .5rem 1rem;
  font-size: .75rem;
}

.jh-btn--danger {
  border-color: #a33;
  color: #a33;
}

.jh-btn--danger:hover { background: #fde8e8; }

.jh-muted { color: var(--ink-muted); font-size: .9375rem; }

.jh-panel {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.jh-panel:last-child { border-bottom: 0; }

.jh-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.jh-panel-head .jh-eyebrow { margin: 0; }

.jh-empty {
  margin: 0;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--straw-light);
  color: var(--ink-muted);
  font-size: .9375rem;
  text-align: center;
}

.jh-account-danger {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}

.jh-list { list-style: none; margin: 1rem 0 0; padding: 0; }

.jh-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.jh-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
  font-size: .875rem;
  font-weight: 700;
}

.jh-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .15rem .5rem;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  background: var(--straw);
  color: var(--ink-soft);
}

.jh-tag--ok { background: var(--grass-light); color: var(--grass-dark); }

.jh-tag--demo {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--logo-orange-deep);
  color: var(--cream);
}

.jh-tag--demo::before {
  content: "⚠";
}

.jh-link--danger { color: #a33; }

.jh-filter-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--straw-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .jh-filter-form { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .jh-filter-form { grid-template-columns: repeat(4, 1fr); }
}

.jh-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .jh-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .jh-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.jh-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.jh-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.jh-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.jh-card-body { padding: 1rem 1.15rem 1.25rem; }

.jh-card-body h3 { margin: 0 0 .35rem; font-size: 1.05rem; }

.jh-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 40%) 1fr;
  gap: .35rem .75rem;
  margin: 0 0 1.5rem;
  font-size: .9375rem;
}

.jh-dl dt { color: var(--ink-muted); font-weight: 600; }

.jh-dl dd { margin: 0; color: var(--ink); }

.jh-horse-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .jh-horse-detail-grid { grid-template-columns: 1fr 1fr; }
}

.jh-horse-photo {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

.jh-horse-desc {
  margin: 1rem 0 0;
  padding: 1rem;
  background: var(--straw-light);
  border-radius: var(--radius);
  line-height: 1.6;
}

.jh-match-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }

.jh-match-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.jh-match-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding-bottom: .85rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}

.jh-match-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.jh-match-name a {
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.jh-match-name a:hover { color: var(--grass-dark); text-decoration: underline; }

.jh-match-metrics {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.jh-match-score {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  padding: .3rem .85rem;
  background: var(--grass-light);
  border-radius: 999px;
  line-height: 1;
}

.jh-match-score-num {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--grass-dark);
}

.jh-match-score-max {
  font-size: .75rem;
  font-weight: 700;
  color: var(--grass-dark);
}

.jh-match-confidence {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 5.5rem;
}

.jh-match-confidence-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.jh-confidence-bar {
  position: relative;
  width: 100%;
  height: .4rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.jh-confidence-bar span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--wood);
  border-radius: 999px;
}

.jh-match-meta {
  margin: 0 0 .9rem;
}

.jh-match-details {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .jh-match-details {
    grid-template-columns: 1fr 1fr;
  }

  .jh-match-details:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}

.jh-match-block {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--grass);
  background: var(--grass-light);
}

.jh-match-block--attention {
  border-left-color: var(--wood);
  background: var(--wood-light);
}

.jh-match-block-title {
  margin: 0 0 .4rem;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--grass-dark);
}

.jh-match-block--attention .jh-match-block-title {
  color: var(--wood-dark);
}

.jh-disclaimer {
  padding: 1rem;
  background: var(--straw-light);
  border-left: 3px solid var(--grass);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.jh-bullets { margin: 0; padding-left: 1.15rem; font-size: .9375rem; line-height: 1.5; }

.jh-bullets li { margin-bottom: .25rem; }
.jh-bullets li:last-child { margin-bottom: 0; }

.jh-bullets--warn { color: var(--wood-dark); }

.jh-messages {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
  max-height: 24rem;
  overflow-y: auto;
  padding: 1rem;
  background: var(--straw-light);
  border-radius: var(--radius-lg);
}

.jh-message {
  max-width: 85%;
  padding: .65rem .85rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) var(--radius) .25rem;
}

.jh-message--mine {
  align-self: flex-end;
  background: var(--grass-light);
  border-color: var(--grass-light);
  border-radius: var(--radius) var(--radius) .25rem var(--radius);
}

.jh-message-sender {
  display: block;
  margin: 0 0 .2rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-muted);
}

.jh-message--mine .jh-message-sender { color: var(--grass-dark); }

.jh-message p { margin: 0; }

.jh-message time {
  display: block;
  font-size: .75rem;
  color: var(--ink-muted);
  margin-top: .25rem;
}

.jh-soon-inline {
  font-style: italic;
  color: var(--ink-muted);
}
