/* Late Shift companion page. Color tokens follow the site's active theme. */
#late-shift {
  background: var(--paper);
  color: var(--ink);
}

#late-shift .ls-section {
  padding: 2.5rem 0;
  scroll-margin-top: 8rem;
}

#late-shift .ls-section + .ls-section {
  border-top: 1px solid var(--rule);
}

#late-shift h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#late-shift h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

#late-shift p {
  max-width: 68ch;
  margin: 0 0 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#late-shift .ls-steps,
#late-shift .ls-never {
  max-width: 68ch;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

#late-shift .ls-steps li,
#late-shift .ls-never li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#late-shift .ls-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#late-shift .ls-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  overflow-wrap: anywhere;
}

#late-shift .ls-card-calls {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

#late-shift a {
  color: var(--link);
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

#late-shift a:hover {
  color: var(--link-hover);
}

#late-shift a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}

#late-shift .ls-download {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

#late-shift .ls-download:hover {
  background: var(--cta-hover);
  color: var(--cta-ink);
}

@media (min-width: 900px) {
  #late-shift .ls-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  #late-shift .ls-section {
    scroll-margin-top: 4.5rem;
  }
}

/* Nav fit, 1100 and up: copy of Juno's rule from bf-hero.css. Keep in sync. */
@media (min-width: 1100px) {
  header.site nav.primary { gap: 0 0.06rem; font-size: 0.66rem; }
  header.site nav.primary a {
    padding-left: 0.14rem;
    padding-right: 0.14rem;
    letter-spacing: 0.02em;
  }
}
