/* SEAMUN I — UNSC committee microsite (Apple HIG-inspired UI) */
:root {
  /* UNSC sky-navy (matches seamun.com UNSC committee tint) */
  --apple-blue: #0369a1;
  --apple-blue-hover: #075985;
  --apple-blue-pressed: #0c4a6e;
  --label-primary: #1d1d1f;
  --label-secondary: #6e6e73;
  --label-tertiary: #aeaeb2;
  --fill-primary: rgba(120, 120, 128, 0.2);
  --fill-secondary: rgba(120, 120, 128, 0.16);
  --fill-tertiary: rgba(118, 118, 128, 0.12);
  --separator: rgba(60, 60, 67, 0.29);
  --separator-opaque: #d1d1d6;
  --bg-grouped: #f2f2f7;
  --bg-elevated: #ffffff;

  --bg: var(--bg-grouped);
  --bg-alt: var(--fill-tertiary);
  --text: var(--label-primary);
  --text-muted: var(--label-secondary);
  --border: var(--separator);
  --primary: var(--apple-blue);
  --primary-hover: var(--apple-blue-hover);
  --accent: var(--apple-blue);
  --accent-hover: var(--apple-blue-hover);
  --navy: var(--label-primary);
  --navy-light: #424245;
  --content-max: min(92vw, 72rem);
  --container-gutter: clamp(1rem, 2.5vw, 1.5rem);
  --nav-breakpoint: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;

  /* Apple type scale */
  --space-page-x: clamp(0.75rem, 2vw, 1.5rem);
  --space-section-y: clamp(2.5rem, 4vw + 0.5rem, 3.75rem);
  --space-hero-y: clamp(2.5rem, 5vw, 4rem);
  --space-card: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  --space-card-x: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
  --text-hero: clamp(2rem, 2.8vw + 1rem, 2.75rem);
  --text-section: clamp(1.375rem, 1.2vw + 0.9rem, 1.75rem);
  --text-lead: clamp(0.9375rem, 0.3vw + 0.85rem, 1.0625rem);
  --text-body: clamp(0.875rem, 0.15vw + 0.82rem, 0.9375rem);
  --text-footnote: 0.8125rem;
  --header-height: clamp(3rem, 3.5vw + 2rem, 3.5rem);
  --tap-target: 44px;
  --btn-gap: clamp(1rem, 1.75vw, 1.5rem);
  --btn-pad-y: 0.65rem;
  --btn-pad-x: clamp(1.2rem, 2vw, 1.6rem);

  /* Apple materials */
  --glass-bg: var(--bg-elevated);
  --glass-bg-strong: var(--bg-elevated);
  --glass-bg-solid: var(--bg-elevated);
  --glass-border-top: rgba(0, 0, 0, 0.04);
  --glass-border-bottom: rgba(0, 0, 0, 0.04);
  --glass-border-subtle: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: saturate(180%) blur(20px);
  --glass-blur-lg: saturate(180%) blur(20px);
  --glass-blur-xl: saturate(200%) blur(40px);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  --glass-shadow: var(--shadow-md);
  --glass-shadow-lg: var(--shadow-lg);
  --glass-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);

  /* Apple corner radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 980px;
  --radius-segment: 9px;
  --radius-segment-item: 7px;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-fluid: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-glass: all 0.25s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  font-size: clamp(14px, 13px + 0.12vw, 15.5px);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  min-width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

/* Apple grouped background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(3, 105, 161, 0.08), transparent 55%),
    linear-gradient(180deg, #f0f9fc 0%, var(--bg-grouped) 100%);
  background-attachment: fixed;
}

body::after {
  display: none;
}

/* ── Glass architecture (reusable) ── */
.glass,
.glass--subtle,
.glass--strong,
.hero-inner,
.about-card,
.meta-row,
.schedule-day,
.schedule-committee-tag,
.leadership-card,
.sponsor-tier,
.partnership-card,
.committee-card,
.committee-card-emblem,
.signin-card,
.form-embed,
.help-popover,
.committee-info-popover,
.nav-more-menu {
  position: relative;
  background: var(--bg-elevated);
  border: 0.5px solid var(--glass-border-subtle);
  box-shadow: var(--shadow-sm);
}

.glass::before,
.glass--subtle::before,
.glass--strong::before,
.hero-inner::before,
.about-card::before,
.meta-row::before,
.schedule-day::before,
.leadership-card::before,
.sponsor-tier::before,
.partnership-card::before,
.committee-card::before,
.committee-card-emblem::before,
.signin-card::before,
.help-popover::before,
.committee-info-popover::before,
.nav-more-menu::before {
  display: none;
}

.glass--strong,
.hero-inner,
.help-popover,
.committee-info-popover,
.signin-card,
.committee-card-emblem {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.btn-secondary,
.filter-btn,
.nav-toggle,
.schedule-tabs,
.form-tabs {
  position: relative;
}

.glass--interactive,
.about-card,
.leadership-card,
.sponsor-tier,
.partnership-card,
.committee-card,
.schedule-day,
.hero-inner {
  transition: var(--transition-glass);
}

@media (hover: hover) {
  .glass--interactive:hover,
  .about-card:hover,
  .leadership-card:hover,
  .sponsor-tier:hover,
  .partnership-card:hover,
  .committee-card:hover,
  .schedule-day:hover,
  .hero-inner:hover,
  .filter-btn:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .filter-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.55);
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass--interactive,
  .about-card,
  .leadership-card,
  .sponsor-tier,
  .partnership-card,
  .committee-card,
  .schedule-day,
  .hero-inner,
  .btn {
    transition: none;
  }

  .glass--interactive:hover,
  .about-card:hover,
  .leadership-card:hover,
  .sponsor-tier:hover,
  .partnership-card:hover,
  .committee-card:hover,
  .schedule-day:hover,
  .hero-inner:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* Centered page column with card sections */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

main .section,
main .section-alt,
main .hero {
  width: 100%;
  max-width: var(--content-max);
  padding-inline: var(--container-gutter);
}

main .section,
main .section-alt {
  padding-top: 0;
  padding-bottom: 0;
}

main .section > .container,
main .section-alt > .container {
  position: relative;
  max-width: none;
  margin-inline: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  border: 0.5px solid var(--glass-border-subtle);
}

main .section > .container::before,
main .section-alt > .container::before {
  display: none;
}

main .hero > .container {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

main .hero > .container::before {
  display: none;
}

/* Header — Apple navigation bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  border-bottom: 0.5px solid var(--separator);
  transition: var(--transition-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo-image {
  height: clamp(34px, 2vw + 26px, 42px);
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 1rem);
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.nav a {
  color: var(--label-secondary);
  text-decoration: none;
  font-size: clamp(0.8125rem, 0.3vw + 0.75rem, 0.875rem);
  font-weight: 500;
  padding: 0.35rem clamp(0.5rem, 0.8vw, 0.65rem);
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.08);
}

.btn-header {
  padding: 0.45rem clamp(0.85rem, 1.2vw, 1.05rem);
  min-height: 32px;
  background: var(--apple-blue);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: clamp(0.8125rem, 0.3vw + 0.75rem, 0.875rem);
  font-weight: 600;
  box-shadow: none;
  border: none;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--apple-blue-hover);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: var(--tap-target);
  height: var(--tap-target);
  position: relative;
  border: none;
  background: var(--fill-tertiary);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
  color: var(--label-primary);
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.nav-toggle::before {
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.nav-toggle::after {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.nav-dropdown {
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.125rem;
  border-top: 0.5px solid var(--separator);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
}

.nav-dropdown a,
.nav-dropdown .help-trigger {
  color: var(--text);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  min-height: var(--tap-target);
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
  transition: background 0.15s var(--ease-out);
}

.nav-dropdown a:hover,
.nav-dropdown .help-trigger:hover {
  background: var(--fill-tertiary);
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-dropdown[hidden] {
    display: none !important;
  }
  .nav-dropdown:not([hidden]) {
    display: flex;
  }
}

/* Hero */
.hero {
  width: 100%;
  padding: var(--space-hero-y) 0 0;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: min(48rem, 100%);
  margin-inline: auto;
  padding: var(--space-card-x);
  border-radius: var(--radius-xl);
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-footnote);
  color: var(--apple-blue);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 122, 255, 0.12);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.hero-tagline {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-audience {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--btn-gap);
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), opacity 0.2s;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--apple-blue);
  color: #fff;
  box-shadow: none;
  border: none;
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  box-shadow: none;
}

.btn-primary:active {
  background: var(--apple-blue-pressed);
}

.btn-secondary {
  color: var(--label-primary);
  background: var(--fill-secondary);
  border: none;
}

.btn-secondary:hover {
  background: var(--fill-primary);
  border: none;
}

/* Sections */
.section {
  width: 100%;
  padding: 0;
  position: relative;
}

.section-alt {
  background: transparent;
}

.section-alt > .container {
  position: relative;
}

.section-title {
  font-size: var(--text-section);
  font-weight: 700;
  margin-bottom: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  font-size: var(--text-lead);
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.7;
  max-width: min(42rem, 100%);
  margin-inline: auto;
  text-align: center;
  font-weight: 400;
}

.section-desc a {
  color: var(--accent);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.about-card {
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
}

.about-card h3 {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.075rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.75rem);
  font-size: var(--text-body);
  color: var(--text-muted);
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
  justify-content: center;
  text-align: center;
}

.meta-row span {
  flex: 1 1 200px;
}

.schedule-ics {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.schedule-ics:hover {
  text-decoration: underline;
}

/* Schedule */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
}

.schedule-day {
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
}

.schedule-day-title {
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.schedule-list {
  list-style: none;
}

.schedule-list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.4rem 0;
  font-size: var(--text-body);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-time {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
  min-width: 3.25rem;
}

.schedule-page {
  max-width: min(60rem, 100%);
}

/* Apple segmented control */
.schedule-tabs,
.form-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  margin-bottom: 1.5rem;
  padding: 2px;
  border-radius: var(--radius-segment);
  background: var(--fill-tertiary);
  border: none;
  box-shadow: none;
}

.schedule-tab,
.form-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--label-secondary);
  font: inherit;
  font-size: var(--text-footnote);
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  min-height: 32px;
  border-radius: var(--radius-segment-item);
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s var(--ease-out), color 0.2s, box-shadow 0.2s;
}

.schedule-tab:hover,
.form-tab:hover {
  color: var(--label-primary);
}

.schedule-tab.active,
.form-tab.active {
  background: var(--bg-elevated);
  color: var(--label-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.schedule-panel {
  display: none;
}

.schedule-panel.visible {
  display: block;
}

.schedule-group-committees {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.schedule-committee-tag {
  display: inline-block;
  margin: 0.2rem 0.35rem 0.2rem 0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-footnote);
  font-weight: 500;
  color: var(--label-primary);
  background: var(--fill-tertiary);
  border: none;
  box-shadow: none;
}

.schedule-debate-total {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--separator);
  font-size: var(--text-footnote);
  color: var(--label-secondary);
}

/* Home page committee cards (official logos + committee colors) */
.home-committee-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.home-committee-group-title {
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  width: fit-content;
  margin-inline: auto;
}

.home-committee-group-beginner {
  background: #e8f5e9;
  color: #2e7d32;
}

.home-committee-group-intermediate {
  background: #fff9c4;
  color: #f57f17;
}

.home-committee-group-advanced {
  background: #ffebee;
  color: #c62828;
}

.home-committee-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.home-committee-group .home-committee-cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  width: 100%;
}

.home-committee-group .home-committee-card {
  flex: 1 1 0;
  min-width: 0;
}

.home-committee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.home-committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(7.5rem, 12vw, 9.5rem);
  padding: clamp(0.85rem, 1.2vw, 1.1rem);
  background: var(--bg-elevated);
  color: var(--label-primary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
  border: 0.5px solid var(--glass-border-subtle);
  box-shadow: var(--shadow-sm);
}

.home-committee-card:hover {
  color: var(--label-primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.home-committee-card:focus {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.home-committee-logo {
  height: clamp(3rem, 5vw, 4rem);
  width: auto;
  max-width: clamp(3.5rem, 6vw, 5rem);
  object-fit: contain;
  margin-bottom: 0.4rem;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}

.home-committee-logo-full {
  max-width: clamp(4.5rem, 7vw, 6.5rem);
  height: clamp(3.25rem, 5vw, 4.25rem);
}

.home-committee-name {
  font-weight: 700;
  font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.home-committee-info {
  font-size: clamp(0.65rem, 0.15vw + 0.6rem, 0.78rem);
  color: var(--label-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Committee-specific light tints */
.home-committee-ecosoc,
.committee-card-ecosoc {
  background: #e8f4fc;
  border-left-color: #0284c7;
}
.home-committee-ecosoc:hover { background: #d4ebf9; }
.committee-card-ecosoc .committee-card-emblem { background: #d4ebf9; }

.home-committee-press,
.committee-card-press {
  background: #eef3f8;
  border-left-color: #3d5a80;
}
.home-committee-press:hover { background: #dfe8f2; }
.committee-card-press .committee-card-emblem { background: #dfe8f2; }

.home-committee-unhrc,
.committee-card-unhrc {
  background: #eaf1fd;
  border-left-color: #1d4ed8;
}
.home-committee-unhrc:hover { background: #d6e4fa; }
.committee-card-unhrc .committee-card-emblem { background: #d6e4fa; }

.home-committee-unodc,
.committee-card-unodc {
  background: #eaf0fa;
  border-left-color: #1e40af;
}
.home-committee-unodc:hover { background: #d6e0f5; }
.committee-card-unodc .committee-card-emblem { background: #d6e0f5; }

.home-committee-unsc,
.committee-card-unsc {
  background: #e6f6fa;
  border-left-color: #0369a1;
}
.home-committee-unsc:hover { background: #cceef6; }
.committee-card-unsc .committee-card-emblem { background: #cceef6; }

.home-committee-unwomen,
.committee-card-unwomen {
  background: #f3effe;
  border-left-color: #6d28d9;
}
.home-committee-unwomen:hover { background: #e8e0fd; }
.committee-card-unwomen .committee-card-emblem { background: #e8e0fd; }

.home-committee-disec,
.committee-card-disec {
  background: #edf1f6;
  border-left-color: #1e3a5f;
}
.home-committee-disec:hover { background: #dce3ec; }
.committee-card-disec .committee-card-emblem { background: #dce3ec; }

.home-committee-fwc,
.committee-card-fwc {
  background: #fdf0f0;
  border-left-color: #b91c1c;
}
.home-committee-fwc:hover { background: #fae4e4; }
.committee-card-fwc .committee-card-emblem { background: #fae4e4; }

.home-committee-interpol,
.committee-card-interpol {
  background: #eef1fe;
  border-left-color: #1e40af;
}
.home-committee-interpol:hover { background: #dde4fc; }
.committee-card-interpol .committee-card-emblem { background: #dde4fc; }

.home-committee-who,
.committee-card-who {
  background: #e8faf6;
  border-left-color: #0f766e;
}
.home-committee-who:hover { background: #d0f5ec; }
.committee-card-who .committee-card-emblem { background: #d0f5ec; }

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
}

.leadership-card {
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.leadership-photo {
  width: 100%;
  height: clamp(7rem, 12vw, 9rem);
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 0.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.leadership-card .role {
  font-size: clamp(0.7rem, 0.2vw + 0.65rem, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.leadership-card .name {
  font-weight: 600;
  font-size: clamp(0.9rem, 0.35vw + 0.8rem, 0.95rem);
}

.leadership-card a {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.leadership-card a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-lead {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: min(42rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.contact-note a {
  color: var(--accent);
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.acknowledgement-note {
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: min(42rem, 100%);
  line-height: 1.65;
  margin: 0.25rem auto clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

/* Sponsors page */
.sponsors-subtitle {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  font-weight: 700;
  margin: clamp(1.5rem, 2.5vw, 2rem) 0 0.85rem;
  text-align: center;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
  margin-bottom: 0.85rem;
}

.sponsor-tier {
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
}

.sponsor-tier h4 {
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.05rem);
  margin-bottom: 0.25rem;
}

.sponsor-price {
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 0.95rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.sponsor-tier ul {
  margin: 0;
  padding-left: 1rem;
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.5;
}

.sponsor-tier li {
  margin-bottom: 0.35rem;
}

.sponsor-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.sponsor-purposes {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  max-width: 640px;
}

.sponsor-purposes li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Partnerships */
.partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.partnership-card {
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
}

.partnership-logo-link {
  display: block;
  line-height: 0;
}

.partnership-logo {
  width: min(clamp(9rem, 18vw, 12rem), 100%);
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 20, 40, 0.12);
}

.partnership-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.partnership-name {
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.partnership-subtitle {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.partnership-desc {
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.65;
  max-width: min(32rem, 100%);
  margin: 0.25rem 0 0;
}

.partnership-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--btn-gap);
  margin-top: 0.85rem;
  padding: 0.35rem 0;
  justify-content: center;
}

.partnership-link {
  margin-top: 0;
}

/* Footer */
.site-footer {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 0.5px solid var(--separator);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  box-shadow: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.95;
  object-fit: contain;
}

.footer-tagline {
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0.15rem 0 0;
}

.footer-social a {
  color: var(--apple-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* Help icons & popovers */
.help-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--label-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s var(--ease-out), color 0.2s;
  box-shadow: none;
}

.help-icon:hover {
  background: var(--apple-blue);
  color: #fff;
  border-color: transparent;
  transform: none;
}

.help-icon[aria-expanded="true"] {
  background: var(--apple-blue);
  color: #fff;
  border-color: transparent;
}

.help-popover {
  position: absolute;
  z-index: 50;
  max-width: 320px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
}

.help-popover[hidden] {
  display: none !important;
}

.help-popover .help-popover-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.help-popover p {
  margin: 0 0 0.5rem;
}

.help-popover p:last-child {
  margin-bottom: 0;
}

.help-popover ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.help-popover li {
  margin-bottom: 0.2rem;
}

.help-popover a {
  color: var(--accent);
  text-decoration: none;
}

.help-popover a:hover {
  text-decoration: underline;
}

.header-help .help-icon {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.help-trigger {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.help-trigger:hover {
  color: var(--accent);
}

/* Announcement — Apple banner tint */
.announcement {
  background: rgba(0, 122, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  padding: 0.65rem 0;
  font-size: var(--text-footnote);
  border-bottom: none;
}

.announcement[hidden] {
  display: none !important;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.announcement-text {
  margin: 0;
}

.announcement-cta {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  margin: 0 0.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.announcement-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.announcement-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  opacity: 0.9;
  min-width: var(--tap-target);
  min-height: var(--tap-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.announcement-close:hover {
  opacity: 1;
}

/* Modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--bg-elevated);
  border: 0.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.modal-dialog-lg {
  max-width: 520px;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fill-tertiary);
  border: none;
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--label-secondary);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-form-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-form .modal-form-actions {
  margin-top: 1.25rem;
}

.modal-form label {
  display: block;
  margin-bottom: 1rem;
}

.modal-form label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--fill-tertiary);
  color: var(--label-primary);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  background: var(--fill-secondary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

.modal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--btn-gap);
  padding: 0.25rem 0;
}

.form-embed-wrap {
  margin-top: 0.5rem;
}

.form-embed {
  width: 100%;
  min-height: clamp(20rem, 50vh, 28rem);
  border: 0.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
}

.form-tabs {
  margin: 1.5rem 0 1.25rem;
}

.form-embed-tall {
  min-height: clamp(22rem, 55vh, 36rem);
  height: clamp(28rem, 62vh, 42rem);
  max-height: 48rem;
}

.forms-page {
  max-width: min(58rem, 100%);
}

.form-panel {
  display: none;
}

.form-panel.visible {
  display: block;
}

.form-panel-desc {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.form-open-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.form-open-link a {
  color: var(--accent);
}

.contact-form-btn {
  margin-left: 0;
  margin-bottom: 1rem;
}

/* Committees page */
.page-title-wrap {
  padding: 3rem 0 2rem;
}

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

.page-title-wrap .section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.committee-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
  border-bottom: none;
}

.filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  padding: 2px;
  background: var(--fill-tertiary);
  border-radius: var(--radius-segment);
}

.filter-label {
  font-size: var(--text-footnote);
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--label-secondary);
  align-self: center;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  min-height: 32px;
  font-family: var(--font);
  font-size: var(--text-footnote);
  font-weight: 500;
  border-radius: var(--radius-segment-item);
  cursor: pointer;
  color: var(--label-secondary);
  background: transparent;
  border: none;
  transition: background 0.2s var(--ease-out), color 0.2s, box-shadow 0.2s;
}

.filter-btn.active {
  background: var(--bg-elevated);
  color: var(--label-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.committee-grid {
  display: grid;
  gap: clamp(0.85rem, 1.2vw, 1.1rem);
}

.committee-card {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.35rem);
  padding: var(--space-card) var(--space-card-x);
  border-radius: var(--radius-lg);
  scroll-margin-top: 5rem;
  border-left: 3px solid var(--apple-blue);
  position: relative;
}

/* Committee info button & popover */
.committee-info-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.committee-card .committee-info-btn {
  border-color: var(--border);
  background: var(--bg);
  color: var(--primary);
}

.committee-info-btn:hover,
.committee-info-btn:focus {
  background: var(--bg-alt);
  transform: scale(1.05);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.committee-info-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.home-committee-card .committee-info-btn {
  border-color: var(--separator);
  background: rgba(255, 255, 255, 0.85);
  color: var(--label-primary);
}

.home-committee-card .committee-info-btn:hover,
.home-committee-card .committee-info-btn:focus {
  background: #fff;
}

.committee-info-btn-icon {
  display: block;
  margin-top: 1px;
}

.committee-info-popover {
  position: fixed;
  z-index: 200;
  max-width: min(300px, calc(100vw - 24px));
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
}

.committee-info-popover[hidden] {
  display: none !important;
}

.committee-info-popover-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.committee-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.committee-info-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  white-space: nowrap;
}

.committee-info-tag-label {
  font-weight: 600;
  color: var(--text-muted);
}

.committee-info-tag--beginner {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.committee-info-tag--intermediate {
  background: #fff9c4;
  border-color: #ffe082;
  color: #f57f17;
}

.committee-info-tag--advanced {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

.committee-info-tag--crisis {
  background: #fce4ec;
  border-color: #f8bbd0;
  color: #ad1457;
}

.committee-info-tag--esl {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}

.committee-card-emblem {
  flex-shrink: 0;
  width: 260px;
  min-width: 200px;
  min-height: 200px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.committee-card-emblem-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}

.committee-card-emblem-full {
  min-height: 120px;
}

@media (max-width: 640px) {
  .committee-card {
    flex-direction: column;
    align-items: stretch;
  }
  .committee-card-emblem {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 150px;
    align-self: stretch;
  }
}

.committee-card-body {
  flex: 1;
  min-width: 0;
}

.committee-card .committee-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.committee-card-logo {
  height: 56px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.committee-card-logo-full {
  max-width: 140px;
}

/* Committee card accent colors — set via shared tint rules above */

.committee-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.committee-type {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.committee-header .committee-name-wrap {
  flex: 1;
  min-width: 0;
}

.committee-header .committee-name-wrap h3 {
  display: inline;
  margin-bottom: 0;
}

.committee-header .committee-name-wrap .committee-type {
  display: inline;
  margin-left: 0.35em;
}

.committee-header .committee-name-wrap .committee-type::before {
  content: "— ";
  color: var(--text-muted);
}

.committee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.committee-tags .tag {
  font-size: var(--text-footnote);
  padding: 0.2rem 0.55rem;
  background: var(--fill-tertiary);
  border-radius: var(--radius-pill);
  color: var(--label-secondary);
  font-weight: 500;
}

.committee-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.committee-topics {
  list-style: none;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.committee-topics li {
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--separator);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.committee-topics li:last-child {
  border-bottom: none;
}

.committee-topic-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.committee-topic-note a {
  color: var(--accent);
  text-decoration: none;
}

.committee-topic-note a:hover {
  text-decoration: underline;
}

.topic-emoji {
  flex-shrink: 0;
}

.difficulty-tag {
  font-size: var(--text-footnote);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--fill-tertiary);
  color: var(--label-secondary);
  margin-left: auto;
  font-weight: 500;
}

.committee-allocations summary {
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}

.committee-allocations summary:hover {
  text-decoration: underline;
}

.allocation-list {
  list-style: none;
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.universe-item {
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.universe-title {
  font-weight: 600;
  color: var(--text);
}

.topic-line {
  padding-left: 1.25rem;
}

.back-to-top-wrap {
  margin-top: 2rem;
  text-align: center;
}

.committee-back-wrap {
  margin-bottom: 1rem;
}

.committee-back {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.committee-back:hover {
  text-decoration: underline;
}

.committee-card-single {
  min-height: 280px;
}

.committee-card-single .committee-single-title {
  font-size: 1.5rem;
  margin-bottom: 0;
  display: inline;
}

.committee-card-single .committee-name-wrap .committee-type {
  display: inline;
  margin-left: 0.35em;
}

.committee-card-single .committee-name-wrap .committee-type::before {
  content: "— ";
  color: var(--text-muted);
}

.back-to-top {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--text);
}

/* Profile page */
.theme-bar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  border-bottom: 0.5px solid var(--separator);
  font-size: var(--text-footnote);
}

.theme-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.5rem 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: var(--text-footnote);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--fill-tertiary);
  color: var(--label-primary);
  cursor: pointer;
  min-height: 32px;
}

.theme-toggle:hover {
  background: var(--fill-secondary);
}

.language-selector,
.theme-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.language-selector select {
  font-family: inherit;
  font-size: var(--text-footnote);
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--fill-tertiary);
  color: var(--label-primary);
  appearance: none;
  -webkit-appearance: none;
}

.theme-selector {
  flex-wrap: wrap;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--separator);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease-out);
}

.theme-dot:hover {
  transform: scale(1.1);
}

.theme-red { background: #dc2626; }
.theme-orange { background: #ea580c; }
.theme-yellow { background: #ca8a04; }
.theme-green { background: #16a34a; }
.theme-blue { background: #007aff; }
.theme-purple { background: #7c3aed; }
.theme-pink { background: #db2777; }
.theme-grey { background: #6b7280; }
.theme-mono { background: #111827; }

.logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 20;
  min-width: 200px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  border: 0.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.nav-more-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  min-height: 36px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.nav-more-menu a:hover {
  background: var(--fill-tertiary);
}

.nav-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.signin-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.signin-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.profile-details {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: var(--text-footnote);
  font-weight: 400;
  color: var(--label-secondary);
  text-transform: none;
  letter-spacing: -0.01em;
}

.meta-value {
  font-size: 0.95rem;
  word-break: break-word;
}

.btn-ghost {
  background: var(--fill-tertiary);
  color: var(--label-primary);
  border: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--fill-secondary);
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile layout */
@media (max-width: 768px) {
  body::before {
    background-attachment: scroll;
  }

  main .section > .container,
  main .section-alt > .container {
    padding: clamp(1.25rem, 4vw, 1.75rem) var(--container-gutter);
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .hero {
    padding: 2.5rem 0 0;
  }

  .hero-inner {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--btn-gap);
    padding: 0.5rem 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .announcement {
    padding: 0.75rem 0;
  }

  .announcement-inner {
    align-items: flex-start;
  }

  .announcement-text {
    font-size: 0.85rem;
    line-height: 1.45;
    padding-right: 0.25rem;
  }

  .announcement-close {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .header-inner {
    min-height: 64px;
    gap: 0.5rem;
  }

  .logo {
    min-width: 0;
    font-size: 1.05rem;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-text span {
    display: none;
  }

  .nav-dropdown a,
  .nav-dropdown .help-trigger {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .home-committee-group .home-committee-cards {
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-committee-group .home-committee-cards::-webkit-scrollbar {
    display: none;
  }

  .home-committee-group .home-committee-card {
    flex: 1 0 min(38vw, 8.5rem);
    min-height: 118px;
    padding: 0.75rem 0.5rem;
  }

  .home-committee-logo-full {
    max-width: 96px;
    height: 60px;
  }

  .home-committee-name {
    font-size: 0.92rem;
  }

  .home-committee-info {
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .committee-card {
    padding: 1rem;
    gap: 1rem;
  }

  .committee-card-emblem {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .committee-header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem;
  }

  .committee-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .filter-row {
    width: 100%;
  }

  .filter-btn {
    min-height: 40px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid,
  .sponsor-tiers {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .leadership-photo {
    height: 9rem;
  }

  .meta-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .meta-row span {
    flex-basis: auto;
  }

  .form-tabs,
  .schedule-tabs {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    gap: 0.35rem;
    overflow: hidden;
  }

  .form-tab,
  .schedule-tab {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    min-height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-embed-tall {
    height: 75vh;
    min-height: 420px;
    max-height: none;
  }

  .help-popover,
  .committee-info-popover {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .committee-card-single .committee-single-title {
    font-size: 1.25rem;
  }

  .theme-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .nav-more {
    display: none;
  }

  .nav-status {
    display: none;
  }
}

@media (max-width: 400px) {
  .home-committee-group .home-committee-card {
    flex: 0 0 min(44vw, 8rem);
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--separator);
  box-shadow: var(--shadow-sm);
}

.hero::before {
  display: none;
}

.btn {
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn:active {
  opacity: 0.75;
}

.about-card,
.leadership-card,
.sponsor-tier,
.committee-card {
  transition: box-shadow 0.2s ease;
}

.about-card:hover,
.leadership-card:hover,
.sponsor-tier:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.committee-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.motion-ok .hero-inner > * {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ok .hero-badge {
  animation-delay: 0.05s;
}

.motion-ok .hero-title {
  animation-delay: 0.15s;
}

.motion-ok .hero-tagline {
  animation-delay: 0.25s;
}

.motion-ok .hero-audience {
  animation-delay: 0.32s;
}

.motion-ok .hero-lead {
  animation-delay: 0.4s;
}

.motion-ok .hero-actions {
  animation-delay: 0.5s;
}

.motion-ok .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

.home-committee-card:hover .home-committee-logo {
  transform: scale(1.04);
}

.home-committee-logo {
  transition: transform 0.2s var(--ease-out);
}

.announcement:not([hidden]) {
  animation: slide-down 0.4s var(--ease-out);
}

@media (max-width: 1100px) {
  .nav-dropdown:not([hidden]) {
    animation: fade-up 0.3s ease;
  }
}

.site-footer {
  animation: fade-in 0.8s ease 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ok .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .motion-ok .hero-inner > *,
  .announcement:not([hidden]),
  .site-footer {
    animation: none;
  }

  .btn:hover,
  .about-card:hover,
  .leadership-card:hover,
  .sponsor-tier:hover,
  .partnership-card:hover,
  .committee-card:hover,
  .home-committee-card:hover,
  .form-tab:hover,
  .form-tab.active,
  .schedule-tab:hover,
  .schedule-tab.active,
  .logo:hover .logo-image {
    transform: none;
    box-shadow: none;
  }
}

/* ── UNSC microsite additions ── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  margin-top: 1.25rem;
}

.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
  background: #e6f6fa;
  border: 0.5px solid rgba(3, 105, 161, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-glass);
  min-height: 11.5rem;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  background: #cceef6;
}

.resource-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(3, 105, 161, 0.12);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 600;
}

.resource-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.resource-card p {
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.55;
  flex: 1;
}

.resource-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(60, 60, 67, 0.1);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: fit-content;
}

.topic-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
  background: #e6f6fa;
  border: 0.5px solid rgba(3, 105, 161, 0.12);
}

.topic-panel .topic-emoji {
  font-size: 1.35rem;
  margin-right: 0.35rem;
}

.topic-panel h3 {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.topic-panel p {
  color: var(--text-muted);
  font-size: var(--text-body);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0 0.25rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(3, 105, 161, 0.1);
  color: var(--primary);
  font-size: var(--text-footnote);
  font-weight: 600;
}

.hero-logo {
  width: clamp(5.5rem, 10vw, 7rem);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.allocation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
  list-style: none;
}

.allocation-grid li {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--fill-tertiary);
  border: 0.5px solid var(--glass-border-subtle);
  font-size: var(--text-body);
  font-weight: 500;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 0.5px solid var(--separator);
  font-size: var(--text-body);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list .time {
  color: var(--primary);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.schedule-grid-local {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  margin-top: 1.15rem;
}

.placeholder-panel {
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--fill-tertiary);
  border: 1px dashed rgba(60, 60, 67, 0.28);
  text-align: center;
}

.placeholder-panel h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.placeholder-panel p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
  font-size: var(--text-body);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 550;
  font-size: var(--text-body);
}

.back-link:hover {
  text-decoration: underline;
}

.crisis-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .resource-grid,
  .schedule-grid-local {
    grid-template-columns: 1fr;
  }
}

.resource-card .btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.65;
  cursor: not-allowed;
}
