/* Home-only accessibility and integration; the two reference stylesheets stay unchanged. */
.sl-home-v2 [hidden] { display: none !important; }
.sl-home-v2 .reveal { opacity: 1; transform: none; }
.sl-home-v2 .marquee-track { animation: none; }
.sl-home-v2 .hero-visual { will-change: auto; }
.sl-home-v2 :is(.hero-photo-wrap,.hero-photo-inset,.hero-photo-ribbon) {
  --frame-padding: 9px;
  --caption-height: 32px;
  display: grid;
  grid-template-rows: minmax(0,1fr) var(--caption-height);
  border: 0;
  padding: var(--frame-padding);
  background: #efe7d7;
}
.sl-home-v2 .hero-photo-inset { --frame-padding: 7px; --caption-height: 24px; background: #f4ece0; }
.sl-home-v2 .hero-photo-ribbon { --frame-padding: 7px; --caption-height: 22px; background: #eee5d5; }
.sl-home-v2 :is(.hero-photo-wrap,.hero-photo-inset,.hero-photo-ribbon) img { display: block; min-height: 0; height: 100%; }
.sl-home-v2 :is(.hero-photo-wrap,.hero-photo-inset,.hero-photo-ribbon) figcaption {
  position: relative;
  inset: auto;
  z-index: 2;
  height: auto;
  min-width: 0;
  padding-inline: 3px;
  background: inherit;
  line-height: 1.35;
}
.sl-home-v2 .hero-photo-wrap::before { inset: var(--frame-padding) var(--frame-padding) calc(var(--frame-padding) + var(--caption-height)); pointer-events: none; }
.sl-home-v2 .home-litter-note { background: #eee9dc; border-bottom: 1px solid #d8d2c2; color: #284638; }
.sl-home-v2 .home-litter-note .shell { display: flex; align-items: center; gap: 30px; padding-block: 22px; }
.sl-home-v2 .home-litter-note p { flex: 1; font-size: 12px; line-height: 1.7; margin: 0; }
.sl-home-v2 .home-litter-note p>span { display: block; font-size: 9px; letter-spacing: 1.7px; color: #6b675b; }
.sl-home-v2 .home-litter-note strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.sl-home-v2 .home-litter-note a { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.sl-home-v2 .home-team-note { max-width: 650px; margin: 24px 0; font-size: 13px; line-height: 1.9; color: #5f6b60; }
.sl-home-v2 .journey-step { opacity: 1; transform: none; }
.sl-home-v2 .journey-step.is-active { opacity: 1; }
.sl-home-v2 .journey-step:not(.is-active) .step-index { color: #5f6b60; }
.sl-home-v2:not(.home-breeds-ready) .breed-stage-visual { display: grid; grid-template-rows: 1fr 1fr; min-height: 780px; }
.sl-home-v2:not(.home-breeds-ready) .breed-image { position: relative; opacity: 1; visibility: visible; transform: none; height: 100%; }
.sl-home-v2:not(.home-breeds-ready) .breed-panel + .breed-panel { margin-top: 55px; }
.sl-home-v2 .breed-panel:focus { outline: none; }
.sl-home-v2 .breed-tab:focus-visible,
.sl-home-v2 .archive-item:focus-visible,
.sl-home-v2 .quiz-option:focus-visible,
.sl-home-v2 .lightbox button:focus-visible { outline: 3px solid #af874d; outline-offset: 5px; }
.sl-home-v2 .home-shows-date { margin: 25px 0 0; color: #d9c49f; font-size: 11px; letter-spacing: 1px; }
.sl-home-v2 .home-film { margin-top: 26px; color: #e8e6d8; max-width: 480px; border-top: 1px solid #627466; }
.sl-home-v2 .home-film summary { cursor: pointer; padding: 15px 0; font-size: 12px; }
.sl-home-v2 .home-film video { display: block; width: 100%; height: auto; max-height: 430px; background: #142b21; }
.sl-home-v2 .home-film p { font-size: 11px; line-height: 1.7; margin-top: 12px; }
.sl-home-v2 .home-guide-note { padding-top: 35px; font-size: 13px; color: #5f6b60; line-height: 1.8; }
.sl-home-v2 .home-guide-note a { text-decoration: underline; text-underline-offset: 4px; color: #284638; }
.sl-home-v2 #quizFallback h3 { font: 400 40px/1.1 var(--serif); margin: 24px 0; }
.sl-home-v2 #quizFallback h3 em { color: #768c70; }
.sl-home-v2 #quizFallback ol { padding-left: 20px; font-size: 13px; line-height: 1.8; }
.sl-home-v2 #quizFallback li { margin: 16px 0; }
.sl-home-v2 #quizFallback p { font-size: 12px; line-height: 1.8; margin: 24px 0; color: #64705f; }
.sl-home-v2 .quiz-question h3:focus { outline: none; }
.sl-home-v2 .quiz-result-summary { font-size: 12px; line-height: 1.8; color: #5f6b60; padding-left: 18px; margin: 20px 0; }
.sl-home-v2 .quiz-result .btn { margin-bottom: 15px; white-space: normal; }
.sl-home-v2 .quiz-restart { border: 0; border-bottom: 1px solid currentColor; background: transparent; font: 600 12px var(--sans); color: #284638; cursor: pointer; padding: 10px 0; }
.sl-home-v2 .lightbox:not([open]) { display: none; }
.sl-home-v2 .lightbox[open] { display: block; }
.sl-home-v2 .lightbox::backdrop { background: rgba(10,24,17,.85); }
.sl-home-v2 .lightbox img { object-fit: contain; max-height: 72vh; }
.sl-home-v2 .lightbox-controls span { min-width: 85px; text-align: center; }
.sl-home-v2 .closing-photo { padding: 10px; }
.sl-home-v2 .closing-photo figcaption { position: static; padding: 10px 4px 0; min-height: 26px; font-size: 8px; line-height: 1.6; }
.sl-home-v2 .wordmark>img { width: 210px; height: auto; }
@media (max-width: 900px) {
  .sl-home-v2 .home-litter-note .shell { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sl-home-v2 .home-litter-note strong { font-size: 21px; }
  .sl-home-v2:not(.home-breeds-ready) .breed-stage-visual { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; min-height: 340px; }
  .sl-home-v2 .home-team-note { font-size: 13px; }
}
@media (max-width: 600px) {
  .sl-home-v2 .home-litter-note .shell { padding-block: 20px; }
  .sl-home-v2:not(.home-breeds-ready) .breed-stage-visual { min-height: 240px; }
  .sl-home-v2 #quizFallback h3 { font-size: 34px; }
  .sl-home-v2 .hero-photo-wrap figcaption { font-size: 8px; }
  .sl-home-v2 .lightbox img { max-height: 65vh; }
}
@media (max-width: 760px) {
  .sl-home-v2 .hero-photo-wrap { --frame-padding: 7px; --caption-height: 27px; }
  .sl-home-v2 .hero-photo-inset { --frame-padding: 6px; --caption-height: 23px; }
  .sl-home-v2 .hero-photo-ribbon { --frame-padding: 5px; --caption-height: 21px; }
}
@media (max-width: 440px) {
  .sl-home-v2 .hero-photo-wrap { --frame-padding: 5px; --caption-height: 23px; }
  .sl-home-v2 .hero-photo-inset { --frame-padding: 5px; --caption-height: 18px; }
  .sl-home-v2 .hero-photo-ribbon { --frame-padding: 4px; --caption-height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-home-v2 { scroll-behavior: auto; }
  .sl-home-v2 *, .sl-home-v2 *::before, .sl-home-v2 *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
