/*
Theme Name: WAFFLES 2026
Theme URI: https://www.wafflesrobotics.com
Author: W.A.F.F.L.E.S. Community Robotics
Description: Block theme for W.A.F.F.L.E.S. Community Robotics (FRC Team 4476). Design tokens live in theme.json. Page sections are block patterns, locked to content-only editing so mentors can build pages without restyling them.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waffles
Tags: block-theme, full-site-editing, education, nonprofit
*/

/* ---------------------------------------------------------------------------
   Design tokens live in theme.json. This file holds what theme.json cannot
   express: the colour bands, the video hero, the program cards, and a handful
   of component details. There is no dark mode on purpose: the site is bright
   yellow, white and ink for everyone.
   --------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:root {
  --waffles-dur-stagger: 80ms;
  --waffles-dur-quick: 150ms;
  --waffles-dur-fast: 250ms;
  --waffles-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --waffles-radius: 1.25rem;
  --waffles-lift: 0 10px 24px -8px rgb(0 0 0 / 0.35);
}

/* --- Colour bands ----------------------------------------------------------
   Every section is a full-width band of yellow, white or ink. Bands butt up
   against each other, so the block gap WordPress puts between siblings goes.
   -------------------------------------------------------------------------- */

.wp-site-blocks {
  position: relative;
}

.wp-site-blocks > *,
main > .alignfull,
.wp-block-post-content > .alignfull {
  margin-block: 0;
}

.has-ink-background-color {
  color: var(--wp--preset--color--paper);
}

.has-ink-background-color .has-ink-soft-color {
  color: #B5B8BF !important;
}

.has-syrup-background-color .has-ink-soft-color {
  color: var(--wp--preset--color--steel) !important;
}

/* The line under a band heading. */
.waffles-lede {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 600;
}

/* Line length for big text. Only where the parent does not centre narrow
   children, which a constrained band does. */
.is-layout-flow > .waffles-lede {
  max-width: 60ch;
}

.is-layout-flow > .waffles-statement {
  max-width: 20ch;
}

/* Reading measure for running copy. */
.wp-block-post-content > p,
.wp-block-column > p {
  max-width: 68ch;
}

/* --- Links -----------------------------------------------------------------
   Ink text with a thick yellow underline. On a yellow band the underline
   would vanish, so it follows the text colour there.
   -------------------------------------------------------------------------- */

main a:not(.wp-block-button__link):not(.waffles-ladder__rung),
footer a {
  color: inherit;
  text-decoration-color: var(--wp--preset--color--syrup);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.has-syrup-background-color a:not(.wp-block-button__link):not(.waffles-ladder__rung) {
  text-decoration-color: currentColor;
}

/* --- Masthead --------------------------------------------------------------
   A solid yellow bar that stays on screen. When a page opens with the video
   hero, the bar goes see-through and sits on top of the video instead.
   -------------------------------------------------------------------------- */

header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
  background: var(--wp--preset--color--syrup);
  color: var(--wp--preset--color--ink);
}

.waffles-masthead a,
.waffles-masthead .wp-block-navigation-item__content {
  color: inherit;
  text-decoration: none;
}

.waffles-masthead .wp-block-navigation-item__content:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

/* The logo is a yellow disc, so on the yellow bar it needs an edge. */
.waffles-masthead .wp-block-site-logo img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--wp--preset--color--ink);
}

body:has(:is(.wp-block-post-content, main) > .waffles-hero:first-child) header.wp-block-template-part {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  color: var(--wp--preset--color--paper);
}

body:has(:is(.wp-block-post-content, main) > .waffles-hero:first-child) .waffles-masthead .wp-block-site-logo img {
  box-shadow: none;
}

/* --- Dropdown menus ---------------------------------------------------------
   A white card that drops just below the bar, with a yellow highlight on the
   item under the pointer.
   -------------------------------------------------------------------------- */

.waffles-masthead .wp-block-navigation .wp-block-navigation__submenu-container {
  min-width: 15rem !important;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.06),
    0 12px 32px -8px rgb(0 0 0 / 0.3);
  transform: translateY(-6px);
  transition:
    opacity var(--waffles-dur-quick) ease-out,
    transform var(--waffles-dur-fast) var(--waffles-ease),
    visibility var(--waffles-dur-quick);
}

/* Bridges the gap between the bar and the card so the menu does not close as
   the pointer crosses it. */
.waffles-masthead .wp-block-navigation .wp-block-navigation__submenu-container::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.waffles-masthead .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
.waffles-masthead .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container,
.waffles-masthead .wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
  transform: translateY(0);
}

.waffles-masthead .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--small);
  white-space: nowrap;
  transition: background-color var(--waffles-dur-quick) ease-out;
}

.waffles-masthead .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.waffles-masthead .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  background: var(--wp--preset--color--syrup);
  text-decoration: none;
}

/* Sponsor logos are links; lift a little under the pointer. */
.waffles-sponsor .wp-block-post-featured-image a {
  display: block;
  transition: transform var(--waffles-dur-fast) var(--waffles-ease);
}

.waffles-sponsor .wp-block-post-featured-image a:hover {
  transform: translateY(-3px);
}

/* Letters stay wrapped in spans (see waffles_wordmark_letters); words must
   not break mid-word on a narrow screen. */
.wp-block-site-title a span {
  display: inline-block;
}

.waffles-word {
  display: inline-block;
  white-space: nowrap;
}

/* --- Video hero ------------------------------------------------------------
   A core Cover block. The overlay is a gradient rather than a flat dim so the
   middle of the video stays bright while the header and the headline both
   stay readable.
   -------------------------------------------------------------------------- */

.waffles-hero {
  background: var(--wp--preset--color--ink);
  padding-inline: var(--wp--style--root--padding-left);
  padding-top: 7rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--wp--preset--color--paper);
}

.waffles-hero .wp-block-cover__background {
  background: linear-gradient(
    180deg,
    rgb(10 11 13 / 0.6) 0%,
    rgb(10 11 13 / 0.15) 35%,
    rgb(10 11 13 / 0.88) 100%
  ) !important;
  opacity: 1 !important;
}

/* Core pins a positioned cover's content to the corner with a five-class
   selector, so these need !important to line the text up with the header. */
.waffles-hero .wp-block-cover__inner-container {
  width: 100% !important;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto !important;
}

.waffles-hero h1 {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* Italic is the highlighter: an editor italicises a word and it goes yellow. */
.waffles-hero h1 em {
  font-style: normal;
  color: var(--wp--preset--color--syrup);
}

.waffles-hero p {
  max-width: 36ch;
  margin: 0 0 2rem;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 700;
  line-height: 1.4;
}

/* The shorter hero that opens an inner page. */
.waffles-hero--page h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
}

.waffles-hero--page p {
  max-width: 44ch;
  margin-bottom: 0;
}

.waffles-hero .waffles-robot__meta p {
  margin: 0;
  font-size: 1rem;
  color: var(--wp--preset--color--syrup);
}

.waffles-hero__pause {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.5em 1em;
  border: 0;
  border-radius: 999px;
  background: rgb(10 11 13 / 0.65);
  color: var(--wp--preset--color--paper);
  font: 800 0.8125rem var(--wp--preset--font-family--body);
  cursor: pointer;
}

.waffles-hero__pause:hover {
  background: var(--wp--preset--color--ink);
}

/* --- Buttons ---------------------------------------------------------------
   Pills. Ink on the light and yellow bands, yellow on ink and on the video.
   -------------------------------------------------------------------------- */

.wp-block-button__link {
  transition:
    transform var(--waffles-dur-quick) var(--waffles-ease),
    box-shadow var(--waffles-dur-quick) var(--waffles-ease);
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--waffles-lift);
}

.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: none;
}

.has-ink-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.waffles-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--wp--preset--color--syrup);
  color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  box-shadow: inset 0 0 0 2px currentColor, var(--waffles-lift);
}

/* --- Program cards ---------------------------------------------------------
   A parent's only real question is "what is there for a kid my kid's age, and
   is it open". One card per program answers both. Rendered by the
   waffles-core plugin from the Program content type.
   -------------------------------------------------------------------------- */

@keyframes waffles-row-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.waffles-row-in {
  animation: waffles-row-in 450ms var(--waffles-ease) backwards;
  animation-delay: min(calc(var(--i, 0) * var(--waffles-dur-stagger)), 400ms);
}

.waffles-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.waffles-ladder__rung {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  transition:
    transform var(--waffles-dur-fast) var(--waffles-ease),
    box-shadow var(--waffles-dur-fast) var(--waffles-ease);
}

.waffles-ladder__rung:hover,
.waffles-ladder__rung:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--waffles-lift);
}

.waffles-ladder__rung > span {
  display: block;
}

.waffles-ladder__age {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  white-space: nowrap;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.waffles-ladder__rung > span:nth-child(2) {
  margin-bottom: 1.25rem;
}

.waffles-ladder__name {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.waffles-ladder__note {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.45;
  color: var(--wp--preset--color--steel);
}

/* On a program card the status is a footer line, not a pill: a coloured dot
   and label, with the note in plain text underneath. */
.waffles-ladder__rung > .waffles-status-wrap {
  display: flex;
  gap: 0.3rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px solid var(--wp--preset--color--paper-deep);
}

.waffles-ladder .waffles-status {
  gap: 0.5em;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.8125rem;
}

.waffles-ladder .waffles-status::before {
  content: "";
  flex: none;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: currentColor;
}

.waffles-ladder .waffles-status--open {
  color: var(--wp--preset--color--signal);
}

.waffles-ladder .waffles-status--waitlist {
  color: var(--wp--preset--color--crust);
}

.waffles-ladder .waffles-status--soon {
  color: var(--wp--preset--color--steel);
}

.waffles-ladder .waffles-status--closed {
  color: var(--wp--preset--color--ink-soft);
}

.waffles-ladder .waffles-status-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink-soft);
}

.waffles-ladder-empty {
  padding: 1.5rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
}

/* --- Status pill ----------------------------------------------------------- */

.waffles-status,
.waffles-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.waffles-status--open {
  background: var(--wp--preset--color--signal);
  color: var(--wp--preset--color--paper);
}

.waffles-status--waitlist {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--syrup);
}

.waffles-status--soon {
  background: var(--wp--preset--color--steel);
  color: var(--wp--preset--color--paper);
}

.waffles-status--closed {
  background: var(--wp--preset--color--rule);
  color: var(--wp--preset--color--steel);
}

/* The pill and the one-line note that goes with it. */
.waffles-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.waffles-status-note {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.waffles-hero .waffles-status-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.waffles-hero .waffles-status-note {
  font-size: 1rem;
}

.waffles-hero .waffles-status--closed {
  background: rgb(255 255 255 / 0.9);
  color: var(--wp--preset--color--ink);
}

.waffles-hero .waffles-status--waitlist {
  background: var(--wp--preset--color--syrup);
  color: var(--wp--preset--color--ink);
}

.waffles-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.waffles-status--open {
  background: var(--wp--preset--color--signal);
  color: var(--wp--preset--color--paper);
}

.waffles-status--closed {
  background: var(--wp--preset--color--rule);
  color: var(--wp--preset--color--steel);
}

.waffles-flag {
  margin-right: 0.6em;
  background: var(--wp--preset--color--syrup);
  color: var(--wp--preset--color--ink);
  vertical-align: 0.1em;
}

/* --- Big numbers ----------------------------------------------------------- */

.waffles-num {
  margin: 0 0 0.25rem;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.waffles-num + h3 {
  margin-top: 0;
}

.waffles-lede + .wp-block-columns {
  margin-top: 2.5rem;
}

.wp-block-heading + .waffles-num {
  margin-top: 1rem;
}

/* Four across leaves less room, so the numbers come down a size. */
.wp-block-columns:has(> .wp-block-column:nth-child(4)) > .wp-block-column > .waffles-num {
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  white-space: nowrap;
}

/* A sub-heading that labels a row of numbers. */
.wp-block-group > h3 + .wp-block-columns {
  margin-top: 1.25rem;
}

.wp-block-columns + h3 {
  margin-top: 3rem;
}

/* --- Stat cards -------------------------------------------------------------
   Big numbers boxed up as a row of equal cards, under a small ruled label.
   A percentage gets a bar along the bottom (assets/reveal.js sets --pct).
   -------------------------------------------------------------------------- */

.waffles-stat {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), var(--waffles-lift);
}

.has-paper-background-color .waffles-stat {
  background: var(--wp--preset--color--paper-deep);
  box-shadow: none;
}

.waffles-stat > .waffles-num {
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  white-space: nowrap;
}

/* Between a phone and a wide screen five will not fit, so they wrap to rows of three. */
@media (min-width: 782px) and (max-width: 1100px) {
  .wp-block-columns:has(> .waffles-stat:nth-child(5)) {
    flex-wrap: wrap !important;
  }

  .wp-block-columns:has(> .waffles-stat:nth-child(5)) > .waffles-stat {
    flex: 1 1 28% !important;
  }
}

/* Five across is tight, so everything comes in a little. */
@media (min-width: 782px) {
  .wp-block-columns:has(> .waffles-stat:nth-child(5)) {
    gap: 1rem;
  }

  .wp-block-columns:has(> .waffles-stat:nth-child(5)) > .waffles-stat {
    padding: 1.25rem 1.1rem 1.75rem;
  }

  .wp-block-columns:has(> .waffles-stat:nth-child(5)) > .waffles-stat > .waffles-num {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
  }

  .wp-block-columns:has(> .waffles-stat:nth-child(5)) > .waffles-stat > h3 {
    font-size: var(--wp--preset--font-size--medium);
  }
}

.waffles-stat > h3 {
  font-size: var(--wp--preset--font-size--large);
}

.waffles-stat > p:last-child {
  margin-bottom: 0;
}

.waffles-stat::before,
.waffles-stat::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.5rem;
}

.waffles-stat[style*="--pct"]::before {
  width: 100%;
  background: rgb(0 0 0 / 0.1);
}

.waffles-stat::after {
  width: calc(var(--pct, 0) * 1%);
  background: var(--wp--preset--color--ink);
  transition: width 900ms var(--waffles-ease) 150ms;
}

.waffles-js .waffles-stat.waffles-reveal:not(.is-visible)::after {
  width: 0;
}

h3:has(+ .wp-block-columns > .waffles-stat) {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--wp--preset--font-size--small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h3:has(+ .wp-block-columns > .waffles-stat)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgb(0 0 0 / 0.15);
}

/* --- Photos and cards ------------------------------------------------------ */

.waffles-photo img,
.waffles-robot img,
.wp-block-post-featured-image img {
  border-radius: var(--waffles-radius);
}

.waffles-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* For tall photos, where a centred crop would cut off heads. */
.waffles-photo--top img {
  object-position: 50% 22%;
}

main img {
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}

.has-ink-background-color img {
  outline-color: rgb(255 255 255 / 0.1);
}

.waffles-robot .wp-block-post-title a {
  text-decoration: none;
}

.has-ink-background-color .waffles-robot .wp-block-post-title a {
  color: var(--wp--preset--color--syrup);
}

.waffles-robot__meta {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.waffles-robot__meta p {
  margin: 0;
}

.waffles-robot__meta p:empty {
  display: none;
}

.waffles-robot__meta p + p:not(:empty)::before {
  content: "\b7";
  margin-right: 0.5em;
}

/* --- Mentors ----------------------------------------------------------------
   Rendered by the waffles-core plugin. Leads get a large photo; everyone else
   gets a compact row so a long list stays easy to scan.
   -------------------------------------------------------------------------- */

.waffles-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.waffles-person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
}

.waffles-person__photo {
  flex: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
}

.waffles-person__initials {
  display: grid;
  place-items: center;
  background: var(--wp--preset--color--syrup);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.waffles-person__name {
  margin: 0 0 0.2rem;
  font-size: var(--wp--preset--font-size--medium);
  letter-spacing: -0.015em;
}

.waffles-person p {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.4;
}

.waffles-person__role {
  font-weight: 800;
}

.waffles-person__job {
  color: var(--wp--preset--color--ink-soft);
}

/* A yellow tag, so the year reads apart from the role and day job. */
.waffles-person .waffles-person__since {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--wp--preset--color--syrup);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.waffles-people--lead {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.waffles-people--lead .waffles-person {
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 0;
  background: none;
}

.waffles-people--lead .waffles-person__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--waffles-radius);
}

.waffles-people--lead .waffles-person__initials {
  font-size: 4rem;
}

.waffles-people--lead .waffles-person__name {
  margin-bottom: 0.4rem;
  font-size: var(--wp--preset--font-size--large);
  letter-spacing: -0.02em;
}

.waffles-people--lead .waffles-person__role {
  margin-bottom: 0.4rem;
}

/* The four boxes on a program page. */
.waffles-detail {
  height: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
}

.wp-block-columns > .waffles-detail {
  align-self: stretch;
}

.waffles-detail > :first-child {
  margin-top: 0;
}

/* A robot with no photo yet still gets a tile, in waffle. */
.waffles-robot:not(:has(img))::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border-radius: var(--waffles-radius);
  background-color: var(--wp--preset--color--syrup);
  background-image:
    linear-gradient(rgb(10 11 13 / 0.12) 6px, transparent 6px),
    linear-gradient(90deg, rgb(10 11 13 / 0.12) 6px, transparent 6px);
  background-size: 3rem 3rem;
}

.waffles-robot .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: var(--waffles-radius);
}

.waffles-robot .wp-block-post-featured-image img {
  transition: transform 450ms var(--waffles-ease);
}

.waffles-robot:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* --- Statement --------------------------------------------------------------
   One big line that carries a band on its own.
   -------------------------------------------------------------------------- */

.waffles-statement {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The highlight is an inline block so its box is exactly one line tall and
   cannot spill onto the line above or below. */
.waffles-statement em {
  display: inline-block;
  padding: 0.02em 0.18em 0.06em;
  border-radius: 0.15em;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--syrup);
  font-style: normal;
  line-height: 1.05;
}

.has-ink-background-color .waffles-statement em {
  background: var(--wp--preset--color--syrup);
  color: var(--wp--preset--color--ink);
}

/* --- Timeline ---------------------------------------------------------------
   A line down the middle that fills in as you scroll. Each entry hangs off it:
   words on one side, a photo on the other, swapping sides as it goes, with
   the year as a yellow sticker sitting on the line.
   -------------------------------------------------------------------------- */

.waffles-timeline {
  position: relative;
}

.waffles-timeline::before,
.waffles-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
}

.waffles-timeline::before {
  bottom: 0;
  background: var(--wp--preset--color--paper-deep);
}

/* The filled part. assets/reveal.js sets --progress from 0 to 1 on scroll;
   without it the line is simply solid. */
.waffles-timeline::after {
  height: calc(var(--progress, 1) * 100%);
  background: var(--wp--preset--color--ink);
}

.waffles-timeline > .waffles-timeline__item {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 0;
  margin-block: 0;
  padding-block: 2.75rem;
}

.waffles-timeline__text,
.waffles-timeline__media {
  flex: 1 1 0 !important;
}

.waffles-timeline__year {
  flex: 0 0 10rem !important;
  text-align: center;
}

.waffles-timeline__item:nth-child(even) {
  flex-direction: row-reverse;
}

.waffles-timeline__item:nth-child(odd) .waffles-timeline__text,
.waffles-timeline__item:nth-child(even) .waffles-timeline__media {
  padding-right: 1.5rem;
}

.waffles-timeline__item:nth-child(even) .waffles-timeline__text,
.waffles-timeline__item:nth-child(odd) .waffles-timeline__media {
  padding-left: 1.5rem;
}

.waffles-timeline .waffles-num,
.waffles-sticker {
  display: inline-block;
  padding: 0.05em 0.2em;
  border-radius: 0.2em;
  background: var(--wp--preset--color--syrup);
  font-size: clamp(2rem, 4vw, 3.25rem);
  transform: rotate(-2deg);
}

.waffles-timeline .waffles-num {
  margin: 0;
  box-shadow: 0 0 0 8px var(--wp--preset--color--paper);
}

.waffles-timeline__item:nth-child(even) .waffles-num {
  transform: rotate(2deg);
}

.waffles-timeline h3 {
  margin-top: 0;
  font-size: var(--wp--preset--font-size--x-large);
}

.waffles-timeline__text > p {
  max-width: none;
}

/* Photos sit a little crooked, like prints pinned beside the line. */
.waffles-timeline__media .wp-block-image {
  margin: 0;
}

.waffles-timeline__media img {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--wp--preset--color--paper);
  border-radius: var(--waffles-radius);
  outline: 0;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), var(--waffles-lift);
  transform: rotate(1.5deg);
  transition: transform 500ms var(--waffles-ease);
}

.waffles-timeline__item:nth-child(even) .waffles-timeline__media img {
  transform: rotate(-1.5deg);
}

.waffles-timeline__media img:hover {
  transform: rotate(0deg) scale(1.03) !important;
}

/* On a phone the line moves to the left edge and everything stacks. */
@media (max-width: 781px) {
  .waffles-timeline::before,
  .waffles-timeline::after {
    left: 0.75rem;
  }

  .waffles-timeline > .waffles-timeline__item {
    padding: 1.75rem 0 1.75rem 2.75rem;
  }

  .waffles-timeline__year {
    order: -1;
    flex-basis: auto !important;
    margin-bottom: 1rem;
    text-align: left;
  }

  .waffles-timeline__item .waffles-timeline__text,
  .waffles-timeline__item .waffles-timeline__media {
    padding-inline: 0 !important;
  }

  .waffles-timeline__media:not(:empty) {
    margin-top: 1.25rem;
  }

  .waffles-timeline__media:empty {
    display: none;
  }
}

/* Entries arrive from their own side, and the year pops onto the line. */
@media (prefers-reduced-motion: no-preference) {
  .waffles-js .waffles-timeline__item.waffles-reveal {
    opacity: 1;
    transform: none;
  }

  .waffles-js .waffles-timeline__item.waffles-reveal > .wp-block-column {
    opacity: 0;
  }

  .waffles-js .waffles-timeline__item.waffles-reveal > .waffles-timeline__text {
    transform: translateX(-56px);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal > .waffles-timeline__media {
    transform: translateX(56px);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal:nth-child(even) > .waffles-timeline__text {
    transform: translateX(56px);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal:nth-child(even) > .waffles-timeline__media {
    transform: translateX(-56px);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal > .waffles-timeline__year {
    transform: scale(0.4);
  }

  /* On a phone a sideways slide would push the page wider than the screen. */
  @media (max-width: 781px) {
    .waffles-js .waffles-timeline__item.waffles-reveal > .waffles-timeline__text,
    .waffles-js .waffles-timeline__item.waffles-reveal > .waffles-timeline__media,
    .waffles-js .waffles-timeline__item.waffles-reveal:nth-child(even) > .waffles-timeline__text,
    .waffles-js .waffles-timeline__item.waffles-reveal:nth-child(even) > .waffles-timeline__media {
      transform: translateY(24px);
    }
  }

  .waffles-js .waffles-timeline__item.waffles-reveal.is-visible {
    transition: none;
  }

  .waffles-js .waffles-timeline__item.waffles-reveal.is-visible > .wp-block-column {
    opacity: 1;
    transform: none;
    transition:
      opacity 450ms ease-out,
      transform 650ms var(--waffles-ease);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal.is-visible > .waffles-timeline__year {
    transition:
      opacity 250ms ease-out,
      transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .waffles-js .waffles-timeline__item.waffles-reveal.is-visible > .waffles-timeline__media {
    transition-delay: 120ms;
  }
}

/* --- Year heading -----------------------------------------------------------
   Past results: the season logo on a white tile, the year and game name, and
   the recap video where there is one.
   -------------------------------------------------------------------------- */

.waffles-yearhead {
  gap: 2rem;
  margin-bottom: 2rem;
}

.waffles-yearhead__logo {
  flex: 0 0 13rem !important;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 10rem;
  padding: 1.25rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), var(--waffles-lift);
}

.waffles-yearhead__logo .wp-block-image {
  margin: 0;
}

.waffles-yearhead__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 7.5rem;
  border-radius: 0;
  outline: 0;
}

.waffles-yearhead__title {
  flex: 1 1 0 !important;
}

.waffles-yearhead__title > :last-child {
  margin-bottom: 0;
}

.waffles-yearhead__video {
  flex: 0 1 26rem !important;
}

@media (max-width: 781px) {
  .waffles-yearhead {
    gap: 1.25rem;
  }

  .waffles-yearhead__logo {
    flex: 0 0 auto !important;
    width: 13rem;
    max-width: 13rem;
  }
}

/* --- Ledger -----------------------------------------------------------------
   A list of costs: what it is on the left, the amount on the right.
   -------------------------------------------------------------------------- */

.waffles-ledger {
  margin: 0;
  padding: 0.5rem 1.5rem;
  list-style: none;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), var(--waffles-lift);
}

.waffles-ledger li {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.8rem;
}

.waffles-ledger li + li {
  border-top: 1px solid var(--wp--preset--color--rule);
}

.waffles-ledger strong {
  flex: none;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* --- Year sections ----------------------------------------------------------
   Results pages: a yellow year sticker opens each band, and a row of pills at
   the top jumps to any year.
   -------------------------------------------------------------------------- */

.waffles-sticker {
  margin: 0 0 0.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.waffles-sticker + h2 {
  margin-top: 0;
}

.waffles-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.waffles-jump a {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper) !important;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  transition: transform var(--waffles-dur-quick) var(--waffles-ease);
}

.waffles-jump a:hover {
  transform: translateY(-2px);
}

/* Anything linked to by #anchor stops clear of the sticky header. */
[id] {
  scroll-margin-top: 6rem;
}

/* A white card on a white band needs a tint to be seen. */
.has-paper-background-color .waffles-detail {
  background: var(--wp--preset--color--paper-deep);
}

.waffles-detail ul {
  padding-left: 1.1em;
  font-size: var(--wp--preset--font-size--small);
}

.waffles-detail li + li {
  margin-top: 0.35em;
}

/* --- Photo strip ------------------------------------------------------------ */

.waffles-strip.wp-block-columns {
  gap: 1rem;
}

.waffles-strip .wp-block-image {
  margin: 0;
}

.waffles-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--waffles-radius);
}

/* --- Sponsor wall ----------------------------------------------------------
   Logos on white at a consistent optical size.
   -------------------------------------------------------------------------- */

.waffles-sponsors .wp-block-post-template {
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}

.waffles-sponsor .wp-block-post-featured-image {
  margin: 0;
}

/* The width comes from waffles_sponsor_logo_size() in functions.php, which
   gives every logo the same area rather than the same height. */
.waffles-sponsor img {
  display: block;
  width: calc(var(--waffles-logo-width, 9rem) * var(--waffles-logo-scale, 1));
  max-width: 100%;
  height: auto;
  outline: 0;
  border-radius: 0;
}

/* A wide logo shrinks to fit its tile instead of spilling out of it. */
.waffles-sponsor__logo,
.waffles-sponsor__logo a {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 40rem) {
  .waffles-sponsors,
  .waffles-sponsor-list {
    --waffles-logo-scale: 0.7;
  }
}

/* A sponsor with no logo uploaded yet still needs to appear, so the name
   stands in. Once a logo exists the name is redundant and hides itself. */
.waffles-sponsor .wp-block-post-title {
  margin: 0;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--wp--preset--color--paper-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.waffles-sponsor:has(img) .wp-block-post-title {
  display: none;
}

/* --- Program facts ----------------------------------------------------------
   The practical details: each one leads with the fact a parent is looking for,
   set large, with the small print underneath.
   -------------------------------------------------------------------------- */

.waffles-facts.wp-block-columns {
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
}

.waffles-facts > .wp-block-column {
  padding-top: 1.25rem;
  border-top: 3px solid currentColor;
}

.waffles-fact__label {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.waffles-fact__value {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.has-ink-background-color .waffles-fact__value {
  color: var(--wp--preset--color--syrup);
}

.waffles-facts .has-small-font-size {
  margin: 0 0 0.75rem;
  line-height: 1.5;
  opacity: 0.85;
}

.waffles-fineprint {
  max-width: 68ch;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.7;
}

/* --- Sponsors by support level ----------------------------------------------
   Rendered by the waffles-core plugin. The room a sponsor gets follows the
   sponsorship package: Platinum large, Gold medium, Silver a small logo,
   and the rest by name.
   -------------------------------------------------------------------------- */

.waffles-sponsor-list,
.wp-block-heading + .waffles-sponsors {
  margin-top: 2rem;
}

.waffles-tier + .waffles-tier {
  margin-top: 3rem;
}

.waffles-tier__name {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.waffles-tier__name::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--wp--preset--color--paper-deep);
}

.waffles-tier--platinum .waffles-tier__name::before,
.waffles-tier--gold .waffles-tier__name::before,
.waffles-tier--silver .waffles-tier__name::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
}

.waffles-tier--platinum .waffles-tier__name::before {
  background: var(--wp--preset--color--ink);
}

.waffles-tier--gold .waffles-tier__name::before {
  background: var(--wp--preset--color--syrup);
  box-shadow: 0 0 0 2px var(--wp--preset--color--ink);
}

.waffles-tier--silver .waffles-tier__name::before {
  background: var(--wp--preset--color--rule);
  box-shadow: 0 0 0 2px var(--wp--preset--color--ink-soft);
}

.waffles-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.waffles-sponsor-grid > li {
  grid-column: span 2;
  box-sizing: border-box;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--paper-deep);
  transition:
    transform var(--waffles-dur-fast) var(--waffles-ease),
    box-shadow var(--waffles-dur-fast) var(--waffles-ease);
}

.waffles-sponsor-grid > li:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--paper-deep), var(--waffles-lift);
}

.waffles-sponsor__logo {
  display: flex;
  align-items: center;
  margin: 0;
}

.waffles-sponsor__logo a {
  display: block;
}

/* Card: logo strip, name, write-up, link. */
.waffles-sponsor--card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
}

.waffles-sponsor--card .waffles-sponsor__logo {
  width: 100%;
  height: 6.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--wp--preset--color--paper-deep);
}

.waffles-sponsor__name {
  margin: 0 0 0.5rem;
  font-size: var(--wp--preset--font-size--large);
  letter-spacing: -0.02em;
}

.waffles-sponsor__text {
  margin: 0 0 1.25rem;
  font-size: var(--wp--preset--font-size--small);
}

.waffles-sponsor__link {
  margin-top: auto;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px currentColor;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 900;
  text-decoration: none !important;
}

/* Platinum: two across, bigger logo. */
.waffles-tier--platinum .waffles-sponsor-grid > li {
  grid-column: span 3;
  --waffles-logo-scale: 2;
}

.waffles-tier--platinum .waffles-sponsor--card .waffles-sponsor__logo {
  justify-content: center;
  height: 11rem;
}

/* Logo only: a small tile. */
.waffles-sponsor-grid > .waffles-sponsor--logo {
  display: grid;
  place-items: center;
  align-self: start;
  grid-column: span 1;
  min-height: 8rem;
  padding: 1rem;
  --waffles-logo-scale: 0.8;
}

.waffles-tier--platinum .waffles-sponsor-grid > .waffles-sponsor--logo,
.waffles-tier--gold .waffles-sponsor-grid > .waffles-sponsor--logo,
.waffles-tier--silver .waffles-sponsor-grid > .waffles-sponsor--logo {
  grid-column: span 2;
  min-height: 10rem;
  --waffles-logo-scale: 1.15;
}

/* A sponsor with no logo yet, in a level that shows logos: same tile, name inside. */
.waffles-tier--logo .waffles-sponsor-grid > .waffles-sponsor--name {
  display: grid;
  place-items: center;
  align-self: start;
  grid-column: span 1;
  min-height: 8rem;
  padding: 1rem;
  border-radius: var(--waffles-radius);
  background: var(--wp--preset--color--paper);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--paper-deep);
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.2;
  text-align: center;
}

.waffles-tier--logo .waffles-sponsor-grid > .waffles-sponsor--name:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--paper-deep), var(--waffles-lift);
}

.waffles-tier--silver .waffles-sponsor-grid > .waffles-sponsor--name {
  grid-column: span 2;
  min-height: 10rem;
}

/* By name: a plain run of names, no boxes. */
.waffles-tier--name .waffles-sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.waffles-sponsor-grid > .waffles-sponsor--name {
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 800;
}

.waffles-sponsor-grid > .waffles-sponsor--name:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 64rem) {
  .waffles-sponsor-grid > li,
  .waffles-tier--platinum .waffles-sponsor-grid > li {
    grid-column: span 3;
  }

  .waffles-sponsor-grid > .waffles-sponsor--logo,
  .waffles-tier--logo .waffles-sponsor-grid > .waffles-sponsor--name {
    grid-column: span 2;
  }

  .waffles-tier--silver .waffles-sponsor-grid > :is(.waffles-sponsor--logo, .waffles-sponsor--name) {
    grid-column: span 3;
  }
}

@media (max-width: 40rem) {
  .waffles-sponsor-grid > li,
  .waffles-tier--platinum .waffles-sponsor-grid > li {
    grid-column: span 6;
  }

  .waffles-sponsor-grid > .waffles-sponsor--logo,
  .waffles-tier--platinum .waffles-sponsor-grid > .waffles-sponsor--logo,
  .waffles-tier--gold .waffles-sponsor-grid > .waffles-sponsor--logo,
  .waffles-tier--logo .waffles-sponsor-grid > .waffles-sponsor--name {
    grid-column: span 3;
  }
}

/* --- Quality floor --------------------------------------------------------- */

:where(a, button):focus-visible {
  outline: 3px solid var(--wp--preset--color--ink);
  outline-offset: 3px;
}

.has-ink-background-color :where(a, button):focus-visible,
.waffles-hero :where(a, button):focus-visible,
body:has(:is(.wp-block-post-content, main) > .waffles-hero:first-child) header :where(a, button):focus-visible {
  outline-color: var(--wp--preset--color--syrup);
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}

/* --- Scroll reveal ----------------------------------------------------------
   assets/reveal.js marks each piece of a section and flips it visible as it
   scrolls into view. Nothing is hidden unless that script is running.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .waffles-js .waffles-reveal {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
  }

  /* The transition lives here so pieces only animate on the way in. */
  .waffles-js .waffles-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition:
      opacity 320ms ease-out,
      transform 450ms var(--waffles-ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  /* The opener: the photo settles while the title rises. */
  @keyframes waffles-hero-settle {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
  }

  @keyframes waffles-hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .waffles-hero .wp-block-cover__image-background {
    animation: waffles-hero-settle 1800ms var(--waffles-ease) both;
  }

  .waffles-hero .wp-block-cover__inner-container > .wp-block-group > * {
    animation: waffles-hero-rise 550ms var(--waffles-ease) both;
  }

  .waffles-hero .wp-block-cover__inner-container > .wp-block-group > :nth-child(2) {
    animation-delay: 120ms;
  }

  .waffles-hero .wp-block-cover__inner-container > .wp-block-group > :nth-child(3) {
    animation-delay: 240ms;
  }
}

/* Cards answer the pointer. */
.waffles-detail,
.waffles-people:not(.waffles-people--lead) .waffles-person {
  transition:
    transform var(--waffles-dur-fast) var(--waffles-ease),
    box-shadow var(--waffles-dur-fast) var(--waffles-ease);
}

.waffles-detail:hover,
.waffles-people:not(.waffles-people--lead) .waffles-person:hover {
  transform: translateY(-4px);
  box-shadow: var(--waffles-lift);
}

.waffles-photo img,
.waffles-people--lead .waffles-person__photo {
  transition: transform 500ms var(--waffles-ease);
}

.waffles-photo:hover img,
.waffles-people--lead .waffles-person:hover .waffles-person__photo {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Photo lightbox --------------------------------------------------------- */

.wp-lightbox-overlay .scrim {
  background-color: var(--wp--preset--color--ink) !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-close-button svg {
  fill: var(--wp--preset--color--paper) !important;
}
