/* Shared look for the suite shell and the top bar every module page shows (same structure as DBOX Suite).
   Light-a-Sky brand (light-a-sky-logobook.pdf): Ink #00091C, Orange #FF5F45, White #FFFFFF; Klavika Bold UPPERCASE,
   substituted on the web by Saira. The suite is dark, Ink-first.
   Tokens are prefixed --s- so module stylesheets can define their own without clashing.
   Layout: a slim top bar (home, current module, menu), then the page in a centred column. */
@import url("https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700&display=swap");

:root {
  /* Official brand colours */
  --las-ink: #00091C;
  --las-orange: #FF5F45;
  --las-white: #FFFFFF;
  /* Supporting shades, from existing Light-a-Sky tools and documents (confirmed 2026-10-30) */
  --las-ink-raised: #0B1830;
  --las-ink-line: #1F3554;
  --las-on-ink: #EAF0F8;
  --las-on-ink-dim: #8CA0BC;
  --las-ink-soft: #2E3648;
  --las-rule: #E2E4E9;
  --las-orange-text: #D1402A;
  --las-orange-tint: #FFECE8;
  --las-font-display: "Saira", "Klavika", system-ui, sans-serif;
  --las-font-body: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Suite tokens, built from the brand */
  --s-bg: var(--las-ink);
  --s-surface: var(--las-ink-raised);
  --s-sunk: #071224;
  --s-line: var(--las-ink-line);
  --s-ink: var(--las-on-ink);
  --s-muted: var(--las-on-ink-dim);
  --s-accent: var(--las-orange);
  --s-accent-ink: var(--las-ink);
  --s-accent-soft: #3A1E22;
  --s-bad: #FF8B7B;
  --s-bad-soft: #3E1A16;
  --s-warn-soft: #3A2613;
  --s-bar: var(--las-ink);
  --s-bar-ink: var(--las-on-ink);
  --s-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
  --s-font: var(--las-font-body);
  --s-font-display: var(--las-font-display);
  --s-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

[hidden] { display: none !important; }

/* Top bar */
.suite-bar { background: var(--s-bar); color: var(--s-bar-ink); font-family: var(--s-font); font-size: 14px; position: relative; z-index: 30;
  border-bottom: 1px solid var(--s-line);
  padding-top: env(safe-area-inset-top, 0px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.suite-bar__in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 52px; }
.suite-bar a { color: inherit; text-decoration: none; }
.suite-bar__home { font-family: var(--s-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--s-accent) !important;
  white-space: nowrap; display: inline-flex; align-items: flex-end; gap: 10px; }
.suite-bar__logo { height: 26px; width: auto; display: block; }
.suite-bar__sep { opacity: .4; }
.suite-bar__here { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.suite-bar__spacer { flex: 1; }
.suite-bar__menu-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 1px solid var(--s-line);
  border-radius: 99px; padding: 3px 5px 3px 14px; font: inherit; font-weight: 500; cursor: pointer; min-height: 36px; }
.suite-bar__menu-btn:hover { background: var(--s-surface); }
.suite-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--s-accent); color: var(--s-accent-ink); overflow: hidden; flex: none; }
.suite-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suite-menu { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% - 2px); width: min(320px, calc(100vw - 32px));
  background: var(--s-surface); color: var(--s-ink); border: 1px solid var(--s-line); border-radius: 14px; box-shadow: var(--s-shadow); padding: 8px; }
.suite-menu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--s-line); margin-bottom: 6px; }
.suite-menu__who strong { display: block; overflow-wrap: anywhere; }
.suite-menu__who span { color: var(--s-muted); font-size: 13px; overflow-wrap: anywhere; }
.suite-menu__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); font-weight: 600; padding: 8px 10px 4px; }
.suite-menu a, .suite-menu button.suite-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; color: var(--s-ink);
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.suite-menu a:hover, .suite-menu button.suite-menu__item:hover { background: var(--s-sunk); }
.suite-menu a[aria-current="page"] { background: var(--s-accent-soft); }
.suite-tile { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--s-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .02em; flex: none; background: var(--s-accent-soft); color: var(--s-accent); }
.suite-tile.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.suite-bar :focus-visible, .suite-menu :focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }
.suite-role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 99px; background: var(--s-sunk); color: var(--s-muted) !important; }

/* Shell pages (home and every module page) */
.shell { margin: 0; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); font-size: 15px; line-height: 1.5; min-height: 100vh; }
.shell * { box-sizing: border-box; }
.shell-main { max-width: 1240px; margin: 0 auto; padding-block: 32px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 20px; }
.shell h1, .shell h2, .shell h3 { font-family: var(--s-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--las-white); margin: 0; }
.shell h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; text-wrap: balance; }
.shell h2 { font-size: 13px; letter-spacing: .14em; color: var(--s-muted); margin-top: 12px; }
.shell h3 { font-size: 15px; letter-spacing: .05em; }
.shell .lede { color: var(--s-muted); margin: 6px 0 0; max-width: 62ch; font-size: 16px; }
.shell .eyebrow { font-family: var(--s-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--s-accent); margin-bottom: 8px; }
.shell-main a { color: var(--s-accent); }
.shell button, .shell input, .shell select { font: inherit; color: inherit; }
.shell :focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }
.s-btn { border: 1px solid var(--s-line); background: var(--s-surface); border-radius: 10px; padding: 8px 14px; font-weight: 500; min-height: 40px; cursor: pointer; }
.s-btn:hover { background: var(--s-sunk); }
.s-btn.primary { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-accent-ink); font-weight: 600; }
.s-btn.primary:hover { filter: brightness(1.06); }
.s-input { border: 1px solid var(--s-line); background: var(--s-sunk); border-radius: 10px; padding: 9px 12px; min-height: 40px; min-width: 0; }
.s-notice { background: var(--s-surface); border-left: 3px solid var(--s-accent); border-radius: 4px 10px 10px 4px; padding: 12px 16px; font-size: 14.5px; max-width: 760px; }
.s-notice strong { color: var(--s-accent); }
.s-notice.bad { background: var(--s-bad-soft); border-left-color: var(--s-bad); }
.s-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 14px; padding: 18px; }
.s-card p { color: var(--s-muted); font-size: 14px; margin: 6px 0 0; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.s-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--s-ink); color: var(--s-bg);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--s-shadow); }
