/* TU staff home page. Institutional register: navy anchor, bright blue as the one accent, near-white ground.
   One face (Raleway, self-hosted): thin caps-weight titles with a hairline rule beneath, letterspaced eyebrows. */
:root {
  --navy: #123B6A; --accent: #0092FF; --pale: #A8C4E0; --ground: #E9EFF4;
  --ink: #14213A; --ink-2: #4A5A70; --line: #D5DFEA; --white: #FFFFFF;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 Raleway, Arial, sans-serif; font-variant-numeric: lining-nums; }
img { display: block; }
a { color: inherit; }

.eyebrow { margin: 0 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.title {
  margin: 0 0 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--pale);
  font-weight: 200; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.01em; color: var(--navy);
}
.accent { color: var(--accent); font-weight: 300; }
.lead { margin: 0 0 1.5rem; color: var(--ink-2); max-width: 34rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---- sign-in: a hard vertical split, navy mark field | near-white form field ---- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.split-mark {
  position: relative; overflow: hidden; background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 3rem;
}
/* The book as a watermark on the open navy ground: cropped hard, about 6% contrast, never behind type. */
.split-mark::after {
  content: ""; position: absolute; right: -18%; bottom: -12%; width: 95%; aspect-ratio: 292 / 138;
  background: url(/img/tu-book-icon-white.svg) no-repeat center / contain; opacity: .06; pointer-events: none;
}
.mark { position: relative; z-index: 1; width: min(320px, 70%); height: auto; }
.split-form { display: flex; align-items: center; padding: 3rem clamp(1.5rem, 6vw, 5rem); }
.card { width: 100%; max-width: 30rem; }
.note {
  margin: 0 0 1.5rem; padding: .8rem 1rem; border: 1px solid var(--pale); border-radius: 12px; background: var(--white);
  color: var(--ink); font-size: .95rem;
}
.google-btn {
  display: inline-flex; align-items: center; gap: .75rem; padding: .8rem 1.4rem .8rem 1.1rem; min-height: 48px;
  background: var(--white); color: #1F1F1F; border: 1px solid #747775; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s, box-shadow .15s;
}
.google-btn:hover { background: #F8FAFD; box-shadow: 0 1px 3px rgba(18, 59, 106, .2); }
.google-btn:focus-visible, .tile:focus-visible, .signout button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- the signed-in page: navy band, then tiles on the near-white ground ---- */
.band { background: var(--navy); color: var(--white); }
.band-inner { max-width: 68rem; margin: 0 auto; padding: .9rem 1rem; display: flex; align-items: center; gap: 1rem; }
.band-mark { flex: none; }
.who { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 0; }
.who-name { font-weight: 600; }
.who-email { font-size: .8rem; color: var(--pale); overflow-wrap: anywhere; }
.signout { margin: 0; }
.signout button {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--white); background: transparent; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: .4rem 1rem;
}
.signout button:hover { background: rgba(255, 255, 255, .12); }

.page { max-width: 68rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
.empty { padding: 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-2); max-width: 40rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tile {
  display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.5rem 1.25rem; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--pale); border-top-color: var(--accent); box-shadow: 0 6px 18px rgba(18, 59, 106, .12); transform: translateY(-2px); }
.tile-name { font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.tile-text { margin-top: .4rem; color: var(--ink-2); font-size: .95rem; }
.tile-foot { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pill {
  display: inline-block; padding: .25rem .8rem; border: 1px solid var(--pale); border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.pill-solid { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tile:hover .pill-solid { background: var(--accent); border-color: var(--accent); }
.tile-warn { font-size: .8rem; color: var(--ink-2); }

.foot { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-mark { padding: 2.5rem 1rem; }
  .split-mark::after { display: none; } /* too little open ground on a phone: it would sit behind the wordmark */
  .mark { width: min(220px, 60%); }
  .split-form { padding: 2rem 1rem 3rem; }
  .who-email { display: none; }
  .page { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .tile, .google-btn { transition: none; } .tile:hover { transform: none; } }
