/*
 * TAG Legal Desk v2.1, wp8_team: Cheers, the arrival card, the day's yarn, the Friday Wrap and the thank you wall.
 * Desk tokens only (every theme and High contrast read at AA), no fixed colours except the email paper, which stays
 * white in every theme. Only transform and opacity animate, and only through the desk's motion helper (which turns
 * every move into a 120 ms fade or a still with reduced motion, Calm or a hidden tab). 44 px targets. Nothing here
 * sits on the welfare band, the welfare view, a board card or inside the job's own email paper; the core hides every
 * team and info piece at once while a welfare message is open or the quiet period runs.
 */

/* ---------- the story card (the arrival card, the yarn, the Wrap, Cheers received) ---------- */
.v21t-story { display: grid; gap: 10px; min-width: 0; }
.v21t-band-wrap { margin: -16px -20px 0; height: 56px; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; line-height: 0; }
.v21t-band { display: block; width: 100%; height: 56px; }
.v21t-story-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v21t-story-h h2 { margin: 0; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.v21t-mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; color: var(--brand-text); line-height: 0; }
.v21t-story-b { display: grid; gap: 6px; min-width: 0; }
.v21t-story-b p { margin: 0; font-size: .9375rem; line-height: 1.4375rem; overflow-wrap: anywhere; }
.v21t-mine { color: var(--ink-2); font-style: italic; }
.v21t-art { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- E1 Cheers ---------- */
.v21t-cheers-btn { min-height: 44px; }
.v21t-cheers-btn .ico { color: var(--brand-text); }
.v21t-cheers-pop { width: min(380px, calc(100vw - 24px)); }
.v21t-cheers-form { display: grid; gap: 10px; min-width: 0; }
.v21t-cheers-form h3 { margin: 0; font-size: 1rem; }
.v21t-cheers-form .meta { margin: 0; }
.v21t-who { display: flex; flex-wrap: wrap; gap: 8px; }
.v21t-person { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 4px 14px 4px 6px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-1); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim); }
.v21t-person .av { box-shadow: none; }
.v21t-person[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-text); color: var(--brand-text); }
.v21t-own { font-weight: 600; font-size: .875rem; }
.v21t-err { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--danger); }
.v21t-err:empty { display: none; }
.v21t-local { font-size: .8125rem; }
:root[data-theme="high_contrast"] .v21t-person { border: 2px solid #000; background: #fff; box-shadow: none; }
:root[data-theme="high_contrast"] .v21t-person[aria-pressed="true"] { outline: 3px solid #000; outline-offset: 1px; }

/* The Cheers leaf: drawn in the desk's fx layer, moved only by transform and opacity. */
.v21t-leaf { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; color: var(--accent); line-height: 0; }

/* ---------- lists in Profile and on the cards ---------- */
.v21t-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.v21t-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-width: 0; overflow-wrap: anywhere; }
.v21t-prof { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--glass-rim); min-width: 0; }
.v21t-prof h3 { display: flex; align-items: center; gap: 8px; }
.v21t-prof .meta { margin: 0; }
.v21t-day > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.v21t-day p { margin: 0 0 6px; }

/* ---------- E7 the Friday Wrap ---------- */
.v21t-frames { display: grid; gap: 10px; min-width: 0; }
.v21t-frame { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
.v21t-frame > p { margin: 0; }
.v21t-frame-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--brand-text); }
.v21t-frame-honours { grid-template-columns: minmax(0, 1fr); }
.v21t-frame-honours h3 { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.v21t-leaves { grid-column: 2; margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.v21t-leafw { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: .8125rem; font-weight: 600; }
.v21t-leafw .ico { color: var(--accent); }

/* ---------- E9 the thank you wall (a tile) ---------- */
.v21t-thanks-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.v21t-thanks-card { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; overflow-wrap: anywhere; }
.v21t-thanks-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--brand-text); line-height: 0; }
.v21t-thanks .meta { margin: 0; }
.v21t-glow { position: absolute; inset: -4px -6px; border-radius: 10px; background: var(--brand-soft); opacity: 0; pointer-events: none; }
:root[data-theme="high_contrast"] .v21t-glow { display: none; }

/* ---------- phones (390 px and the like) ---------- */
@media (max-width: 599px) {
  .v21t-band-wrap { margin: -14px -16px 0; }
  .v21t-person { flex: 1 1 100%; }
  .v21t-cheers-form .row .btn { flex: 1 1 auto; }
}
