/* KIT-LEGACY 2026-11-29: kit/legacy.css, the ONE legacy bridge (design grammar contract section 6.1; owned by the layout
   family; actions and details send their bridge lines as asks). It maps an Old class a New page still draws onto the
   kit's tokens, under `.ee-look-new`, inside `@layer legacy` (the lowest layer: every part rule outranks it). It is the
   only place an `!important` may stand outside an Old stylesheet (checker X-02): an !important declaration in a layer
   beats every unlayered one, which is the one way a bridge can undo an Old stylesheet's !important.
   The Old global `footer,header,main{padding-left:240px}` (main.css) is undone in main.css itself, inside the New frame,
   at the same weight: here it would need !important, which would also outrank every part's own header padding. */
@layer legacy {
/* ONE TYPE FAMILY (design grammar contract C21, X-05's sibling: one family on every New surface; round 3 review, r8
   resident portal: the portal drew the kit's family while the staff pages drew MDB's `body{font-family:Roboto}`, an
   unlayered Old element rule, so the same header part wore two faces). A New document's text reads the kit's ONE family
   token (--ee-font-family, BASE: the brand face, self-hosted; a product row swaps it), staff and portal alike; every part
   inherits it (font-family: inherit). */
body:where(.ee-look-new, .ee-look-new *) {
  font-family: var(--ee-font-family) !important;
}
/* the page header's h1 (the page's one title, kit/parts/layout.css PAGE HEADER): the Old global stylesheets give every
   h1 a margin (Bootstrap's reboot, main.css), unlayered, which outranks the part's own margin: 0 */
[data-ee-page-banner] h1:where(.ee-look-new, .ee-look-new *) {
  margin: 0 !important;
}
/* ...and the kit tail's p / h reset (font-size and color revert, unlayered, for the Old global sizes) sends it to the
   browser's 2em: the title keeps its own type role's size and ink (the part's --_ee-hd-title-size, per width) */
/* ...and MDB's `h1{font-weight:300}` (unlayered; the validator measured the title at weight 300 on 79 pages, contract
   650): the title keeps its type role's weight, leading and tracking too */
[data-ee-page-banner] h1.ee-page-header-title:where(.ee-look-new, .ee-look-new *) {
  font-size: var(--_ee-hd-title-size) !important;
  font-weight: var(--ee-type-page-title-weight) !important;
  line-height: var(--ee-type-page-title-lh) !important;
  letter-spacing: var(--ee-type-page-title-track) !important;
  color: var(--ee-type-page-title-ink) !important;
}
/* THE ONE FOCUS RING ON THE ACTION PARTS (contract C26: 3 px interactive outline, offset 2 on a free control, inset -3 on a
   menu item; actions' ask L1): the Old global sheets (MDB's `button:focus{outline:0!important}`) strip it, unlayered and
   !important; a layered !important is the one declaration that outranks them, and it is drawn only on :focus-visible */
:is(button.ee-btn, a.ee-btn, button.ee-fav, button.ee-datatable-action-menu-trigger):focus-visible:where(.ee-look-new, .ee-look-new *) {
  outline: var(--ee-focus-w) solid var(--ee-focus-color) !important;
  outline-offset: var(--ee-focus-offset) !important;
}
.ee-popmenu :is(button, a)[role="menuitem"]:focus-visible:where(.ee-look-new, .ee-look-new *) {
  outline: var(--ee-focus-w) solid var(--ee-focus-color) !important;
  outline-offset: var(--ee-focus-offset-inset) !important;
}
}
/* /KIT-LEGACY */
