/*
 * FLORA lane component styles: the word and fact tile art, the calm card and the minute's silence card (days that
 * matter), the lesson strip, the story light bands, the thank you wall mark and the gum nut chip.
 * Built on the desk's glass tokens (bible 5.3 and 5.6). Only transform and opacity ever move.
 */

/* ---------- F4 word and fact tile (FL-50) ---------- */
.fl-tile-art { position: relative; }
.fl-tile-glyph { color: var(--brand-text, #233D26); }
.fl-tile-watermark { position: absolute; right: -6px; bottom: -8px; width: 72px; height: 72px; color: var(--ink, #1B1B1B); opacity: .08; pointer-events: none; }
.fl-tile-motif { position: absolute; right: 4px; bottom: 2px; }

/* ---------- C5 calm card on a day that matters (FL-23) ---------- */
.fl-calm-card {
  display: grid; justify-items: center; gap: 12px; padding: 28px 24px 26px; text-align: center; border-radius: 20px;
  background: var(--glass-1); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim), var(--shadow-1);
}
.fl-calm-motif svg { display: block; }
.fl-calm-title { margin: 0; font-size: 1.25rem; line-height: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.fl-calm-line { margin: 0; max-width: 34ch; font-size: .9375rem; line-height: 1.45rem; color: var(--ink-2); }

/* ---------- C5 the minute's silence (FL-24) ---------- */
.fl-silence-card {
  box-sizing: border-box; width: 100%; max-width: 420px; min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; align-items: center;
  padding: 20px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim), var(--shadow-2);
  transition: opacity 180ms cubic-bezier(.4,0,1,1);
  position: relative; z-index: 60;
}
.fl-silence-card.fl-leaving { opacity: 0; }
.fl-silence-text { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.45rem; color: var(--ink); overflow-wrap: anywhere; }
.fl-silence-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; min-width: 0; }
.fl-silence-actions .fl-btn { box-sizing: border-box; max-width: 100%; white-space: normal; }
/* XS: the two buttons stack, full width, the primary one first */
@media (max-width: 479px) {
  .fl-silence-card { padding: 16px; gap: 10px 12px; }
  .fl-silence-actions { flex-direction: column; align-items: stretch; }
  .fl-silence-actions .fl-btn { width: 100%; }
}
.fl-btn { min-height: 44px; padding: 0 16px; border-radius: 14px; font: inherit; font-weight: 600; color: var(--ink); background: var(--glass-1); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px var(--glass-rim); cursor: pointer; }
.fl-btn-primary { color: var(--brand-ink, #fff); background: linear-gradient(180deg, var(--brand-hi), var(--brand)); border-color: transparent; }
.fl-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* the dim is an opacity scrim only, never a colour shift; the welfare band stays above it, solid */
.fl-silence-scrim { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 50; transition: opacity 600ms cubic-bezier(.65,0,.35,1); }
.fl-silence-scrim.on { opacity: .55; }
.welfare-band, [data-welfare] { position: relative; z-index: 70; }
@media (prefers-reduced-motion: reduce) { .fl-silence-scrim, .fl-silence-card { transition-duration: 120ms; } }

/* ---------- D9 lesson strips (FL-52): the specimen on its side on a faint paper sheet, held by its tape strap ---------- */
.fl-lesson-strip { display: block; width: 100%; height: 72px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--glass-edge, rgba(255,255,255,.72));
  --fl-paper: rgba(255,255,255,.5); }
/* the paper stays a faint sheet over the glass in the dark themes (white at 7 percent with its 1 px rim), never a grey slab */
:root[data-theme="dark"] .fl-lesson-strip, :root[data-theme="night_shift"] .fl-lesson-strip { --fl-paper: rgba(255,255,255,.07); }
:root[data-theme="high_contrast"] .fl-lesson-strip { --fl-paper: #FFFFFF; }
@media (forced-colors: active) { .fl-lesson-strip { --fl-paper: Canvas; } }

/* ---------- E5 E6 E7 story light bands (FL-60): washes at most 12 percent over the glass ---------- */
.fl-band { position: relative; height: 56px; overflow: hidden; border-radius: 20px 20px 0 0; }
.fl-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fl-band--morning::before { background: linear-gradient(90deg, color-mix(in srgb, var(--flora-wild-gold, #E3B93E) 12%, transparent), transparent 70%); }
.fl-band--evening::before { background: linear-gradient(270deg, color-mix(in srgb, var(--flora-banksia, #C87632) 12%, transparent), transparent 70%); }
.fl-band--week::before { background: linear-gradient(270deg, color-mix(in srgb, var(--season, #D9A21B) 10%, transparent), transparent 75%); }
.fl-band > svg { position: absolute; top: 0; height: 56px; width: auto; }
.fl-band--morning > svg { left: 0; }
.fl-band--evening > svg, .fl-band--week > svg { right: 0; }
.fl-band--week > svg { height: 56px; top: 0; }
:root[data-theme="high_contrast"] .fl-band::before { background: none; }

/* ---------- E9 the thank you wall mark (FL-61): one soft glow, opacity only ---------- */
.fl-thanks-mark { position: relative; display: inline-block; width: 24px; height: 24px; }
.fl-thanks-mark svg { position: relative; display: block; }
.fl-thanks-mark::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--flora-wild-gold, #E3B93E) 55%, transparent), transparent); }
.fl-thanks-mark.fl-new::before { animation: fl-glow 2000ms linear 1 both; }
@keyframes fl-glow { from { opacity: .35; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fl-thanks-mark.fl-new::before { animation: none; } }
:root[data-calm="on"] .fl-thanks-mark.fl-new::before, :root[data-motion="reduced"] .fl-thanks-mark.fl-new::before { animation: none; }

/* ---------- B3 the gum nut's reward chip: one glass chip for every nut (wood and gold), risen clear of the stamens ---------- */
.fl-nut-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; z-index: 2;
  background: var(--glass-2, rgba(255,255,255,.74)); background: color-mix(in srgb, var(--solid, #FFFFFF) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-edge, rgba(255,255,255,.72)); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.65)), 0 0 0 1px var(--glass-rim, rgba(27,27,27,.07)), var(--shadow-1, 0 8px 24px rgba(16,24,16,.06));
  font-size: 13px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink, #1B1B1B); pointer-events: none; }
.fl-nut-chip svg { display: block; }
:root[data-theme="high_contrast"] .fl-nut-chip { background: #FFFFFF; border: 2px solid #000000; box-shadow: none; }

/* ---------- ambient art hides while a welfare message is live or a quiet period is on ---------- */
:root[data-quiet="on"] [data-art="ambient"] { display: none !important; }
/* the story cards and the thank you wall are not shown at all in a quiet period (the desk does not render them) */
