/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-void:       #050810;
  --bg-deep:       #080d1a;
  --bg-card:       rgba(12, 20, 38, 0.85);
  --bg-card-hover: rgba(16, 28, 52, 0.95);
  --border:        rgba(0, 200, 255, 0.12);
  --border-bright: rgba(0, 200, 255, 0.35);
  --cyan:          #00c8ff;
  --cyan-mid:      rgba(0, 200, 255, 0.65);
  --cyan-dim:      rgba(0, 200, 255, 0.15);
  --cyan-glow:     rgba(0, 200, 255, 0.35);
  --green:         #00ff88;
  --green-dim:     rgba(0, 255, 136, 0.12);
  --amber:         #ffc857;
  --text-primary:  #e8f0fe;
  --text-secondary:#8fa8c8;
  --text-muted:    #4a6280;
  --uminho-red:     #981b1f;
  --uminho-red-dim: rgba(152, 27, 31, 0.15);
  --uminho-red-glow:rgba(152, 27, 31, 0.35);
  --font-sans:     'Lato', 'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--cyan-dim); color: var(--cyan); }

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ===== UTILITY ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  background: var(--cyan-dim); color: var(--cyan);
  border: 1px solid rgba(0,200,255,0.2);
}
.tag.green { background: var(--green-dim); color: var(--green); border-color: rgba(0,255,136,0.2); }
.tag.amber { background: rgba(255,200,87,0.1); color: var(--amber); border-color: rgba(255,200,87,0.2); }
.tag.gold  { background: rgba(255,215,0,0.12); color: #ffd700; border-color: rgba(255,215,0,0.3); }

.section-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.section-label::after {
  content: ''; flex: 1; max-width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 20px; color: var(--text-primary);
}
.section-title span { color: var(--cyan); }

.section-lead {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 640px; line-height: 1.75;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  backdrop-filter: blur(12px);
}
.card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; padding: 13px 26px;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: all var(--transition); letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0070ff);
  color: #fff;
  box-shadow: 0 0 24px rgba(0,200,255,0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0,200,255,0.45);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

section { padding: 72px 0; }

/* ===== GRID NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,200,255,0.1);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.9rem; color: var(--text-primary);
  white-space: nowrap;
}
.nav-logo-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.nav-logo-title {
  font-size: 0.88rem; font-weight: 600; color: var(--text-primary);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 6px;
}
.nav-cta { margin-left: 0; }
.nav-cta-group {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin-left: 8px;
}
.nav-students-link {
  color: var(--cyan-mid);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-students-link:hover { color: var(--cyan); opacity: 1; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.6;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,255,0.12), transparent 70%);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,112,255,0.10), transparent 70%);
  bottom: -100px; left: -80px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-left { max-width: 740px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2);
  border-radius: 99px; padding: 6px 14px 6px 8px;
  font-size: 0.8rem; font-weight: 500; color: var(--cyan);
  margin-bottom: 28px; animation: fadeInUp 0.6s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, #0070ff 50%, #8040ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  margin-top: 24px; font-size: 1.05rem;
  color: var(--text-secondary); line-height: 1.8;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 40px;
  animation: fadeInUp 0.7s 0.3s ease both;
}
/* ===== HERO STATS STRIP (editorial row) ===== */
.hero-stats-strip {
  display: flex; flex-wrap: nowrap; align-items: flex-start;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-stat { padding-right: 44px; }
.hero-stat + .hero-stat {
  padding-left: 44px;
  border-left: 1px solid rgba(0,200,255,0.15);
}
.hero-stat:last-child { padding-right: 0; }
.hero-stat-val {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #ffffff 15%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 0.69rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 7px; font-weight: 600;
}

/* ===== DOMAIN COVERAGE CARD (curriculum section) ===== */
.domain-coverage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
}
.domain-coverage-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 24px;
}
.dashboard-bars {
  display: flex; flex-direction: column; gap: 14px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO PANEL SHARED ELEMENTS ===== */
.panel-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(0,200,255,0.05);
  border-bottom: 1px solid var(--border);
}
.panel-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.panel-dot.red    { background: #ff5f57; }
.panel-dot.amber  { background: #febc2e; }
.panel-dot.green  { background: #28c840; }
.panel-titlebar-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); margin-left: 4px; letter-spacing: 0.06em;
}
.domain-row {
  display: flex; flex-direction: column; gap: 6px;
}
.domain-header {
  display: flex; justify-content: space-between; align-items: center;
}
.domain-name {
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.domain-name span { display: inline-flex; align-items: center; }
.domain-name span svg { width: 14px; height: 14px; }
.domain-sem {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.domain-bar-track {
  height: 5px; background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.domain-bar-fill {
  height: 100%; border-radius: 99px;
  animation: barGrow 1.2s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: var(--bar-delay, 0.6s);
}
@keyframes barGrow {
  from { width: 0; }
}
.domain-bar-fill.c1 { width: 80%; background: linear-gradient(90deg, var(--cyan), #0070ff); }
.domain-bar-fill.c2 { width: 75%; background: linear-gradient(90deg, #00ff88, #00c8ff); }
.domain-bar-fill.c3 { width: 55%; background: linear-gradient(90deg, #8040ff, #0070ff); }
.domain-bar-fill.c4 { width: 50%; background: linear-gradient(90deg, var(--amber), #ff8c40); }
.domain-bar-fill.c5 { width: 95%; background: linear-gradient(90deg, #00c8ff, #8040ff); }

/* ===== ABOUT / OVERVIEW ===== */
#overview { background: var(--bg-deep); }
.feature-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px 56px; margin-top: 56px;
}
.feature-icon--green { background: var(--green-dim); border-color: rgba(0,255,136,0.2); color: var(--green); }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; margin: -16px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.feature-item:hover { background: rgba(0,200,255,0.04); }
.feature-item:hover .feature-icon { background: rgba(0,200,255,0.22); }
.feature-item:hover .feature-icon--green { background: rgba(0,255,136,0.18); }
.feature-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 12px; background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 0.97rem; font-weight: 600; margin-bottom: 4px; }
.feature-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }


/* ===== CURRICULUM ===== */
.curriculum-header { margin-bottom: 48px; }
.semester-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 36px;
}
.sem-tab, .res-tab {
  font-size: 0.84rem; font-weight: 600; padding: 10px 20px;
  border-radius: var(--radius-md); cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary);
  transition: all var(--transition); font-family: var(--font-sans);
}
.sem-tab.active, .res-tab.active {
  background: var(--cyan-dim); color: var(--cyan);
  border-color: var(--border-bright);
}
.sem-tab:hover:not(.active), .res-tab:hover:not(.active) { border-color: var(--border-bright); color: var(--text-primary); }

.semester-panel { display: none; }
.semester-panel.active { display: block; animation: fadeInUp 0.3s ease; }

.research-panel { display: none; }
.research-panel.active { display: block; animation: fadeInUp 0.3s ease; }

.semester-intro {
  font-size: 0.95rem; color: var(--text-secondary);
  margin-bottom: 28px; padding: 16px 20px;
  background: var(--cyan-dim); border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.course-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 24px;
  transition: all var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--cyan), #0070ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.course-card.optional { border-color: rgba(255,200,87,0.15); }
.course-card.optional::before { background: linear-gradient(90deg, var(--amber), #ff8c40); }

/* Option slot divider — spans full grid width */
.option-slot-divider {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  margin-top: 6px;
}
.option-slot-divider::before,
.option-slot-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,200,87,0.35), rgba(255,200,87,0.05));
}
.option-slot-divider::after {
  background: linear-gradient(270deg, rgba(255,200,87,0.35), rgba(255,200,87,0.05));
}
.option-slot-inner {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.option-slot-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.option-slot-note {
  font-size: 0.75rem; color: var(--text-muted); font-style: italic;
  white-space: nowrap;
}
.course-code {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.06em;
}
.course-name {
  font-size: 0.97rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 10px; line-height: 1.4;
}
.course-desc {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.6; flex: 1; margin-bottom: 14px;
}
.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.course-ects {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--cyan); font-weight: 600;
}

.dissertation-block {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(0,200,255,0.06), rgba(0,112,255,0.06));
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; gap: 32px; align-items: center;
}
.dissertation-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: var(--cyan-dim); border: 1px solid rgba(0,200,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.dissertation-icon svg { width: 28px; height: 28px; }
.dissertation-ects {
  font-family: var(--font-mono); font-size: 3rem; font-weight: 800;
  color: var(--cyan); line-height: 1;
}
.dissertation-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ===== RESEARCH ===== */
#research { background: var(--bg-deep); }
.research-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-top: 56px;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.research-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.research-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.research-icon svg { width: 26px; height: 26px; }
.research-card:nth-child(1) .research-icon { background: rgba(0,200,255,0.12);  color: var(--cyan); }
.research-card:nth-child(2) .research-icon { background: rgba(0,255,136,0.10);  color: var(--green); }
.research-card:nth-child(3) .research-icon { background: rgba(128,64,255,0.12); color: #8040ff; }
.research-card:nth-child(4) .research-icon { background: rgba(255,200,87,0.10); color: var(--amber); }
.research-card:nth-child(5) .research-icon { background: rgba(255,80,100,0.10); color: #ff5064; }
.research-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.research-card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ===== FACULTY SEPARATOR ===== */
.faculty-section {
  margin-top: 72px; padding-top: 64px;
  position: relative;
}
.faculty-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}
.faculty-section-label {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 32px;
}
.faculty-section-label span {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}
.faculty-section-label::before,
.faculty-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.faculty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px; margin-top: 0;
}
.faculty-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 12px;
}
.faculty-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.faculty-avatar {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), rgba(0,112,255,0.2));
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--cyan);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  overflow: hidden;
}
.faculty-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--transition);
}
.faculty-card:hover .faculty-avatar img {
  filter: grayscale(0%) contrast(1.1);
}
.faculty-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; line-height: 1.3; }
.faculty-name a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--transition), color var(--transition); }
.faculty-name a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.faculty-role {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.faculty-area {
  display: flex; align-items: flex-end; gap: 7px;
  font-size: 0.70rem; color: var(--cyan);
  margin-top: 3px; font-family: var(--font-mono);
  letter-spacing: 0.02em; opacity: 0.85;
}
.faculty-card.director .faculty-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(0,200,255,0.2), rgba(0,112,255,0.3));
  border-color: var(--cyan);
}
.faculty-tag {
  display: inline-block; margin-top: 4px;
  font-size: 0.65rem; padding: 2px 8px;
  background: var(--cyan-dim); color: var(--cyan);
  border-radius: 99px; border: 1px solid rgba(0,200,255,0.2);
}
.faculty-cv-badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  font-size: 0.58rem; font-weight: 700; padding: 1px 5px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-muted);
  border-radius: 99px; border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
  line-height: 1.6;
}
.faculty-cv-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), #0070ff, #8040ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.project-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.project-acronym {
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.04em;
  text-decoration: none;
}
a.project-acronym { transition: opacity var(--transition); }
a.project-acronym:hover { opacity: 0.75; }
.project-name {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.4;
}
.project-desc {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.65; flex: 1;
}
.project-footer {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.project-duration {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}

/* ===== ADMISSIONS ===== */
.admissions-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; margin-top: 56px; align-items: start;
}
.requirements-block .section-label { margin-bottom: 28px; }
.req-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.req-item:last-child { border-bottom: none; }
.req-num {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem;
  font-weight: 700; color: var(--cyan);
}
.req-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }
.req-text strong { color: var(--text-primary); font-weight: 600; }

.deadlines-block { display: flex; flex-direction: column; gap: 16px; }
.deadline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px;
  transition: all var(--transition);
}
.deadline-card:hover { border-color: var(--border-bright); }
.deadline-phase {
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); min-width: 72px;
}
.deadline-dates { flex: 1; }
.deadline-range { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.deadline-year { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.deadline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.apply-cta-block {
  margin-top: 40px; padding: 32px;
  background: linear-gradient(135deg, rgba(0,200,255,0.06), rgba(0,112,255,0.06));
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: var(--radius-lg);
}
.apply-cta-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.apply-cta-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }
.apply-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.apply-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.apply-meta-item svg { color: var(--cyan); flex-shrink: 0; }

/* ===== INTERNATIONAL STUDENTS BLOCK ===== */
.intl-block {
  margin-top: 48px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.intl-block-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px;
  background: rgba(0,200,255,0.05);
  border-bottom: 1px solid var(--border);
}
.intl-block-icon { flex-shrink: 0; width: 28px; height: 28px; color: var(--cyan); }
.intl-block-icon svg { width: 28px; height: 28px; }
.intl-block-intro {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0;
}

/* ===== ADMISSIONS NOTICES ===== */
.admissions-notices {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.notice-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px;
  transition: background var(--transition);
}
/* Vertical divider between the two columns (every even-positioned card). */
.notice-card:nth-child(2n) {
  border-left: 1px solid var(--border);
}
/* Horizontal divider between successive rows (cards beyond the first row). */
.notice-card:nth-child(n+3) {
  border-top: 1px solid var(--border);
}
.notice-card:hover { background: rgba(0,200,255,0.03); }

/* Closing note beneath the international-students grid. */
.intl-welcome-note {
  margin: 24px 28px 0;
  padding: 18px 22px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: rgba(0,200,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.intl-welcome-note a { color: var(--cyan); text-decoration: none; }
.intl-welcome-note a:hover { text-decoration: underline; }
.notice-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.18);
  border-radius: 12px;
  color: var(--cyan);
}
.notice-icon svg { width: 20px; height: 20px; }
.notice-title {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.notice-body p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.7;
}
.notice-body a { color: var(--cyan); text-decoration: none; }
.notice-body a:hover { text-decoration: underline; }
.notice-link {
  display: inline-block; margin-top: 12px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(0,200,255,0.3);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}
.notice-link:hover { border-color: var(--cyan); }

@media (max-width: 820px) {
  .admissions-notices { grid-template-columns: 1fr; }
  .notice-card:nth-child(n) { border-left: none; border-top: none; }
  .notice-card + .notice-card { border-top: 1px solid var(--border); }
  .intl-welcome-note { margin: 24px 0 0; }
}

/* ===== CONTACT ===== */
#contact { background: var(--bg-deep); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 56px;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.contact-icon { margin-bottom: 14px; color: var(--cyan); }
.contact-icon svg { width: 26px; height: 26px; }
.contact-card-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.contact-card-value {
  font-size: 0.95rem; font-weight: 500; color: var(--text-primary);
  font-family: var(--font-mono);
}
.contact-card-value a { color: var(--cyan); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-void); border-top: 1px solid var(--border);
  padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.9rem; color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-text {
  font-size: 0.83rem; color: var(--text-muted); line-height: 1.7;
  max-width: 480px; margin: 0 auto 20px;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 24px; list-style: none; font-size: 0.83rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-divider { margin: 24px auto; max-width: 160px; height: 1px; background: var(--border); }
.footer-bottom { font-size: 0.78rem; color: var(--text-muted); }

/* ===== ANIMATED SCAN LINE (commented out) =====
.scan-bar { ... }
@keyframes scanMove { ... }
===== end scan line ===== */

/* ===== PUBLICATIONS ===== */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.pub-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.pub-item:hover {
  background: var(--cyan-dim);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--radius-sm);
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-top: 4px;
  white-space: nowrap;
}

.pub-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pub-author { font-weight: 500; }

.pub-sep { margin: 0 5px; color: var(--text-muted); }

.pub-venue { font-style: italic; }

.pub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.pub-doi {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.pub-doi:hover {
  background: var(--cyan);
  color: var(--bg-void);
  border-color: var(--cyan);
}

.pub-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.pub-tag--cs   { background: rgba(0,255,136,0.12); color: var(--green); }
.pub-tag--net  { background: rgba(0,200,255,0.12); color: var(--cyan);  }
.pub-tag--dist { background: rgba(255,200,87,0.12); color: var(--amber); }
.pub-tag--sec  { background: rgba(152,27,31,0.15); color: #e06060; }
.pub-tag--diss { background: var(--uminho-red-dim); color: #d06060; border: 1px solid var(--uminho-red-glow); }

.pub-footer-note {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== NAV THEME TOGGLE (single icon button) ===== */
.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition),
              border-color var(--transition),
              background var(--transition);
}
.nav-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  background: var(--cyan-dim);
}
.nav-theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.nav-theme-toggle .theme-icon { width: 18px; height: 18px; display: block; }
/* Dark theme (no .theme-light): show the sun icon (click to go light). */
.nav-theme-toggle .theme-icon--moon { display: none; }
.nav-theme-toggle .theme-icon--sun  { display: block; }
/* Light theme: show the moon icon (click to go dark). */
body.theme-light .nav-theme-toggle .theme-icon--sun  { display: none; }
body.theme-light .nav-theme-toggle .theme-icon--moon { display: block; }

/* ===== THEME TOGGLE BAR (legacy — retained for backward compatibility) ===== */
.theme-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.theme-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.theme-switch-slider {
  position: absolute; inset: 0;
  background: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.theme-switch-slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.theme-switch input:checked + .theme-switch-slider {
  background: rgba(240, 170, 40, 0.18);
  border-color: rgba(240, 170, 40, 0.45);
}
.theme-switch input:checked + .theme-switch-slider::before {
  transform: translateX(22px);
  background: #e8a020;
}

/* ===== LIGHT THEME ===== */
body.theme-light {
  --bg-void:        #f2f5fb;
  --bg-deep:        #e4ecf7;
  --bg-card:        rgba(255, 255, 255, 0.90);
  --bg-card-hover:  rgba(235, 244, 255, 0.98);
  --border:         rgba(0, 90, 160, 0.13);
  --border-bright:  rgba(0, 90, 160, 0.32);
  --cyan:           #0069b0;
  --cyan-dim:       rgba(0, 105, 176, 0.09);
  --cyan-glow:      rgba(0, 105, 176, 0.22);
  --green:          #007a45;
  --green-dim:      rgba(0, 122, 69, 0.09);
  --amber:          #9a6800;
  --text-primary:   #0c1d38;
  --text-secondary: #2d4a6e;
  --text-muted:     #6080a0;
  --uminho-red-dim: rgba(152, 27, 31, 0.07);
}

body.theme-light #navbar.scrolled {
  background: rgba(238, 244, 253, 0.96);
  box-shadow: 0 1px 0 rgba(0, 90, 160, 0.12);
}
body.theme-light .nav-links a:hover { background: rgba(0, 90, 160, 0.07); }
body.theme-light .nav-logo-divider  { background: rgba(0, 30, 80, 0.18); }

body.theme-light #hero {
  background: linear-gradient(160deg, #dceaf8 0%, #f2f5fb 60%);
}
body.theme-light #hero-canvas { opacity: 0.55; }
body.theme-light .hero-glow-1 {
  background: radial-gradient(circle, rgba(0,105,176,0.10), transparent 70%);
}
body.theme-light .hero-glow-2 {
  background: radial-gradient(circle, rgba(0,70,140,0.07), transparent 70%);
}

body.theme-light section:not(#hero) {
  background: var(--bg-void);
}
/* Curriculum section usage of the dashboard card */
.curriculum-overview { margin-bottom: 48px; }
.curriculum-overview .domain-bar-fill { animation-play-state: paused; }
.curriculum-overview.bars-visible .domain-bar-fill { animation-play-state: running; }

body.theme-light .hero-stat-val {
  background: linear-gradient(135deg, var(--text-primary), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .domain-coverage { padding: 24px 20px; }
}
@media (max-width: 900px) {
  .feature-list { grid-template-columns: 1fr; }
  .admissions-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta-group { display: none; }
  .hamburger { display: flex; }
  .hero-stats-strip { flex-wrap: wrap; }
  .hero-stat { padding-right: 24px; }
  .hero-stat + .hero-stat { padding-left: 24px; }
  .research-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr 1fr; }
  .dissertation-block { flex-direction: column; gap: 20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 52px 1fr; grid-template-rows: auto auto; }
  .pub-actions { flex-direction: row; grid-column: 2; align-items: center; }
}
@media (max-width: 440px) {
  .faculty-grid { grid-template-columns: 1fr; }
}

/* ===== STUDENTS PAGE ===== */

/* Page header (replaces the hero for students.html) */
.students-header {
  padding: 120px 0 56px;
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.students-header::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
  pointer-events: none;
}

/* Proposals stats strip */
.proposals-stats {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; flex-wrap: wrap;
}
.proposals-stats-note {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}

/* Proposal groups (Open / Allocated) */
.proposals-group { margin-bottom: 48px; }
.proposals-group-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.proposals-group-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); margin: 0;
}

/* Filter bar */
.proposals-filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 32px; flex-wrap: wrap;
}
.proposals-search-wrap {
  display: flex; align-items: center; gap: 9px;
  flex: 1; min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px;
  transition: border-color var(--transition);
}
.proposals-search-wrap:focus-within { border-color: var(--border-bright); }
.proposals-search-wrap svg { flex-shrink: 0; color: var(--text-muted); }
.proposals-search-wrap input[type="search"] {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.88rem;
  font-family: var(--font-body); padding: 10px 0;
  width: 100%;
}
.proposals-search-wrap input[type="search"]::placeholder { color: var(--text-muted); }
.proposals-search-wrap input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.proposals-filter-bar select {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.85rem;
  font-family: var(--font-body); border-radius: 8px;
  padding: 10px 14px; cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.proposals-filter-bar select:focus { border-color: var(--border-bright); }
.proposals-live-count {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); letter-spacing: 0.04em;
  white-space: nowrap;
}
.proposals-no-results {
  text-align: center; padding: 40px 0;
  color: var(--text-muted); font-size: 0.9rem;
}
.proposals-clear-btn {
  background: none; border: none; cursor: pointer;
  color: var(--cyan-mid); font-size: 0.88rem;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 0; margin-left: 6px;
}
.proposals-clear-btn:hover { color: var(--cyan); }

/* Compact proposal list */
.proposals-list { display: flex; flex-direction: column; gap: 2px; }

.proposal-item { border-radius: 8px; overflow: hidden; }
.proposal-item.allocated { opacity: 0.75; }
.proposal-item.allocated:hover { opacity: 1; }

.proposal-item-header {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; text-align: left;
  transition: background var(--transition), border-color var(--transition);
}
.proposal-item-header:hover,
.proposal-item[aria-expanded="true"] .proposal-item-header {
  background: var(--bg-card-hover); border-color: var(--border-bright);
}
.proposal-item-header[aria-expanded="true"] {
  background: var(--bg-card-hover); border-color: var(--border-bright);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.proposal-item-badges { display: flex; gap: 6px; flex-shrink: 0; }
.proposal-item-title {
  flex: 1; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.4;
}
.proposal-item-meta {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: var(--font-mono); white-space: nowrap;
  flex-shrink: 0; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis;
}
.proposal-item-chevron {
  flex-shrink: 0; color: var(--text-muted);
  transition: transform 0.2s ease;
}
.proposal-item-header[aria-expanded="true"] .proposal-item-chevron {
  transform: rotate(180deg);
}

/* Expanded detail panel */
.proposal-item-detail[hidden] { display: none; }
.proposal-item-detail {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-bright); border-top: none;
  border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
  padding: 20px 20px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}

.proposal-company {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--amber); letter-spacing: 0.05em;
}
.proposal-supervisors {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.855rem; color: var(--text-secondary); flex-wrap: wrap;
}
.proposal-supervisors svg { flex-shrink: 0; color: var(--cyan); }
.sup-sep { color: var(--text-muted); }
.co-sup-affil { font-size: 0.78rem; color: var(--amber); margin-left: 2px; }

.proposal-context {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.72; margin: 0;
}

.proposal-objectives { }
.proposal-objectives-label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.proposal-objectives ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.proposal-objectives ul li {
  font-size: 0.865rem; color: var(--text-secondary);
  display: flex; gap: 8px; line-height: 1.5;
}
.proposal-objectives ul li::before {
  content: '→'; color: var(--cyan);
  font-family: var(--font-mono); font-size: 0.8rem;
  flex-shrink: 0; margin-top: 1px;
}

.proposal-pdf { align-self: flex-start; font-size: 0.85rem; }

.proposal-updated {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.04em;
  margin-bottom: -6px;
}

/* "New" badge */
.tag--new {
  background: rgba(0, 230, 195, 0.12);
  color: #00e6c3;
  border: 1px solid rgba(0, 230, 195, 0.35);
  animation: pulse-new 2.4s ease-in-out infinite;
}
@keyframes pulse-new {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 6px rgba(0, 230, 195, 0.4); }
}

@media (max-width: 640px) {
  .proposal-item-meta { display: none; }
  .proposals-filter-bar { flex-direction: column; align-items: stretch; }
  .proposals-search-wrap { min-width: 0; }
}

/* Completed dissertations — year grouping */
.pub-year-group { margin-bottom: 40px; }
.pub-year-heading {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.pub-year-heading::after {
  content: ''; flex: 1; max-width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ── Research › Dissertations: current-students callout ─────────────────── */
.students-callout {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg,
    rgba(0,230,195,0.06) 0%,
    rgba(0,150,200,0.04) 100%);
  border: 1px solid rgba(0,230,195,0.2);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.students-callout-icon {
  flex-shrink: 0;
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(0,230,195,0.08);
  border-radius: 10px;
}
.students-callout-body {
  flex: 1; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55;
}
.students-callout-body strong { color: var(--text-primary); }
.students-callout-body a {
  color: var(--cyan-mid); text-decoration: underline;
  text-underline-offset: 3px;
}
.students-callout-body a:hover { color: var(--cyan); }
.students-callout-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--cyan-mid);
  border-radius: 8px;
  color: var(--cyan-mid);
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-mono);
  letter-spacing: 0.04em; white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.students-callout-btn:hover {
  background: rgba(0,230,195,0.1);
  color: var(--cyan); border-color: var(--cyan);
}
@media (max-width: 640px) {
  .students-callout { flex-direction: column; align-items: flex-start; gap: 14px; }
  .students-callout-btn { align-self: stretch; justify-content: center; }
}

/* ===== FEED SUBSCRIPTION BUTTONS ===== */
.section-header-row {
  display: flex; align-items: center; justify-content: space-between;
}
.feed-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 0.63rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid transparent; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
}
.feed-btn--rss  { color: rgba(255,120,0,0.70); border-color: rgba(255,120,0,0.25); }
.feed-btn--rss:hover  { color: #ff7800; border-color: rgba(255,120,0,0.55);
                        background: rgba(255,120,0,0.06); }
.feed-btn--ical { color: rgba(0,200,255,0.70); border-color: rgba(0,200,255,0.25); }
.feed-btn--ical:hover { color: var(--cyan); border-color: rgba(0,200,255,0.50);
                        background: rgba(0,200,255,0.05); }

body.theme-light .feed-btn--rss          { color: #c05800; border-color: rgba(192,88,0,0.25); }
body.theme-light .feed-btn--rss:hover    { color: #9a4600; border-color: rgba(192,88,0,0.55); background: rgba(192,88,0,0.05); }
body.theme-light .feed-btn--ical         { color: #0060a8; border-color: rgba(0,96,168,0.25); }
body.theme-light .feed-btn--ical:hover   { color: #004d8c; border-color: rgba(0,96,168,0.50); background: rgba(0,96,168,0.05); }

/* ===== ANNOUNCEMENTS ===== */
.ann-search-wrap {
  position: relative; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
  transition: border-color var(--transition);
}
.ann-search-wrap:focus-within { border-color: var(--border-bright); }
.ann-search-wrap svg { flex-shrink: 0; color: var(--text-muted); }
.ann-search-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-sans); font-size: 0.88rem;
  color: var(--text-primary); caret-color: var(--cyan);
}
.ann-search-wrap input::placeholder { color: var(--text-muted); }

/* Show all cards (including older) while a search is active */
.ann-list.ann-searching .ann-card--older { display: block !important; }

.ann-no-results {
  font-size: 0.88rem; color: var(--text-muted);
  text-align: center; padding: 28px 0;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

.ann-list { display: flex; flex-direction: column; gap: 16px; }

.ann-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: border-color var(--transition);
}
.ann-card:hover { border-color: var(--border-bright); }

.ann-card--pinned {
  border-color: rgba(0, 200, 255, 0.28);
  background: rgba(0, 200, 255, 0.04);
}

.ann-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ann-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ann-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ann-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  transition: color var(--transition);
}
.ann-link:hover { color: #fff; }

/* Collapse: older items hidden until list has .ann-expanded */
.ann-list:not(.ann-expanded) .ann-card--older { display: none; }

.ann-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: none;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.ann-toggle-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

/* Light theme */
body.theme-light .ann-card          { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
body.theme-light .ann-card--pinned  { background: rgba(0,120,200,0.06); border-color: rgba(0,120,200,0.25); }
body.theme-light .ann-title         { color: #0d1a2e; }
body.theme-light .ann-body          { color: #3a4d62; }
body.theme-light .ann-meta          { color: #8090a4; }
body.theme-light .ann-toggle-btn    { color: #0060a8; border-color: rgba(0,96,168,0.4); }
body.theme-light .ann-toggle-btn:hover { background: rgba(0,96,168,0.06); border-color: #0060a8; }
body.theme-light .ann-search-wrap   { background: #fff; border-color: rgba(0,0,0,0.08); }
body.theme-light .ann-search-wrap input { color: #0d1a2e; }
body.theme-light .ann-sample-badge  { background: rgba(220,130,0,0.08); color: #a06000; border-color: rgba(200,120,0,0.25); }

.ann-sample-badge {
  font-size: 0.60rem; font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255,160,0,0.10);
  color: var(--amber);
  border: 1px solid rgba(255,160,0,0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ===== CALENDAR GRID ===== */

/* Coming-up strip label */
.cal-upcoming-label {
  font-size: 0.65rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  margin: 20px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.cal-upcoming-label::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
body.theme-light .cal-upcoming-label { color: #0060a8; }

/* Coming-up strip */
.cal-upcoming {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 28px;
}
.cal-up-empty {
  font-size: 0.82rem; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  padding: 16px 0;
}
.cal-up-card {
  flex: 1 1 160px; max-width: 230px;
  display: flex; flex-direction: column; gap: 5px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}
.cal-up-card--submission { border-left-color: var(--cyan); }
.cal-up-card--test       { border-left-color: var(--amber); }
.cal-up-card--oral       { border-left-color: var(--green); }
.cal-up-card--other      { border-left-color: var(--text-muted); }

/* Urgency highlights */
.cal-up-card--today { background: rgba(0,200,255,0.05); border-color: rgba(0,200,255,0.35); border-left-color: var(--cyan); }
.cal-up-card--soon  { background: rgba(255,160,0,0.04); border-color: rgba(255,160,0,0.25); }

.cal-up-when {
  font-size: 0.65rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
}
.cal-up-card--today .cal-up-when { color: var(--cyan); }
.cal-up-card--soon  .cal-up-when { color: var(--amber); }

.cal-up-chip {
  font-size: 0.62rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.04em; color: var(--text-muted);
}
.cal-up-card--submission .cal-up-chip { color: var(--cyan); }
.cal-up-card--test       .cal-up-chip { color: var(--amber); }
.cal-up-card--oral       .cal-up-chip { color: var(--green); }

.cal-up-title {
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Light theme */
body.theme-light .cal-up-card         { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
body.theme-light .cal-up-card--today  { background: rgba(0,96,168,0.05); border-color: rgba(0,96,168,0.3); }
body.theme-light .cal-up-card--soon   { background: rgba(180,100,0,0.04); border-color: rgba(180,100,0,0.2); }
body.theme-light .cal-up-title        { color: #3a4d62; }
body.theme-light .cal-up-when         { color: #8090a4; }
body.theme-light .cal-up-card--today .cal-up-when { color: #0060a8; }
body.theme-light .cal-up-card--soon  .cal-up-when { color: #a06000; }

@media (max-width: 540px) {
  .cal-up-card { flex: 1 1 140px; max-width: none; padding: 10px 12px; }
}

/* Calendar toggle button */
.cal-toggle-wrap {
  display: flex; justify-content: center;
  margin: 4px 0 0;
}
.cal-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  font-size: 0.72rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
}
.cal-toggle-btn:hover {
  color: var(--text-secondary);
  border-color: var(--cyan);
  background: rgba(0,200,255,0.04);
}
.cal-toggle-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.cal-toggle-btn[aria-expanded="true"] .cal-toggle-chevron {
  transform: rotate(180deg);
}
body.theme-light .cal-toggle-btn       { color: #6a7d95; border-color: rgba(0,0,0,0.12); }
body.theme-light .cal-toggle-btn:hover { color: #1a2a3a; border-color: #0060a8; background: rgba(0,96,168,0.04); }

/* Collapsible wrapper */
.cal-collapsible {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  margin-top: 0;
}
.cal-collapsible.is-open {
  max-height: 2600px;
}

.cal-shell { margin-top: 8px; }

/* Filter bar */
.cal-filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.cal-filter-btn {
  font-size: 0.68rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 99px;
  border: 1px solid var(--border); background: none;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
}
.cal-filter-btn:hover                             { border-color: var(--border-bright); color: var(--text-secondary); }
.cal-filter-btn--active                           { border-color: var(--border-bright); color: var(--text-primary); background: var(--bg-card-hover); }
.cal-filter-btn--submission.cal-filter-btn--active { border-color: var(--cyan);  color: var(--cyan);  background: rgba(0,200,255,0.08); }
.cal-filter-btn--test.cal-filter-btn--active       { border-color: var(--amber); color: var(--amber); background: rgba(255,160,0,0.08); }
.cal-filter-btn--oral.cal-filter-btn--active       { border-color: var(--green); color: var(--green); background: rgba(74,222,128,0.08); }

.cal-filter-cu {
  font-size: 0.68rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); cursor: pointer; margin-left: auto;
  transition: border-color var(--transition);
}
.cal-filter-cu:focus { outline: none; border-color: var(--border-bright); }

/* Navigation bar */
.cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 16px;
}
.cal-nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.cal-nav-btn:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.cal-nav-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Weekday headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.cal-weekdays span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
}

/* Day grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.cal-cell {
  min-height: 68px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 6px 6px 5px;
  gap: 2px;
  cursor: default;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
  overflow: hidden;
}
.cal-cell--empty  { background: transparent; border-color: transparent; }
.cal-cell--past   { opacity: 0.4; }
.cal-cell--today  { border-color: rgba(0,200,255,0.45); background: rgba(0,200,255,0.06); }
.cal-cell--has-events { cursor: pointer; }
.cal-cell--has-events:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.cal-cell--selected,
.cal-cell--selected:hover { border-color: var(--cyan) !important; background: rgba(0,200,255,0.1) !important; }

/* Day number — top-right */
.cal-cell-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  align-self: flex-end;
  margin-bottom: 3px;
}
.cal-cell--today .cal-cell-num       { color: var(--cyan); font-weight: 800; }
.cal-cell--has-events .cal-cell-num  { color: var(--text-primary); }

/* Event chips */
.cal-chip {
  font-size: 0.60rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 4px 1px 5px;
  border-radius: 3px;
  border-left: 2px solid transparent;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.cal-chip--submission { border-left-color: var(--cyan);  color: var(--cyan);       background: rgba(0,200,255,0.07); }
.cal-chip--test       { border-left-color: var(--amber); color: var(--amber);      background: rgba(255,160,0,0.07); }
.cal-chip--oral       { border-left-color: var(--green); color: var(--green);      background: rgba(74,222,128,0.07); }
.cal-chip--other      { border-left-color: var(--text-muted); color: var(--text-muted); background: rgba(255,255,255,0.04); }
.cal-chip--more       { border-left-color: transparent; background: none; color: var(--text-muted); font-size: 0.56rem; padding-left: 2px; }

/* Detail panel */
.cal-day-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 4px;
  animation: calFadeIn 0.15s ease;
}
@keyframes calFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cal-detail-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.cal-detail-event {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-detail-event:last-child { border-bottom: none; padding-bottom: 0; }

/* Detail panel inner elements (shared with proposal cards) */
.cal-event-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-event-title  { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.cal-cu {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px;
  flex-shrink: 0;
}
.cal-desc { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; line-height: 1.6; }

/* Sample-data notice in detail panel */
.cal-sample-notice {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--amber);
  background: rgba(255,160,0,0.07);
  border: 1px solid rgba(255,160,0,0.20);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

/* Light theme */
body.theme-light .cal-filter-btn       { border-color: rgba(0,0,0,0.1); color: #6070a0; }
body.theme-light .cal-filter-btn--active { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.18); color: #0d1a2e; }
body.theme-light .cal-filter-cu        { background: #fff; border-color: rgba(0,0,0,0.1); color: #6070a0; }
body.theme-light .cal-filter-bar       { border-bottom-color: rgba(0,0,0,0.08); }
body.theme-light .cal-nav-btn          { background: #fff; border-color: rgba(0,0,0,0.1); color: #0d1a2e; }
body.theme-light .cal-nav-label        { color: #0d1a2e; }
body.theme-light .cal-cell             { background: rgba(255,255,255,0.65); border-color: rgba(0,0,0,0.08); }
body.theme-light .cal-cell--today      { background: rgba(0,96,168,0.06); border-color: rgba(0,96,168,0.35); }
body.theme-light .cal-cell--today .cal-cell-num { color: #0060a8; }
body.theme-light .cal-cell--has-events .cal-cell-num { color: #0d1a2e; }
body.theme-light .cal-cell-num         { color: #6070a0; }
body.theme-light .cal-cell--selected,
body.theme-light .cal-cell--selected:hover { border-color: #0060a8 !important; background: rgba(0,96,168,0.08) !important; }
body.theme-light .cal-day-detail       { background: rgba(255,255,255,0.92); border-color: rgba(0,96,168,0.3); }
body.theme-light .cal-detail-date      { color: #0060a8; }
body.theme-light .cal-event-title      { color: #0d1a2e; }
body.theme-light .cal-cu               { background: rgba(0,0,0,0.04); color: #6070a0; }
body.theme-light .cal-sample-notice    { background: rgba(200,120,0,0.06); border-color: rgba(200,120,0,0.2); color: #a06000; }
body.theme-light .cal-chip--submission { background: rgba(0,100,168,0.07); }
body.theme-light .cal-chip--test       { background: rgba(160,96,0,0.07); }
body.theme-light .cal-chip--oral       { background: rgba(0,140,60,0.07); }

@media (max-width: 540px) {
  .cal-cell      { min-height: 44px; padding: 4px; }
  .cal-cell-num  { font-size: 0.68rem; }
  .cal-chip      { font-size: 0.54rem; }
  .cal-chip--more { display: none; }
  .cal-day-detail { padding: 16px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--bg-deep); border-top: 1px solid var(--border);
  padding: 18px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
.cookie-banner-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cookie-banner-text {
  flex: 1 1 320px; margin: 0;
  font-size: 0.85rem; line-height: 1.6; color: var(--text-secondary);
}
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.85rem; }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ===== LEGAL PAGES (Accessibility, Privacy) ===== */
.legal-content { max-width: 760px; margin: 0 auto; padding: 60px 0 100px; }
.legal-content h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
  margin: 44px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.95rem; line-height: 1.75; color: var(--text-secondary);
  margin: 0 0 16px;
}
.legal-content ul {
  margin: 0 0 16px; padding-left: 22px;
}
.legal-content li {
  font-size: 0.95rem; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 8px;
}
.legal-content strong { color: var(--text-primary); }
.legal-content a { border-bottom: 1px solid var(--border); }
.legal-content a:hover { color: var(--cyan); border-color: var(--cyan); }
.legal-content .legal-meta {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 40px;
}
