/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;600;700&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,600&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* Durham University Inspired Palette - Glossy Edition */
  --color-primary: #7E317B; /* Durham Purple */
  --color-primary-light: #9F4D9C; /* Lighter Purple for gradients */
  --color-primary-dark: #561e55;
  --color-secondary: #005073; /* Darker Turquoise for better contrast */
  --color-accent: #0085a3; /* Lighter Cyan */
  
  --color-text: #333333;
  --color-text-light: #555555;
  
  --color-bg: #eaeff2; /* Slightly darker white/grey for Light Mode */
  --color-surface: #ffffff;
  
  --color-border: #e1e4e8;
  --color-white: #ffffff;
  
  --color-info-bg: #fcf4fc; /* Light purple tint */

  /* Typography */
  /* --font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; */
  --font-body: 'Instrument Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Fraunces', 'Helvetica Neue', Arial, sans-serif;
  



  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Layout */
  --container-width: 95%;
  --container-max-width: 1600px;
  --border-radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Header dimensions */
  --header-height: 176px; /* Compact sticky banner height for better reading space */
  --header-height-expanded: 100vh; /* Fullscreen banner for initial state */
}


[data-theme="dark"] {
  --color-text: #e0e0e0;
  --color-text-light: #b0b0b0;
  
  --color-bg: #121212;
  --color-surface: #1e1e1e;
  
  --color-border: #333333;
  
  --color-info-bg: #2b1d2b;
  
  /* Lighter purple shades for better readability in dark mode */
  --color-primary: #b370b0; /* Lighter Durham Purple */
  --color-primary-light: #c590c2; /* Even lighter for gradients */
  --color-primary-dark: #9F4D9C; /* Lighter dark variant */
}

[data-theme="dark"] a {
  color: #90caf9; /* Lighter blue for dark mode links */
}

[data-theme="dark"] a:hover {
  color: #e3f2fd; /* Brighter cyan for hover in dark mode */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  overflow-x: clip; /* Prevent any overflow from creating a horizontal scrollbar */
}

/* Prevent long text/URLs from bursting their containers */
.card, .card li, .card a,
main, main li, main a,
.sidebar, .sidebar-right {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

/* Smooth underline animation for content links */
.card a:not(.btn),
main a:not(.btn) {
  background-image: linear-gradient(to right, var(--color-primary), var(--color-primary));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.card a:not(.btn):hover,
main a:not(.btn):hover {
  background-size: 100% 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

/* Layout */
.container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.theme-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--color-primary-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .theme-btn {
    background: #ffc107; /* Sun color */
    color: #333;
}

    /* Header */
    .site-header {
      background-color: var(--color-surface);
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--color-border);
    }
    
    /* Ensure the logo banner takes full width and ignores container padding if needed */
    .logo-banner {
        width: 100%;
        max-width: 100%; /* Override container max-width */
        margin: 0;
        padding: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center 50% !important;
        position: relative;
        /* Always show the wide banner as base */
        background-image: url('../images/wide_banner_updated.png');
        /* Custom properties for JS control */
        --banner-overlay-opacity: 1;
        --current-banner-height: var(--header-height);
        /* Use CSS custom property for height to avoid layout thrashing */
        min-height: var(--current-banner-height) !important;
        /* Optimize for animations - Chrome-friendly */
        will-change: min-height, opacity;
        /* Force GPU acceleration with proper hints */
        transform: translate3d(0, 0, 0);
        /* Prevent subpixel rendering issues in Chrome */
        -webkit-font-smoothing: antialiased;
        /* Containment for better Chrome performance */
        contain: layout style paint;
    }
    
    /* Use a before pseudo-element for smooth cross-fade between images */
    .logo-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../images/wide_banner_updated.png');
        background-size: cover;
        background-position: center 50% !important;
        background-repeat: no-repeat;
        opacity: var(--banner-overlay-opacity);
        pointer-events: none;
        z-index: 1;
        will-change: opacity;
        /* Force GPU acceleration */
        transform: translate3d(0, 0, 0);
        -webkit-font-smoothing: antialiased;
    }
    
    /* Elegant gradient fade at bottom of banner */
    .logo-banner::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--color-surface));
        pointer-events: none;
        z-index: 2;
    }
    
     /* Larger fade for expanded banner */
     .site-header.expanded .logo-banner::after {
         height: 100px;
     }

     .site-header.expanded .logo-banner,
     .site-header.expanded .logo-banner::before {
         background-position: center center !important;
     }

/* Banner Title Overlay */
.banner-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
    padding: 0 2rem;
}

.banner-title h1,
.banner-title-text {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 4px 12px rgba(0, 0, 0, 0.9),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    white-space: nowrap;
}

/* Hide title when banner is collapsed */
.site-header.collapsed .banner-title {
    opacity: 0;
    pointer-events: none;
}

/* Adjust title position on smaller screens */
@media (max-width: 767px) {
    .banner-title {
        top: 18%;
    }
    
    .banner-title h1,
    .banner-title-text {
        font-size: clamp(1.8rem, 10vw, 3rem);
        white-space: normal;
    }
}

.top-bar {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  padding: var(--spacing-xs) 0;
  font-size: 0.9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
  margin-right: var(--spacing-sm);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.header-main {
  padding: var(--spacing-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-area img {
  height: 60px;
}

.search-form {
  display: flex;
  gap: var(--spacing-xs);
}

.search-form input[type="text"] {
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.search-form button {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Navigation */
.main-nav {
  /* Float nav on top of banner with elegant transparency */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
  color: var(--color-white);
  z-index: 10;
  border: none;
  box-shadow: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav li {
  margin-right: 1px;
}

.main-nav a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  background-color: rgba(255,255,255,0.2);
  text-decoration: none;
  transform: translateY(-2px);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
}

.main-nav li.current a {
  background-color: rgba(126, 49, 123, 0.6); /* Durham purple with transparency */
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  /* Sits clear above the ~54px nav bar (bottom:0); 60px left the
     "Explore" label nearly touching the nav links. */
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: bounce 2s infinite;
  text-align: center;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(5px);
}

.scroll-indicator:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.scroll-indicator svg {
  width: 50px;
  height: 50px;
  fill: white;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
  pointer-events: none;
  display: block;
}

/* Add text hint below arrow on expanded state */
.site-header.expanded .scroll-indicator::after {
  content: 'Explore';
  display: block;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Hide scroll indicator on collapsed state */
.site-header.collapsed .scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Scroll-triggered Animations */
.fade-in-up,
.fade-in,
.scale-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  transform: translateY(30px);
}

.scale-in {
  transform: scale(0.95);
}

.fade-in-up.is-visible,
.fade-in.is-visible,
.scale-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }
  .site-header .logo-banner,
  .logo-banner::after {
    transition: none !important;
  }
  
  /* Show content immediately without animation */
  .fade-in-up,
  .fade-in,
  .scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--spacing-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.breadcrumbs li::after {
  content: "›";
  margin-left: var(--spacing-xs);
  color: var(--color-text-light);
}

.breadcrumbs li:last-child::after {
  content: "";
}

/* Subsite section nav — lateral links between the pages of an ICC/CEA subsite */
.subsite-nav {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.subsite-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin: 0;
  padding: 0;
}

.subsite-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.subsite-nav a:hover {
  background-color: var(--color-surface);
}

.subsite-nav li.current a {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
}

/* Main Content */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 992px) {
  .content-wrapper {
    grid-template-columns: 240px 1fr 240px; /* Sidebar (left) / Main (center) / Sidebar (right) */
  }
  
  main {
    grid-column: 2;
    align-self: start; /* Align with sidebars */
    min-width: 0; /* Prevent grid item from overflowing its column */
  }
  
  .sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: var(--header-height);
    align-self: start;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .sidebar-right {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: var(--header-height);
    align-self: start;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
}

/* At mid-range desktop, move right sidebar below main to give content more room */
@media (min-width: 992px) and (max-width: 1399px) {
  .content-wrapper {
    grid-template-columns: 240px 1fr;
  }

  .sidebar-right {
    grid-column: 2;
    grid-row: 2;
    position: static;
    max-height: none;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
    }
    
    main { grid-column: 2; }
    .sidebar { 
      grid-column: 1; 
      grid-row: 1; 
      position: sticky;
      top: var(--header-height);
      align-self: start;
      max-height: calc(100vh - var(--header-height));
      overflow-y: auto;
    }
    .sidebar-right { 
      grid-column: 1 / -1; 
      grid-row: 2;
      position: static;
    }
    
    /* Reduce banner height on tablet */
    .logo-banner {
      min-height: 160px !important;
    }
    
    .logo-banner::after {
      height: 50px;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
  /* Hamburger Menu Button */
  .hamburger-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1003;
    background: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
  }
  
  .hamburger-btn:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
  }
  
  .hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  /* Animated hamburger to X */
  .hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
  }
  
  .mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile Navigation */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--color-surface);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding: 1rem 0 2rem 0;
  }
  
  .mobile-nav.is-active {
    transform: translateX(0);
  }
  
  .mobile-nav-close {
    position: sticky;
    top: 0.5rem;
    margin: 0 1rem 0.75rem auto;
    background: var(--color-surface);
    border: none;
    color: var(--color-text);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 2;
  }

  .mobile-nav-close:hover {
    background: var(--color-border);
  }
  
  .mobile-nav-separator {
    margin: 1rem 1.5rem;
    border: none;
    border-top: 2px solid var(--color-border);
  }
  
  .mobile-nav .container {
    width: 100%;
    padding: 0;
  }
  
  .mobile-nav ul {
    flex-direction: column;
    padding: 0;
    list-style: none;
  }
  
  .mobile-nav li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--color-border);
  }
  
  .mobile-nav a {
    padding: 1.25rem 1.5rem;
    text-align: left;
    display: block;
    color: var(--color-text);
    text-shadow: none;
    background: transparent;
    transition: background 0.2s ease;
    text-decoration: none;
  }
  
  .mobile-nav a:hover,
  .mobile-nav li.current a {
    background: var(--color-primary);
    color: white;
    transform: none;
  }
  
  /* Mobile submenu styling */
  .mobile-nav-row {
    display: flex;
    align-items: stretch;
  }

  .mobile-nav-row > a {
    flex: 1;
    cursor: pointer;
  }

  .submenu-toggle-mobile {
    flex-shrink: 0;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 44px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-weight: bold;
  }

  .submenu-toggle-mobile:hover {
    background: var(--color-primary-dark);
  }
  
  .mobile-nav-submenu {
    padding-left: 0;
    background: var(--color-bg);
  }
  
  .mobile-nav-submenu li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .mobile-nav-submenu a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }

  .mobile-nav li.nav-section-label {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    background: var(--color-bg);
    border-bottom: none;
    pointer-events: none;
  }

  .mobile-nav-secondary {
    padding: 0 1rem 0.5rem;
  }

  .mobile-nav-secondary .card {
    margin-bottom: 1rem;
  }

  .mobile-nav-secondary .card:last-child {
    margin-bottom: 0;
  }

  .mobile-nav-secondary ul {
    margin-bottom: 0;
  }

  .mobile-nav-secondary li:last-child {
    border-bottom: none;
  }

  .mobile-nav-secondary summary {
    cursor: pointer;
  }
  
  /* Hide desktop nav on mobile */
  .main-nav {
    display: none;
  }
  
  /* Adjust content padding */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding-top: 1rem;
  }
  
  main {
    grid-column: 1;
  }
  
  .sidebar {
    display: none;
  }

  .sidebar-right {
    position: static;
    max-height: none;
  }
}

/* Extra small mobile tweaks */
@media (max-width: 767px) {
  /* Make banner more compact on smaller phones */
  .logo-banner {
    min-height: 120px !important;
    background-position: 35% center !important;
  }
  
  .logo-banner::before {
    background-position: 35% center !important;
  }
  
  .logo-banner::after {
    height: 30px;
  }
  
  /* Make hero-legacy full width on mobile (break out of container padding) */
  .hero-legacy {
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
    width: calc(100% + 2 * var(--spacing-sm));
  }
  
  /* Disable expanded splash on mobile - use compact header height instead */
  .site-header.expanded .logo-banner {
    min-height: 240px !important;
    background-position: 35% center !important;
  }
  
  .site-header.expanded .logo-banner::before {
    background-position: 35% center !important;
  }
  
  .site-header.expanded .logo-banner::after {
    height: 80px;
  }
  
  /* Smaller scroll indicator on mobile */
  .scroll-indicator {
    bottom: 80px;
  }
  
  .scroll-indicator svg {
    width: 40px;
    height: 40px;
  }
  
  .site-header.expanded .scroll-indicator::after {
    font-size: 0.8rem;
  }
  
  main {
    grid-row: 1;
  }
  
  .sidebar {
    grid-row: 2;
  }
  
  .sidebar-right {
    grid-row: 3;
  }
  
  /* Reduce padding in cards on small mobile */
  .card {
    padding: var(--spacing-md);
  }
  
  /* Smaller hamburger on very small screens */
  .hamburger-btn {
    width: 45px;
    height: 45px;
  }
  
  .mobile-nav {
    width: 260px;
  }

  .sidebar-nav {
    display: none;
  }
}

  
  /* Adjust member grid for mobile */
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  /* Theme button positioning on mobile */
  .theme-btn {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* Hero Section */
.hero {
  background-image: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Fallback for the GIF header from original site */
.hero-legacy {
  background-color: #2c2c2c; /* Neutral dark background for images */
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  margin-top: 0; /* Align with top of sidebars */
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  min-height: 160px;
  position: relative;
}

.hero-legacy > div {
    background-color: rgba(0, 0, 0, 0.65); /* Dark semi-transparent box */
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px); /* Modern glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
}

.hero-legacy h1,
.hero-legacy .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.8rem;
}

/* Cards & Sections */
.card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.card h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-xs);
}

.card p {
    margin-bottom: 1rem;
}

.card ul, .card ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.info-box {
  background-color: var(--color-info-bg);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.info-box h3, .info-box h4 {
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 1rem;
}

.info-box ul, .info-box ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: var(--spacing-md) 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Research Groups Grid */
.research-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.group-card {
  background: var(--color-surface);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--color-border);
}

.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.group-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.group-card a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
}

.group-card a::after {
  content: " →";
}

/* Alerts */
.alert-box {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-box.warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-box.warning a {
    color: #533f03;
    text-decoration: underline;
}

[data-theme="dark"] .alert-box.warning {
  background-color: #2c2406; /* Darker yellow/brown for dark mode */
  border-color: #ffc107;
  color: #fff3cd;
}

[data-theme="dark"] .alert-box.warning a {
    color: #ffecb5;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.member-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.member-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.member-photo {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #eee;
  flex-shrink: 0;
}

.member-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  user-select: none;
}

.member-info {
    flex: 1;
}

.member-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.member-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.member-interests {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-style: italic;
  color: var(--color-text-light);
}

.member-links {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* View Toggle */
.view-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.view-toggle-btn:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.view-toggle-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.view-toggle-btn:hover:not(.active) {
  background: var(--color-border);
}

.view-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* List View */
.members-list-view .members-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.members-list-view .member-card {
  border-radius: 0;
  box-shadow: none;
  padding: 0.6rem 0.75rem;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.members-list-view .member-card:first-child {
  border-top: 1px solid var(--color-border);
}

.members-list-view .member-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--color-info-bg);
}

.members-list-view .member-header {
  flex: 1;
  min-width: 0;
  order: 1;
  gap: 0.75rem;
  align-items: center;
}

.members-list-view .member-photo {
  width: 40px;
  height: 50px;
  border-radius: 3px;
}

.members-list-view .member-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.members-list-view .member-meta {
  font-size: 0.8rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.members-list-view .member-meta > div {
  margin-top: 0 !important;
  font-size: 0.8rem !important;
}

.members-list-view .member-interests {
  order: 3;
  flex-basis: 100%;
  white-space: normal;
  margin-top: 0;
  font-size: 0.8rem;
  /* indent to align with name, past photo (40px) + gap (0.75rem) */
  padding-left: calc(40px + 0.75rem);
  color: var(--color-text-light);
}

.members-list-view .member-links {
  order: 2;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .members-list-view .member-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .members-list-view .member-interests {
    white-space: normal;
    padding-left: 0;
    flex-basis: auto;
  }
}

/* Sidebar */
.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.sidebar-nav.card {
  padding: 0;
  overflow: hidden;
}

.sidebar-nav h3 {
  padding: 1rem 1rem 0.5rem 1rem;
  margin-bottom: 0;
}

.sidebar-nav ul {
  list-style: none;
  margin-bottom: 0;
  padding: 0 0.5rem 1rem 0.5rem;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav li.nav-section-label {
  padding: 0.5rem 0.5rem 0.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #888);
  margin-top: 0.4rem;
  margin-bottom: 2px;
}

.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.5rem;
  background-color: var(--color-surface);
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--color-text);
  text-align: left;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface);
  border-radius: 4px;
  border: 1px solid transparent;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-wrapper a {
  background: none;
  border: none;
  width: auto;
  flex-grow: 1;
  margin-bottom: 0;
}

/* Hover state for nav-wrapper should affect the wrapper, not the inner link */
.nav-wrapper:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-wrapper:hover a,
.nav-wrapper:hover .submenu-toggle {
  color: var(--color-white);
}

/* Prevent hover styles on the inner link when it's in a nav-wrapper */
.nav-wrapper a:hover::after {
  display: none;
}

.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 2;
}

.sidebar-nav a:hover, .sidebar-nav li.current > a, .sidebar-nav li.current > .nav-wrapper {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
  border-color: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Don't apply hover background to links inside nav-wrapper (handled by nav-wrapper itself) */
.nav-wrapper a:hover {
  background: none;
  border: none;
  box-shadow: none;
}

.sidebar-nav li.current > .nav-wrapper a {
  color: var(--color-white);
  padding-left: 0.75rem;
}

.sidebar-nav li.current > .nav-wrapper .submenu-toggle {
  color: var(--color-white);
}

/* Submenu specific styles */
.sidebar-nav ul ul a {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem; /* Reduced vertical padding to prevent overlapping */
    background: transparent; /* Default transparent/surface */
    border: none;
    font-weight: 400;
    line-height: 1.4; /* Tighter line height for submenu items */
}

.sidebar-nav ul ul li.current > a,
.sidebar-nav ul ul a:hover {
    /* Lighter shade of purple for submenu */
    background: linear-gradient(135deg, #b370b0, #9F4D9C); 
    color: var(--color-white);
    padding-left: 0.75rem;
    font-weight: 600;
    box-shadow: none;
}

.contact-details address {
  font-style: normal;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Call-to-Action Section */
.cta-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(126, 49, 123, 0.05), rgba(0, 80, 115, 0.05));
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
}

.cta-section h3 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.cta-button:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  background: var(--color-info-bg);
}

.cta-button.cta-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: white;
  border-color: var(--color-primary-dark);
}

.cta-button.cta-secondary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: white;
  border-color: var(--color-primary-dark);
}

.cta-button.cta-accent:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: white;
  border-color: var(--color-primary-dark);
}

.cta-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-content strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-content small {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Latest News Card */
.news-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
}

.news-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-item time {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.news-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.news-item h4 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-item h4 a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.news-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.news-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-more:hover {
  color: var(--color-accent);
}

/* Responsive adjustments for CTAs */
@media (max-width: 767px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 1.5rem;
  }
}

/* News & Media Page Styles */
.news-article {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-article:last-child {
  border-bottom: none;
}

.news-article time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: var(--color-info-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.news-article h3 {
  margin: 0.5rem 0 1rem 0;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.news-article p {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.news-article a {
  color: var(--color-accent);
  font-weight: 600;
}

.media-contact-box {
  background: linear-gradient(135deg, rgba(126, 49, 123, 0.05), rgba(0, 80, 115, 0.05));
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
}

.media-contact-box h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.media-contact-box h4 {
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.media-contact-box ul {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.expertise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.expertise-card h4 {
  margin: 0 0 0.75rem 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.expertise-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background-color: #0d0d0d;
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
  font-size: 0.9rem;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--spacing-xs);
}

.footer-col a {
  color: #ccc;
}

.footer-col a:hover {
  color: var(--color-white);
}

.post-footer {
  border-top: 1px solid #444;
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  color: #ccc;
  display: inline-flex;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.social-links a:hover {
  color: var(--color-white);
}

.social-links a:hover svg {
  opacity: 1;
}

/* Helpers */
.text-center { text-align: center; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover { background-color: var(--color-primary-dark); color: white; text-decoration: none; }

/* Visitor funding request form */
.vf-field { margin-top: 1rem; }
.vf-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.vf-field input[type="text"],
.vf-field input[type="email"],
.vf-field input[type="number"],
.vf-field input[type="date"],
.vf-field select,
.vf-field textarea {
  width: 100%;
  max-width: 30em;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}
.vf-field textarea { max-width: 40em; }
.vf-radio-group { display: flex; gap: 1.5rem; }
.vf-radio-group label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: normal; }
.vf-hint { font-size: 0.85rem; color: var(--color-text-light); margin-top: 0.25rem; }
.vf-honeypot { position: absolute; left: -9999px; top: -9999px; }
.vf-actions { margin-top: 1.5rem; }

/* Accessibility: Keyboard Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-btn:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

.sidebar-nav a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -2px;
}

/* Heading hierarchy */
main h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
}

main h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
}

main h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.card h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Prose line length */
main p,
main li {
  max-width: 72ch;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Section visual rhythm — give cards more vertical breathing room */
.card {
  margin-bottom: var(--spacing-lg);
}

main > section + section,
main > .card + .card {
  margin-top: var(--spacing-sm);
}

/* Stronger visual weight on top-level card headings */
main > .card > h2:first-child,
main > section > h2:first-child {
  padding-top: 0;
  margin-top: 0;
}

/* Publications list */
.publications-list {
  padding-left: 1.5rem;
}

.publications-list li {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.pub-citation {
  color: #2e7d32;
  font-weight: 500;
}

[data-theme="dark"] .pub-citation {
  color: #81c784;
}

.pub-title {
  color: var(--color-primary);
}

.pub-authors-toggle {
  background: none;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 0.3rem;
  vertical-align: baseline;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.pub-authors-toggle:hover {
  background: var(--color-accent);
  color: white;
}

.pub-authors-rest {
  display: inline;
}

.pub-authors-rest[hidden] {
  display: none;
}
