/* LMCS Management Portal — base styles
   Matches the house style already used by the LMCS Bye Laws site and the
   Salary Dashboard: red #CE0000 primary, white page, light-gray cards,
   Segoe UI. No dark mode — none of the sibling tools have one either. */

:root {
  --red: #ce0000;
  --red-dark: #a70000;
  --red-pale: #fde8e8;
  --dark: #1a1a1a;
  --gray: #555555;
  --lgray: #f5f5f5;
  --border: #dddddd;
  --white: #ffffff;

  --color-live: #1a7f3c;
  --color-live-bg: #e6f6ec;
  --color-building: #b45f06;
  --color-building-bg: #fdf1de;
  --color-planned: var(--gray);
  --color-planned-bg: var(--lgray);
  --color-paused: #8a5a00;
  --color-paused-bg: #fbf0da;

  --radius: 6px;
  --font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  background: var(--red);
  border-bottom: 1px solid var(--red-dark);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}

.brand .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand .logo-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand .tagline {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

nav.roles {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

nav.roles span {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
}

.hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--red);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
}

/* Section headings */
section.block {
  padding: 8px 0 40px;
}

section.block h2 {
  font-size: 1.35rem;
  color: var(--red);
  margin: 0 0 4px;
  font-weight: 700;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
}

.modules, .campuses {
  margin-top: 18px;
}

/* Module grid */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  background: var(--lgray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--red);
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.88rem;
}

.status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.live { color: var(--color-live); background: var(--color-live-bg); }
.status.building { color: var(--color-building); background: var(--color-building-bg); }
.status.planned { color: var(--color-planned); background: var(--color-planned-bg); }
.status.paused { color: var(--color-paused); background: var(--color-paused-bg); }

/* Paused cards read as intentionally dimmed, not just another status color --
   distinct from 'planned' (never started), which stays at full opacity. */
.card:has(.status.paused) { opacity: 0.72; }

/* Campus grid */
.campuses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.campus {
  background: var(--lgray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.campus .code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 0.04em;
}

.campus .name {
  font-weight: 700;
  margin: 2px 0 2px;
  font-size: 0.95rem;
  color: var(--dark);
}

.campus .principal {
  font-size: 0.82rem;
  color: var(--gray);
}

/* Sign-in gate */
.auth-gate {
  max-width: 420px;
  margin: 40px auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.auth-gate p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 22px;
}

#lmcs-g-signin {
  display: flex;
  justify-content: center;
}

.auth-denied {
  margin-top: 18px;
  background: var(--red-pale);
  border: 1px solid var(--red);
  color: var(--red-dark);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}

/* Welcome strip */
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--lgray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}

.welcome-text {
  font-size: 0.85rem;
  color: var(--gray);
}

.welcome-text b {
  color: var(--dark);
}

.welcome-campus {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-dark);
  background: var(--red-pale);
}

.signout {
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  background: var(--white);
}

.signout:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--gray);
  font-size: 0.82rem;
}
