/* =============================================================================
UK DRI Team Site — Stylesheet
Purpose:
- Provide a clean, professional default style for a small team website
- Use the UK DRI colour palette as sensible defaults (easy to customise)

How to customise:
- Change the CSS variables in :root to re-theme the site.
- Keep colour use minimal (navbar + small accents) for readability.
============================================================================= */

/* -----------------------------------------------------------------------------
UK DRI official colour palette (UK DRI Brand Guide Sept 2020)
Tip: Use dark blue for navigation, and one accent colour sparingly.
----------------------------------------------------------------------------- */
:root{
  /* Core neutrals */
  --ukdri-dark-blue: #00326e;   /* UK DRI dark blue */
  --ukdri-light-grey: #c4d1d9;  /* UK DRI light grey */
  --ukdri-dark-grey: #415767;   /* UK DRI dark grey */

  /* Optional blue accents (pick ONE for highlights) */
  --ukdri-petrol-blue: #007faf; /* UK DRI petrol blue */
  --ukdri-sky-blue:    #0ac8ff; /* UK DRI sky blue */
  --ukdri-bright-blue: #4682ff; /* UK DRI bright blue */
  --ukdri-cobalt:      #325ad7; /* UK DRI cobalt */

  /* Site theme choices (change these to re-theme quickly) */
  --brand-nav: var(--ukdri-dark-blue);
  --brand-accent: var(--ukdri-petrol-blue);
  --page-bg: #ffffff;
}

/* -----------------------------------------------------------------------------
Base typography & page feel
----------------------------------------------------------------------------- */
body{
  background: var(--page-bg);
}

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

/* Slightly crisper headings (subtle on purpose) */
h1, h2, h3 { letter-spacing: 0.2px; }

/* -----------------------------------------------------------------------------
Navbar branding
----------------------------------------------------------------------------- */
.navbar{
  background-color: var(--brand-nav) !important;
}

.navbar .nav-link,
.navbar .navbar-brand{
  color: rgba(255,255,255,0.88) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover{
  color: #ffffff !important;
}

.navbar .nav-link.active {
  color: #ffffff !important;
  border-bottom: 2px solid var(--brand-accent);
}

/* Name styling in navbar */
.site-name{
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

.site-name strong{
  font-weight: 800;
  color: var(--brand-accent);
}

/* Section headers: bold, structured, with a subtle accent left-border */
main h2 {
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 1.55rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--brand-accent);
}

main h2 + p,
main h2 + ul,
main h2 + div {
  margin-top: 0.35rem;
}

/* Horizontal rule spacing */
hr {
  margin: 1.4rem 0;
}

/* -----------------------------------------------------------------------------
Homepage hero (index.qmd)
----------------------------------------------------------------------------- */
.home-hero {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.home-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
}

/* Team image / banner styling */
.profile-pic {
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  width: 100%;
  max-width: 380px;
  display: block;
  margin-left: auto;
}

/* -----------------------------------------------------------------------------
Cards and reusable content blocks
----------------------------------------------------------------------------- */

/* Reduce padding inside cards */
.card {
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Tighten space under contribution titles */
.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Tighten list spacing inside cards */
.card ul {
  margin-top: 0.4rem;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

/* Slightly reduce spacing between list items */
.card li {
  margin-bottom: 0.3rem;
}
/* Reusable team link block */
.profile-links {
  display: flex;
  flex-wrap: wrap;        /* allows wrapping on small screens */
  gap: 0.4rem;            /* spacing between items */
  align-items: center;
  font-size: 1rem;
  opacity: 0.95;
}

.profile-links a {
  text-decoration: none;
  white-space: nowrap;
}

.profile-links i {
  margin-right: 0.35rem;
}

.profile-links a:hover {
  text-decoration: underline;
}

.profile-links .sep {
  opacity: 0.6;
}

.profile-links > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
}
