/* CINEPOA: focused readability, keyboard and small-screen refinements. */
:root {
  --action-red: #d61f3e;
  --action-red-hover: #b71934;
  --sticky-header-offset: 112px;
}

html {
  scroll-padding-top: var(--sticky-header-offset);
  scroll-padding-bottom: 96px;
}

/* White action labels: 5.09:1 normally and 6.56:1 on hover. */
.button-primary {
  background: var(--action-red);
  color: #fff;
}

.button-primary:hover,
.button-primary:active {
  background: var(--action-red-hover);
}

.plan-badge,
.skip-link {
  background: var(--action-red);
  color: #fff;
}

.plan-badge {
  height: auto;
  min-height: 29px;
  padding: 5px 10px;
  line-height: 1.35;
}

::selection {
  background: var(--action-red);
  color: #fff;
}

/* Keep the red gift section; its brightest stop supports white at 4.90:1.
   The existing dark display heading remains at least 3.09:1. */
.app-gift-section {
  background:
    radial-gradient(ellipse at 15% 0, #d33048, transparent 65%),
    linear-gradient(115deg, #c92a42, #be2441);
}

.app-gift-copy > .eyebrow,
.app-gift-copy > p:not(.eyebrow):not(.gift-lead) {
  color: #fff;
}

/* A light outline with a dark backing remains visible on both red and black. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.search-field:focus-within {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #08090c;
}

.search-field input:focus-visible {
  outline: none;
  box-shadow: none;
}

.motion-on .reveal:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

.button {
  max-width: 100%;
  white-space: normal;
}

.header-cta,
.menu-toggle,
.film-control,
.filter-buttons > button,
.brand {
  min-height: 44px;
}

.menu-toggle {
  flex-shrink: 0;
}

.desktop-nav a,
.text-link,
.scroll-cue,
.reseller-opening-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.text-link {
  max-width: 100%;
}

.film-control {
  min-width: 44px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.video-hero .scroll-cue,
.reseller-opening-footer > a {
  font-size: 12px;
  letter-spacing: .7px;
}

.footer-links a,
.portal-links a,
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  line-height: 1.5;
}

.search-field {
  min-width: 0;
}

.search-field input {
  min-height: 24px;
  font-size: 16px;
}

.catalog-help {
  margin: 26px 0 8px;
  color: #c0bbc9;
  font-size: 14px;
  line-height: 1.7;
}

.catalog-count {
  font-size: 13px;
  line-height: 1.6;
}

.catalog-help + .catalog-count {
  margin-top: 0;
}

/* Plan names retain their established typography when promoted to headings. */
h3.plan-name {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 3px;
}

.reseller-school-note strong {
  font-size: 13px;
}

.reseller-school-note small {
  font-size: 12px;
  line-height: 1.65;
}

.reseller-page .catalog-label {
  font-size: 12px;
  letter-spacing: .8px;
}

/* Let actual content determine height, especially with larger text or zoom. */
.video-hero .hero {
  max-height: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.hero-copy,
.video-hero .hero-art,
.app-gift-copy,
.gift-options,
.gift-options-heading > div,
.plan-card,
.device-intro,
.device-grid > div,
.faq-intro,
.support-layout > div,
.school-copy,
.catalog-card,
.hero-gift > span,
.reseller-school-note > span {
  min-width: 0;
}

.catalog-card h3,
.device-grid h3,
.device-grid p,
.support-checklist li {
  overflow-wrap: anywhere;
}

.cinema-sticky,
.cinema-caption {
  height: auto;
  min-height: 650px;
}

@media (max-width: 720px) {
  :root {
    --sticky-header-offset: 92px;
  }

  /* The menu remains scrollable when landscape or zoom leaves little height. */
  .mobile-nav {
    max-height: calc(100vh - 77px);
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cinema-sticky,
  .cinema-caption {
    min-height: 590px;
  }

  .reseller-opening-footer {
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 8px;
  }

  main.closing-cta h1 {
    font-size: clamp(52px, 15vw, 88px);
  }
}

@media (pointer: coarse) {
  .footer-links a,
  .portal-links a,
  .breadcrumb a {
    min-height: 44px;
  }
}

@media (forced-colors: active) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible,
  .search-field:focus-within {
    outline-color: Highlight;
    box-shadow: none;
  }
}
