/* =============================================================
 * Giving Day Prep — styles
 * Built on the Resolve KY design tokens (design-system/code/tokens.css).
 * Palette is locked: teal, gold, cream, ink. Never extended.
 * ============================================================= */

:root {
  --teal-deep: #052326;
  --teal-mid: #258B8B;
  --gold: #CC9900;
  --gold-soft: #E0B43A;
  --cream: #FAF6EE;
  --cream-warm: #F2EDDF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --line: rgba(5, 35, 38, 0.12);
  --line-strong: rgba(5, 35, 38, 0.25);

  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 0 rgba(5,35,38,0.04), 0 8px 24px -12px rgba(5,35,38,0.18);
  --shadow-deep: 0 4px 0 rgba(5,35,38,0.04), 0 24px 48px -16px rgba(5,35,38,0.22);

  --wrap: 940px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--teal-deep);
}

/* Links use teal-DEEP, not teal-mid. The palette is locked, so this is a
 * swap between brand colours rather than a new one: teal-mid on cream is
 * 3.79:1, under the 4.5:1 AA floor. teal-deep is 15.28:1. The audience
 * includes a lot of people reading on phones in bright light. */
a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal-mid); }

/* Visible keyboard focus. The page is built out of <details>/<summary>,
 * which are keyboard-driven, and there was no focus indicator at all. */
:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On the dark bands, teal-deep is invisible. gold-soft is 8.44:1 there. */
#hero :focus-visible,
#about :focus-visible { outline-color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* ---------- preview bar ------------------------------------- */

.previewbar {
  background: var(--gold);
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
}
.previewbar a { color: var(--teal-deep); }

/* ---------- masthead ---------------------------------------- */
/* Light band, because the official logo carries dark type and a dark
 * rule and the design system forbids recolouring it. The dark hero
 * sits directly below, so the contrast reads as intentional. */

.masthead {
  background: #fff;
  border-bottom: 4px solid var(--gold);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.masthead__logo { display: block; line-height: 0; }
/* 755x108, so ~7:1. A smaller height than the old stacked mark. */
.masthead__logo img { height: 26px; width: auto; display: block; }
.masthead__tool {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.masthead__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.masthead__note {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* ---------- hero -------------------------------------------- */

#hero {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0a3438 50%, var(--teal-mid) 130%);
  color: var(--cream);
  padding: 72px 0 60px;
}
#hero .eyebrow { color: rgba(250, 246, 238, 0.7); }
.hero__count {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 16px;
}
.hero__lede {
  font-size: 19px;
  max-width: 640px;
  color: rgba(250, 246, 238, 0.9);
}
.hero__lede strong { color: var(--gold-soft); font-weight: 600; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.fact {
  background: rgba(250, 246, 238, 0.07);
  border: 1px solid rgba(250, 246, 238, 0.16);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.fact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
}
/* One tile carries a phrase rather than a number ("Donor and donation
 * count"). At 22px that runs to three cramped lines in a 150px column,
 * so the long variant steps down and tightens instead. */
.fact__value--long { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.fact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 246, 238, 0.65);
  margin-top: 6px;
}

/* ---------- sections ---------------------------------------- */

section.band { padding: 64px 0; }
.section__title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section__intro {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 32px;
}

/* ---------- catch-up ---------------------------------------- */

#catchup { background: var(--cream-warm); padding: 56px 0; }
.catchup {
  border-left: 4px solid var(--gold);
  padding-left: 24px;
}
.catchup__note {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 24px;
}

/* ---------- moves ------------------------------------------- */

.moves { display: grid; gap: 20px; }
.moves--compressed { gap: 8px; }

.move {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

/* Collapsed catch-up item: a scannable row, detail one click away. */
.move--compressed {
  padding: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: none;
}
.move--compressed .move__head {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  margin-bottom: 0;
  align-items: center;
}
.move--compressed .move__head::-webkit-details-marker { display: none; }
.move--compressed .move__head::before {
  content: '+';
  font-family: var(--font-mono);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.move--compressed[open] .move__head::before { content: '\2212'; }
.move--compressed[open] { box-shadow: var(--shadow-card); }
.move--compressed .move__title { font-size: 16px; font-weight: 600; }
.move__body { padding: 0 18px 18px 40px; }

.move__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.move__title { font-size: 21px; flex: 1 1 320px; }
.move__meta { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.chip--time { background: var(--cream-warm); color: var(--ink-soft); }
.chip--phase { background: rgba(37, 139, 139, 0.12); color: var(--teal-deep); }
.chip--critical { background: var(--gold); color: var(--teal-deep); font-weight: 600; }
.chip--star { background: var(--gold); color: var(--teal-deep); font-weight: 600; }
.chip--confirmed { background: rgba(37, 139, 139, 0.14); color: var(--teal-deep); font-weight: 600; }
.chip--precedent { background: var(--cream-warm); color: var(--ink-soft); }

.move__why { color: var(--ink-soft); margin-bottom: 16px; }
.move__steps { margin-left: 20px; display: grid; gap: 8px; }
.move__steps li { padding-left: 4px; }
.move__steps li::marker { color: var(--teal-deep); font-weight: 700; font-family: var(--font-mono); font-size: 13px; }
.move__link { margin-top: 14px; font-size: 14px; }

/* ---------- day-of schedule --------------------------------- */

.schedule { list-style: none; display: grid; gap: 2px; }
.slot {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.slot__time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
}
.slot__what { color: var(--ink); }
.slot--critical {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.slot--critical .slot__time { color: var(--gold-soft); }
.slot--critical .slot__what { color: var(--cream); font-weight: 600; }
.slot--now { outline: 3px solid var(--gold); outline-offset: 2px; }
.slot__now {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--gold);
  color: var(--teal-deep);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.schedule--preview .slot { background: var(--cream); }

/* ---------- upcoming ---------------------------------------- */

.ahead { display: grid; gap: 12px; }
.ahead__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ahead__item--star { border-color: var(--gold); border-width: 2px; }
.ahead__item--past { background: var(--cream-warm); }
.ahead__item--past .ahead__summary { color: var(--ink-soft); }
.chip--past { background: rgba(5, 35, 38, 0.08); color: var(--ink-soft); }
.ahead__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-deep);
}
.ahead__summary::-webkit-details-marker { display: none; }
.ahead__summary::before {
  content: '+';
  font-family: var(--font-mono);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 18px;
}
.ahead__item[open] .ahead__summary::before { content: '\2212'; }
.ahead__when {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  min-width: 120px;
}
.ahead__label { flex: 1 1 240px; }
.ahead__body { padding: 0 22px 22px; display: grid; gap: 16px; }

/* ---------- prize reference --------------------------------- */

#prizes { background: var(--cream-warm); }
.prizetable { display: grid; gap: 16px; }
.prize {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.prize__head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.prize__name { font-size: 19px; }
.prize__detail { color: var(--ink-soft); margin-bottom: 10px; }
.prize__play {
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
}
.prize__source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.sourcenote {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(37, 139, 139, 0.08);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- the invitation ---------------------------------- */

.invite {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-deep);
  padding: 40px;
  max-width: 760px;
}
.invite__body { color: var(--ink-soft); margin-bottom: 14px; }
.invite__note {
  background: var(--cream-warm);
  border-left: 3px solid var(--teal-mid);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  margin: 18px 0 4px;
}
.invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 26px 0 14px;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid var(--teal-deep);
  transition: transform .08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-deep); color: var(--cream); }
.btn--primary:hover { background: #0a3438; color: var(--cream); }
.btn--quiet { background: transparent; color: var(--teal-deep); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.invite__sub { font-size: 14px; color: var(--ink-soft); }
.invite__signoff {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- about / footer ---------------------------------- */

#about { background: var(--teal-deep); color: var(--cream); padding: 56px 0 64px; }
#about .section__title { color: var(--cream); }
.about { display: grid; gap: 14px; max-width: 680px; }
.about p { color: rgba(250, 246, 238, 0.85); }
.about__disclaimer {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-size: 14px;
}
.about__links a { color: var(--gold-soft); }

/* ---------- responsive -------------------------------------- */

@media (max-width: 640px) {
  .slot { grid-template-columns: 1fr; gap: 6px; }
  #hero { padding: 48px 0 40px; }
  section.band { padding: 44px 0; }
  .catchup { padding-left: 16px; }
}

@media print {
  #hero { background: none; color: var(--ink); }
  .hero__count, .hero__lede { color: var(--ink); }
  .ahead__body { display: block !important; }
}

/* ---------- hero independence line -------------------------- */

.hero__indep {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(250, 246, 238, 0.62);
  max-width: 560px;
}

/* ---------- mid-page invitation ----------------------------- */
/* Plain prose on purpose. If this ever grows a border, a background
 * or a button it becomes the vendor lead-magnet pattern the whole
 * tool is positioned against. */

.nudge {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 680px;
}
.nudge a { font-weight: 600; }

/* ---------- invitation: back-to-community link -------------- */

.invite__member { margin-top: 10px; font-size: 14px; }
.invite__member a { color: var(--ink-soft); }

/* ---------- the peer forward -------------------------------- */

#forward { background: var(--cream-warm); }
.forward {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 32px;
  max-width: 760px;
}
.forward__title { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.forward__body { color: var(--ink-soft); margin-bottom: 20px; }
.forward__note {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.forward__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.forward__actions .btn { cursor: pointer; font-family: var(--font-display); }
.forward__hint { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* ---------- the debrief (Sept 11-14) ------------------------ */

#debrief { background: var(--teal-deep); }
.debrief { max-width: 700px; }
#debrief .section__title { color: var(--cream); }
.debrief__body { color: rgba(250, 246, 238, 0.9); font-size: 18px; margin-bottom: 14px; }
.debrief__why {
  color: rgba(250, 246, 238, 0.7);
  font-size: 15px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 24px;
}
#debrief .btn--primary {
  background: var(--gold);
  color: var(--teal-deep);
  border-color: var(--gold);
}
#debrief .btn--primary:hover { background: var(--gold-soft); color: var(--teal-deep); }

/* ---------- takeaways --------------------------------------- */

.takeaways { max-width: 780px; }
.takeaways__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.takeaway {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.takeaway .btn { cursor: pointer; width: 100%; text-align: center; font-family: var(--font-display); }
.takeaway__sub { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.takeaway__note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); font-style: italic; }

/* ---------- move tick boxes --------------------------------- */

.move__tick { display: flex; align-items: center; cursor: pointer; padding: 2px; }
.move__tick input {
  width: 22px; height: 22px;
  accent-color: var(--teal-deep);
  cursor: pointer;
  margin: 0;
}
.move--done { background: var(--cream); border-color: var(--line-strong); }
.move--done .move__title { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .62; }
.move--done .move__why, .move--done .move__steps { opacity: .55; }

/* ---------- footer brand ------------------------------------ */
/* The mark again at the end, on a light chip because the asset needs
 * a light ground. Two placements, top and bottom, is enough. */

.about__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  width: fit-content;
}
.about__brand img { height: 24px; width: auto; display: block; }
.about__brand span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  max-width: 190px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .masthead .wrap { gap: 12px; }
  .masthead__logo img { height: 22px; }
  .masthead__tool { padding-left: 0; border-left: 0; align-items: flex-start; }
  .about__brand { flex-direction: column; align-items: flex-start; }
}
