/* ------------------------------------------------------------------
   Site-wide theme: thin grey underline on headers + colourful accents,
   matching the palette used on the Publications page.
   Loaded sitewide via _includes/head/custom.html
   ------------------------------------------------------------------ */

:root {
  --accent-blue: #3a7bd5;
  --accent-red: #d64545;
  --accent-grey: #8a8f98;
  --accent-gold: #e0b400;
  --accent-teal: #17a2a2;
  --ink: #2b2f36;
}

/* Thin grey rule under every heading in the page content */
.page__content h1,
.page__content h2,
.page__content h3,
.page__title {
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.35em;
}

/* A small coloured accent tick to the left of h1/h2, for a less flat look */
.page__content h1,
.page__content h2 {
  position: relative;
  padding-left: 0.7em;
  color: var(--ink);
}
.page__content h1::before,
.page__content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.45em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-teal));
}

.page__content h3 {
  color: var(--ink);
}

/* Links: a livelier blue, consistent with the PDF/BibTeX buttons elsewhere */
.page__content a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.page__content a:hover {
  color: #24548f;
  border-bottom-color: currentColor;
}

/* Blockquotes (used for teaching entries, quoted talk titles, etc.)
   styled as light coloured cards instead of a plain grey sidebar rule */
.page__content blockquote {
  margin: 0.6em 0 1.1em;
  padding: 0.6em 1em;
  background: #fafafa;
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px;
  color: #333;
}

/* Coloured, slightly larger bullets for a less flat list look */
.page__content ul > li::marker {
  color: var(--accent-blue);
}
.page__content ul ul > li::marker {
  color: var(--accent-teal);
}

/* Small coloured rectangular badges (rounded corners), matching the
   type badges used for each entry on the Publications page */
.badge-pill {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  color: #fff;
  margin-right: 0.5em;
  vertical-align: middle;
}
.badge-summer { background: var(--accent-gold); color: #4a3900; }
.badge-winter { background: var(--accent-blue); }
.badge-invited { background: var(--accent-teal); }
.badge-organisation { background: var(--accent-blue); }
.badge-admin { background: var(--accent-grey); }
.badge-reviewing { background: var(--accent-red); }
.badge-award { background: var(--accent-gold); color: #4a3900; }
.badge-visit { background: var(--accent-teal); }
.badge-paper { background: var(--accent-blue); }

/* Slightly livelier news/entry dates on the home page */
.page__content strong {
  color: var(--ink);
}

/* ---------------- Teaching page ---------------- */
.teach-app { margin-top: 1em; }
.teach-block {
  margin-bottom: 1em;
  padding: 0.6em 1em;
  background: #fafafa;
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px;
}
.teach-block:has(.badge-summer) { border-left-color: var(--accent-gold); }
.teach-term { margin-bottom: 0.4em; }
.teach-items { list-style: none; margin: 0; padding: 0; }
.teach-items li { margin: 0.25em 0; }

.role-tag {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.1em 0.55em;
  border-radius: 3px;
  background: #e4e6ea;
  color: #444;
  margin-right: 0.5em;
}

/* ---------------- Activities page ---------------- */
.activity-section {
  margin: 0.3em 0 1.4em;
  padding: 0.3em 1em 0.6em;
  background: #fafafa;
  border-left: 4px solid var(--accent-grey);
  border-radius: 4px;
}
.activity-invited      { border-left-color: var(--accent-teal); }
.activity-organisation { border-left-color: var(--accent-blue); }
.activity-admin        { border-left-color: var(--accent-grey); }
.activity-reviewing    { border-left-color: var(--accent-red); }
.activity-award        { border-left-color: var(--accent-gold); }
.activity-section h3 { border-bottom: none; padding-bottom: 0; margin-top: 0.8em; }

/* ---------------- Home / News ---------------- */
.news-app { margin-top: 1em; }
.news-item {
  margin-bottom: 1em;
  padding: 0.6em 1em;
  background: #eef0f2;
  border-left: 4px solid var(--accent-grey);
  border-radius: 4px;
}
.news-award { border-left-color: var(--accent-gold); }
.news-visit { border-left-color: var(--accent-teal); }
.news-paper { border-left-color: var(--accent-blue); }
.news-meta { margin-bottom: 0.35em; }
.news-date { font-size: 0.85em; color: #777; }
.news-item blockquote { margin-bottom: 0; }

/* ---------------- Nav underline colour ---------------- */
/* Minimal Mistakes draws the masthead nav underline as a ::before pseudo-element.
   Override its colour here; also colour the currently active page's link. */
.greedy-nav a:before {
  background-color: var(--accent-blue);
}
.greedy-nav a.current {
  color: var(--accent-blue);
}
.greedy-nav a.current:before {
  background-color: var(--accent-blue);
  /* make the underline stay visible on the active page, not just on hover */
  height: 2px;
  bottom: -5px;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

/* ---------------- Sidebar (author profile) ---------------- */
/* Card look: white panel, soft shadow, thin border, rounded corners */
.sidebar.author-profile,
.author__content {
  border-radius: 6px;
}
.sidebar.author-profile {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 1.2em 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Coloured ring around the profile photo */
.author__avatar img {
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent-blue), var(--accent-teal)) border-box;
}

/* Thin grey rule + accent under the name, matching the page headings */
.author__name {
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.35em;
  color: var(--ink);
}

/* Follow button */
.author__urls-wrapper button.btn--inverse,
.author__urls-wrapper .btn {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  border-radius: 4px;
  transition: background 0.15s;
}
.author__urls-wrapper button.btn--inverse:hover,
.author__urls-wrapper .btn:hover {
  background: #24548f;
  border-color: #24548f;
}

/* Contact / profile links list */
.author__urls li a {
  color: var(--ink);
  transition: color 0.15s;
}
.author__urls li a:hover {
  color: var(--accent-blue);
}
.author__urls li i,
.author__urls li .svg-inline--fa {
  color: var(--accent-blue);
  width: 1.2em;
  text-align: center;
}
