/* Flow Foundation named legacies (legacy-*.html), the "In memory" band on about.html,
   and the legacy notes on pillar-opportunities.html. Added 11 Nov 2026.
   Brand tokens come from styles.css (body.flow) and flow-foundation.css. */

/* ---------- Hero ---------- */
.legacy-hero {
  padding: clamp(56px, 8vw, 112px) 0;
  background: radial-gradient(circle at 88% 12%, rgba(237, 28, 132, .16), transparent 34%), var(--night);
  color: var(--on-night);
}
.legacy-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.legacy-hero .kicker { color: var(--sun); }
.legacy-hero h1 { margin: .35em 0 .45em; color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; }
.legacy-hero h1 em { color: var(--sun); font-style: normal; }
.legacy-hero .lede { max-width: 56ch; color: var(--on-night-soft); }
.legacy-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.legacy-status span { padding: 6px 12px; border: 1px solid var(--night-line-strong); border-radius: 999px; color: var(--on-night-soft); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.legacy-status span:first-child { border-color: var(--sun); color: var(--sun); }
.legacy-mark { margin: 0; padding: clamp(18px, 2.4vw, 30px); border-radius: 18px; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.legacy-mark img { width: 100%; height: auto; }

/* ---------- Tribute ---------- */
.legacy-tribute p { max-width: 64ch; color: var(--ink-soft); font-size: 1.05rem; }
.legacy-tribute p.legacy-first { color: var(--ink); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.legacy-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line-strong); }
.legacy-facts li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--night-line-strong); color: var(--on-night-soft); font-size: .93rem; }
.legacy-facts b { color: var(--sun); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }

/* ---------- Strands ---------- */
.legacy-strands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 0; padding: 0; list-style: none; }
.legacy-strand { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px; border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: 0 0 14px 14px; background: var(--surface); }
.legacy-strand:nth-child(2) { border-top-color: var(--leaf); }
.legacy-strand:nth-child(3) { border-top-color: #ed1c84; }
.legacy-strand:nth-child(4) { border-top-color: var(--flow-navy-2, #11233a); }
.legacy-n { color: var(--orange-text); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legacy-strand h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.legacy-strand p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.legacy-strand .legacy-trait { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.legacy-strand .legacy-trait b { color: var(--ink); font-weight: 600; }

/* ---------- Pilot ---------- */
.legacy-pilot { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.legacy-photo { margin: 0; }
.legacy-photo .legacy-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--cream-deep); }
.legacy-photo .legacy-img picture { height: 100%; }
.legacy-photo .legacy-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.legacy-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.legacy-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: step; }
.legacy-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: step; color: var(--ink-soft); }
.legacy-steps li::before { content: counter(step, decimal-leading-zero); color: var(--orange-text); font-weight: 800; font-size: .85rem; padding-top: 2px; }
.legacy-steps b { color: var(--ink); }
.legacy-safe { margin: 22px 0 0; padding-left: 14px; border-left: 3px solid var(--leaf); color: var(--ink-soft); font-size: .9rem; }

/* ---------- Give ---------- */
.legacy-give { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.legacy-give .btn-solid[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.legacy-give-note { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.legacy-blessing { max-width: 760px; margin: 34px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.legacy-blessing b { color: var(--ink); }

/* ---------- about.html: In memory band ---------- */
.memory-band { background: var(--night); color: var(--on-night); }
.memory-band .kicker { color: var(--sun); }
.memory-band h2 { color: #fff; }
.memory-band .about-intro { color: var(--on-night-soft); }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-top: 2rem; }
.memory-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; padding: 24px; border: 1px solid var(--night-line-strong); border-radius: 16px; background: var(--night-2); color: var(--on-night); text-decoration: none; transition: border-color .2s, transform .2s; }
.memory-card:hover, .memory-card:focus-visible { border-color: var(--sun); transform: translateY(-2px); }
.memory-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.memory-card .memory-mark { border-radius: 10px; background: #fff; padding: 6px; }
.memory-card h3 { margin: 0 0 4px; color: #fff; font-size: 1.15rem; }
.memory-card .person-role { margin: 0 0 .7rem; color: var(--sun); }
.memory-card p { margin: 0 0 .7rem; color: var(--on-night-soft); font-size: .93rem; }
.memory-card .memory-more { color: var(--sun); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- pillar-opportunities.html: legacy notes ---------- */
.pillar-legacy { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin: 22px 0 6px; padding: 14px 16px; border: 1px solid #f3b6d4; border-radius: 12px; background: #fff7fb; color: #3b2230; font-size: .92rem; line-height: 1.5; }
.pillar-legacy img { width: 56px; height: auto; border-radius: 6px; background: #fff; }
.pillar-legacy a { color: #9b0f55; font-weight: 700; }

@media (max-width: 1080px) { .legacy-strands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .legacy-hero-grid, .legacy-pilot { grid-template-columns: 1fr; }
  .legacy-mark { max-width: 360px; }
}
@media (max-width: 560px) {
  .legacy-strands { grid-template-columns: 1fr; }
  .memory-card { grid-template-columns: 64px 1fr; gap: 14px; }
  .legacy-facts li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .memory-card { transition: none; } }


/* ---------- Busi Maho Legacy notes on education pages (13 Nov 2026) ---------- */
.busi-legacy { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin: 18px 0 6px; padding: 12px 16px; border: 1px solid #c9d6e8; border-left: 4px solid #f2a93b; border-radius: 12px; background: #f5f8fc; color: #1d2b3a; font-size: .92rem; line-height: 1.5; max-width: 640px; }
.busi-legacy img { width: 56px; height: auto; border-radius: 6px; }
.busi-legacy a { color: #0b3a6e; font-weight: 700; }
.path-legacy { margin-top: 10px; font-size: .9rem; }
.path-legacy a { font-weight: 700; }

/* ---------- Legacy journey: where each Legacy lives (13 Nov 2026) ---------- */
.legacy-owns { padding: 56px 0; background: #f5f8fc; border-top: 1px solid #e3e9f1; border-bottom: 1px solid #e3e9f1; }
.legacy-owns h2 { margin: 6px 0 22px; }
.owns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.owns-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid #d6e0ec; border-top: 4px solid #f2a93b; color: #1d2b3a; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.owns-card:hover, .owns-card:focus-visible { box-shadow: 0 10px 26px rgba(11,23,38,.12); transform: translateY(-2px); }
.owns-card b { font-size: 1.1rem; }
.owns-card span { font-size: .93rem; line-height: 1.5; }
.owns-card em { margin-top: auto; font-style: normal; font-weight: 700; color: #0b3a6e; font-size: .88rem; }
.owns-also { margin-top: 20px; font-size: .93rem; }
.owns-also a { font-weight: 700; color: #0b3a6e; }
.legacy-tag { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #f2a93b; color: #0b1726; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.legacy-status a { text-decoration: none; color: inherit; }
.legacy-status a span { cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.legacy-status a:hover span, .legacy-status a:focus-visible span { background: #f2a93b; color: #0b1726; border-color: #f2a93b; }

/* ---------- Named Legacy system (13 Nov 2026): one badge, one statement, everywhere ---------- */
.named-legacy { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; padding: 10px 14px 10px 10px; max-width: 640px; border: 1px solid #d6e0ec; border-left: 4px solid #f2a93b; border-radius: 12px; background: #f7f9fc; color: #1d2b3a; font-size: .9rem; line-height: 1.45; }
.named-legacy img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid #fff; box-shadow: 0 0 0 1px #d6e0ec; }
.named-legacy a { color: #0b3a6e; font-weight: 700; }
.named-legacy--tag { display: inline-flex; margin: 12px 0 0; padding: 4px 12px 4px 4px; gap: 8px; border-left-width: 1px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #0b1726; max-width: none; }
.named-legacy--tag img { flex-basis: 26px; width: 26px; height: 26px; border-width: 1px; }
.legacy-tagline { margin: 10px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; color: #f2a93b; line-height: 1.3; }
.legacy-hub { margin: 28px 0 8px; padding: 26px; border-radius: 16px; background: #0b1726; color: #fff; }
.legacy-hub .kicker { color: #f2a93b; }
.legacy-hub h3 { margin: 6px 0 8px; color: #fff; }
.legacy-hub > p { color: #c9d4e2; max-width: 720px; }
.legacy-hub__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.legacy-hub__card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #13243a; border: 1px solid #23395a; color: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.legacy-hub__card:hover, .legacy-hub__card:focus-visible { border-color: #f2a93b; transform: translateY(-2px); }
.legacy-hub__card img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; }
.legacy-hub__card b { display: block; font-size: 1.02rem; }
.legacy-hub__card span { display: block; color: #c9d4e2; font-size: .9rem; line-height: 1.45; margin-top: 4px; }
.legacy-hub__card em { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: #f2a93b; font-size: .85rem; }
