/* ==========================================================================
   dashboard-overview.css -- the Overview tab ("Island Overview", owner-approved
   design, 2026-10-21). Drawn by dashboard-overview.js; the markup is the
   #section-overview block of dashboard.html.

   Scope: everything here is under .ov-* or under a selector that only matches
   while the Overview is the visible section. No other tab is touched. Every
   colour is a base.css token: sky (--color-primary), aqua (--color-secondary),
   and sunshine (--color-accent) only where attention is due. Every link sets
   :link and :visited together, so nothing ever turns the browser's purple.

   Sections:
      1. The page header while the Overview is open
      2. Hero band (gradient, waves, the coastline photo and its tint, the
         greeting, date, the needs-a-look bar)
      3. Program cards, overlapping the hero (and the sign-ups graph)
      4. Events, Recent and Quick actions
      5. Loading skeletons
      6. Responsive and reduced motion
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────
   1. Page header while the Overview is open
   The hero carries the greeting, so the "Dashboard / Welcome back" header
   gives way: the heading stays for screen readers (clipped, not removed) and
   the viewer's "View only" pill moves onto the hero's top-right corner. Every
   other tab keeps the header exactly as it is (the :has() only matches while
   #section-overview is visible, the same device operations.css uses).
   ────────────────────────────────────────────────────────────────────── */

.dashboard__content:has(> #section-overview:not([hidden])) {
  position: relative;
}

.dashboard__content:has(> #section-overview:not([hidden])) .dashboard__header {
  margin: 0;
}

.dashboard__content:has(> #section-overview:not([hidden])) .dashboard__title,
.dashboard__content:has(> #section-overview:not([hidden])) .dashboard__subtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dashboard__content:has(> #section-overview:not([hidden])) .dashboard__title-row {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 2;
  margin: 0;
}

.dashboard__content:has(> #section-overview:not([hidden])) .view-only-badge {
  border-color: var(--color-overlay-white-border);
  background: var(--color-overlay-white-mild);
  color: var(--color-text-inverse);
  backdrop-filter: blur(6px);
}

/* The section lays itself out; the shell's grid gap is not wanted here.
   One vertical rhythm (--ov-gap) separates the hero text, the needs bar, the
   cards and the lower row; --ov-card-pad is every card's inset. */
#section-overview {
  display: block;
  --ov-bleed: var(--spacing-md);
  --ov-overlap: 56px;
  --ov-gap: var(--spacing-lg);
  --ov-card-pad: var(--spacing-md);
}

/* ──────────────────────────────────────────────────────────────────────
   2. Hero band
   ────────────────────────────────────────────────────────────────────── */

/* Layers, bottom to top: the sky-to-aqua gradient (always there), the faint
   wave lines, the coastline photo (only once it has loaded), a tint that keeps
   the white text readable over the photo, then the text. Remove the photo and
   the gradient and waves are what is left. */
.ov-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: calc(-1 * var(--ov-bleed)) calc(-1 * var(--ov-bleed)) 0;
  padding: var(--spacing-xl) var(--ov-bleed) calc(var(--ov-overlap) + var(--ov-gap));
  background:
    linear-gradient(108deg, var(--color-primary) 0%, var(--color-primary-light) 32%, var(--color-secondary) 74%, var(--color-secondary-light) 100%);
  color: var(--color-text-inverse);
}

/* Faint wave lines, drawn once by the inline SVG in dashboard.html. */
.ov-hero__waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* The photo: dashboard-overview.js sets --ov-hero-photo and .ov-hero--photo
   once the file has loaded, so a missing or slow file leaves the gradient
   alone (no broken image, no jump). The calm sea sits behind the text on the
   left; the hills, beach and sun glow are anchored right. */
.ov-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ov-hero-photo, none) right center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.ov-hero--photo .ov-hero__photo {
  opacity: 1;
}

/* The tint between photo and text: strong sky over the text on the left,
   thinning to a light aqua wash over the coastline on the right. */
.ov-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--color-primary-dark) 90%, transparent) 0%,
    color-mix(in srgb, var(--color-primary-dark) 78%, transparent) 42%,
    color-mix(in srgb, var(--color-primary) 52%, transparent) 72%,
    color-mix(in srgb, var(--color-secondary) 38%, transparent) 100%
  );
}

.ov-hero__inner {
  max-width: 1120px;
}

.ov-hero__greeting {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-extra-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-inverse);
}

.ov-hero__line {
  margin: var(--spacing-sm) 0 0;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: var(--line-height-snug);
  font-weight: var(--font-weight-medium);
  /* Full white with a soft shadow: it is read over the photo as well as the gradient. */
  color: var(--color-white, #fff);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary-dark) 60%, transparent);
}

.ov-hero__date {
  margin: var(--spacing-xs) 0 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  color: var(--color-white, #fff);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary-dark) 60%, transparent);
}

/* The needs-a-look bar: white, read first, with its links. */
.ov-needs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-sm);
  max-width: 100%;
  margin: var(--ov-gap) 0 0;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

.ov-needs__icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--color-primary-alpha-12);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
}

.ov-needs--calm .ov-needs__icon {
  background: var(--color-secondary-alpha-12);
  color: var(--color-secondary-dark);
}

.ov-needs--unknown .ov-needs__icon {
  background: var(--color-surface-subtle);
  color: var(--color-text-light);
}

.ov-needs__lead {
  font-weight: var(--font-weight-semibold);
}

.ov-needs__link,
.ov-needs__link:link,
.ov-needs__link:visited {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary-alpha-40);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.ov-needs__link--waitlisted,
.ov-needs__link--waitlisted:link,
.ov-needs__link--waitlisted:visited {
  color: var(--color-secondary-dark);
}

.ov-needs__link:hover {
  color: var(--color-primary-dark);
  border-color: currentColor;
}

.ov-needs__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* The sunshine dot between items: the one place yellow appears in the hero. */
.ov-needs__sep {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.ov-needs--calm,
.ov-needs--unknown {
  color: var(--color-text-muted);
}

/* ──────────────────────────────────────────────────────────────────────
   3. Program cards
   Compact and equal in height: the grid stretches every card to the tallest.
   ────────────────────────────────────────────────────────────────────── */

.ov-programs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ov-gap);
  margin-top: calc(-1 * var(--ov-overlap));
}

.ov-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  min-width: 0;
  min-height: 212px;
  padding: var(--ov-card-pad);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ov-card--link:hover {
  box-shadow: var(--shadow-lg), var(--shadow-card-lift);
  transform: translateY(-2px);
}

/* Head: the icon tile and the one-line name; the chevron that says "opens"
   sits in the card's corner, and the head keeps clear of it. */
.ov-card__head {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm) calc(var(--spacing-sm) + var(--spacing-xs));
  padding-right: calc(var(--spacing-sm) + var(--spacing-xs));
}

.ov-card__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-secondary-alpha-12);
  color: var(--color-secondary-dark);
  font-size: var(--font-size-sm);
}

.ov-card__icon--sky {
  background: var(--color-primary-alpha-12);
  color: var(--color-primary-dark);
}

.ov-card__icon--muted {
  background: var(--color-surface-subtle);
  color: var(--color-text-light);
}

.ov-card__heading {
  min-width: 0;
  flex: 1;
}

.ov-card__title,
.ov-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs) 6px;
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

.ov-card__meta {
  margin-top: 2px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
}

.ov-card__term {
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
}

/* The season unit on a live card: one piece, never split; the dot leads it
   only while it shares the title line (fitCardHeads sets --below). */
.ov-card__season {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
}

.ov-card__season::before {
  content: "\00b7";
}

.ov-card__season--below {
  flex-basis: 100%;
}

.ov-card__season--below::before {
  content: none;
}

/* The heading link covers the whole card (a stretched link), so the card is
   one tab stop with the program's name as its accessible name. */
.ov-card__link,
.ov-card__link:link,
.ov-card__link:visited {
  color: inherit;
  text-decoration: none;
}

.ov-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ov-card__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@supports selector(:has(a)) {
  .ov-card__link:focus-visible {
    outline: none;
  }

  .ov-card--link:has(.ov-card__link:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
  }
}

.ov-card__chevron {
  position: absolute;
  top: calc(var(--ov-card-pad) + 2px);
  right: var(--ov-card-pad);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.ov-card--link:hover .ov-card__chevron {
  color: var(--color-primary-dark);
  transform: translateX(2px);
}

/* Status chip: the season's state, in a tint that says it. */
.ov-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  white-space: nowrap;
}

.ov-chip--current {
  background: var(--color-secondary-alpha-20);
  color: var(--color-secondary-dark);
}

.ov-chip--upcoming {
  background: var(--color-primary-alpha-12);
  color: var(--color-primary-dark);
}

.ov-chip--ended,
.ov-chip--undated {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

/* The card's body fills the rest, so centred content sits centred. */
.ov-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* Numbers: a <dl> with the value above its label (DOM keeps <dt> first). */
.ov-card__numbers {
  margin: 0;
}

.ov-card__number {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  min-width: 0;
}

.ov-card__value {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.ov-card__label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
  color: var(--color-text-light);
}

/* The lead number beside the sign-ups graph. */
.ov-card__lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.ov-card__number--lead {
  flex: 0 0 auto;
}

.ov-card__number--lead .ov-card__label {
  white-space: nowrap;
}

.ov-card__number--lead .ov-card__value {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.025em;
}

.ov-card__number--lead .ov-card__label {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

/* The sign-ups graph: a running total, rising to today's. */
.ov-spark {
  display: flex;
  flex: 0 1 136px;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.ov-spark__svg {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}

.ov-spark__line {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ov-spark__stop-top { stop-color: var(--color-secondary); stop-opacity: 0.35; }
.ov-spark__stop-bottom { stop-color: var(--color-secondary); stop-opacity: 0; }

.ov-spark__dot {
  fill: var(--color-secondary-dark);
  stroke: var(--color-surface);
  stroke-width: 2;
}

.ov-spark__caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  white-space: nowrap;
}

/* A pair of lead numbers, centred (STEAM Day: Registered | Checked in). */
.ov-card__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.ov-card__pair .ov-card__number {
  align-items: center;
}

.ov-card__pair .ov-card__value {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.025em;
}

.ov-card__pair .ov-card__label {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.ov-card__pair-rule {
  width: 1px;
  height: 56px;
  background: var(--color-border);
}

/* The row of smaller numbers under the lead, each in its own colour, labels
   on one line (sized to fit three across a 300px card). */
.ov-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
  padding-top: calc(var(--spacing-sm) + var(--spacing-xs));
  border-top: 1px solid var(--color-border);
}

.ov-card__row .ov-card__number {
  flex: 0 1 auto;
}

.ov-card__row .ov-card__number + .ov-card__number {
  padding-left: var(--spacing-sm);
  border-left: 1px solid var(--color-border);
}

.ov-card__row .ov-card__value {
  font-size: var(--font-size-lg);
}

.ov-card__row .ov-card__label {
  font-size: var(--font-size-xs);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ov-card__value--aqua { color: var(--color-secondary-dark); }
.ov-card__value--sky { color: var(--color-primary-dark); }
.ov-card__value--sun { color: var(--color-accent-dark); }

/* An ended season: calm, led by when the next one starts. Its numbers are in
   the card's accessible name and title, not on its face. */
.ov-card--ended .ov-card__title {
  color: var(--color-text-muted);
}

.ov-card__next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0;
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--color-text-muted);
}

.ov-card__next-icon {
  font-size: 2.25rem;
  color: var(--color-text-light);
}

/* Unknown or empty: the block keeps a card's shape, so the page does not jump
   between loading, loaded and failed, and nothing below shifts under a tour tip. */
.ov-unavailable,
.ov-empty {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────
   4. Events, Recent and Quick actions
   ────────────────────────────────────────────────────────────────────── */

.ov-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ov-gap);
  margin-top: var(--ov-gap);
}

/* The three lower cards share one chrome and one header row, so their tops
   and titles line up. */
.ov-panel {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.ov-panel__header {
  min-height: 56px;
  padding: var(--spacing-md) var(--ov-card-pad) var(--spacing-sm);
  border-bottom: 0;
}

.ov-panel__title {
  font-size: var(--font-size-md);
}

.ov-panel__all,
.ov-panel__all:link,
.ov-panel__all:visited {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--color-primary-alpha-06);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.ov-panel__all:hover {
  background: var(--color-primary-alpha-12);
  color: var(--color-primary-dark);
}

.ov-panel__all:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.ov-events__body {
  display: flex;
  flex-direction: column;
  padding: 0 var(--ov-card-pad) var(--spacing-sm);
}

.ov-events__title {
  margin: var(--spacing-xs) 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-text-light);
}

.ov-events__empty {
  margin: 0;
  padding: var(--spacing-xs) 0 var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.ov-events__list {
  display: flex;
  flex-direction: column;
}

/* One event: the date block, the name, the count, a chevron. The whole row
   opens the event in Check-In. */
.ov-event,
.ov-event:link,
.ov-event:visited {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-sm);
  min-height: 52px;
  margin: 0 calc(-1 * var(--spacing-sm));
  padding: var(--spacing-xs) var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.ov-events__list > .ov-event:first-child {
  border-top: 0;
}

.ov-event:hover {
  background: var(--color-primary-alpha-04);
  color: var(--color-text);
}

.ov-event:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

/* Calendar block: sky-blue month strip over the day number. */
.ov-date {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 46px;
  overflow: hidden;
  border: 1px solid var(--color-primary-alpha-20);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  text-align: center;
}

.ov-date__month {
  padding: 1px 0;
  background: var(--color-primary);
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--color-text-inverse);
}

.ov-date__day {
  padding: 1px 0 2px;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.ov-event--past .ov-date__month {
  background: var(--color-primary-light);
}

.ov-event__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--spacing-sm);
  min-width: 0;
}

.ov-event__name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.ov-event__tag {
  padding: 0 var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--color-secondary-alpha-12);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  color: var(--color-secondary-dark);
}

/* The count: icon and the bare number; the words are in the row's title and
   its screen-reader text. */
.ov-event__count {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ov-event__count-icon {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.ov-event__count--none {
  color: var(--color-text-light);
}

.ov-event__chevron {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

.ov-events__error {
  margin: 0;
  padding: var(--spacing-xs) 0 var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-danger-strong);
}

/* Recent: the narrower card. Date block beside the name, the turnout in words
   under it (aqua when there is a number). */
.ov-recent .ov-events__title {
  display: none;
}

.ov-event--recent,
.ov-event--recent:link,
.ov-event--recent:visited {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 56px;
}

.ov-event--recent .ov-date {
  grid-row: 1 / span 2;
  align-self: start;
}

.ov-event--recent .ov-event__count {
  grid-column: 2 / -1;
  grid-row: 2;
  justify-self: start;
  white-space: normal;
  color: var(--color-secondary-dark);
}

.ov-event--recent .ov-event__count--none {
  color: var(--color-text-light);
}

.ov-event--recent .ov-event__count-icon {
  color: currentColor;
}

.ov-event--recent .ov-event__chevron {
  grid-column: 3;
  grid-row: 1;
}

/* Quick actions: the same card as Events and Recent, a column of rows with
   tinted icon tiles. A row tints on hover the way an event row does. */
.ov-quick .quick-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--ov-card-pad) var(--spacing-sm);
}

.ov-quick .quick-link {
  width: auto;
  gap: var(--spacing-md);
  min-height: 52px;
  margin: 0 calc(-1 * var(--spacing-sm));
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: var(--font-weight-semibold);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ov-quick .quick-link:first-child,
.ov-quick .quick-link[hidden] + .quick-link {
  border-top: 0;
}

.ov-quick .quick-link:hover {
  box-shadow: none;
  transform: none;
  background: var(--color-primary-alpha-04);
  color: var(--color-primary-dark);
}

.ov-quick .quick-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.ov-quick .quick-link__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-base);
}

.ov-quick .quick-link--sky .quick-link__icon {
  background: var(--color-primary);
}

.ov-quick .quick-link__chevron {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  transition: transform var(--transition-fast);
}

.ov-quick .quick-link:hover .quick-link__chevron {
  transform: translateX(2px);
}

/* ──────────────────────────────────────────────────────────────────────
   5. Loading: the final shapes, so nothing jumps when the numbers land
   ────────────────────────────────────────────────────────────────────── */

.ov-skel {
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--color-surface-subtle) 0%, var(--color-overlay-black-faint) 50%, var(--color-surface-subtle) 100%);
  background-size: 200% 100%;
  animation: ov-shimmer 1.4s ease-in-out infinite;
}

.ov-skel--icon  { width: 36px; height: 36px; border-radius: var(--radius-full); flex: 0 0 auto; }
.ov-skel--title { width: 60%; height: 1rem; }
.ov-skel--line  { width: 70%; height: 0.875rem; margin-top: var(--spacing-xs); }
.ov-skel--lead  { width: 5rem; height: 2.5rem; margin-top: var(--spacing-sm); }
.ov-skel--label { width: 4rem; height: 0.75rem; }
.ov-skel--value { width: 2rem; height: 1.25rem; }
.ov-skel--needs { width: 14rem; max-width: 100%; height: 1rem; background: var(--color-overlay-white-medium); }
.ov-skel--date  { width: 46px; height: 42px; border-radius: var(--radius-sm); }
.ov-skel--count { width: 2.5rem; height: 0.875rem; }

.ov-needs--loading {
  background: var(--color-overlay-white-mild);
  box-shadow: none;
}

.ov-card--skeleton,
.ov-event--skeleton {
  pointer-events: none;
}

.ov-card--skeleton .ov-card__row {
  border-top-color: transparent;
}

.ov-event--skeleton {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ov-event--skeleton .ov-skel--line {
  margin-top: 0;
}

@keyframes ov-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* One page-load moment: the hero text, then the cards, settle into place. */
@keyframes ov-settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.ov-hero__inner {
  animation: ov-settle var(--transition-reveal) both;
}

.ov-programs {
  animation: ov-settle var(--transition-reveal) 120ms both;
}

/* ──────────────────────────────────────────────────────────────────────
   6. Responsive and reduced motion
   ────────────────────────────────────────────────────────────────────── */

@media (max-width: 479px) {
  /* On a phone the lead number and its graph stack. */
  .ov-card__lead {
    flex-wrap: wrap;
  }

  .ov-spark {
    flex-basis: 100%;
    align-items: flex-start;
  }
}

@media (min-width: 480px) {
  #section-overview {
    --ov-bleed: var(--spacing-lg);
    --ov-overlap: 72px;
  }
}

@media (min-width: 768px) {
  #section-overview {
    --ov-bleed: var(--spacing-xl);
    --ov-overlap: 112px;
  }

  .ov-hero {
    padding-top: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  /* Events takes the room (an event's name on one line), Recent is the
     narrow one, Quick actions keeps its width. */
  .ov-row {
    grid-template-columns: minmax(0, 1.85fr) minmax(200px, 1fr) minmax(220px, 1.1fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  /* Three across: Afterschool, the card with the graph and the row of three
     numbers, is the wide one (as in the reference), which is what keeps
     "Afterschool · AY 2026-27 · Running" on one line at 1280. */
  .ov-programs {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  /* A phone shows more photo per word: a stronger tint under the text. */
  .ov-hero__photo::after {
    background: linear-gradient(
      100deg,
      color-mix(in srgb, var(--color-primary-dark) 92%, transparent) 0%,
      color-mix(in srgb, var(--color-primary-dark) 84%, transparent) 55%,
      color-mix(in srgb, var(--color-primary) 66%, transparent) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-skel { animation: none; }
  .ov-hero__inner, .ov-programs { animation: none; }
  .ov-hero__photo, .ov-card, .ov-card__chevron, .ov-event, .ov-needs__link, .ov-panel__all,
  .ov-quick .quick-link, .ov-quick .quick-link__chevron { transition: none; }
  .ov-card--link:hover { transform: none; }
  .ov-card--link:hover .ov-card__chevron,
  .ov-quick .quick-link:hover .quick-link__chevron { transform: none; }
}
