/* static/css/style.css */
:root {
  --primary: #2c3e50;
  --secondary: #1a73e8;
  --accent: #7b2cf5;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #dfe7ef;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e6eef5 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1060px;
  margin: 24px auto 40px;
  padding: 0 20px;
  position: relative;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 4px 20px;
  flex-wrap: wrap;
}

.site-topbar-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(209, 221, 235, 0.65);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  flex-shrink: 0;
}

.site-topbar-badge-image {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(35, 63, 92, 0.12);
  padding: 6px;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.site-brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-left: auto;
  padding-right: 0;
}

.main-nav a {
  color: #516477;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 8px 2px 10px;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: var(--secondary);
}

.main-nav a.is-active {
  color: var(--primary);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.admin-return-link {
  margin-left: 16px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.admin-return-link:hover {
  text-decoration: underline;
}

.content-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(36, 61, 87, 0.09);
  padding: 28px 30px 32px;
  margin-bottom: 30px;
  border: 1px solid rgba(223, 231, 239, 0.9);
}

h2 {
  color: var(--primary);
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

h3 {
  color: var(--primary);
}

p {
  font-size: 17px;
  margin: 16px 0;
  text-align: center;
  color: var(--text);
}

.btn,
button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
}

.btn:hover,
button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

form {
  max-width: 520px;
  margin: 0 auto;
}

label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--secondary);
}

.portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 20px;
  margin-bottom: 26px;
  background:
    linear-gradient(118deg, rgba(22, 46, 74, 0.95) 0%, rgba(34, 77, 125, 0.82) 48%, rgba(111, 147, 190, 0.55) 100%);
  box-shadow: 0 18px 40px rgba(36, 61, 87, 0.18);
}

.portal-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
}

.portal-hero-content {
  position: relative;
  z-index: 1;
  padding: 42px 40px 38px;
  color: #f5f9ff;
}

.portal-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.portal-hero-copy {
  max-width: 620px;
}

.portal-hero-side {
  display: flex;
  justify-content: flex-end;
}

.portal-hero-panel {
  width: min(100%, 430px);
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 32px rgba(14, 29, 47, 0.16);
  backdrop-filter: blur(4px);
  min-height: 324px;
  height: auto;
}

.portal-hero-panel-label {
  margin-bottom: 14px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.portal-hero-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.portal-hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.08;
  text-align: left;
  color: #ffffff;
}

.portal-hero-title-link {
  color: inherit;
  text-decoration: none;
}

.portal-hero-subtitle {
  margin: 0 0 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  font-weight: 600;
}

.portal-hero-subtitle-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.portal-hero-subtitle-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.portal-hero-summary {
  margin: 0;
  max-width: 560px;
  text-align: left;
  color: rgba(245, 249, 255, 0.86);
  font-size: 1rem;
}

.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.portal-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.portal-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-hero-btn {
  margin-top: 0;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(17, 36, 58, 0.24);
}

.portal-hero-btn:hover {
  background: #f8fbff;
  color: var(--primary);
}

.portal-hero-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.portal-hero-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.portal-carousel-section {
  margin-bottom: 24px;
}

.portal-news-preview {
  margin-bottom: 24px;
}

.portal-news-card,
.news-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
}

.portal-news-card {
  padding: 18px 20px;
}

.portal-news-meta,
.news-card-date,
.news-detail-meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}

.portal-news-title,
.news-card-title {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.4;
}

.portal-news-title:hover,
.news-card-title:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.portal-news-summary,
.news-card-summary,
.news-detail-summary,
.news-detail-content {
  text-align: left;
}

.portal-news-summary,
.news-card-summary {
  margin: 10px 0 0;
}

.portal-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.portal-section-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.portal-section-note {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.portal-highlights-section {
  margin-bottom: 24px;
}

.portal-highlights {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.portal-highlights-hero {
  grid-template-columns: minmax(146px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: stretch;
}

.portal-highlight-nav {
  display: grid;
  gap: 10px;
  height: auto;
  grid-auto-rows: minmax(0, auto);
}

.portal-highlight-trigger {
  width: 100%;
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe7f3;
  background: #f8fbff;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.portal-hero-panel .portal-highlight-trigger {
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f9ff;
  min-height: 54px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.18;
  white-space: normal;
}

.portal-highlight-trigger:hover,
.portal-highlight-trigger:focus-visible,
.portal-highlight-trigger.is-active {
  background: linear-gradient(145deg, #ffffff 0%, #f1f7ff 100%);
  border-color: #b9d4f5;
  box-shadow: 0 10px 22px rgba(44, 62, 80, 0.08);
  transform: translateY(-1px);
}

.portal-hero-panel .portal-highlight-trigger:hover,
.portal-hero-panel .portal-highlight-trigger:focus-visible,
.portal-hero-panel .portal-highlight-trigger.is-active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.portal-highlight-display {
  position: relative;
  min-height: 220px;
  height: auto;
  width: 100%;
}

.portal-highlight-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  padding: 24px 24px 22px;
  border-radius: 18px;
  border: 1px solid #e4ebf3;
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
  transition: opacity 0.25s ease;
  overflow: visible;
  min-height: 220px;
  height: auto;
}

.portal-hero-panel .portal-highlight-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 28, 48, 0.28);
  box-shadow: none;
}

.portal-highlight-card.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.portal-highlight-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.portal-hero-panel .portal-highlight-index {
  color: rgba(214, 232, 255, 0.8);
}

.portal-highlight-card h4 {
  margin: 0 0 10px;
  font-size: 1.26rem;
  line-height: 1.28;
  min-height: calc(1.28em * 2);
}

.portal-hero-panel .portal-highlight-card h4,
.portal-hero-panel .portal-highlight-card p {
  color: #f5f9ff;
}

.portal-highlight-card p {
  margin: 0;
  text-align: left;
  line-height: 1.56;
  font-size: 1rem;
  color: rgba(245, 249, 255, 0.92);
  min-height: calc(1.56em * 9);
}

.portal-carousel {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
  overflow: hidden;
}

.portal-carousel-track {
  position: relative;
  min-height: 410px;
}

.portal-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.portal-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.portal-slide-media {
  background: #e9f0f7;
  min-height: 410px;
}

.portal-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-slide-content {
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-slide-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.portal-slide-title {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.38rem;
  line-height: 1.42;
  font-weight: 800;
}

.portal-slide-title:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.portal-slide-authors,
.portal-slide-meta,
.portal-slide-summary {
  text-align: left;
}

.portal-slide-authors {
  margin: 12px 0 6px;
  color: #4b5f73;
  font-size: 0.98rem;
}

.portal-slide-meta {
  margin: 0;
  color: #7f8c9b;
  font-style: italic;
  font-size: 0.95rem;
}

.portal-slide-summary {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 0.98rem;
}

.portal-slide-actions {
  margin-top: 16px;
}

.portal-slide-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.portal-slide-link:hover {
  text-decoration: underline;
}

.portal-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 18px;
}

.portal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #cad7e5;
  cursor: pointer;
  margin-top: 0;
  padding: 0;
  box-shadow: none;
}

.portal-dot.is-active {
  background: var(--secondary);
  transform: scale(1.15);
}

.portal-dot:hover {
  background: #5e93dc;
  transform: scale(1.08);
  box-shadow: none;
}

.portal-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.portal-about,
.portal-side-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
}

.portal-about {
  padding: 22px 24px;
}

.portal-about-body {
  white-space: pre-wrap;
  text-align: left;
  color: var(--text);
}

.portal-side-card {
  padding: 20px 20px 18px;
}

.portal-side-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.portal-side-text,
.portal-user-line {
  text-align: left;
}

.portal-side-text {
  margin: 0;
}

.portal-user-line {
  margin: 12px 0 0;
  color: #516477;
  font-size: 0.95rem;
}

.portal-inline-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.portal-inline-link:hover {
  text-decoration: underline;
}

.portal-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.portal-side-stats-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-side-stat {
  background: linear-gradient(145deg, #f7fbff 0%, #eef5fd 100%);
  border: 1px solid #dde8f4;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  min-width: 0;
}

.portal-side-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.portal-side-metric {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.publication-card,
.team-entry,
.news-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.publication-card:hover,
.team-entry:hover,
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
  border-color: #d7e6f7 !important;
}

.publication-card h3,
.team-entry-body a {
  word-break: break-word;
}

.person-detail-photo,
.publication-thumb,
.team-entry-photo {
  background: #eef3f8;
}

.paper-detail-page .btn {
  min-width: 206px;
}

.paper-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.paper-detail-title {
  margin: 0;
  text-align: left;
  flex: 1;
}

.paper-download-inline {
  color: #7f8c9b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.paper-links-row a {
  text-decoration: none;
}

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

.paper-detail-page .paper-action-row {
  margin-top: 18px !important;
}

.person-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.person-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5fd 100%);
  border: 1px solid #dce8f3;
  color: #4b6480;
  font-size: 0.84rem;
  font-weight: 700;
}

.publication-year-group {
  margin-bottom: 26px;
}

.publications-access-card {
  margin-bottom: 24px;
  padding: 20px 20px 18px;
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
}

.publication-year-heading {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dbe5f0;
  font-size: 1.4rem;
}

.publication-empty {
  text-align: left;
  color: var(--text-light);
  font-size: 0.98rem;
  margin: 0 0 18px;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.news-card-image-link {
  display: block;
  min-height: 180px;
  background: #e9f0f7;
}

.news-card-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 18px 20px;
}

.news-detail-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  margin-bottom: 18px;
  background: #e9f0f7;
}

.news-detail-summary {
  font-size: 1.06rem;
  color: #4b5f73;
  margin-bottom: 12px;
}

.news-detail-content {
  white-space: pre-wrap;
  color: var(--text);
}

footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  color: var(--text-light);
  font-size: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.78fr);
  gap: 26px;
  align-items: stretch;
}

.footer-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-right: 8px;
}

.footer-right {
  text-align: right;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 420px;
  justify-self: end;
  align-self: stretch;
  justify-content: flex-end;
}

.footer-text {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

.separator {
  margin: 0 8px;
  color: #cbd5e0;
}

.footer-meta {
  color: var(--text-light);
  padding-left: 2px;
  line-height: 1.35;
}

.footer-credit {
  margin-top: 3px;
  font-size: 0.76rem;
  opacity: 0.72;
}

.footer-version {
  opacity: 0.75;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  color: inherit;
  text-decoration: underline;
}

.footer-links-strip {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 10px;
  width: fit-content;
}

.footer-link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(209, 221, 235, 0.65);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-link-card:hover {
  border-color: rgba(152, 182, 214, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(36, 61, 87, 0.08);
}

.footer-link-image,
.footer-link-fallback {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-link-image {
  object-fit: contain;
}

.footer-link-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b6480;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid rgba(209, 221, 235, 0.65);
}

footer a:not(.footer-link-card) {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:not(.footer-link-card):hover {
  color: var(--accent);
  text-decoration: underline;
}

.photon-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123,44,245,0.26) 0%, rgba(26,115,232,0.12) 58%, rgba(255,255,255,0) 72%);
  box-shadow: 0 0 6px rgba(26,115,232,0.1);
  transform: translate(-50%, -50%) scale(0.35);
  animation: photonTrailPulse 320ms ease-out forwards;
  z-index: 9998;
}

.photon {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123,44,245,0.9) 0%, rgba(26,115,232,0.6) 50%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 12px rgba(123,44,245,0.5), 0 0 24px rgba(26,115,232,0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: photonPulse 600ms ease-out forwards;
  z-index: 9999;
}

@keyframes photonPulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
  70% { opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(16); opacity: 0; }
}

@keyframes photonTrailPulse {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.32; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

@keyframes linkNudge {
  0% { transform: translate3d(0, 0, 0); }
  28% { transform: translate3d(1px, 0, 0); }
  52% { transform: translate3d(-1px, 0, 0); }
  76% { transform: translate3d(1px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  a.link-hover-cue.is-wiggling:not(.footer-link-card) {
    animation: linkNudge 220ms ease 1;
  }

  .footer-link-card.link-hover-cue.is-wiggling .footer-link-image,
  .footer-link-card.link-hover-cue.is-wiggling .footer-link-fallback {
    animation: linkNudge 220ms ease 1;
  }
}

@media (max-width: 900px) {
  .portal-slide {
    grid-template-columns: 1fr;
  }

  .portal-slide-media {
    min-height: 260px;
  }

  .portal-lower {
    grid-template-columns: 1fr;
  }

  .portal-highlights {
    grid-template-columns: 1fr;
  }

  .portal-highlight-display {
    height: 240px;
    min-height: 240px;
  }

  .portal-hero-main {
    grid-template-columns: 1fr;
  }

  .portal-hero-side {
    justify-content: stretch;
  }

  .portal-hero-panel {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .container {
    margin: 16px auto 28px;
  }

  .site-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-brand-subtitle {
    white-space: normal;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    margin-left: 0;
    padding-right: 0;
  }

  .admin-return-link {
    margin-left: 0;
  }

  .content-card {
    padding: 22px 18px 24px;
  }

  .portal-hero {
    min-height: auto;
  }

  .portal-hero-content {
    padding: 26px 20px 24px;
  }

  .portal-hero-title {
    font-size: 2rem;
  }

  .portal-hero-tags {
    gap: 8px;
  }

  .portal-hero-panel {
    height: auto;
    min-height: 0;
  }

  .portal-highlight-nav {
    height: auto;
    grid-template-rows: none;
  }

  .portal-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-highlight-display {
    height: auto;
    min-height: 0;
  }

  .portal-highlight-card {
    position: relative;
    display: none;
    min-height: 0;
    height: auto;
  }

  .portal-highlight-card.is-active {
    display: block;
  }

  .portal-slide-content {
    padding: 20px 18px 18px;
  }

  .portal-side-stats {
    grid-template-columns: 1fr;
  }

  .paper-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .publication-thumb {
    width: 100% !important;
    max-width: 240px;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .publication-card-body p,
  .publication-card-body h3 {
    text-align: left;
  }

  .news-card-image {
    min-height: 220px;
  }

  .team-grid {
    display: block !important;
  }

  .team-entry {
    flex: 1 1 100% !important;
    margin-bottom: 14px;
  }

  .person-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .person-detail-layout p,
  .person-links {
    text-align: left !important;
  }

  .person-detail-photo {
    width: 100% !important;
    max-width: 240px;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .paper-action-row,
  .paper-links-row {
    flex-direction: column;
    align-items: stretch;
  }

  .paper-detail-page p {
    text-align: left;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: 1fr;
  }

  .footer-left,
  .footer-right {
    text-align: center;
    align-items: center;
    justify-self: stretch;
  }

  .footer-links-strip {
    grid-template-columns: repeat(4, 44px);
    width: fit-content;
    justify-content: center;
  }

  .footer-link-card {
    width: 44px;
  }
}
