/*
 * TAG Legal Desk v2.1, wp2_grove: A1 the Grove, A2 Weekly Honours, F1 Wren.
 * Desk tokens only (bible 5.6); every theme reads (Light, Dark, Eucalypt, Harbour, High contrast). Only transform and
 * opacity move, and only through the desk's own motion helper, so reduced motion and Calm are stills or fades.
 * No inline styles anywhere: the page's content security policy is style-src 'self'.
 * Every game element carries data-v21="game" and hides at once during a welfare message, the quiet period and the
 * "While nobody was here" band (data-quiet on the root); every wren (the Clear panel's, the log's, each person's own
 * in the Grove) also hides in Calm.
 */

/* ---------- the safety gate, belt and braces (the core also hides every [data-v21="game"]) ---------- */
:root[data-quiet="on"] .v21-grove,
:root[data-quiet="on"] .v21-grove-link,
:root[data-quiet="on"] .v21-wren,
:root[data-quiet="on"] .v21-wren-tip,
:root[data-quiet="on"] .v21-hon,
:root[data-quiet="on"] .v21-hon-cols,
:root[data-quiet="on"] .v21-hon-card,
:root[data-quiet="on"] .v21-hon-profile { display: none !important; }
:root[data-calm="on"] .v21-wren,
:root[data-calm="on"] .v21-wren-tip,
:root[data-calm="on"] .v21-grove-scene .art-wren,
:root[data-calm="on"] .v21-tree-bird,
:root[data-calm="on"] .v21-tree-wren { display: none !important; }

/* ---------- A1 the Grove ---------- */
/* The Grove opens across the whole desk, like a preview's Expand (the page also adds the desk's own sheet-expanded).
   On a computer the scene is as wide as the sheet; the page adds sky above the trees where the width alone would leave
   it under 60 percent of the window's height or 420 px (G.groveSky), and on a very wide window it stops at 78 percent
   of the height, centred, so the tabs and the words below stay in reach. */
.sheet.v21-grove-sheet { width: 100%; border-radius: 0; }
.v21-grove-sheet .sheet-b { scrollbar-gutter: stable; }
@media (min-width: 600px) {
  /* --v21-grove-tw is the scene's width in its own units: 960, or more with Fred's plot after the people (J111) */
  .v21-grove-sheet .v21-grove-scene { max-width: calc(78vh * var(--v21-grove-tw, 960) / 360); margin-left: auto; margin-right: auto; }
}
.v21-grove { display: grid; gap: 14px; min-width: 0; }
.v21-grove > .meta { margin: 0; }
.v21-grove-tabs { justify-self: start; max-width: 100%; }
.v21-grove-host { min-height: 120px; min-width: 0; }
.v21-grove-host > .meta { margin: 0; }
.v21-grove-scene { width: 100%; min-width: 0; }
.v21-grove-scene .gb-card { color: var(--ink-2); font-size: .8125rem; }
.v21-grove-mine-n { display: block; margin-top: 4px; color: var(--ink-2); }
.v21-grove-away { display: block; margin-top: 2px; color: var(--ink-2); }
.v21-grove-below { display: grid; gap: 12px; min-width: 0; }
.v21-grove-below > .meta { margin: 0; }
.v21-grove-cap { display: grid; gap: 4px; }
.v21-grove-cap p { margin: 0; }
.v21-grove-mine { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-card); }
.v21-grove-mine p { margin: 0; }
.v21-grove-mine .row { display: flex; flex-wrap: wrap; gap: 8px; }
.v21-grove-species { max-width: 100%; }
.v21-grove-species[hidden] { display: none; }
.v21-grove-link { display: inline-flex; align-items: center; gap: 6px; }
.v21-grove-link .ico, .v21-glyph { flex: none; }
.v21-glyph { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Without the art: equal columns, one for each person, never ranked, in the crew strip's alphabetical order. The page
   sets --v21-cols (up to five side by side, more in even rows); where the width is short they wrap at 88 px (three
   people still stand side by side on a phone). Every column is the same width, so no row reads as a podium. */
.v21-grove-cols { --v21-cols: 3; --v21-gap: 10px; display: grid; gap: var(--v21-gap);
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(max(88px, calc((100% - (var(--v21-cols) - 1) * var(--v21-gap)) / var(--v21-cols) - 1px)), 1fr)); }
.v21-tree-away { font-size: .75rem; }
.v21-tree { --v21-pc: var(--brand); display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 16px 10px 14px; border-radius: var(--r-card); text-align: center; border-top: 3px solid var(--v21-pc); }
.v21-tree b { max-width: 100%; font-size: .9375rem; }
.v21-tree .meta { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.v21-tree-leaf { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 4px; }
.v21-tree.is-me { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px var(--v21-pc), var(--shadow-1); }
.v21-tree:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root[data-theme="high_contrast"] .v21-tree { border-top-width: 4px; }
:root[data-theme="high_contrast"] .v21-tree.is-me { box-shadow: none; outline: 2px solid #000; outline-offset: 2px; }

/* With the art and four or more people (grove.js marks the scene gb-many, data-gb-n and --gb-n): every tree has an
   equal share of the width, and the name tags always sit in the strip under the scene, each no wider than its own
   tree's share, so a tag never covers the ground band, the log, Wren or another tag. Where a share is too narrow to
   read a name (under about 96 px), every second tag drops to a second row and each tag has two shares of room.
   J111: with Fred's plot after the people, the people have only part of the scene's width (grove.js sets --gb-people,
   1 without his plot), so every tag's room is that part's share, never the whole width's.
   Tokens only, so every theme reads; nothing here moves, so reduced motion and Calm need nothing more. */
.gb-grove .gb-tag-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gb-grove.gb-many .gb-scene { --gb-rows: 1; margin-bottom: calc(10px + var(--v21-row, 30px) * var(--gb-rows)); }
.gb-grove.gb-many .gb-scene > svg { clip-path: inset(-60% 0 0 0); }
.gb-grove.gb-many .gb-scene::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(10px + var(--v21-row, 30px) * var(--gb-rows)); pointer-events: none;
  border-radius: 0 0 var(--gb-grove-r, 20px) var(--gb-grove-r, 20px); background-color: var(--art-ground, #CFC8B6);
  background-image: linear-gradient(color-mix(in srgb, var(--gb-grove-season, transparent) 10%, transparent), color-mix(in srgb, var(--gb-grove-season, transparent) 10%, transparent)); }
.gb-grove.gb-many .gb-tag { top: calc(100% + 8px) !important; min-height: 24px; max-width: calc(100% * var(--gb-people, 1) * var(--gb-rows) / var(--gb-n, 4) - 6px);
  padding: 0 8px 0 3px; gap: 5px; font-size: .6875rem; overflow: hidden; }
.gb-grove.gb-many .gb-tag i { flex: none; width: 14px; height: 14px; }
.gb-grove.gb-many .gb-tag.gb-tag-low { top: calc(100% + 8px + var(--v21-row, 30px) * (var(--gb-rows) - 1)) !important; }
/* a phone with three people or fewer: gb_art.css gives each tag a third of the width (31cqw); with Fred's plot, a third
   of the people's part (this file loads after gb_art.css; the gb-many rule above stays the more specific one) */
@container gbgrove (max-width: 560px) { .gb-grove .gb-tag { max-width: calc(31cqw * var(--gb-people, 1)); } }
@container gbgrove (max-width: 383px) { .gb-grove[data-gb-n="4"] .gb-scene { --gb-rows: 2; } }
@container gbgrove (max-width: 479px) { .gb-grove[data-gb-n="5"] .gb-scene { --gb-rows: 2; } }
@container gbgrove (max-width: 575px) { .gb-grove[data-gb-n="6"] .gb-scene { --gb-rows: 2; } }
@container gbgrove (max-width: 671px) { .gb-grove[data-gb-n="7"] .gb-scene { --gb-rows: 2; } }
@container gbgrove (max-width: 767px) { .gb-grove[data-gb-n="8"] .gb-scene { --gb-rows: 2; } }
.gb-grove[data-gb-n="many"] .gb-scene { --gb-rows: 2; }
@supports not (container-type: inline-size) {
  @media (max-width: 600px) { .gb-grove.gb-many .gb-scene { --gb-rows: 2; } }
}
:root[data-theme="high_contrast"] .gb-grove.gb-many .gb-scene::before { background-image: none; }

/* The wide Grove (wider than 560 px): the name tags and the hover cards grow with the scene, from the sizes above up to
   about 17 px, so a name reads at the size of its tree; the strip under a Grove of four or more grows its rows to
   match. Container units follow the Grove's own width; a phone keeps the sizes above. */
@container gbgrove (min-width: 561px) {
  .v21-grove-sheet .gb-grove .gb-tag { font-size: clamp(.75rem, .45rem + .5cqw, 1.0625rem); min-height: 2.2em; padding: 0 .85em 0 .35em; gap: .5em; }
  .v21-grove-sheet .gb-grove .gb-tag i { width: 1.5em; height: 1.5em; }
  .v21-grove-sheet .gb-grove.gb-many .gb-scene { --v21-row: clamp(30px, 1rem + 1.1cqw, 42px); }
  .v21-grove-sheet .gb-grove.gb-many .gb-tag { font-size: clamp(.6875rem, .4rem + .45cqw, .9375rem); min-height: 2.1em; }
  .v21-grove-sheet .gb-grove.gb-many .gb-tag i { width: 1.3em; height: 1.3em; }
  /* J165: {ai}'s tag at the same size as the people's, in each layout */
  .v21-grove-sheet .gb-grove .gb-fred-tag { font-size: clamp(.75rem, .45rem + .5cqw, 1.0625rem); min-height: 2.2em; padding: 0 .85em 0 .5em; gap: .45em; }
  .v21-grove-sheet .gb-grove .gb-fred-tag .gb-fred-mark { width: 1.3em; height: 1.3em; }
  .v21-grove-sheet .gb-grove.gb-many .gb-fred-tag { font-size: clamp(.6875rem, .4rem + .45cqw, .9375rem); min-height: 2.1em; }
  .v21-grove-sheet .v21-grove-scene .gb-card { font-size: clamp(.8125rem, .55rem + .4cqw, 1rem); min-width: min(13em, calc(100% - 12px)); }
  .v21-grove-sheet .v21-grove-scene .gb-card b { font-size: 1.125em; }
}

/* Each person's own wren in the columns (the Grove without its scene art): on its twig with the wren art, one short
   line of words without it. */
.v21-tree-bird { display: block; width: 48px; height: 48px; margin-top: 2px; }
.v21-tree-bird svg { display: block; width: 100%; height: 100%; overflow: visible; }
.v21-tree-wren { font-size: .75rem; }

/* ---------- J111: an away tree, softly blurred and faded ---------- */
/* grove.js blurs (an SVG filter) and fades (opacity .5) the away person's tree and wren only; the name tag, the card and
   the line "Away" or "Unavailable this week" are HTML and stay sharp. Without the art the same on the column's leaf and
   bird. Reduced motion, Calm and High contrast: no blur, only the fade and the line. Nothing here moves. */
:root[data-motion="reduced"] .v21-grove-scene [data-away="on"],
:root[data-calm="on"] .v21-grove-scene [data-away="on"],
:root[data-theme="high_contrast"] .v21-grove-scene [data-away="on"] { filter: none; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .v21-grove-scene [data-away="on"] { filter: none; } }
.v21-tree.is-away .v21-tree-leaf, .v21-tree.is-away .v21-tree-bird { opacity: .5; filter: blur(1.6px); }
.v21-grove-cols.is-still .v21-tree.is-away .v21-tree-leaf, .v21-grove-cols.is-still .v21-tree.is-away .v21-tree-bird,
:root[data-motion="reduced"] .v21-tree.is-away .v21-tree-leaf, :root[data-motion="reduced"] .v21-tree.is-away .v21-tree-bird,
:root[data-calm="on"] .v21-tree.is-away .v21-tree-leaf, :root[data-calm="on"] .v21-tree.is-away .v21-tree-bird,
:root[data-theme="high_contrast"] .v21-tree.is-away .v21-tree-leaf, :root[data-theme="high_contrast"] .v21-tree.is-away .v21-tree-bird { filter: none; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .v21-tree.is-away .v21-tree-leaf, :root:not([data-motion="full"]) .v21-tree.is-away .v21-tree-bird { filter: none; }
}
.v21-tree.is-away .v21-tree-away { color: var(--ink); font-weight: 600; }
/* the short word on an away tree's name tag, in the sign in sticker's own warm tint */
.gb-grove .gb-tag .v21-tag-away { flex: none; margin-left: 2px; padding: 1px 6px; border-radius: 999px; font-size: .6875rem; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--warn) 18%, transparent); }
:root[data-theme="high_contrast"] .gb-grove .gb-tag .v21-tag-away { background: #fff; color: #000; box-shadow: 0 0 0 1px #000; }
/* A narrow tag (four or more people, or a phone): the name keeps its room and the word becomes a small warm dot. The
   blur and fade, the line in the card, the caption under the scene and the tree's name for a screen reader still say
   "Away" or "Unavailable" (the word stays in the tag for a screen reader too). */
.gb-grove.gb-many .gb-tag .v21-tag-away { font-size: 0; width: 8px; height: 8px; padding: 0; margin-left: 0; background: var(--warn); }
:root[data-theme="high_contrast"] .gb-grove.gb-many .gb-tag .v21-tag-away { background: #000; box-shadow: none; }
@container gbgrove (max-width: 560px) {
  .gb-grove .gb-tag .v21-tag-away { font-size: 0; width: 8px; height: 8px; padding: 0; margin-left: 0; background: var(--warn); }
  :root[data-theme="high_contrast"] .gb-grove .gb-tag .v21-tag-away { background: #000; box-shadow: none; }
}

/* ---------- J111: Fred's robot tree, in his own place after the people ---------- */
/* With the art: his plot sits after the people's trees in the same scene (grove.js); his tag, hit area, card and note
   are his own, so the people's name tags keep their places and their strip on a phone. */
.gb-grove .gb-fred-tag { position: absolute; transform: translate(-50%, 0); display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 6px;
  border-radius: 999px; background: var(--glass-2); 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);
  font-size: .75rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gb-grove .gb-fred-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; color: var(--brand-text); }
.gb-grove .gb-fred-hit { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 40% 40% 12px 12px; cursor: default; }
.gb-grove .gb-fred-hit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gb-grove .gb-fred-card { position: absolute; transform: translate(-50%, -100%); min-width: min(170px, calc(100% - 12px)); max-width: min(17em, calc(100% - 12px)); box-sizing: border-box;
  padding: 10px 12px; border-radius: 14px; pointer-events: none; background: var(--glass-2); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim), var(--shadow-2); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  font-size: .8125rem; color: var(--ink-2); opacity: 0; transition: opacity var(--t-small) var(--ease-out); }
.gb-grove .gb-fred-card.is-on { opacity: 1; }
.gb-grove .gb-fred-card b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: .9375rem; }
.gb-grove .gb-fred-card b .v21-robot-mark { color: var(--brand-text); }
.gb-grove .gb-fred-card .v21-fred-how { display: block; margin-top: 2px; }
.gb-grove .gb-fred-note { position: absolute; transform: translate(-50%, -100%); margin: 0; box-sizing: border-box; max-width: min(15em, calc(var(--gb-fred-w, 100%) - 8px)); padding: 6px 10px;
  border-radius: 12px; background: var(--glass-2); 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);
  font-size: .75rem; line-height: 1.1rem; font-weight: 600; color: var(--ink); text-align: center; pointer-events: none; }
/* J165 (29 Sep 2026, the Director: "freds name in the grove is in a weird place"): his tag stands in line with the
   people's. Four or more people: in the strip under the scene, the next tag along (grove.js places it under his tree;
   js\v21_grove.js marks it gb-fred-low where a two row strip leaves the lower row free after the last person's tag),
   never wider than his own part of the scene. The ellipsis keeps a long name inside it. */
.gb-grove .gb-fred-tag .gb-tag-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gb-grove.gb-many .gb-fred-tag { top: calc(100% + 8px) !important; min-height: 24px; padding: 0 8px 0 4px; font-size: .6875rem;
  max-width: calc(100% * (1 - var(--gb-people, 1)) * var(--gb-rows, 1) - 6px); }
.gb-grove.gb-many .gb-fred-tag.gb-fred-low { top: calc(100% + 8px + var(--v21-row, 30px) * (var(--gb-rows, 1) - 1)) !important; }
@container gbgrove (max-width: 560px) {
  /* a small screen: the people's tags move to the strip under the scene, and his goes there too, in line with theirs */
  .gb-grove .gb-fred-tag { top: calc(100% + 8px) !important; transform: translate(-50%, 0); min-height: 24px; padding: 0 8px 0 4px; font-size: .6875rem;
    max-width: calc(100% * (1 - var(--gb-people, 1)) * var(--gb-rows, 1) - 6px); }
  .gb-grove .gb-fred-note { font-size: .6875rem; line-height: 1rem; padding: 4px 8px; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 600px) { .gb-grove .gb-fred-tag { top: calc(100% + 8px) !important; transform: translate(-50%, 0); font-size: .6875rem; } }
}
:root[data-theme="high_contrast"] .gb-grove .gb-fred-tag, :root[data-theme="high_contrast"] .gb-grove .gb-fred-card,
:root[data-theme="high_contrast"] .gb-grove .gb-fred-note { background: #fff; color: #000; border: 2px solid #000; box-shadow: none; }
/* J165: his tag's edge as thin as the people's tags beside it in High contrast, so the row reads as one */
:root[data-theme="high_contrast"] .gb-grove .gb-fred-tag { border-width: 1px; }
/* his node lights blink softly (opacity only); never with reduced motion, in Calm or while quiet */
@keyframes v21-fred-blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.gb-grove .gb-robot-node.is-blink, .v21-robot-glyph .rg-node.is-blink { animation: v21-fred-blink 2.4s ease-in-out infinite; }
.gb-blink-1, .rg-blink-1 { animation-delay: .6s; }
.gb-blink-2, .rg-blink-2 { animation-delay: 1.2s; }
.gb-blink-3, .rg-blink-3 { animation-delay: 1.8s; }
:root[data-motion="reduced"] .gb-robot-node, :root[data-motion="reduced"] .rg-node,
:root[data-calm="on"] .gb-robot-node, :root[data-calm="on"] .rg-node,
:root[data-quiet="on"] .gb-robot-node, :root[data-quiet="on"] .rg-node { animation: none !important; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .gb-robot-node, :root:not([data-motion="full"]) .rg-node { animation: none !important; } }
/* the page's small robot mark beside his name */
.v21-robot-mark { display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v21-robot-mark .rm-dot { fill: currentColor; stroke: none; }

/* Without the art: his own glass column after the people's (the people's columns keep their own grid, so the Leaf Token
   piles under them keep their columns: the Grove body tells the strip how much width his column takes). */
.v21-grove { --v21-fred-col: 112px; --v21-fred-gap: 10px; }
.v21-grove-row { display: flex; align-items: stretch; gap: var(--v21-fred-gap); min-width: 0; }
.v21-grove-row > .v21-grove-cols { flex: 1 1 auto; min-width: 0; }
.v21-fred { flex: none; box-sizing: border-box; width: var(--v21-fred-col); display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0;
  padding: 16px 8px 14px; border-radius: var(--r-card); text-align: center; border-top: 3px solid var(--metal-silver-lo, #737B80); }
.v21-fred:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.v21-fred .meta { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.v21-fred-leaf { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 4px;
  background: color-mix(in srgb, var(--metal-silver, #A9B0B5) 24%, transparent); }
.v21-fred-name { display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; font-size: .9375rem; }
.v21-fred-name .v21-robot-mark { flex: none; color: var(--brand-text); }
.v21-fred-how { font-size: .75rem; }
.v21-fred-note { display: block; margin-top: 4px; padding: 4px 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-size: .75rem; font-weight: 600; }
.v21-robot-glyph { display: block; overflow: visible; }
.v21-robot-glyph .rg-metal { fill: var(--metal-silver, #A9B0B5); }
.v21-robot-glyph .rg-metal-lo { fill: var(--metal-silver-lo, #737B80); }
.v21-robot-glyph .rg-trace { fill: none; stroke: var(--metal-bronze, #A0683A); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.v21-robot-glyph .rg-chip-0 { fill: var(--flora-gum, #5A7D5E); }
.v21-robot-glyph .rg-chip-1 { fill: var(--flora-gum-juvenile, #8FAEA3); }
.v21-robot-glyph .rg-chip-2 { fill: var(--flora-fern, #6E9A45); }
.v21-robot-glyph .rg-node { fill: var(--fauna-lori-green, #3E9A4E); }
:root[data-theme="high_contrast"] .v21-fred { border-top: 4px solid #000; }
:root[data-theme="high_contrast"] .v21-fred-leaf { background: #fff; box-shadow: inset 0 0 0 2px #000; }
:root[data-theme="high_contrast"] .v21-robot-glyph .rg-metal, :root[data-theme="high_contrast"] .v21-robot-glyph .rg-metal-lo { fill: #fff; stroke: #000; stroke-width: .6; }
:root[data-theme="high_contrast"] .v21-robot-glyph .rg-trace { stroke: #000; }
:root[data-theme="high_contrast"] .v21-robot-glyph .rg-chip-0, :root[data-theme="high_contrast"] .v21-robot-glyph .rg-chip-1,
:root[data-theme="high_contrast"] .v21-robot-glyph .rg-chip-2 { fill: #0B2A10; }
:root[data-theme="high_contrast"] .v21-robot-glyph .rg-node { fill: #00367A; }
:root[data-theme="high_contrast"] .v21-fred-note { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
/* the Leaf Token piles under the Grove stand under the people's trees only, so each pile keeps its own tree */
/* J402: Fred's own pile is now the strip's last pile, under his robot tree, so the strip takes the full width (no reserved slot). */
.v21-grove.has-fred > .v21-lp { margin-right: 0; }
/* The wide Grove with the art: the scene stops at 78 percent of the window's height, centred, with Fred's plot inside
   that width (--v21-grove-tw). The strip takes the scene's own width and keeps Fred's part of it (--v21-fred-frac) as
   room on its right, so the piles take exactly the people's part. More specific than v21_leafpiles.css, which loads
   later. (The strip has no padding of its own.) */
@media (min-width: 600px) {
  .v21-grove-sheet .v21-grove.has-fred-art > .v21-lp.is-art { box-sizing: border-box; max-width: calc(78vh * var(--v21-grove-tw, 960) / 360);
    margin-left: auto; margin-right: auto; padding-right: 0; }
}

/* ---------- F1 Wren: the wren of the person at this seat on the Clear panel (160 px, 110 px on a phone) ---------- */
.v21-wren { display: grid; justify-items: center; gap: 4px; max-width: 100%; }
.v21-wren-art { display: block; width: 160px; height: 160px; }
.v21-wren-art svg { display: block; width: 160px; height: 160px; overflow: visible; }
.v21-wren-words { margin: 0; max-width: 420px; color: var(--ink-2); font-size: .9375rem; }
.v21-wren-credit { margin: 0; }
.v21-wren-name { min-height: 36px; }
.v21-wren-tip { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.v21-wren-tip svg { display: block; width: 32px; height: 32px; flex: none; }

/* ---------- A2 Weekly Honours ---------- */
/* The ribbon on an avatar at 32 px and up: a small dot in the honour's ribbon colour (the glyph when the art is in). */
.v21-hon { --v21-ribbon: var(--brand-text); position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--v21-ribbon); box-shadow: 0 0 0 2px var(--solid); pointer-events: none; }
.v21-hon.is-art { display: grid; place-items: center; width: 14px; height: 14px; background: var(--solid); color: var(--v21-ribbon); box-shadow: 0 0 0 1px var(--edge-strong); }
.v21-hon.is-art svg { width: 10px; height: 10px; }
.v21-hon[data-honour="wordsmith"] { --v21-ribbon: var(--fauna-wren-blue-deep, #1F4F8A); }
.v21-hon[data-honour="eagle_eye"] { --v21-ribbon: var(--flora-wattle-deep, #8A6200); }
.v21-hon[data-honour="bundler"] { --v21-ribbon: var(--flora-bark, #7A5E47); }
.v21-hon[data-honour="all_rounder"] { --v21-ribbon: var(--flora-gum, #4A6B4E); }
.v21-hon[data-honour="teacher"] { --v21-ribbon: var(--flora-wild-violet, #6E5BA8); }
.v21-hon[data-honour="good_mate"] { --v21-ribbon: var(--fauna-lori-orange, #B4541A); }
.v21-hon[data-honour="trailblazer"] { --v21-ribbon: var(--fauna-kooka-blue, #2F6E9E); }
.v21-hon[data-honour="field_naturalist"] { --v21-ribbon: var(--flora-fern, #3F7A4A); }
.v21-hon[data-honour="warm_word"] { --v21-ribbon: var(--flora-waratah, #A8203F); }
.v21-hon[data-honour="fixer"] { --v21-ribbon: var(--metal-brass-lo, #7D5F22); }
:root[data-theme="high_contrast"] .v21-hon { --v21-ribbon: #000; box-shadow: 0 0 0 2px #fff; }
.av-sm .v21-hon, .v21-hon-cols .v21-hon { display: none; }

/* Three equal columns, never a podium (GB-61). */
.v21-hon-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.v21-hon-col { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 14px 8px; border-radius: var(--r-card); text-align: center; 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); }
.v21-hon-col .meta { margin: 0; overflow-wrap: anywhere; }
.v21-hon-title { font-size: .9375rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.v21-hon-who { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: .8125rem; color: var(--ink-2); }
.v21-hon-emb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.v21-hon-emb.is-art { background: transparent; }
.v21-hon-emb svg { display: block; max-width: 100%; max-height: 100%; }
.v21-hon-me .v21-hon-emb { width: 96px; height: 96px; flex: none; }
.v21-hon-me { display: flex; align-items: center; gap: 14px; }
.v21-hon-me p { margin: 4px 0 0; }
.v21-hon-earlier { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v21-hon-earlier li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.v21-hon-card { display: grid; gap: 12px; min-width: 0; }   /* inside the core's moment card, which is the glass */
.v21-hon-card h2 { margin: 0; font-size: 1.0625rem; line-height: 1.5rem; }
.v21-hon-card > .meta { margin: 0; }
.v21-hon-card .row { display: flex; justify-content: flex-end; }
:root[data-theme="high_contrast"] .v21-hon-col { border: 2px solid #000; box-shadow: none; background: #fff; }

/* ---------- phones (XS, 360 to 599): no horizontal scroll ---------- */
@media (max-width: 599px) {
  .v21-grove-cols { --v21-gap: 6px; }
  .v21-tree { padding: 12px 6px; }
  .v21-tree-leaf { width: 52px; height: 52px; border-radius: 16px; }
  .v21-hon-cols { gap: 6px; }
  .v21-hon-col { padding: 10px 4px; }
  .v21-hon-emb { width: 52px; height: 52px; }
  .v21-hon-me .v21-hon-emb { width: 72px; height: 72px; }
  .v21-hon-who .av { display: none; }
  .v21-wren-art, .v21-wren-art svg { width: 110px; height: 110px; }
  .v21-wren-words { font-size: .875rem; }
  .v21-tree-bird { width: 40px; height: 40px; }
  /* J111: Fred's column is narrower, and the people's columns may be too, so three people and Fred share one row */
  .v21-grove { --v21-fred-col: 80px; --v21-fred-gap: 6px; }
  .v21-fred { padding: 12px 4px; }
  .v21-fred-leaf { width: 52px; height: 52px; border-radius: 16px; }
  /* the long "grows with" line would wrap to about eight lines in his 80 px column: the column's name and the caption
     under the Grove still say it */
  .v21-fred .v21-fred-how { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .v21-grove-row .v21-grove-cols { grid-template-columns: repeat(auto-fit, minmax(max(64px, calc((100% - (var(--v21-cols) - 1) * var(--v21-gap)) / var(--v21-cols) - 1px)), 1fr)); }
}

/* J132 (28 Sep 2026): the colour {ai} bought and wears, on his tag in the scene and on his column without the art. */
.gb-grove .gb-fred-tag.v21-fred-worn { box-shadow: 0 0 0 2px var(--v21-fred-c); }
.gb-grove .gb-fred-tag.v21-fred-worn .gb-fred-mark, .v21-fred.v21-fred-worn .v21-robot-mark { color: var(--v21-fred-c); }
.v21-fred.v21-fred-worn { box-shadow: inset 0 0 0 2px var(--v21-fred-c); }
:root[data-quiet="on"] .v21-fred-worn { box-shadow: none !important; }

/* J134 (28 Sep 2026): each tree grows a little with every point inside its stage. With the art the scene's trees are
   scaled about their foot in js\v21_grove.js (the SVG transform attribute, eased there, never under reduced motion or
   Calm). Without the art, each column's leaf and {ai}'s glyph grow inside their own box: --v21-grow (0.6 to 1, written
   through the CSSOM) scales the picture from its foot, so it never leaves its box, easing gently when it changes. */
.v21-tree-leaf > svg, .v21-fred-leaf > svg { transform: scale(var(--v21-grow, 1)); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
:root[data-motion="reduced"] .v21-tree-leaf > svg, :root[data-motion="reduced"] .v21-fred-leaf > svg,
:root[data-calm="on"] .v21-tree-leaf > svg, :root[data-calm="on"] .v21-fred-leaf > svg { transition: none; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .v21-tree-leaf > svg, :root:not([data-motion="full"]) .v21-fred-leaf > svg { transition: none; } }
