/*
 Tenura People design system.

 Apple Human Interface Guidelines manner, Tenura palette: forest green brand,
 soft green highlight and warm paper backgrounds, with the system blue as the
 control accent (Product Owner, 2026-10-10). Every colour, radius, size
 and shadow comes from tokens.css, loaded before this file; components never
 use literal colours. Each component has one definition here, shared by
 every page (design system, 2026-10-14).

 One stylesheet per area (FW-UI-174, M00 of docs/design/apple-system/
 MIGRATION-PLAN.md), loaded after tokens.css in this order: base.css (base,
 typography) · controls.css · overlays.css · shell-frame.css · table.css ·
 window.css · form-designer.css · org-chart.css · theme-manager.css. A later
 file wins over an earlier one; each card of the plan owns its own file.
*/

/* Values from docs/design/employee-profile.html, the reference of every component. */
:root{font-family:var(--font-text);color:var(--label);background:var(--page);font-synthesis:none;line-height:1.4;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* ---------- Base ---------- */
*{box-sizing:border-box}
body{margin:0;background:var(--page);font-size:var(--text-base)}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:where(button,input,select,textarea){font:inherit;color:inherit}
button,a,summary,input,select{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
/* A container a script gives the focus so the keyboard starts inside it -
   a row's editor, a caption opened by More, a message (tabindex -1) - is
   no control and draws no focus ring: Safari drew it as two blue stripes
   across the row's editor, its sides cut by the editor's edge (FW-UI-236;
   the PO 2026-11-21, R33506d: «и вот они синие полосы тут проявились»). */
:not(a,button,input,select,textarea,summary,[role=button],[role=link],[role=tab],[role=option],[role=menuitem],[role=menuitemradio],[role=menuitemcheckbox],[role=treeitem],[role=gridcell],[role=row],[role=checkbox],[role=radio],[role=switch],[role=slider],[role=combobox])[tabindex="-1"]:focus-visible{outline:none}
[hidden]{display:none!important}
::selection{background:var(--accent-soft-strong)}
.skip{position:fixed;left:1rem;top:-6rem;background:var(--accent);color:var(--on-accent);padding:.6rem 1rem;border-radius:var(--r-md);z-index:100}
.skip:focus{top:1rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Typography ---------- */
h1,h2,h3,p{overflow-wrap:break-word}
h1,h2,h3{font-weight:600;letter-spacing:0;line-height:1.25;color:var(--label)}
h1{font-size:var(--text-xl);margin:0;text-wrap:balance}
h2{font-size:var(--text-xl);margin:0 0 10px}
h3{font-size:var(--text-lg)}
/* Section label: sidebars, menus and sheet sections (11px, tertiary, sentence case). */
.eyebrow,.kicker{font-size:var(--text-xs);font-weight:600;color:var(--tertiary);margin:0 0 6px}
/* Group title: above a group of rows in a pane (12px, muted). */
.muted{color:var(--label-2)}
.lede{color:var(--label-2);font-size:var(--text-base);max-width:680px;line-height:1.5;margin:6px 0 0}
.hint,.field-note{color:var(--tertiary);font-size:var(--text-xs);font-weight:400}
.num{font-variant-numeric:tabular-nums}

/* ---------- Motion ---------- */
@media(prefers-reduced-motion:no-preference){
 a,button,input,select,summary,.tool{transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s}
}
/* While a page is being shown, nothing fades: what its scripts set as it opens - the sidebar's focus, a waiting Save,
   a restored choice - stands at once, never as a change seen after the page appeared (FW-UI-219; the PO 2026-11-19
   «когда окна открываются/закрываются - получается мелькание»). shell.js marks the page shown after its first frames. */
html:not([data-shown]) *,html:not([data-shown]) *::before,html:not([data-shown]) *::after{transition:none!important}
