/* Honor Board (2026-10-24). Builds on faq.css: same shell, topbar, theme
   tokens and kicker; only the hero sky, sections and person cards live here. */

.honor-hero {
  position: relative;
  padding: clamp(64px, 11vw, 112px) 0 clamp(36px, 6vw, 56px);
  border-bottom: 1px solid var(--faq-line);
  overflow: hidden;
}

.honor-hero h1 {
  position: relative;
  max-width: 640px;
  margin: 0;
  font-family: var(--faq-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.honor-hero .faq-kicker { position: relative; }

.honor-updated {
  position: relative;
  margin: 18px 0 0;
  color: var(--faq-muted);
  font: 500 0.78rem/1.4 var(--faq-utility);
}

/* Heart colour: a warm rose that reads on both themes. */
:root { --honor-heart: #ef6a85; }
:root[data-theme="light"] { --honor-heart: #d83f63; }

/* The star-chart heart lives in the page background: fixed to the window,
   behind the shell and its text, never part of the scrolling page. The SVG
   keeps its proportions (meet), so it is only ever scaled, never stretched. */
.honor-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.honor-bg svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -3vw;
  width: min(50vw, 760px);
  height: auto;
  transform: translateY(-50%);
}

.faq-shell { position: relative; z-index: 1; }

.honor-heart-lines line,
.honor-heart-chords line {
  stroke: var(--faq-gold);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.honor-heart-lines line { stroke-opacity: 0.34; }
.honor-heart-chords line { stroke-opacity: 0.14; }
.honor-heart-stars circle { fill: var(--faq-gold); opacity: 0.8; }
.honor-heart-dust circle { fill: var(--faq-muted); opacity: 0.4; }
.honor-heart-halo { fill: var(--faq-gold); opacity: 0.12; }
.honor-heart-gold { fill: var(--faq-gold); }

.honor-note {
  margin: 40px 0 0;
  color: var(--faq-muted);
  font-size: 0.95rem;
}

.honor-note a { color: var(--faq-gold); }
.honor-note[hidden] { display: none; }

.honor-section { margin-top: 52px; }

.honor-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--faq-muted);
  font: 700 0.72rem/1.4 var(--faq-utility);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.honor-section h2 svg { width: 17px; height: 17px; color: var(--faq-gold); flex: none; }

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.honor-card {
  min-width: 0;
  padding: 16px 18px 15px;
  border: 1px solid var(--faq-line);
  border-radius: 14px;
  /* See-through enough that the heart in the background still reads behind the cards. */
  background: color-mix(in srgb, var(--faq-surface) 72%, transparent);
}

.honor-card.is-you { border-color: color-mix(in srgb, var(--faq-gold) 60%, var(--faq-line)); }

.honor-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.honor-initials {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--faq-gold) 45%, transparent);
  border-radius: 50%;
  color: var(--faq-gold);
  font: 600 0.82rem/1 var(--faq-utility);
  letter-spacing: 0.04em;
}

.honor-person-text { min-width: 0; }

/* Real names can be long: wrap them, never cut them off. */
.honor-name {
  margin: 0;
  color: var(--faq-text);
  font: 650 1rem/1.3 var(--faq-utility);
  overflow-wrap: anywhere;
}

.honor-tag {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--faq-muted);
  font: 500 0.72rem/1.3 var(--faq-utility);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.honor-you {
  margin-inline-start: 6px;
  color: var(--faq-gold);
}

.honor-stats {
  margin: 13px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--faq-line);
  list-style: none;
}

.honor-stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faq-muted);
  font: 500 0.82rem/1.9 var(--faq-utility);
}

.honor-stats svg { width: 15px; height: 15px; flex: none; color: var(--faq-gold); opacity: 0.85; }
.honor-stats b { color: var(--faq-text); font-weight: 700; }

.honor-self {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--faq-line);
  color: var(--faq-muted);
  font-size: 0.85rem;
}

.honor-self[hidden] { display: none; }
.honor-self p { margin: 0 0 10px; }

.honor-self-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--faq-line);
  border-radius: 10px;
  background: transparent;
  color: var(--faq-text);
  font: 600 0.78rem/1 var(--faq-utility);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.honor-self-button:hover { border-color: var(--faq-gold); }
.honor-self-button:disabled { opacity: 0.6; cursor: progress; }

/* ── Thank them ─────────────────────────────────────────────────── */
.honor-thank-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 26px;
}

.honor-thank-row[hidden] { display: none; }

.honor-thank {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--honor-heart) 55%, var(--faq-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--honor-heart) 12%, transparent);
  color: var(--faq-text);
  font: 650 0.92rem/1 var(--faq-utility);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.honor-thank svg {
  width: 19px;
  height: 19px;
  fill: var(--honor-heart);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.honor-thank:hover { background: color-mix(in srgb, var(--honor-heart) 20%, transparent); }
.honor-thank:hover svg { transform: scale(1.18); }
.honor-thank:active { transform: scale(0.97); }
.honor-thank:disabled { cursor: progress; opacity: 0.7; }
.honor-thank.is-done { border-color: var(--faq-line); background: transparent; color: var(--faq-muted); }

.honor-thank-note {
  margin: 0;
  color: var(--faq-muted);
  font: 500 0.8rem/1.4 var(--faq-utility);
}

/* Hearts fly from the button to the cards; the layer covers the window and never takes clicks. */
.honor-hearts {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.honor-heart {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  fill: var(--honor-heart);
  will-change: transform, opacity;
}

.honor-heart.is-gold { fill: var(--faq-gold); }

.honor-card.is-thanked { animation: honor-card-thanks 900ms ease-out; }

@keyframes honor-card-thanks {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--honor-heart) 55%, transparent); }
  40% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--honor-heart) 22%, transparent); border-color: var(--honor-heart); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .honor-card.is-thanked { animation: none; }
}

/* ── Phones: one tidy header line, brand left and actions right ──── */
.honor-back-short { display: none; }

@media (max-width: 680px) {
  .faq-shell { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }

  .faq-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 6px 0 10px;
  }

  .faq-brand { align-self: center; gap: 8px; }
  .faq-brand img { width: 30px; height: 30px; }
  .faq-brand strong { font-size: 0.8rem; letter-spacing: 0.16em; }

  .faq-nav { width: auto; flex: none; justify-content: flex-end; gap: 8px; }
  .faq-theme-button { width: 40px; min-height: 40px; }
  .faq-nav .faq-home-button { min-height: 40px; height: 40px; padding: 0 14px; font-size: 0.76rem; }

  .honor-hero { padding-top: 40px; padding-bottom: 32px; }
  .honor-hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .honor-thank-row { margin-top: 22px; }
  .honor-bg svg { width: 108vw; inset-inline-end: -22vw; inset-block-start: 46%; }
  .honor-section { margin-top: 40px; }
}

@media (max-width: 350px) {
  .honor-back-full { display: none; }
  .honor-back-short { display: inline; }
  .faq-brand strong { letter-spacing: 0.1em; }
}
