/* Course Compass web dashboard — mobile-first, brand-consistent (navy + gold). Vanilla, no build step. */
:root {
  --bg: #0a1626;
  --bg2: #0e1d33;
  --card: #122943;
  --line: #1f3b5c;
  --text: #eaf1fb;
  --muted: #9fb3cc;
  --gold: #e7b24a;
  --gold-ink: #2a1d05;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beat .grid/.flex display rules */
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(120% 80% at 50% -10%, var(--bg2), var(--bg)) fixed;
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(10, 22, 38, .85); backdrop-filter: blur(8px); z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 26px; height: 26px; display: block; }

/* Buttons */
.btn, .btn-ghost {
  display: inline-block; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: 10px; padding: 10px 16px; border: 1px solid transparent; text-align: center;
}
.btn { background: var(--gold); color: var(--gold-ink); }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }

main { max-width: 760px; margin: 0 auto; padding: 22px 18px 48px; }

/* Hero (signed-out) */
.hero { text-align: center; padding: 7vh 6px 6vh; }
.hero-logo { width: 108px; height: 108px; display: block; margin: 0 auto 20px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(26px, 6vw, 40px); margin: 0 0 10px; line-height: 1.15; }
.lede { color: var(--muted); font-size: 17px; max-width: 30ch; margin: 0 auto 24px; }
/* Custom Google sign-in button — dark, blends with the theme (no white GIS widget) */
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 11px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.btn-google:hover { border-color: var(--gold); background: #16314f; }
.g-icon { display: block; flex: 0 0 auto; }
.msg { color: var(--gold); min-height: 1.2em; margin: 12px 0 0; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 22px; }

/* Cards (signed-in) */
.grid { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row span { color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.card .btn { margin-top: 14px; width: 100%; }

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .card:nth-child(2), .grid .card:nth-child(3) { grid-column: span 1; }
}
