/* ════════════════════════════════════════════════════════════════════════════
   ATLAS V6 — TODAY COMMAND SURFACE · enterprise polish T2b  (css/v6-t2b-today.css)
   ────────────────────────────────────────────────────────────────────────────
   Surface : #v6-today (data-view="home") — the executive home page only.
   Dated   : 2026-06-29 · LOADS LAST, immediately before css/v6-lock.css.
   Fixes Codex findings F1 (floating cards over a dead cream band) + F7 (three
   dark panels compete). Sibling sheet css/v6-t2-today.css owns the Decision-Queue
   grid + empty-state craft; this sheet ONLY adds the full-height composition and
   the dark-panel hierarchy. No markup/JS/voice-id changes. One gold accent, zero
   cyan/teal. No body scroll — internal panel bodies absorb overflow.

   F1 — WHY the dead band exists (verified in the live DOM):
     .canvas#main-content is `flex:1; display:flex; flex-direction:column`
     (bundle-base.css) and the voice dock (#hint-bar.quick-bar, flex-shrink:0)
     is an in-flow sibling BELOW it inside .main-col — so the canvas already
     reserves the dock's height. #view-home is `display:contents` (training.css),
     so #v6-today is effectively a direct flex CHILD of .canvas. But base
     v6-today.css sets `#v6-today{display:block}` with no flex-grow, so it sizes
     to content (~787px) inside a ~920px work area → a dead band below it, and the
     grid (sized to its tallest column) never reaches the work-area floor.
     Fix: make #v6-today fill the canvas, make the grid fill #v6-today (minus the
     preserved page header), and let each column's TERMINAL card consume the slack
     with an intentional internal layout. Stretching never increases the tallest
     column, so the 1920×1080 no-scroll frame holds.

   Scope guard: the height-fill block is gated to `min-width:1281px` — the same
     breakpoint where the base 3-column single-row layout applies (base switches
     to 2-col at max-width:1280px). Below that, tablet/mobile stacking + scroll is
     left untouched (no forced fill that would squish the stacked layout).
   ════════════════════════════════════════════════════════════════════════════ */


/* ── F1 · FULL-HEIGHT COMMAND SURFACE (desktop no-scroll zone only) ──────────── */
@media (min-width: 1281px) {

  /* #v6-today fills the canvas work area and becomes a vertical flex column:
     [page header (auto)] over [grid (fills)]. (#overnight-recap is hidden by
     v6-lock !important, so it never claims a flex slot.) */
  #v6-today {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Page header (eyebrow + H1 + lede + the two buttons) is PRESERVED at its
     natural height — never grows, never shrinks. */
  #v6-today > .v6-today-head { flex: 0 0 auto; }

  /* The grid grows to fill the remaining height; minmax(0,1fr) forces its single
     row to exactly the grid height (not its content height) so align-items:stretch
     can drive every column to full height. min-height:0 keeps overflow inside. */
  #v6-today > .v6-today-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
  }

  /* Each column is a full-height flex column that can shrink for overflow safety. */
  #v6-today .v6-today-grid > .v6-today-col { min-height: 0; }


  /* ── Terminal cards consume the column slack with intent ──────────────────── */

  /* COL 1 — Decision Queue grows; its list anchors top with comfortable row
     rhythm so a short queue reads full, not a padded void. */
  #v6-today .v6-today-col > article[aria-label="Decision Queue"] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #v6-today #v6-decision-queue {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  /* Airier rows so 3–4 items occupy the taller body as deliberate spacing. */
  #v6-today #v6-decision-queue .v6-decision-item { padding-top: 15px; padding-bottom: 15px; }

  /* COL 2 — Operating Graph grows; its Signal→Decision→Action→Audit flow centers
     vertically as one editorial block (robust to the JS-injected footnote, since
     align-content centers the whole row group regardless of child count). */
  #v6-today .v6-today-col > .v6-ops {
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
  }

  /* COL 3 — Trust Rail grows; its TRUST / RAG SOURCES / LAST AUDIT metric band
     anchors to the BOTTOM so the panel fills gracefully (the items + line sit at
     the top, the KPI band pins to the floor). */
  #v6-today .v6-today-col.col-trust > .v6-trust-rail {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #v6-today .v6-today-col.col-trust > .v6-trust-rail .v6-trust-kpis { margin-top: auto; }
}


/* ── F7 · DARK-PANEL HIERARCHY (all viewports — purely cosmetic, no layout) ────
   The three dark slabs (Ask Atlas · Operating Graph · Trust Rail) stay dark per
   the locked spec — they are NOT lightened. Instead Ask Atlas reads PRIMARY (its
   gold "Start governed action" CTA stays the brightest, single gold focal point,
   now reinforced by a warm gold-tinted edge) while Operating Graph + Trust Rail
   RECEDE: quieter/smaller headings, no competing gold, gently lowered emphasis.
   Every text colour below holds ≥4.5:1 on the dark navy surface. */

/* Ask Atlas → primary: a faint warm edge concentrates the one gold accent here.
   (3-class selector beats the base/t2 `.v6-panel.dark` border rule; shadow stays
   owned by v6-lock.) */
.v6-panel.dark.v6-ask { border-color: rgba(193, 138, 37, .30); }

/* Operating Graph → secondary: smaller heading, and its gold flow-arrows + the
   "Open Trust Center" link drop their gold so they no longer rival Ask Atlas. */
.v6-ops h3 { font-size: 18px; line-height: 1.3; }
.v6-ops-arrow { color: rgba(255, 255, 255, .38); }
.v6-ops-link { color: #b9c8d4; border-bottom-color: transparent; }
.v6-ops-link:hover { color: #d4e1ec; border-bottom-color: #d4e1ec; }

/* Trust Rail → tertiary: quieter title weight, calmer KPI values (still legible),
   no accent to pull the eye off Ask Atlas. */
.v6-trust-rail h3 { font-weight: 750; }
.v6-trust-rail .v6-trust-kpi strong { color: #cdd9e2; }
