/* ==========================================================================
   HKU IB Chinese Language Teaching Professional Forum
   ========================================================================== */

:root {
  /* Backgrounds */
  --color-sky-light: #f0f5fa;
  --color-sky-pale: #e8eef5;
  --color-white: #ffffff;

  /* Text */
  --color-navy-deep: #0c2d4d;
  --color-navy: #1e4d7b;
  --color-navy-muted: #2c5282;
  --color-text: #1e293b;
  --color-text-muted: #64748b;

  /* Accents */
  --color-accent: #1e4d7b;
  --color-accent-light: #3a6ea5;
  --color-highlight: #b8954a;
  --color-highlight-soft: #d4c4a0;

  /* Forum section */
  --color-forum-blue: #2c5282;
  --color-forum-blue-dark: #1e3a5f;
  --color-forum-blue-alt: #3b6a9e;

  /* UI */
  --shadow-sm: 0 1px 3px rgba(12, 45, 77, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 45, 77, 0.1);
  --shadow-lg: 0 8px 32px rgba(12, 45, 77, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  --header-height: 80px;
  --container-max: 1080px;
  --transition: 0.25s ease;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-section: 3rem;
}

/* Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background-color: var(--color-sky-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

/* Section titles
   ========================================================================== */

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  color: var(--color-navy-deep);
}

.section-title--navy {
  color: var(--color-navy-deep);
}

.section-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: var(--space-md);
}

.section-lead--centered {
  max-width: none;
  text-align: center;
  margin-inline: auto;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn--primary {
  background: var(--color-navy-deep);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(12, 45, 77, 0.2);
  letter-spacing: 0.02em;
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: var(--color-navy);
  box-shadow: 0 4px 14px rgba(12, 45, 77, 0.25);
  color: var(--color-white);
}

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

/* Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(13, 71, 161, 0.1);
  box-shadow: var(--shadow-sm);
}

.site-header--solid,
.site-header.site-header--solid,
.site-header.site-header--solid.is-scrolled {
  background: var(--color-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(13, 71, 161, 0.1);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

.nav__brand {
  display: flex;
  align-items: center;
  color: var(--color-navy);
  flex-shrink: 0;
  margin-right: var(--space-sm);
}

.nav__brand:hover {
  color: var(--color-navy);
}

.nav__logo {
  width: auto;
  height: 52px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.nav__brand:focus,
.nav__brand:focus-visible {
  outline: none;
}

.nav__back-home {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav__back-home:hover {
  color: var(--color-gold);
}

.nav__back-home:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__toggle:hover {
  background: var(--color-sky-pale);
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--color-white);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(13, 71, 161, 0.08);
}

.nav__menu.is-open {
  display: flex;
}

.nav__link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
  border-bottom: 1px solid var(--color-sky-pale);
  transition: color var(--transition);
}

.nav__link:last-child {
  border-bottom: none;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-navy-deep);
  font-weight: 700;
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--color-sky-light) 0%, var(--color-sky-pale) 100%);
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 280px;
  height: 200px;
  opacity: 0.35;
  background:
    radial-gradient(ellipse at 30% 50%, var(--color-forum-blue-alt) 0%, transparent 70%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(59, 113, 181, 0.08) 18px,
      rgba(59, 113, 181, 0.08) 20px
    );
  pointer-events: none;
}

.hero__layout {
  display: grid;
  gap: var(--space-md);
  position: relative;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.875rem;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.hero__title-line {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-navy-deep);
}

.hero__title-line--accent {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-navy);
  font-weight: 500;
}

.hero__intro {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, var(--color-sky-pale), var(--color-forum-blue-alt));
}

.hero__illustration {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.hero__illustration-wrap {
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__illustration-img {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-forum-blue));
  display: block;
}

.hero__illustration-caption {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

/* Forum details card
   ========================================================================== */

.details__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.details__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 var(--space-sm);
}

.details__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.details__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-sky-light);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}

.details__icon svg {
  width: 22px;
  height: 22px;
}

.details__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.125rem;
}

.details__value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.5;
}

.details__disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-sky-light);
}

.details__disclaimer-zh {
  display: block;
  margin-top: 0.25rem;
}

/* Upcoming forums
   ========================================================================== */

.upcoming {
  padding: var(--space-lg) 0;
  background: var(--color-sky-pale);
}

.upcoming__callout {
  width: min(92vw, 52rem);
  max-width: none;
  margin-inline: auto;
  padding: 1.375rem 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #1a5a8f 0%, #2c5282 45%, #1e3a5f 100%);
  border: 2px solid var(--color-highlight);
  border-radius: var(--radius-md);
  box-shadow:
    0 6px 28px rgba(30, 58, 95, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upcoming__eyebrow {
  font-size: clamp(1.125rem, 3.25vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-highlight-soft);
  margin: 0 0 0.625rem;
}

.upcoming__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}

.upcoming__subtext {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38ch;
  margin: 0 auto;
}

/* Participant feedback
   ========================================================================== */

.reviews {
  padding: var(--space-lg) 0;
  background: var(--color-sky-light);
  border-top: 1px solid rgba(12, 45, 77, 0.06);
}

.reviews__hint {
  margin-bottom: var(--space-sm) !important;
  font-size: var(--text-xs) !important;
  color: var(--color-text-muted) !important;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.review-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(12, 45, 77, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.review-card__peek {
  padding: 0.75rem 0.875rem;
}

.review-card__author {
  margin: 0 0 0.25rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-navy);
}

.review-card__teaser {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  padding: var(--space-sm);
  background: var(--color-white);
  border: 1px solid rgba(12, 45, 77, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  pointer-events: none;
}

.review-card__body {
  margin: 0;
}

.review-card__en,
.review-card__zh {
  font-size: var(--text-xs);
  line-height: 1.65;
  margin: 0;
}

.review-card__en {
  color: var(--color-text);
}

.review-card__zh {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(12, 45, 77, 0.08);
  color: var(--color-text-muted);
}

.review-card:hover,
.review-card:focus-within {
  border-color: var(--color-navy-muted);
  box-shadow: var(--shadow-sm);
  z-index: 30;
}

.review-card:hover .review-card__panel,
.review-card:focus-within .review-card__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.review-card:hover .review-card__teaser,
.review-card:focus-within .review-card__teaser {
  color: var(--color-navy);
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }

  .review-card__panel {
    min-width: 16rem;
    width: max(100%, 18rem);
  }

  .review-card:nth-child(odd) .review-card__panel {
    left: 0;
    right: auto;
  }

  .review-card:nth-child(even) .review-card__panel {
    right: 0;
    left: auto;
  }
}

@media (max-width: 767px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* Forums
   ========================================================================== */

.forums {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, var(--color-forum-blue) 0%, var(--color-forum-blue-dark) 100%);
  color: var(--color-white);
}

.forums__header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.forums__title {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 0.625rem;
}

.forums__subtitle {
  font-size: var(--text-sm);
  opacity: 0.88;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.forums__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.forum-card {
  display: grid;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.forum-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.forum-card__badge {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-highlight-soft);
  margin-bottom: 0.75rem;
}

.forum-card__meta {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.625rem;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.forum-card__meta--stacked {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
}

.forum-card__session {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.625rem;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.forum-card__session:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.forum-card__session .forum-card__line {
  display: contents;
}

.forum-card__line {
  display: contents;
}

.forum-card__label {
  font-weight: 700;
}

.forum-card__value {
  min-width: 0;
}

.forum-card__topic-en,
.forum-card__topic-zh {
  display: block;
}

.forum-card__topic-zh {
  margin-top: 0.125rem;
}

.forum-card__speaker-list {
  margin: 0;
  padding-left: 1.125rem;
  list-style: disc;
}

.forum-card__speaker-list li {
  margin-bottom: 0.5rem;
}

.forum-card__speaker-block {
  display: block;
}

.forum-card__name {
  display: block;
}

.forum-card__role {
  display: block;
}

.forum-card__speaker-list li:last-child {
  margin-bottom: 0;
}

.forum-card__body .btn {
  margin-top: var(--space-sm);
}

.forum-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.forum-card__media--dual {
  flex-direction: column;
  gap: 0.5rem;
}

.forum-card__media--dual .forum-card__photo {
  width: 6.25rem;
  height: 8.25rem;
}

.forum-card__photo {
  width: 7.5rem;
  height: 10rem;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.08);
}

/* Archive
   ========================================================================== */

.archive {
  padding: var(--space-section) 0;
  background: var(--color-white);
}

.archive--subpage {
  padding-top: calc(var(--header-height) + var(--space-md));
  padding-bottom: var(--space-md);
}

.forums--subpage {
  padding-top: 0;
  padding-bottom: var(--space-section);
}

.upcoming--subpage {
  padding-top: 0;
  padding-bottom: var(--space-section);
  min-height: auto;
}

.archive__header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.archive__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
}

.year-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-sm);
  background: var(--color-sky-pale);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-navy-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
}

.year-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-forum-blue);
  color: var(--color-navy);
  background: var(--color-white);
}

.year-btn__icon {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.year-btn--current {
  background: var(--color-navy-deep);
  color: var(--color-white);
  border-color: var(--color-navy-deep);
  box-shadow: var(--shadow-md);
}

.year-btn--current:hover {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.year-btn--current .year-btn__icon {
  opacity: 1;
}

.year-btn__tag {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-highlight);
  color: var(--color-white);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Team
   ========================================================================== */

.team {
  padding: var(--space-section) 0;
  background: var(--color-sky-pale);
}

.team .section-title {
  margin-bottom: 0.5rem;
}

.team .section-lead {
  max-width: none;
  margin-bottom: var(--space-md);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(49, 130, 206, 0.35);
}

.team-card__avatar-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-sky-light);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.team-card:hover .team-card__avatar-wrap {
  border-color: var(--color-forum-blue);
}

.team-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-sky-pale), var(--color-forum-blue-alt));
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy-deep);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.team-card__program {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.team-card__email {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--color-forum-blue);
  word-break: break-all;
}

.team-card__email:hover {
  color: var(--color-accent-light);
}

/* Footer
   ========================================================================== */

.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  width: auto;
  height: 36px;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.95;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.footer__name {
  font-size: var(--text-sm);
  font-weight: 500;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  font-weight: 500;
}

.footer__nav a:hover {
  color: var(--color-highlight-soft);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* Image fallbacks
   ========================================================================== */

img {
  font-size: 0;
  color: transparent;
}

img:not([src]),
img[src=""] {
  visibility: hidden;
}

/* Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .archive__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 768px) {
  .nav__brand {
    margin-right: 2.5rem;
  }

  .nav__logo {
    height: 64px;
    max-width: none;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
  }

  .nav__link {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-navy-muted);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: color var(--transition);
  }

  .nav__link:hover,
  .nav__link.is-active {
    font-weight: 700;
    color: var(--color-navy-deep);
    background: none;
    box-shadow: none;
  }

  .nav__link.is-active {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
  }

  .hero__layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-xl);
    row-gap: var(--space-md);
    align-items: stretch;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .hero__media {
    grid-column: 2;
    grid-row: 1;
  }

  .hero__illustration {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__illustration-img {
    aspect-ratio: auto;
    min-height: 0;
  }

  .details__card {
    grid-column: 2;
    grid-row: 2;
  }

  .forum-card {
    grid-template-columns: 1fr auto;
    padding: var(--space-md) var(--space-lg);
    align-items: center;
  }

  .forum-card.forum-card--paired {
    grid-template-rows: auto auto auto;
    column-gap: var(--space-xl);
    row-gap: 0;
    align-items: start;
  }

  .forum-card.forum-card--paired .forum-card__body {
    display: contents;
  }

  .forum-card.forum-card--paired .forum-card__badge {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.75rem;
  }

  .forum-card.forum-card--paired .forum-card__meta--stacked {
    display: contents;
  }

  .forum-card.forum-card--paired .forum-card__session {
    grid-column: 1;
    align-self: start;
  }

  .forum-card.forum-card--paired .forum-card__session:first-child {
    grid-row: 2;
  }

  .forum-card.forum-card--paired .forum-card__session:last-child {
    grid-row: 3;
  }

  .forum-card.forum-card--paired .forum-card__media--dual {
    display: contents;
  }

  .forum-card.forum-card--paired .forum-card__photo:nth-child(1) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: center;
  }

  .forum-card.forum-card--paired .forum-card__photo:nth-child(2) {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: center;
  }

  .forum-card.forum-card--paired .btn {
    grid-column: 1;
    grid-row: 4;
    margin-top: var(--space-sm);
    justify-self: start;
    width: auto;
  }

  .forum-card__media {
    justify-content: flex-end;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }

  .forums,
  .archive,
  .team,
  .upcoming {
    padding-block: var(--space-section);
  }

  .nav__brand {
    margin-right: 3rem;
  }

  .team__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-card__avatar-wrap {
    width: 200px;
    height: 200px;
  }
}
