/* Shared first paint of the public header and the homepage introduction. */
.ch-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-text);
  transition: transform var(--motion);
}
.ch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--layout-wrap);
  height: 63px;
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}
.ch-logo { display: flex; flex: none; align-items: center; min-height: var(--hit-min); }
.ch-logo img { display: block; width: auto; height: 26px; }
.ch-species {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 0 2px;
  border-radius: var(--radius-pill);
  background: var(--color-sand);
}
.ch-species a, .ch-item__link, .ch-item__chev, .ch-breeder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font: 600 14px/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}
.ch-species a { min-width: 44px; }
.ch-species a[aria-current="true"] {
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: 0 0 0 3px var(--color-sand) inset;
}
.ch-nav { display: flex; align-items: center; justify-content: center; flex: 1; }
.ch-item { flex: none; border-radius: var(--radius-pill); }
.ch-item:hover, .ch-item[data-open], .ch-item[aria-current] { background: var(--color-sand); }
.ch-item__chev { gap: 4px; background: none; border: 0; cursor: pointer; }
.ch-item__chev svg { fill: none; stroke: currentColor; stroke-width: 2; }
.ch-item__chev[aria-expanded="true"] svg { transform: rotate(180deg); }
.ch-breeder:hover, .ch-item__link:hover { text-decoration: underline; }
.ch-row .ch-menu-open { display: none; }
.ch-row .ch-search-open { display: inline-flex; margin-left: 0; }
.ch-item--reference { position: relative; }
.ch-item--reference .ch-panel { left: auto; right: 0; width: min(560px, 90vw); border: 1px solid var(--color-line); border-radius: var(--radius-tile); }
.ch-item--reference .ch-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 20px; }
.ch-header :focus-visible, .ch-bar__cell:focus-visible { outline: 3px solid var(--color-assistant); outline-offset: 2px; }

.home-page .home-hero { padding: 22px 24px; background: var(--color-sand); border-bottom: 1px solid var(--color-line); }
.home-focus { max-width: 780px; margin: 0 auto; text-align: center; }
.home-focus h1 { margin: 8px auto 18px; font: 600 clamp(26px, 3.1vw, 42px)/1.12 var(--font-display); letter-spacing: -0.04em; }
.home-coverage { display: block; color: var(--color-muted); font-weight: 400; }
.home-lead { margin: 0 auto; font: 600 13px/1.4 var(--font-text); color: var(--color-graphite); }

@media (max-width: 1199px) {
  .ch-row { gap: 6px; height: 55px; padding-inline: 12px; }
  .ch-logo { margin-right: auto; }
  .ch-row .ch-menu-open { display: inline-flex; padding: 0; width: 44px; }
  .ch-menu-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ch-row .ch-nav, .ch-row .ch-breeder, .ch-row .ch-login { display: none; }
}
@media (max-width: 540px) {
  .ch-row { gap: 3px; padding-inline: 8px; }
  .ch-logo img { height: auto; width: clamp(96px, 31vw, 155px); }
  .ch-species a { padding-inline: 6px; font-size: 12px; }
  .home-page .home-hero { padding: 16px; }
}

.lk-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lk-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #696963; font-size: 12px; text-decoration: none; }
.lk-footer-links a:hover { color: #7451ca; }
@media (max-width: 760px) {
  .lk-footer-links { gap: 0 20px; }
}
