/* Cali Studio top bar, footer, page title and section bar (Winson, 18 Nov 2026: one look across all apps).
   SOURCE: calistudio-hq intranet/src/shell/ (shell.css, shell.mjs, shell.js). This is a self-contained subset of shell.css: the header
   (logo, Apps | Intranet | Admin pills, the first-name menu), the app's own second row, the footer, the page title (.sh-title) and the
   black section bar (.sec). KEEP IN STEP with the source. Tokens are scoped to the shared pieces so nothing here touches an app's own
   colours. Light is the default; the dark tokens are at the end of the shared pieces. */
.sh-head,.sh-foot,.sh-title,.sh-page,.sec{--bg:#ffffff;--ink:#111214;--mut:#5d6168;--faint:#8a8f96;--rule:#d7d8da;--panel:#f3f3f1;--bar:#111214;--barink:#ffffff;--accent:#f2b705;--accentink:#111214;--r:5px;--title:'Noto Sans',system-ui,sans-serif;--body:'Roboto Condensed','Arial Narrow',system-ui,sans-serif;--wide:1180px;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:40px}
.sh-head,.sh-foot{box-sizing:border-box;color:var(--ink);line-height:1.2;text-align:left}
.sh-head *,.sh-head *::before,.sh-head *::after,.sh-foot *{box-sizing:border-box}
.sh-head a{color:inherit}
.sh-head [hidden]{display:none!important}
.sh-head :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* ---- header: logo, switcher, who ---- */
.sh-head{border-bottom:1px solid var(--rule);background:var(--bg);font-family:var(--body)}
.sh-in{max-width:var(--wide);margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.sh-top{display:flex;align-items:center;gap:var(--s4);height:60px}
.sh-logo{display:inline-block;line-height:0;text-decoration:none;flex:none}
.sh-logo img{display:block;height:28px;width:auto}
.sh-sw{display:flex;border:1px solid var(--rule);border-radius:99px;padding:2px;gap:2px;flex:none}
.sh-sw a{font-family:var(--title);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:0 12px;min-height:28px;border-radius:99px;color:var(--mut);text-decoration:none;display:inline-flex;align-items:center}
.sh-sw a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.sh-who{margin-left:auto;display:flex;align-items:center;gap:var(--s3);font-family:var(--title);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.sh-who[data-state="wait"]{visibility:hidden}
.sh-menu{position:relative}
.sh-name{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:6px 0;margin:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--ink);font-weight:800;cursor:pointer}
.sh-name:hover{opacity:.8}
.sh-caret{width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:4.5px solid currentColor;transition:transform .15s}
.sh-name[aria-expanded="true"] .sh-caret{transform:rotate(180deg)}
.sh-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:160px;background:var(--bg);border:1px solid var(--rule);border-radius:var(--r);box-shadow:0 10px 28px -12px rgba(0,0,0,.4);padding:4px;display:flex;flex-direction:column}
.sh-panel[hidden]{display:none}
.sh-panel button{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);width:100%;min-height:36px;padding:0 var(--s3);background:none;border:0;border-radius:3px;font:inherit;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);text-align:left;cursor:pointer}
.sh-panel button:hover,.sh-panel button:focus-visible{background:var(--panel)}
.sh-panel button[aria-checked="true"]::after{content:"";width:5px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.sh-sep{height:1px;background:var(--rule);margin:4px 0}
.sh-act{background:none;border:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--mut);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sh-act:hover{color:var(--ink)}

/* ---- secondary row: each site's own sections, same height, font and active underline everywhere ---- */
.sh-sub{border-top:1px solid var(--rule)}
.sh-sub .sh-in{display:flex;align-items:stretch;gap:var(--s5);height:44px;overflow-x:auto;scrollbar-width:none}
.sh-sub .sh-in::-webkit-scrollbar{display:none}
.sh-tab{font-family:var(--title);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mut);text-decoration:none;display:inline-flex;align-items:center;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;flex:none}
.sh-tab:hover{color:var(--ink)}
.sh-tab[aria-current="page"]{color:var(--ink);border-bottom-color:var(--ink)}
.sh-tools{display:flex;align-items:center;gap:var(--s3);flex:1 1 auto;min-width:0}
.sh-search{flex:1 1 220px;min-width:0;margin:0}
.sh-search input{width:100%;height:32px;border:1px solid var(--rule);border-radius:99px;padding:0 var(--s4);background:var(--bg);color:var(--ink);font:400 14px var(--body)}
.sh-search input::placeholder{color:var(--faint)}
.sh-sub .btn{min-height:32px;padding:0 var(--s3);font-size:10px}

/* ---- footer: the two gyms ---- */
.sh-foot{border-top:1px solid var(--rule);margin-top:var(--s6);font-family:var(--body);font-size:12px;color:var(--mut)}
.sh-foot .sh-in{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s5);justify-content:space-between;padding-block:var(--s4) var(--s5)}

/* ---- page frame and title ---- */
.sh-page{max-width:var(--wide);margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-bottom:var(--s5)}
.sh-title{font-family:var(--title);font-size:clamp(26px,4vw,38px);font-weight:800;line-height:1.05;letter-spacing:-.01em;text-transform:uppercase;margin:var(--s5) 0 var(--s1);text-wrap:balance}

/* ---- section bar (the black bars) ---- */
.sec{margin:var(--s5) 0 var(--s3)}
.sec{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);background:var(--bar);color:var(--barink);padding:7px 12px;border-radius:var(--r);font-family:var(--title);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border:0}
.sec span+span{font-size:10px;font-weight:600;letter-spacing:.12em;opacity:.8;text-align:right}

/* ---- dark: the per-app Light / Dark choice (Winson, 18 Nov 2026), chosen in the profile menu and kept in localStorage cs-theme-<site>. Light is the default.
   These are the dark tokens of shell.css (html[data-theme="dark"]). ---- */
html[data-theme="dark"]{color-scheme:dark}
/* the palette a page's own hardcoded colours switch to: var(--d-ink, #111) is #111 in light and the dark ink here */
html[data-theme="dark"]{--d-bg:#14161a;--d-surf:#1b1e22;--d-soft:#23262b;--d-ink:#ecece8;--d-mut:#a9aeb5;--d-faint:#8b9199;--d-rule:#363a40;--d-bar:#2c3036;--d-barink:#f4f4f1;--d-ok:#4cc38a;--d-ok-bg:#1d3a2e;--d-err:#ff8a80;--d-err-bg:#3d2222;--d-warn:#e8b04a;--d-warn-bg:#3b3320;--d-info:#8cc2ee;--d-info-bg:#1d3347;--d-ai:#b6b0f5;--d-ai-bg:#2a2850}
html[data-theme="dark"] .sh-head,html[data-theme="dark"] .sh-foot,html[data-theme="dark"] .sh-title,html[data-theme="dark"] .sh-page,html[data-theme="dark"] .sec{--bg:#14161a;--ink:#ecece8;--mut:#a9aeb5;--faint:#8b9199;--rule:#363a40;--panel:#1d2024;--bar:#2c3036;--barink:#f4f4f1;--accent:#f2b705;--accentink:#111214}
html[data-theme="dark"] .sh-logo img{filter:brightness(0) invert(1)} /* the logo is navy on clear: white in dark */

@media (max-width:560px){
  .sh-top{gap:var(--s3);height:54px}
  .sh-logo img{height:22px}
  .sh-sw a{padding:0 8px;font-size:9px;min-height:26px;letter-spacing:.06em}
  .sh-who{gap:var(--s2);font-size:9px;letter-spacing:.06em}
  .sh-sub .sh-in{gap:var(--s3)}
  .sh-tab{font-size:9.5px;letter-spacing:.08em}
}
