/* CORVASEC FIX66.75.164 — CORVA homepage hero readability only.
   Constrain desktop hero copy so it doesn't spill into the raven artwork;
   improve contrast and leave mobile's stacked-image composition alone. */
@media (min-width: 961px) {
  body.corva-theme .corva-homepage .corva-hero-copy {
    width: min(525px, 55%);
    max-width: 525px;
    min-width: 0;
  }
  body.corva-theme .corva-homepage .corva-hero h1 {
    max-width: 100%;
    font-size: clamp(29px, 2.4vw, 37px);
    letter-spacing: -1.15px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }
  body.corva-theme .corva-homepage .corva-hero-lead {
    max-width: 100%;
  }
  body.corva-theme .corva-homepage .corva-hero-search {
    max-width: 100%;
  }
}
/* A visible dark-mode description and quick-access label without fading into
   the photograph. The gradient retains the clear raven on the right. */
html[data-theme="dark"] body.corva-theme .corva-homepage .corva-hero-lead,
html[data-theme="dark"] body.corva-theme .corva-homepage .corva-popular > span {
  color: #c5daed;
}
@media (min-width: 961px) {
  html[data-theme="dark"] body.corva-theme .corva-homepage .corva-hero::after {
    background: linear-gradient(90deg,
      #091f34 0%,
      rgba(9,31,52,.99) 30%,
      rgba(9,31,52,.93) 46%,
      rgba(9,31,52,.55) 60%,
      rgba(9,31,52,.07) 80%,
      transparent 96%);
  }
}
/* Tablet uses its current responsive layout, but never extends copy into
   image with a fixed-width title or search field. */
@media (min-width: 641px) and (max-width: 960px) {
  body.corva-theme .corva-homepage .corva-hero-copy {width: min(580px, 70%);max-width: 100%;min-width: 0;}
  body.corva-theme .corva-homepage .corva-hero h1 {font-size:clamp(27px,3.35vw,34px);letter-spacing:-1px;overflow-wrap:break-word;}
  body.corva-theme .corva-homepage .corva-hero-search {max-width:100%;}
}
