/* research-group.css
   Styling for the "Research Group" Lektor template.
   Layout: top nav header, two-column body (sidebar card + main content),
   footer with link list. Loosely modeled on a university institute
   research-group profile page. */

:root {
  --rg-max-width: 1100px;
  --rg-gap: 2.5rem;
  --rg-border-color: #ddd;
  --rg-text-color: #222;
  --rg-muted-color: #666;
  --rg-link-color: #a3123a;      /* swap for your institute's brand color */
  --rg-link-hover: #7c0e2c;
  --rg-bg-color: #fff;
  --rg-card-bg: #f7f7f7;
  --rg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--rg-font);
  color: var(--rg-text-color);
  background: var(--rg-bg-color);
  line-height: 1.6;
}

a {
  color: var(--rg-link-color);
  text-decoration: none;
}

a:hover {
  color: var(--rg-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--rg-border-color);
  max-width: var(--rg-max-width);
  margin: 0 auto;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--rg-text-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.site-nav a:hover {
  color: var(--rg-link-color);
  text-decoration: none;
}

/* ---------- Page layout ---------- */

.page-layout {
  max-width: var(--rg-max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--rg-gap);
  align-items: start;
}

@media (max-width: 700px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sidebar / group card ---------- */

.group-card {
  background: var(--rg-card-bg);
  border: 1px solid var(--rg-border-color);
  border-radius: 6px;
  padding: 1.5rem;
}

.group-card__image {
  border-radius: 4px;
  margin-bottom: 1rem;
}

.group-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.group-card__role {
  margin: 0 0 1rem;
  color: var(--rg-muted-color);
  font-size: 0.9rem;
}

.group-card__links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.group-card__links li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.group-card__address {
  font-size: 0.9rem;
  color: var(--rg-muted-color);
  border-top: 1px solid var(--rg-border-color);
  padding-top: 1rem;
}

.group-card__address p {
  margin: 0.25em 0;
}

.group-card__social {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ---------- Main content ---------- */

.content h1 {
  margin-top: 0;
  font-size: 1.9rem;
}

.content__intro {
  font-size: 1.1rem;
  color: var(--rg-muted-color);
  margin-bottom: 1.5rem;
}

.content__body p,
.content__open-positions p {
  margin: 0 0 1rem;
}

.content__open-positions {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rg-border-color);
}

.content__open-positions h2 {
  font-size: 1.3rem;
}

.content__children ul {
  list-style: none;
  padding: 0;
}

.content__children li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rg-border-color);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--rg-max-width);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--rg-border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--rg-muted-color);
}

.site-footer__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
