:root {
  --navy: #0e2a47;
  --navy-deep: #081828;
  --teal: #1b7a74;
  --teal-bright: #248f88;
  --paper: #f4f0e6;
  --cream: #fbf8f1;
  --ink: #1a2332;
  --muted: #5a6573;
  --line: #d9d2c4;
  --white: #fffdf8;
  --danger: #9b3a32;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow: 0 18px 40px -28px rgba(14, 42, 71, 0.45);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --bs-primary: #1b7a74;
  --bs-primary-rgb: 27, 122, 116;
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: #1a2332;
  --bs-body-bg: #f4f0e6;
  --bs-border-color: #d9d2c4;
  --bs-link-color: #1b7a74;
  --bs-link-hover-color: #0e2a47;
  --bs-heading-color: #0e2a47;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--teal);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus {
  top: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(27, 122, 116, 0.08), transparent 50%),
    var(--paper);
}

.site-main {
  flex: 1;
}

.topbar {
  background: var(--navy-deep);
  color: #c9d4c8;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0;
}
.topbar a {
  color: #e7efe6;
  text-decoration: none;
  font-weight: 600;
}
.topbar a:hover {
  color: #fff;
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: 52px;
  height: 52px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.nav-link-mc {
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem !important;
}
.nav-link-mc:hover,
.nav-link-mc.active {
  color: var(--teal) !important;
}

.dropdown { position: relative; }
.dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 250px;
  z-index: 30;
  padding: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  display: block !important;
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  font-weight: 550;
  display: block;
  text-decoration: none;
}
.dropdown-item:hover,
.dropdown-item.active {
  background: #eef4ef;
  color: var(--teal);
}

.btn-teal {
  background: var(--teal);
  color: #f7fffb !important;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}
.btn-teal:hover {
  background: #166862;
  color: #fff !important;
}
.btn-navy {
  background: var(--navy);
  color: var(--cream) !important;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-navy:hover {
  background: #163656;
  color: #fff !important;
}
.btn-cream {
  background: var(--cream);
  color: var(--navy) !important;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}
.btn-cream:hover {
  background: #fff;
  color: var(--navy-deep) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.68rem 1.15rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 40, 0.18) 0%, rgba(8, 24, 40, 0.55) 45%, rgba(8, 24, 40, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  /* Keep Bootstrap .container side padding; only set vertical padding here. */
  padding-top: 5.5rem;
  padding-bottom: 3.4rem;
}
.hero h1 {
  color: #f7f3ea;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 16ch;
}
.hero p.lede {
  max-width: 42rem;
  color: #d8e0d4;
  font-size: 1.15rem;
}

.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 4.2rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(201, 214, 200, 0.18);
  border-radius: 50%;
}
.page-hero h1 {
  color: #f7f3ea;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 18ch;
}
.page-hero p {
  color: #c9d4c8;
  max-width: 40rem;
  margin: 0;
}

.notice {
  background: #f3ebe0;
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.2rem;
}
.notice strong {
  color: var(--navy);
}

.section {
  /* Vertical only so .container.section keeps Bootstrap side padding
     and nested .row gutters do not overflow the viewport. */
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-muted {
  background: #efe9dc;
}

.section-navy {
  background: var(--navy);
  color: #d7dfd4;
}
.section-navy h2,
.section-navy h3 {
  color: #f7f3ea;
}

.card-mc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: auto;
  box-shadow: var(--shadow);
}
.card-mc .card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}
.card-mc h3 {
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
}
.card-mc p {
  color: var(--muted);
  margin-bottom: 0;
}
.card-mc img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.stat {
  border-top: 1px solid rgba(201, 214, 200, 0.25);
  padding-top: 1rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #f7f3ea;
  line-height: 1;
}
.stat-label {
  color: #b7c3b4;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}
.kind {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}
.kind-deadline {
  background: #f3ddd6;
  color: #7a322c;
}
.kind-meeting {
  background: #dceae6;
  color: #1b5d58;
}
.kind-event {
  background: #e6e2d4;
  color: #4a4332;
}
.kind-fair {
  background: #d7e4f0;
  color: #1d3d5c;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-type {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem 1rem;
}
.sponsor-grid span {
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  background: var(--navy-deep);
  color: #b7c3b4;
  padding: 3.2rem 0 1.5rem;
  margin-top: auto;
}
.site-footer h2,
.site-footer h3 {
  color: #f4f0e6;
  font-size: 1.15rem;
}
.site-footer a {
  color: #dce6d8;
  text-decoration: none;
}
.site-footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.site-footer a:hover {
  color: #fff;
}
.footer-meta {
  border-top: 1px solid rgba(201, 214, 200, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.footer-credit {
  margin-top: 0.25rem;
}
.site-footer .footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.site-footer .footer-credit a:hover,
.site-footer .footer-credit a:active {
  color: #fff;
}
.site-footer .footer-credit a:focus-visible {
  color: #fff;
  outline: 2px solid #f4f0e6;
  outline-offset: 2px;
  border-radius: 2px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.form-mc .form-control,
.form-mc .form-select,
.form-mc textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  color: var(--ink);
}
.form-mc .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.18);
}

.split-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 1199.98px) {
  .menu-toggle {
    display: inline-flex;
  }
}
.mobile-nav .menu-toggle {
  display: inline-flex;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 24, 40, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
}
.mobile-nav-sheet {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(22.5rem, 92vw);
  height: 100%;
  background: var(--cream);
  box-shadow: -18px 0 40px rgba(8, 24, 40, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-nav.is-open .mobile-nav-sheet {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0.85rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.35rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 650;
  font-size: 1.05rem;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.mobile-nav-item.active {
  color: var(--teal);
}
.mobile-nav-chevron {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.mobile-nav-group.is-open .mobile-nav-chevron {
  transform: rotate(180deg);
  background: #eef4ef;
  border-color: transparent;
  color: var(--teal);
}
.mobile-nav-sub {
  display: none;
  padding: 0.2rem 0 0.7rem 0.15rem;
}
.mobile-nav-group.is-open .mobile-nav-sub {
  display: block;
}
.mobile-nav-sub a {
  display: block;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}
.mobile-nav-sub a:hover,
.mobile-nav-sub a.active {
  background: #eef4ef;
  color: var(--teal);
}
.mobile-nav-foot {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav-foot .btn-teal {
  width: 100%;
  justify-content: center;
}
body.mobile-nav-open {
  overflow: hidden;
}
.navbar-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.navbar-nav .menu-item a {
  color: var(--navy);
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  display: inline-block;
}
.navbar-nav .menu-item a:hover,
.navbar-nav .current-menu-item > a {
  color: var(--teal);
}
.navbar-toggler {
  border: 0;
}

@media (max-width: 767.98px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .hero {
    min-height: 86vh;
  }
  .doc-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Header search (MCSTA 1.4.2) */
.mcsta-nav-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 0.35rem;
  width: 214px;
  height: 40px;
  background: var(--white);
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-md);
  flex: 0 0 214px;
}
.mcsta-nav-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.28);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.mcsta-nav-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 0.15rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}
.mcsta-nav-search input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 1;
}
.mcsta-nav-search input[type="search"]::-webkit-search-decoration,
.mcsta-nav-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.mcsta-nav-search button[type="submit"] {
  flex: 0 0 40px;
  width: 40px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  padding: 0;
}
.mcsta-nav-search button[type="submit"]:hover,
.mcsta-nav-search button[type="submit"]:focus-visible {
  color: var(--teal);
}

.mcsta-search-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--muted);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 0.35rem;
  flex: 0 0 40px;
}
.mcsta-search-icon-btn:hover,
.mcsta-search-icon-btn:focus-visible,
.mcsta-search-icon-btn[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal);
}
.mcsta-search-icon-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.28);
}
.mcsta-search-icon-btn--header {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-left: 0;
  flex: 0 0 44px;
}
.mcsta-search-icon-btn--header[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal);
}

.mcsta-header-tools {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
@media (max-width: 1199.98px) {
  .mcsta-header-tools {
    display: flex;
  }
}

.mcsta-search-panel {
  display: none;
  padding: 0 0 0.85rem;
  background: var(--cream);
}
.mcsta-search-panel.is-open,
.mcsta-search-panel:not([hidden]) {
  display: block;
}
.mcsta-search-panel[hidden] {
  display: none !important;
}
.mcsta-search-panel .mcsta-nav-search {
  width: 100%;
  flex: 1 1 auto;
  margin: 0;
  height: 44px;
}
.mcsta-search-panel .mcsta-nav-search button[type="submit"] {
  height: 42px;
  flex-basis: 44px;
  width: 44px;
}

.mcsta-search-again .mcsta-nav-search {
  width: min(100%, 28rem);
  flex: 1 1 auto;
  height: 44px;
  margin: 0;
}

.mcsta-search-results {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.mcsta-search-result {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.mcsta-search-result-title {
  font-size: 1.35rem;
  margin: 0;
}
.mcsta-search-result-title a {
  color: var(--navy);
  text-decoration: none;
}
.mcsta-search-result-title a:hover {
  color: var(--teal);
}
.mcsta-search-result-title a:focus-visible {
  color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.28);
}
.mcsta-search-result-excerpt {
  color: var(--ink);
  margin: 0;
}
.mcsta-search-result-excerpt p:last-child {
  margin-bottom: 0;
}

.navigation.pagination {
  margin: 1.5rem 0 0;
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  background: var(--white);
}
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}
.navigation.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
