/* The staff website's own layout. Pages built from the SharePoint web parts bring their own
   styles (the .clc classes) and follow the same light/dark setting. */
:root {
  --bg: #f6f5f2; --surface: #ffffff; --border: rgba(11,11,11,0.10);
  --text: #0b0b0b; --text2: #52514e; --accent: #2a78d6; --accent-ink: #ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121211; --surface: #1b1a19; --border: rgba(255,255,255,0.10);
  --text: #f0efec; --text2: #c3c2b7; --accent: #3987e5;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.45;
}
a { color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sw-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.sw-brand { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.sw-brand span { font-weight: 400; color: var(--text2); }
.sw-brand-big { font-size: 14px; color: var(--text2); }
.sw-user { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
.sw-user-name { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-link { font: inherit; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }

.sw-main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.sw-main .clc { background: transparent; }
.sw-main .clf-card { background: var(--surface); }
.sw-crumbs { margin: 0 0 14px; font-size: 14px; }
.sw-crumbs a { text-decoration: none; }
.sw-crumbs a::before { content: "← "; }
.sw-title { font-size: 24px; font-weight: 600; margin: 8px 0 16px; }
.sw-note { color: var(--text2); }

.sw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sw-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 96px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); text-decoration: none;
}
.sw-tile:hover { border-color: var(--accent); }
.sw-tile-title { font-weight: 600; font-size: 17px; }
.sw-tile-blurb { color: var(--text2); font-size: 14px; }

.sw-signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sw-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px; text-align: center;
}
.sw-card h1 { font-size: 28px; margin: 4px 0 8px; }
.sw-card p { color: var(--text2); margin: 0 0 20px; }
.sw-button {
  font: inherit; font-size: 16px; font-weight: 600; width: 100%; min-height: 48px; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 8px;
}
.sw-fatal { max-width: 480px; margin: 40px auto; padding: 0 16px; }
@media (max-width: 480px) {
  .sw-header { padding: 10px 16px; }
  .sw-main { padding: 14px 16px 32px; }
}
