/* Prizdale School Suite - chairman programmes dashboard.
   Signature palette: Montblanc turquoise / teal band, gold hairline, mint page.
   These are the same tokens the Prizdale NewsDesk uses, so the whole suite
   reads as one product. Light is the default; Night is one click away.
   Headings use a local serif stack - no external font requests, so the strict
   CSP (style-src 'self') stays as tight as it is. */

:root {
  --teal-deep: #0e7490;
  --teal-mid: #0891b2;
  --teal-bright: #06b6d4;
  --teal-light: #67e8f9;
  --teal-pale: #cffafe;
  --teal-ice: #f0feff;
  --amber: #d69a1f;
  --ink: #0c1a1f;
  --muted: #4a7a8a;
  --border: #b2e8f0;
  --card: #ffffff;
  --card-hover: #f8feff;
  --page: #f0feff;
  --good-green: #059669;
  --good-light: #d1fae5;
  --band: #0e7490;
  --band-2: #0b6076;
  --band-text: #eafcff;
  --band-muted: #a9dbe7;
  --band-title: #7fe3ea;
  --rule: #d69a1f;
  --shadow: 0 10px 26px rgba(14, 116, 144, 0.1);
  --shadow-lg: 0 18px 40px rgba(14, 116, 144, 0.18);
  --radius: 14px;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html[data-theme='dark'] {
  --ink: #e8f7fa;
  --muted: #8fb6c0;
  --border: rgba(103, 232, 249, 0.2);
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --page: #05171d;
  --good-green: #34d399;
  --good-light: rgba(5, 150, 105, 0.22);
  --amber: #fcd34d;
  --band: #0a5265;
  --band-2: #073b49;
  --band-title: #67e8f9;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- teal band ---------- */

.band {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(135deg, var(--band), var(--band-2));
  border-bottom: 3px solid var(--rule);
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.22);
}

.band-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 10px;
  background: #ffffff;
  color: #0b3d4a;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.logo-mark { display: block; width: 26px; height: 26px; }

.band-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.band-date {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.band-title {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  letter-spacing: 0.2px;
  color: var(--band-title);
}

.band-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--band-text);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.ghost {
  cursor: pointer;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--band-text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 0.15s ease;
}

.ghost:hover { background: rgba(255, 255, 255, 0.24); }
.ghost:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* ---------- page ---------- */

.main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.hero { margin-bottom: 30px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  letter-spacing: -0.4px;
  color: var(--ink);
}

.search { display: block; max-width: 520px; }

.search input {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(14, 116, 144, 0.06);
}

.search input::placeholder { color: #7fa4b0; }

.search input:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.block { margin-top: 32px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.1px;
  color: var(--ink);
}

.pill {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: var(--teal-pale);
  border: 1px solid var(--border);
}

html[data-theme='dark'] .pill { background: rgba(103, 232, 249, 0.14); color: var(--teal-light); }

/* ---------- tiles ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-light));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--teal-bright);
  background: var(--card-hover);
  box-shadow: var(--shadow-lg);
}

.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--teal-mid); outline-offset: 3px; }
/* .tile is display:flex, which would beat the UA [hidden] rule - keep it explicit. */
.tile[hidden] { display: none; }

.tile-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-deep);
  background: var(--teal-pale);
  border: 1px solid var(--border);
}

html[data-theme='dark'] .tile-icon {
  color: var(--teal-light);
  background: rgba(103, 232, 249, 0.12);
  border-color: rgba(103, 232, 249, 0.24);
}

.tile-icon svg { width: 22px; height: 22px; }

.tile-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.1px;
  color: var(--ink);
}

.tile-desc { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.tile-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; }

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge.live { color: var(--good-green); background: var(--good-light); }
.badge.soon { color: #8a6210; background: #fef3c7; }

html[data-theme='dark'] .badge.soon { color: var(--amber); background: rgba(252, 211, 77, 0.16); }

.ver { color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.tile.soon { cursor: default; opacity: 0.66; box-shadow: none; }
.tile.soon:hover { transform: none; border-color: var(--border); background: var(--card); box-shadow: none; }
.tile.soon::before { display: none; }
/* ---------- quick-action chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--teal-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover, .chip:focus-visible {
  background: var(--teal-pale);
  border-color: var(--teal-mid);
  outline: none;
}

html[data-theme='dark'] .chip { color: var(--teal-light); }
html[data-theme='dark'] .chip:hover, html[data-theme='dark'] .chip:focus-visible {
  background: rgba(103, 232, 249, 0.14);
  border-color: var(--teal-light);
}

.chip.primary {
  background: var(--good-green);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
}

.chip.primary:hover, .chip.primary:focus-visible {
  background: #047857;
  border-color: transparent;
  color: #ffffff;
}

.empty { color: var(--muted); font-size: 0.9rem; }

/* ---------- footer ---------- */

.foot {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.foot p { margin: 4px 0; }
.muted { color: var(--muted); }

@media (max-width: 640px) {
  .band-inner { padding: 11px 14px; gap: 10px; }
  .band-text { display: none; }
  .logo-card { font-size: 0.98rem; }
  .clock { display: none; }
  .main { padding: 26px 16px 56px; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile::before, .chip { transition: none; }
  .tile:hover { transform: none; }
}


