/* Now-building carousel (Task 14, homepage only). Continues the true-white editorial
   register set up in templates/home.html's own scoped <style> block: white ground,
   var(--of-ink-deep) ink, hairline rgba(20,20,15,.16) rules, Newsreader names, Manrope
   meta. .ehome-sechead / .ehome-sechead-h (the "Now building" heading) are NOT redefined
   here -- they are already defined once in home.html and reused as-is, per the "existing
   .ehome label vocabulary" instruction. No filled card background, no border box, no
   shadow, no gradient: each card is set off from its neighbor by a single 1px left rule,
   the same hairline weight used elsewhere on the page, not a bordered-card-grid treatment. */
.now-carousel {
  margin: clamp(48px, 8vh, 72px) 0 0;
}
.now-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 22px;
  margin: 0 -2px;
}
.now-carousel__track::-webkit-scrollbar {
  display: none;
}
.now-carousel__track:focus-visible {
  outline: 2px solid rgb(var(--ofto-primary-rgb));
  outline-offset: 6px;
}
/* min(320px, 70vw): fixed 320px from small-tablet up; below that it tracks viewport width so
   a partial next card always peeks past the right edge (verified at 375px -- see task report). */
.now-card {
  flex: 0 0 min(320px, 70vw);
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
  padding-left: 20px;
  border-left: 1px solid rgba(20, 20, 15, .16);
}
.now-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.now-card__name {
  font-family: 'Newsreader', serif;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--of-ink-deep);
  transition: color .2s var(--ease-hover);
}
.now-card__status {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6b6960;
  flex: none;
}
.now-card__what {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #57554e;
  margin-top: 10px;
}
.now-card:hover .now-card__name,
.now-card:focus-visible .now-card__name {
  color: rgb(var(--ofto-primary-rgb));
}
.now-card:focus-visible {
  outline: 2px solid rgb(var(--ofto-primary-rgb));
  outline-offset: 6px;
}
.now-carousel__controls {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
/* Buttons stay visible and in the tab order at both ends of the track (never hidden or
   removed -- that would make the control row jump around as the user scrolls). Instead
   they go aria-disabled and visually recede when there is nowhere further to go; see
   assets/carousel.js's updateButtons(). */
.now-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid rgba(20, 20, 15, .26);
  border-radius: 999px;
  color: var(--of-ink-deep);
  cursor: pointer;
  transition: border-color .2s var(--ease-hover), color .2s var(--ease-hover), opacity .2s var(--ease-hover);
}
.now-carousel__btn svg {
  width: 14px;
  height: 14px;
}
.now-carousel__btn:hover {
  border-color: var(--of-ink-deep);
}
.now-carousel__btn:focus-visible {
  outline: 2px solid rgb(var(--ofto-primary-rgb));
  outline-offset: 2px;
}
.now-carousel__btn[aria-disabled="true"] {
  opacity: .32;
  cursor: default;
}
.now-carousel__btn[aria-disabled="true"]:hover {
  border-color: rgba(20, 20, 15, .26);
}
@media (prefers-reduced-motion: reduce) {
  .now-carousel__track {
    scroll-behavior: auto;
  }
  .now-card__name,
  .now-carousel__btn {
    transition: none;
  }
}
