/* =============================================================================
   Title: Site styles
   Description: Dark theme with a UGA red accent, schedule table, past-meeting
     styling and calendar subscribe/add links. These rules override the light
     GitHub Pages theme, so several selectors match that theme's specificity.
   Author: Brant Callaway
   Last update: 2026-11-04
   Date created: 2026-11-04
   ========================================================================== */

:root {
  color-scheme: dark;
  --page-background: #14171c;
  --panel-background: #1f242b;
  --row-stripe: #1a1e24;
  --text: #e6e8eb;
  --past-text: #9aa3ad;
  --border: #3a424d;
  --accent: #ba0c2f; /* UGA Bulldog Red, for lines and fills */
  --accent-text: #ff8a9a; /* Bulldog Red is too dark to read as text on this background */
}

/* --- Page ---------------------------------------------------------------- */
body {
  background: var(--page-background);
  color: var(--text);
}

.markdown-body a {
  color: var(--accent-text);
}

.markdown-body h1 {
  border-bottom: 2px solid var(--accent);
}

.markdown-body h2 {
  border-bottom-color: var(--accent);
}

/* --- Calendar links ------------------------------------------------------ */
.cal-subscribe {
  padding: 0.6em 1em;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--panel-background);
  line-height: 2.2;
}

.markdown-body .cal-button {
  display: inline-block;
  padding: 0 0.7em;
  border: 1px solid currentColor;
  border-radius: 4px;
  line-height: 1.8;
  font-size: 0.9em;
  white-space: nowrap;
}

.markdown-body .cal-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.cal-feed {
  display: block;
  line-height: 1.4;
  font-size: 0.8em;
  overflow-wrap: anywhere;
}

.cal-links {
  font-size: 0.8em;
  white-space: nowrap;
}

/* --- Schedule table ------------------------------------------------------ */
.markdown-body th {
  text-align: left;
}

.markdown-body table tr {
  border-top-color: var(--border);
  background: var(--page-background);
}

.markdown-body table tr:nth-child(2n) {
  background: var(--row-stripe);
}

.markdown-body table th,
.markdown-body table td {
  border-color: var(--border);
}

.seminar-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.markdown-body .seminar-table {
  display: table;
  width: 100%;
  min-width: 850px;
  table-layout: auto;
  border-collapse: collapse;
}

/* Only date and time stay on one line, so all columns fit on a desktop screen. */
.seminar-table td:nth-child(1),
.seminar-table td:nth-child(2) {
  white-space: nowrap;
}

.seminar-table th:last-child,
.seminar-table td:last-child {
  min-width: 200px;
}

/* --- Past meetings ------------------------------------------------------- */
/* _includes/mark_past_talks.html adds this class in the visitor's browser. */
.talk-past td {
  color: var(--past-text);
}

.markdown-body .talk-past a {
  color: var(--past-text);
}

.talk-past .cal-links {
  display: none;
}
