/* Shared look for the site landing page and section hubs. */
:root {
  --ink: #1f2428;
  --muted: #5e6872;
  --paper: #f4f3ee;
  --panel: #ffffff;
  --line: #d8d2c7;
  --blue: #286f8f;
  --green: #20745f;
  --gold: #b7791f;
  --shadow: 0 16px 34px rgba(31, 36, 40, 0.09);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

header {
  padding: 44px 0 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 243, 238, 0.98));
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
}

.deck {
  max-width: 760px;
  margin: 14px 0 0;
  color: #3d454d;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

main { padding: 30px 0 64px; }

section { margin-top: 38px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-note { color: var(--muted); font-size: 0.9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card .tag {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #d8eadf;
  border-radius: 999px;
  color: var(--green);
  background: #f4fbf7;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card .tag.app { color: var(--gold); border-color: #f0e2c4; background: #fdf8ee; }

.card h3 {
  margin: 2px 0 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

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

.card p { margin: 0; color: #3f4851; font-size: 0.96rem; }

.card .open { margin-top: 4px; font-weight: 720; font-size: 0.92rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-note { display: block; margin-top: 4px; }
}

/* Section hubs: a back link above the title, and a lead paragraph. */
.crumb {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumb a { color: var(--muted); }

.card .tag.login { color: var(--blue); border-color: #cfe2ea; background: #f2f8fb; }

/* A section with a single, primary card spans the full width. */
.grid.single { grid-template-columns: 1fr; }

/* Door to the teaching-team area, sitting on the crumb line. The DSAI hub is a
   student page, so this stays quiet — and /admin is access-controlled anyway. */
.crumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: space-between;
}

.crumb-row .crumb { margin-bottom: 0; }

.staff-link {
  font-size: 0.9rem;
  font-weight: 640;
  color: var(--muted);
  white-space: nowrap;
}
