/* =========================================
   Lars Schöbitz - Personal Website Styles
   Ported list/table/media patterns from the janfreihardt concept,
   adapted to a blue accent matching the CV's link colour.
   ========================================= */

:root {
  --accent:        #1a5e8a;
  --accent-hover:  #12455f;
  --accent-light:  #eef4f8;
  --accent-border: #cfe0ec;
  --text-dark:     #1c2733;
  --text-muted:    #5a6a78;
}

/* ----- Global ----- */
body {
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ----- Navbar ----- */
.navbar {
  border-bottom: 3px solid var(--accent);
  background-color: #ffffff !important;
  padding: 0.6rem 1rem;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark) !important;
}
.navbar .nav-link {
  color: #33404d !important;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
  background-color: var(--accent-light);
}

/* ----- Headings ----- */
h1 { color: var(--text-dark); }
h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent-border);
  padding-bottom: 0.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.45rem;
}
h3 {
  color: var(--text-dark);
  margin-top: 1.8rem;
  font-size: 1.15rem;
}

/* ----- About / Trestles template ----- */
.about-links .about-link {
  border: 1px solid var(--accent-border) !important;
  color: var(--accent) !important;
  background-color: #fff;
  transition: background-color 0.15s, color 0.15s;
}
.about-links .about-link:hover {
  background-color: var(--accent-light) !important;
  color: var(--accent-hover) !important;
  border-color: var(--accent) !important;
}

/* ----- Publication list ----- */
.pub-list { list-style: none; padding-left: 0; }
.pub-list li {
  margin-bottom: 0.85rem;
  padding-left: 2rem;
  text-indent: -2rem;
  line-height: 1.55;
}
.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  text-indent: 0;
}
.tag-review { background: #fff3cd; color: #856404; }
.tag-wip    { background: #e2e8f0; color: #475569; }

/* ----- Teaching table ----- */
.teaching-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.teaching-table th {
  background-color: var(--accent-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--accent-border);
  text-align: left;
}
.teaching-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e6eef4;
  vertical-align: top;
}
.teaching-table tr:last-child td { border-bottom: none; }

/* ----- Media list ----- */
.media-list { list-style: none; padding-left: 0; }
.media-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e6eef4;
  line-height: 1.5;
}
.media-list li:last-child { border-bottom: none; }
.media-outlet { font-weight: 600; color: var(--text-dark); }
.media-date { color: var(--text-muted); font-size: 0.88rem; margin-left: 0.4rem; }

/* ----- CV page ----- */
.cv-download-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 5px;
  font-weight: 600;
  margin: 1rem 0 2rem 0;
  text-decoration: none !important;
  transition: background-color 0.15s;
}
.cv-download-btn:hover { background-color: var(--accent-hover) !important; color: #fff !important; }

/* Skill bars reused from the CV card on the CV page. */
.skill-bar {
  color: white;
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
  margin: 0.2rem 0;
  border-radius: 3px;
}

/* ----- Footer ----- */
.nav-footer {
  border-top: 1px solid var(--accent-border);
  background-color: var(--accent-light) !important;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----- Utility ----- */
.section-intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
