/* A4 WAYPOINT page styles. One block per page. */

/* ==========================================================================
   Home
   ========================================================================== */

/* Sky hero: a bright rounded panel with soft clouds, a centred headline,
   and a curved row of tool cards in perspective. An optional photo sky
   (assets/img/hero-sky.jpg) sits over the CSS sky when it exists. */
.hero {
  padding: 10px 10px 0;
}

@media (min-width: 640px) {
  .hero {
    padding: 14px 16px 0;
  }
}

.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 16px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0b57b5 0%, #1a72d6 34%, #4b9ff0 66%, #9fd0f8 100%);
  color: #fff;
  text-align: center;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sky-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  filter: blur(22px);
  opacity: 0.55;
}

.cloud-1 {
  width: 340px;
  height: 90px;
  top: 38%;
  left: -80px;
}

.cloud-2 {
  width: 280px;
  height: 70px;
  top: 30%;
  right: -60px;
  opacity: 0.45;
}

.cloud-3 {
  width: 200px;
  height: 50px;
  top: 12%;
  left: 62%;
  opacity: 0.25;
}

.cloud-bank {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -70px;
  height: 260px;
  background:
    radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 0% 100% / 34% 80% no-repeat,
    radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 26% 90% / 30% 70% no-repeat,
    radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 52% 100% / 36% 76% no-repeat,
    radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 78% 88% / 30% 72% no-repeat,
    radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 100% 100% / 34% 82% no-repeat;
  filter: blur(10px);
  opacity: 0.92;
}

/* With a photo sky, the drawn clouds step back. */
.sky.has-photo .cloud,
.sky.has-photo .cloud-bank {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2.125rem, 1.3rem + 3.8vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(9, 40, 110, 0.25);
}

.hero-line {
  display: block;
}

.hero-line-soft {
  color: #cfe6ff;
}

.hero-sub {
  max-width: 34rem;
  margin: var(--space-4) auto 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(9, 40, 110, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-6);
}

.hero-btn-ghost {
  background: rgba(14, 20, 64, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-btn-ghost:hover {
  background: rgba(14, 20, 64, 0.58);
}

.hero-btn-lime {
  padding-right: 8px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(14, 20, 64, 0.25);
}

.hero-btn-lime:hover {
  background: #93d22a;
}

.arrow-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  transition: rotate 0.25s var(--ease-out);
}

.hero-btn-lime:hover .arrow-dot {
  rotate: -45deg;
}

.hero-panel .btn:focus-visible {
  outline-color: #fff;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* The ring: tool cards sit on the outside of a 3D cylinder that turns slowly.
   Side cards recede and turn edge-on; cards behind the curve hide their backs.
   home.js places the cards and turns the ring; --R is the cylinder radius. */
.arc-stage {
  --R: 480px;
  --card-scale: 0.74;
  position: relative;
  z-index: 1;
  height: 190px;
  margin: clamp(30px, 4.5vw, 52px) -16px 0;
  perspective: 1100px;
  perspective-origin: 50% 40%;
  opacity: 0;
  transition: opacity 0.9s ease 0.2s;
}

.arc-stage.is-placed {
  opacity: 1;
}

.arc-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--R) * -1));
}

.arc-card {
  --w: 158px;
  --h: 184px;
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--h) / -2);
  width: var(--w);
  height: var(--h);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  font-size: 0.75rem;
  box-shadow: 0 12px 30px rgba(9, 40, 110, 0.2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Wider screens: a bigger ring, so its sides bleed off both edges. */
@media (min-width: 700px) {
  .arc-stage {
    --R: clamp(620px, 58vw, 900px);
    --card-scale: 1;
    height: 250px;
    perspective: 2400px;
  }
}

@media (min-width: 1100px) {
  .arc-stage {
    --card-scale: 1.1;
    height: 270px;
  }
}

/* Dark stat card */
.arc-stat {
  --w: 168px;
  --h: 178px;
  background: var(--navy);
  color: #fff;
}

.arc-stat-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.arc-stat-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(132, 195, 24, 0.3);
}

.arc-stat-big {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.arc-stat-sub {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

/* Glass card */
.arc-glass {
  --w: 150px;
  --h: 170px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.arc-plus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.arc-plus .icon {
  width: 18px;
  height: 18px;
}

.arc-glass-title {
  font-weight: 700;
  font-size: 0.8125rem;
}

.arc-glass-sub {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Chart card */
.arc-chart-big {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.arc-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  margin-top: auto;
}

.arc-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #6aaef5, #0b63c4);
}

.arc-bars i:nth-child(4) {
  background: var(--lime);
}

.arc-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.75rem;
}

.arc-label .icon {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.arc-note {
  margin-top: auto;
  color: var(--ink-3);
}

.arc-note strong {
  font-size: 1.125rem;
  color: var(--navy);
}

/* Bingo mini grid */
.mini-bingo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 8px;
  overflow: hidden;
}

.mini-bingo i {
  position: relative;
  height: 30px;
  background: #1a2260;
}

.mini-bingo i:nth-child(odd) {
  background: var(--lime);
}

.mini-bingo i.x::before,
.mini-bingo i.x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-bright);
  translate: -50% -50%;
  rotate: 35deg;
}

.mini-bingo i.x::after {
  rotate: -35deg;
}

/* Resource Hub rows */
.arc-rows {
  list-style: none;
  display: grid;
  gap: 5px;
}

.arc-rows li {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.arc-rows b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Checklist card */
.float-head {
  display: flex;
  justify-content: space-between;
}

.float-title {
  font-weight: 700;
}

.float-count {
  font-weight: 700;
  color: var(--lime-ink);
  font-variant-numeric: tabular-nums;
}

.float-list {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.float-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-list .is-done {
  color: var(--ink-3);
}

.tick {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  flex: none;
}

.is-done .tick {
  border-color: var(--lime);
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1440' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* District card in the centre */
.arc-brand {
  --w: 176px;
  --h: 200px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(9, 30, 90, 0.4);
}

.arc-brand img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.arc-brand-name {
  font-weight: 700;
  font-size: 0.8125rem;
}

.arc-brand-sub {
  font-size: 0.6875rem;
  color: var(--lime);
}

/* Shuffle card */
.arc-shuffle {
  background: #fffaf3;
  border: 3px solid #3fa34d;
}

.arc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #3fa34d;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.arc-tag .icon {
  width: 12px;
  height: 12px;
}

.arc-title {
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.arc-stub {
  margin-top: auto;
  display: grid;
  padding-top: 8px;
  border-top: 2px dashed #a8d7ae;
  color: var(--ink-3);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.arc-stub b {
  font-size: 0.8125rem;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--navy);
}

@media (max-width: 699px) {
  .arc-stub b {
    font-size: 0.6875rem;
  }

  .arc-title {
    font-size: 0.8125rem;
  }
}

/* AI card */
.arc-prompt {
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  line-height: 1.6;
  color: var(--ink-2);
}

.arc-copy {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.arc-copy .icon {
  width: 13px;
  height: 13px;
}

/* Route card */
.arc-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.arc-steps i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
}

.arc-steps i.on {
  background: var(--lime);
}

.arc-steps i.now {
  box-shadow: 0 0 0 2px var(--navy);
}

.hero-points {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: var(--space-5);
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--lime-ink);
  stroke-width: 2.6;
}

/* Laptops and desktops: tie the hero to the window height, so the whole
   ring shows on a short screen (for example 1600 x 740) without scrolling. */
@media (min-width: 1024px) {
  .hero-panel {
    padding-top: clamp(36px, 6vh, 88px);
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: min(clamp(2.125rem, 1.3rem + 3.8vw, 4rem), 7.2vh);
  }

  .hero-sub {
    max-width: 42rem;
    margin-top: clamp(10px, 1.8vh, 16px);
  }

  .hero-actions {
    margin-top: clamp(16px, 3vh, 32px);
  }

  .arc-stage {
    height: clamp(200px, 30vh, 270px);
    margin-top: clamp(18px, 3vh, 52px);
  }

  .hero-points {
    margin-top: clamp(8px, 1.5vh, 20px);
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .arc-stage {
    --card-scale: 0.95;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .arc-stage {
    --card-scale: 0.85;
  }
}

/* Journey */
.journey {
  position: relative;
  counter-reset: waypoint;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.journey-track {
  position: absolute;
  left: calc(var(--space-5) + 23px);
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.journey-fill {
  width: 100%;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transform-origin: top center;
}

.journey-list {
  position: relative;
  list-style: none;
  display: grid;
}

.waypoint {
  counter-increment: waypoint;
}

.waypoint a {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
}

.waypoint-node {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--lime);
  color: var(--navy);
  transition: background-color 0.3s, border-color 0.3s, transform 0.2s var(--ease-out);
}

.waypoint-node .icon {
  width: 20px;
  height: 20px;
}

.waypoint-node::after {
  content: counter(waypoint);
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.journey.is-animated .waypoint:not(.is-reached) .waypoint-node {
  background: var(--surface);
  border-color: var(--line-strong);
}

.waypoint-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  padding-top: 3px;
}

.waypoint-text {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.waypoint a:hover .waypoint-title {
  color: var(--orange);
}

.waypoint a:hover .waypoint-node {
  transform: scale(1.06);
}

@media (min-width: 768px) and (max-width: 1099px) {
  .journey-section .container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-7);
    align-items: start;
  }

  .journey-section .section-head {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    margin-bottom: 0;
  }
}

@media (min-width: 1100px) {
  .journey {
    padding: var(--space-6) var(--space-5);
  }

  .journey-track {
    left: calc(100% / 14);
    right: calc(100% / 14);
    top: calc(var(--space-6) + 23px);
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .journey-fill {
    transform-origin: left center;
  }

  .journey-list {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-3);
  }

  .waypoint a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 4px var(--space-2);
  }

  .waypoint-node {
    margin-bottom: var(--space-3);
  }
}

/* Entry cards */
.entry-grid {
  display: grid;
  gap: var(--space-4);
}

.entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  transition: box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.entry:hover {
  box-shadow: var(--shadow);
}

.entry-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.entry p {
  color: var(--ink-2);
}

.entry-link {
  color: var(--ink);
  text-decoration: none;
}

.entry-link:hover {
  color: var(--orange);
}

.entry-meta {
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3) !important;
}

.entry-sublist {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: var(--space-3);
}

.entry-sublist a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.entry-sublist a:hover {
  background: var(--blue-tint);
}

.entry-sublist .icon {
  color: var(--blue);
}

.entry-sublist strong {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
}

.entry-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-2);
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.tool-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.tool-pill .icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

@media (min-width: 768px) {
  .entry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .entry-resources,
  .entry-toolkit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .entry-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .entry-resources {
    grid-column: 1;
    grid-row: span 2;
  }

  .entry-toolkit {
    grid-column: span 2;
  }

  .entry {
    padding: var(--space-6);
  }
}

.entry-shuffle {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-color: var(--navy);
}

.entry-shuffle h3,
.entry-shuffle p {
  max-width: calc(100% - 84px);
}

/* A tiny fan of deck cards in the Shuffle colours. */
.mini-deck {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 64px;
  height: 64px;
}

.mini-deck i {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 36px;
  height: 50px;
  border-radius: 7px;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: rotate 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}

.mini-deck i:nth-child(1) {
  background: #f58d6b;
  rotate: -16deg;
  translate: -12px 4px;
}

.mini-deck i:nth-child(2) {
  background: #a193f2;
  rotate: 16deg;
  translate: 12px 4px;
}

.mini-deck i:nth-child(3) {
  background: #9ed13b;
}

.entry-shuffle:hover .mini-deck i:nth-child(1) {
  rotate: -24deg;
  translate: -18px 6px;
}

.entry-shuffle:hover .mini-deck i:nth-child(2) {
  rotate: 24deg;
  translate: 18px 6px;
}

@media (prefers-reduced-motion: reduce) {
  .mini-deck i {
    transition: none;
  }
}

.entry-prompt {
  margin-top: var(--space-2);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-2) !important;
}

.entry-shuffle .entry-link,
.entry-shuffle h3 {
  color: #fff;
}

.entry-shuffle .entry-link:hover {
  color: var(--lime);
}

.entry-shuffle p {
  color: rgba(255, 255, 255, 0.8);
}

.entry-shuffle .entry-meta {
  color: var(--lime) !important;
}

.entry-shuffle .entry-link:focus-visible {
  outline-color: var(--lime);
}

@media (min-width: 860px) {
  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About */
.about-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.about-text {
  margin-top: var(--space-5);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 58ch;
}

.about-points {
  list-style: none;
  display: grid;
  gap: var(--space-5);
}

.about-points li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.about-points h3 {
  font-size: var(--step-1);
}

.about-points p {
  color: var(--ink-2);
  margin-top: 2px;
}

/* Closing call to action */
.cta-band {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--lime-tint);
  border: 1px solid #d5ebad;
}

.cta-band h2 {
  font-size: var(--step-3);
}

.cta-band p {
  color: var(--ink-2);
  margin-top: 6px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-note {
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-7);
  }

  .cta-note {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Inner page intro
   ========================================================================== */

.intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small {
  font-size: 0.875rem;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Resource Hub
   ========================================================================== */

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-error:empty {
  display: none;
}

.hub .tabs {
  margin-bottom: var(--space-5);
}

@media (min-width: 900px) {
  .hub .tabs {
    display: inline-flex;
  }
}

.hub-desc {
  color: var(--ink-2);
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

.filter-bar {
  display: grid;
  gap: 10px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.filter-selects:empty {
  display: none;
}

@media (min-width: 900px) {
  .filter-bar {
    grid-template-columns: minmax(260px, 1.2fr) 2fr;
  }
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  margin-block: var(--space-3);
}

.results-count {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
}

.res-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .res-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.res-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  min-width: 0;
}

.res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.res-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.res-card h3 {
  font-size: 1.1875rem;
  overflow-wrap: anywhere;
}

.res-meta {
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.res-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.res-meta .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--ink-3);
}

.res-address {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.res-notes {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.res-facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.8125rem;
}

.res-facts dt {
  color: var(--ink-3);
}

.res-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.res-card .contact-row {
  margin-top: auto;
  padding-top: var(--space-2);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   Tool pages (Checklist, Project Starter)
   ========================================================================== */

.caps-title {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.tool-layout {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 1024px) {
  .tool-layout {
    grid-template-columns: 340px 1fr;
    gap: var(--space-6);
  }

  .tool-side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.setup-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.type-picker {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.type-picker legend {
  margin-bottom: 10px;
  padding: 0;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 560px) and (max-width: 1023px) {
  .type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.type-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.type-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.type-icon .icon {
  width: 18px;
  height: 18px;
}

.type-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
}

.type-option:hover .type-card {
  border-color: var(--line-strong);
}

.type-option input:checked + .type-card {
  border-color: var(--navy);
  background: #f3f5fd;
  box-shadow: inset 0 0 0 1px var(--navy);
}

.type-option input:checked + .type-card .type-icon {
  background: var(--navy);
  color: var(--lime);
}

.type-option input:focus-visible + .type-card {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.checklist-card {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .checklist-card {
    padding: var(--space-6);
  }
}

.checklist-head {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .checklist-head {
    grid-template-columns: 1fr 240px;
    align-items: end;
  }
}

.checklist-head h2 {
  font-size: var(--step-3);
}

.checklist-meta {
  margin-top: 6px;
  color: var(--ink-2);
  font-weight: 500;
}

.overall-count {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.overall-count strong {
  color: var(--ink);
}

.progress-lg {
  height: 12px;
}

.overall.is-complete .overall-count strong {
  color: var(--lime-ink);
}

@media (max-width: 559px) {
  .checklist-card .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .checklist-card .toolbar .btn {
    width: 100%;
  }
}

.phase {
  display: grid;
  gap: 10px;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.phase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.phase-head h3 {
  font-size: var(--step-1);
}

.phase-count {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.phase-count.is-complete {
  color: var(--lime-ink);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius);
  transition: background-color 0.15s;
}

.check-item:hover {
  background: var(--surface-2);
}

.check-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 0;
}

.check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.check-box .icon {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.check-input:checked + .check-box {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.check-input:focus-visible + .check-box {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.check-text {
  overflow-wrap: anywhere;
}

.is-done .check-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.check-tag {
  flex: none;
}

.check-empty {
  padding: 10px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.print-box,
.print-head,
.print-foot {
  display: none;
}

.add-item {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.add-item .input {
  min-height: 44px;
}

.add-item .btn {
  flex: none;
  min-height: 44px;
}

/* Next steps */
.next-steps {
  margin-top: var(--space-8);
}

.next-steps h2 {
  font-size: var(--step-3);
  margin-bottom: var(--space-5);
}

.next-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .next-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.next-link {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.next-link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.next-link strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   Project Starter
   ========================================================================== */

.starter-layout {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 1024px) {
  .starter-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-6);
  }

  .starter-output {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    padding: 2px 4px 16px 2px;
  }
}

.starter-form {
  display: grid;
  gap: var(--space-4);
}

.form-group {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5);
  min-width: 0;
}

.form-group legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

.form-group legend + * {
  clear: both;
}

.group-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.8125rem;
  font-family: var(--font-body);
}

.field-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.clear-form {
  justify-self: start;
}

.brief-card {
  padding: var(--space-5);
}

@media (min-width: 640px) {
  .brief-card {
    padding: var(--space-6);
  }
}

.brief-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.brief-label {
  font-size: var(--step-1);
}

.brief-empty {
  padding: var(--space-6) var(--space-3);
  text-align: center;
  color: var(--ink-3);
}

.brief-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink-2);
  margin-bottom: 4px;
}

.brief-header {
  margin-bottom: var(--space-4);
}

.brief-name {
  font-size: var(--step-3);
  overflow-wrap: anywhere;
}

.brief-meta {
  margin-top: 6px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9375rem;
}

.brief-section {
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.brief-section h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.brief-section p,
.brief-section li {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.brief-section ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 2px;
}

.brief-next {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.brief-next > .btn {
  justify-self: start;
}

.brief-ai {
  display: grid;
  gap: 6px;
}

.brief-ai-links {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.brief-ai-links a {
  font-weight: 600;
}

/* ==========================================================================
   Toolkit landing
   ========================================================================== */

.toolkit-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 860px) {
  .toolkit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
}

@media (min-width: 640px) {
  .tool-card {
    padding: var(--space-6);
  }
}

.tool-card-top {
  display: grid;
  gap: var(--space-3);
}

.tool-card h2 {
  font-size: var(--step-3);
}

.tool-card p {
  color: var(--ink-2);
}

.tool-features {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}

.tool-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tool-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--lime-ink);
  stroke-width: 2.5;
}

.tool-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.toolkit-flow {
  margin-top: var(--space-8);
}

.toolkit-flow h2 {
  font-size: var(--step-3);
  margin-bottom: var(--space-5);
}

.flow-steps {
  list-style: none;
  counter-reset: flow;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 860px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-steps li {
  counter-increment: flow;
  display: grid;
  gap: 4px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.flow-steps strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--ink);
}

.flow-steps strong::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8125rem;
}

/* ==========================================================================
   AI Shortcut
   ========================================================================== */

.how-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.how-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.prompt-controls {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.prompt-rule {
  margin-bottom: var(--space-3);
}

.prompt-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .prompt-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.prompt-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  min-width: 0;
}

.prompt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.prompt-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prompt-body {
  position: relative;
  max-height: 11.5em;
  overflow: hidden;
}

.prompt-body.is-cut::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3.5em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface));
  pointer-events: none;
}

.prompt-body.is-open {
  max-height: none;
}

.prompt-body.is-open::after {
  display: none;
}

.prompt-text {
  white-space: pre-line;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.ph-note {
  color: var(--ink-3);
  font-style: italic;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fill-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.fill-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.fill-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 560px) {
  .fill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fill-grid label {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.fill-grid .input {
  min-height: 44px;
}

/* ==========================================================================
   Project Playbooks
   ========================================================================== */

.playbooks .chip-row {
  margin-bottom: var(--space-2);
}

.pb-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .pb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pb-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  transition: box-shadow 0.2s;
}

.pb-card:hover {
  box-shadow: var(--shadow);
}

.pb-card-title {
  font-size: var(--step-2);
}

.pb-meta {
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 500;
}

.pb-objective {
  color: var(--ink-2);
}

.pb-card .link-arrow {
  margin-top: auto;
}

.pb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
}

.pb-stats > div {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.pb-stats dt {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.pb-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.pb-card {
  min-width: 0;
}

.pb-stats-sm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-stats-sm dt,
.pb-stats-sm dd {
  overflow-wrap: anywhere;
}

.pb-stats-sm dt {
  font-size: 0.75rem;
  line-height: 1.3;
}

.pb-stats-sm dd {
  font-size: 1.125rem;
}

.pb-stats-sm > div {
  padding: 8px 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-block: var(--space-5) var(--space-3);
  font-weight: 600;
  text-decoration: none;
}

.back-link .icon {
  width: 18px;
  height: 18px;
}

.pb-detail {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  max-width: 880px;
}

@media (min-width: 640px) {
  .pb-detail {
    padding: var(--space-7);
  }
}

.pb-detail-head {
  display: grid;
  gap: var(--space-3);
}

.pb-badges {
  justify-content: flex-start;
}

.pb-detail h1 {
  font-size: var(--step-4);
}

.pb-detail h1:focus {
  outline: none;
}

.pb-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-1);
  margin-bottom: 8px;
}

.pb-section p,
.pb-section li {
  color: var(--ink-2);
}

.pb-section ul {
  display: grid;
  gap: 6px;
  padding-left: 1.2rem;
}

.pb-two {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .pb-two {
    grid-template-columns: 1fr 1fr;
  }
}

.pb-tips {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--lime-tint);
}

.pb-tips h2 .icon {
  color: var(--lime-ink);
}

.pb-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.pb-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.pb-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-5);
}

/* 404 */
.not-found {
  padding-block: var(--space-8);
}

.not-found h1 {
  font-size: var(--step-4);
}

/* ==========================================================================
   Home: team
   ========================================================================== */

.team-head {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.team-grid {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.team-card {
  position: relative;
  flex: none;
  width: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 6px 12px rgba(14, 20, 64, 0.08), 0 24px 48px rgba(14, 20, 64, 0.16);
  color: #fff;
}

.team-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--lime);
}

.team-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s var(--ease-out);
}

.team-card:hover .team-img {
  transform: scale(1.03);
}

/* Soft fades keep the white text readable on any photo. */
.team-card::before,
.team-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  pointer-events: none;
}

.team-card::before {
  top: 0;
  height: 42%;
  background: linear-gradient(rgba(14, 20, 64, 0.72), rgba(14, 20, 64, 0.28) 60%, rgba(14, 20, 64, 0));
}

.team-card::after {
  bottom: 0;
  height: 38%;
  background: linear-gradient(rgba(14, 20, 64, 0), rgba(14, 20, 64, 0.55) 55%, rgba(14, 20, 64, 0.85));
}

.team-top,
.team-bottom {
  position: absolute;
  inset-inline: 0;
  z-index: 2;
}

.team-top {
  top: 0;
  padding: 20px 12px 0;
  text-align: center;
}

.team-top h3 {
  font-size: 1.125rem;
  white-space: nowrap;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 12px rgba(14, 20, 64, 0.4);
}

.team-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.team-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(132, 195, 24, 0.3);
}

.team-bottom {
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px 16px;
}

.team-org {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}

.team-org img {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.team-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(14, 20, 64, 0.25);
}

/* Phones: the cards stack one below the other, centred. */
@media (max-width: 639px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
  }

  .team-card {
    width: min(300px, 100%);
  }

  .team-top h3 {
    font-size: clamp(0.9375rem, 5vw, 1.125rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-img {
    transition: none;
  }
}

/* ==========================================================================
   SHUFFLE
   ========================================================================== */

.shuffle-intro {
  text-align: center;
}

.shuffle-intro .breadcrumb {
  justify-content: center;
}

.shuffle-intro .lede {
  margin-inline: auto;
}

.shuffle-title {
  font-size: clamp(3.25rem, 2rem + 6vw, 6rem) !important;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--navy);
}

.shuffle-tagline {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  color: var(--orange);
}

/* The table: a navy play surface with a faint waypoint route behind the deck. */
.shuffle-table {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4) var(--space-6);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(132, 195, 24, 0.14), transparent),
    var(--navy);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .shuffle-table {
    padding: var(--space-6) var(--space-6) var(--space-7);
  }
}

.shuffle-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.shuffle-route path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.shuffle-route circle {
  fill: var(--lime);
  opacity: 0.5;
}

.shuffle-filter {
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .shuffle-filter {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}

.shuffle-filter .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

.shuffle-filter .chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.shuffle-filter .chip .icon {
  width: 16px;
  height: 16px;
}

.shuffle-filter .chip .count {
  color: rgba(255, 255, 255, 0.6);
}

.shuffle-filter .chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.shuffle-filter .chip[aria-pressed="true"] .count {
  color: rgba(14, 20, 64, 0.7);
}

.shuffle-filter .chip:focus-visible {
  outline-color: var(--lime);
}

/* Service areas: a second, smaller row with each area's own colour. */
.shuffle-areas {
  margin-top: -6px;
}

.shuffle-areas .chip {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.shuffle-areas .chip .icon {
  color: var(--area, currentColor);
}

.shuffle-areas .chip[aria-pressed="true"] {
  background: #fff;
  border-color: var(--area, #fff);
  box-shadow: inset 0 0 0 1px var(--area, #fff);
  color: var(--navy);
}

.shuffle-areas .chip[aria-pressed="true"] .count {
  color: var(--ink-3);
}

/* Deck */
.deck {
  --card-w: min(272px, 74vw);
  position: relative;
  width: 100%;
  height: calc(var(--card-w) * 1.4 + 56px);
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .deck {
    --card-w: 300px;
  }
}

/* Very small phones: a slightly wider card so every idea fits. */
@media (max-width: 359px) {
  .deck {
    --card-w: 80vw;
  }
}

.s-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  aspect-ratio: 5 / 7;
  translate: -50% -50%;
  perspective: 1200px;
}

/* Cards behind the hero: a small peek on phones, a wide fan on larger screens. */
.s-deck-card:nth-child(1) { translate: calc(-50% - 22px) calc(-50% + 12px); rotate: -8deg; }
.s-deck-card:nth-child(2) { translate: calc(-50% + 22px) calc(-50% + 12px); rotate: 8deg; }
.s-deck-card:nth-child(3) { translate: calc(-50% - 11px) calc(-50% + 6px); rotate: -4deg; }
.s-deck-card:nth-child(4) { translate: calc(-50% + 11px) calc(-50% + 6px); rotate: 4deg; }
.s-deck-card:nth-child(5) { translate: -50% calc(-50% + 3px); rotate: 1.5deg; }

@media (min-width: 900px) {
  .s-deck-card:nth-child(1) { translate: calc(-50% - 250px) calc(-50% + 34px); rotate: -14deg; }
  .s-deck-card:nth-child(2) { translate: calc(-50% + 250px) calc(-50% + 34px); rotate: 14deg; }
  .s-deck-card:nth-child(3) { translate: calc(-50% - 130px) calc(-50% + 12px); rotate: -7deg; }
  .s-deck-card:nth-child(4) { translate: calc(-50% + 130px) calc(-50% + 12px); rotate: 7deg; }

  .s-deck-card {
    transition: translate 0.35s var(--ease-out), rotate 0.35s var(--ease-out);
  }

  .deck:hover .s-deck-card:nth-child(1) { translate: calc(-50% - 262px) calc(-50% + 30px); }
  .deck:hover .s-deck-card:nth-child(2) { translate: calc(-50% + 262px) calc(-50% + 30px); }
}

.s-deck-card .s-face {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.s-hero {
  z-index: 2;
  outline: none;
}

.s-hero:focus-visible .s-inner {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
  border-radius: 24px;
}

.s-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-hero.is-flipped .s-inner {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .s-inner,
  .s-deck-card {
    transition: none !important;
  }
}

.s-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

/* Back */
.s-back {
  display: grid;
  place-items: center;
  background: var(--c, var(--navy-700));
  border: 5px solid rgba(255, 255, 255, 0.94);
  color: #fff;
}

.s-back.is-dark {
  border-color: var(--lime);
}

.s-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #fff;
}

/* A solid white disc keeps the icon readable on light and dark colours alike. */
.s-back-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink, var(--navy));
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(14, 20, 64, 0.18);
}

.s-back-icon .icon {
  width: 48%;
  height: 48%;
  stroke-width: 1.8;
}

.s-back-brand {
  position: absolute;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink, var(--navy));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
}

.s-route {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-route i,
.s-route b {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 20, 64, 0.25);
}

.s-route b {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid #fff;
}

/* Front: a colour wave header echoes the back, then the idea, then a ticket stub. */
.s-front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  background: #fffaf3;
  border: 3px solid var(--c, var(--lime));
  color: var(--navy);
  text-align: center;
}

.s-head {
  position: relative;
  flex: none;
  height: 64px;
}

.s-head-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--c, var(--lime));
}

.s-tags {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, var(--navy));
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(14, 20, 64, 0.12);
}

.s-tag .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.s-no {
  padding-inline: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.s-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 6px 18px 10px;
}

.s-title {
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
}

.s-title:focus {
  outline: none;
}

.s-concept {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Waypoint dots between the idea and its twist. */
.s-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.s-divider i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
}

.s-divider b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--ink, var(--navy));
}

.s-twist {
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.s-twist .icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  vertical-align: -3px;
  color: var(--ink, var(--navy));
}

.s-twist strong {
  color: var(--ink, var(--navy));
}

/* Ticket stub: a perforated line with two punched notches, then the facts. */
.s-stub {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 11px 14px 14px;
  border-top: 2px dashed color-mix(in srgb, var(--c) 70%, #fff);
}

.s-stub::before,
.s-stub::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
}

.s-stub::before {
  left: -12px;
}

.s-stub::after {
  right: -12px;
}

.s-stub > div {
  display: grid;
  gap: 2px;
}

.s-stub > div + div {
  border-left: 1px solid color-mix(in srgb, var(--c) 45%, #fff);
}

.s-stub dt {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, var(--ink-3));
}

.s-stub dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Celebration dots */
.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  pointer-events: none;
}

.burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Copy and buttons */
.shuffle-line {
  min-height: 1.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.shuffle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.shuffle-actions .btn {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.shuffle-actions .btn .icon {
  width: 20px;
  height: 20px;
}

.btn-shuffle {
  min-width: 220px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 22px rgba(207, 74, 12, 0.45);
}

.btn-shuffle:hover {
  background: var(--orange-hover);
}

.btn-done {
  background: var(--lime);
  color: var(--navy);
}

.btn-done:hover {
  background: #93d22a;
}

.btn-again {
  background: #fff;
  color: var(--navy);
}

.btn-again:hover {
  background: var(--surface-2);
}

.shuffle-actions .btn:focus-visible {
  outline-color: var(--lime);
  outline-offset: 3px;
}

.shuffle-actions .btn[disabled] {
  opacity: 0.7;
}

@media (max-width: 479px) {
  .shuffle-actions .btn {
    flex: 1 1 100%;
  }
}

/* Phone-size cards: slightly tighter so every idea fits. */
@media (max-width: 639px) {
  .s-head {
    height: 56px;
  }

  .s-body {
    gap: 7px;
    padding: 4px 14px 8px;
  }

  .s-title {
    font-size: 1.1875rem;
  }

  .s-concept {
    font-size: 0.84375rem;
  }

  .s-twist {
    font-size: 0.78125rem;
    padding: 7px 9px;
  }

  .s-stub {
    padding: 9px 12px 12px;
  }

  .s-stub dd {
    font-size: 0.9375rem;
  }
}

.shuffle-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  white-space: nowrap;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(132, 195, 24, 0.5);
  text-underline-offset: 4px;
}

.shuffle-plan:hover {
  color: #b5e36b;
}

.shuffle-plan .icon {
  width: 18px;
  height: 18px;
}

.shuffle-plan:focus-visible {
  outline-color: var(--lime);
}

.shuffle-note {
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--ink-3);
  max-width: 70ch;
}

.shuffle-done-msg {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(132, 195, 24, 0.16);
  color: var(--lime);
  font-weight: 700;
}

/* How to use */
.shuffle-how {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 860px) {
  .shuffle-how {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shuffle-how li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.shuffle-how li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8125rem;
}

.shuffle-how strong {
  color: var(--ink);
}

/* ==========================================================================
   Home: astronaut invite to Shuffle
   ========================================================================== */

.ufo {
  position: fixed;
  bottom: 18px;
  z-index: 40;
  width: 132px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, translate 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ufo.is-left {
  left: 14px;
  translate: -160px -40px;
}

.ufo.is-right {
  right: 14px;
  translate: 160px -40px;
}

.ufo.is-in {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.ufo.is-out {
  opacity: 0;
  translate: 0 -220px;
  transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.7, 0, 0.84, 0);
}

@media (min-width: 640px) {
  .ufo {
    width: 160px;
    bottom: 26px;
  }

  .ufo.is-left {
    left: 26px;
  }

  .ufo.is-right {
    right: 26px;
  }
}

.ufo-link {
  display: block;
  text-decoration: none;
  border-radius: 24px;
}

.ufo-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.ufo-art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(14, 20, 64, 0.25));
  animation: ufo-bob 3.2s ease-in-out infinite;
}

.ufo-link:hover .ufo-art {
  animation-play-state: paused;
  translate: 0 -6px;
  rotate: -4deg;
  transition: translate 0.25s var(--ease-out), rotate 0.25s var(--ease-out);
}

@keyframes ufo-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.ufo-bubble {
  position: absolute;
  bottom: calc(100% - 4px);
  display: block;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  animation: ufo-pop 0.5s 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ufo.is-left .ufo-bubble {
  left: 50%;
  border-bottom-left-radius: 4px;
}

.ufo.is-right .ufo-bubble {
  right: 50%;
  border-bottom-right-radius: 4px;
}

.ufo-link:hover .ufo-bubble {
  background: var(--orange);
}

@keyframes ufo-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
}

.ufo-close {
  position: absolute;
  top: 18%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0.9;
}

.ufo.is-left .ufo-close {
  right: -6px;
}

.ufo.is-right .ufo-close {
  left: -6px;
}

.ufo-close:hover {
  opacity: 1;
  color: var(--orange);
}

.ufo-close .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

@media (prefers-reduced-motion: reduce) {
  .ufo,
  .ufo.is-out {
    transition: opacity 0.3s ease;
    translate: 0 0;
  }

  .ufo-art,
  .ufo-bubble {
    animation: none;
  }
}

@media print {
  .ufo {
    display: none !important;
  }
}

/* ==========================================================================
   Leadership Bingo
   ========================================================================== */

.bingo-layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 960px) {
  .bingo-layout {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: var(--space-7);
  }

  .bingo-side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.bingo-poster {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 26px 18px 22px;
  border-radius: 28px;
  background: #0e1440;
  color: #f3efe6;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 480px) {
  .bingo-poster {
    padding: 34px 28px 28px;
  }
}

.bingo-head {
  position: relative;
  text-align: center;
}

.bingo-word {
  margin: 0;
  font-weight: 800;
  font-size: clamp(5rem, 26vw, 9.25rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: #f3efe6;
}

.bingo-arc {
  position: absolute;
  top: -18%;
  right: -2%;
  width: 42%;
  overflow: visible;
  pointer-events: none;
}

.bingo-arc text {
  fill: var(--lime);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 1px;
}

.bingo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
}

.bingo-loading {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: rgba(243, 239, 230, 0.7);
}

.bingo-grid li {
  display: grid;
}

.bingo-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  hyphens: auto;
  min-height: 108px;
  padding: 24px 8px 14px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.22;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s;
}

@media (min-width: 480px) {
  .bingo-cell {
    min-height: 124px;
    padding: 26px 12px 16px;
    font-size: 0.9375rem;
  }
}

.bingo-cell.is-lime {
  background: var(--lime);
  color: var(--navy);
}

.bingo-cell.is-dark {
  background: #1a2260;
  color: #f3efe6;
}

.bingo-cell:hover {
  filter: brightness(1.07);
}

.bingo-cell:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  border-radius: 10px;
}

.bingo-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.bingo-text {
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
}

@media (max-width: 399px) {
  .bingo-cell {
    padding: 22px 5px 12px;
    font-size: 0.75rem;
  }
}

/* Done: the cross sits behind the words, a halo in the square's colour keeps them readable,
   and an orange check replaces the number. */
.bingo-cell.is-lime[aria-pressed="true"] .bingo-text {
  text-shadow: 0 0 4px var(--lime), 0 0 10px var(--lime), 0 0 2px var(--lime);
}

.bingo-cell.is-dark[aria-pressed="true"] .bingo-text {
  text-shadow: 0 0 4px #1a2260, 0 0 10px #1a2260, 0 0 2px #1a2260;
}

.bingo-cell[aria-pressed="true"] .bingo-num {
  opacity: 0;
}

.bingo-check {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-bright);
  color: #fff;
  scale: 0;
  transition: scale 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.bingo-check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3.2;
}

.bingo-cell[aria-pressed="true"] .bingo-check {
  scale: 1;
}

/* A new bingo rings its squares for a moment. */
.bingo-cell.is-flash {
  animation: bingo-flash 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bingo-flash {
  0% {
    box-shadow: inset 0 0 0 0 rgba(249, 115, 22, 0);
    scale: 1;
  }

  30% {
    box-shadow: inset 0 0 0 5px rgba(249, 115, 22, 1);
    scale: 0.95;
  }

  100% {
    box-shadow: inset 0 0 0 0 rgba(249, 115, 22, 0);
    scale: 1;
  }
}

/* Hand-drawn orange cross that draws itself when a square is crossed off. */
.bingo-cross {
  position: absolute;
  inset: 12% 10%;
  z-index: 0;
  width: 80%;
  height: 76%;
  overflow: visible;
  pointer-events: none;
}

.bingo-cross path {
  fill: none;
  stroke: var(--orange-bright);
  stroke-width: 7px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}

.bingo-cross path + path {
  transition-delay: 0s;
}

.bingo-cell[aria-pressed="true"] .bingo-cross path {
  stroke-dashoffset: 0;
}

.bingo-cell[aria-pressed="true"] .bingo-cross path + path {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .bingo-cross path,
  .bingo-cell[aria-pressed="true"] .bingo-cross path + path,
  .bingo-check {
    transition: none;
  }

  .bingo-cell.is-flash {
    animation: none;
  }
}

.bingo-tag {
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 8px 20px;
  border: 2px solid rgba(243, 239, 230, 0.8);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
  overflow-wrap: anywhere;
}

.bingo-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.bingo-count {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.bingo-count strong {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.bingo-lines {
  margin-block: 2px 10px;
  font-weight: 600;
  color: var(--lime-ink);
}

.bingo-actions {
  display: grid;
  gap: 10px;
}

.bingo-actions .btn-ghost {
  justify-self: start;
}

.bingo-how {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.bingo-how h2 {
  font-size: var(--step-1);
  margin-bottom: 8px;
}

.bingo-how ol {
  display: grid;
  gap: 6px;
  padding-left: 1.2rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
