:root {
  --purple: #4a1568;
  --purple-deep: #2f0d48;
  --purple-mid: #5c1d80;
  --crimson: #c0172b;
  --leaf: #3ea03c;
  --gold: #d4a017;
  --navy: #241433;
  --ink: #1f1528;
  --muted: #5e5668;
  --line: #e6dcec;
  --paper: #fffcfe;
  --cream: #f7f2fb;
  --max: 1120px;
  --shadow: 0 12px 36px rgba(47, 13, 72, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(180deg, #efe8f5, #d9cde4);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--crimson); }
.container { width: 100%; margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--purple-deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { left: 8px; }

.site-frame {
  width: min(var(--max), calc(100% - 20px));
  margin: 12px auto 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.tricolor {
  height: 7px;
  background: linear-gradient(90deg, #ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66%);
}

.topbar {
  background: var(--purple-deep);
  color: #eadff3;
  font-size: 12.5px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 7px 16px;
  flex-wrap: wrap;
}
.topbar a { color: #f3d78a; }
.meta-pills, .quick-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 3px 9px;
  border-radius: 999px;
}

.brand {
  background: linear-gradient(90deg, var(--purple-deep) 0%, var(--purple) 55%, #7a1c36 100%);
  color: #fff;
  padding: 14px 18px;
}
.brand-inner {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
}
.emblem {
  width: 88px;
  height: 88px;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.28));
}
.brand h1 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.1vw, 1.65rem);
  line-height: 1.2;
}
.brand .board {
  margin: 0;
  font-size: 12.5px;
  color: #f6e7c5;
  max-width: 740px;
}
.motto {
  display: block;
  margin-top: 4px;
  color: #f0c94a;
  font-size: 13px;
  letter-spacing: .04em;
}
.brand-badges { display: flex; flex-direction: column; gap: 6px; }
.badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 10px;
  min-width: 150px;
}
.badge b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #f4e4b2; }
.badge span { font-weight: 700; }

.nav-wrap { background: var(--purple-deep); position: relative; z-index: 40; }
.nav { display: flex; align-items: stretch; padding: 0 6px; }
.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
}
.menu > li { position: relative; flex: 1 1 auto; text-align: center; }
.menu > li > a,
.menu > li > button {
  display: block;
  width: 100%;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  font: 650 13px/1 "Segoe UI", Tahoma, Arial, sans-serif;
  padding: 12px 6px;
  white-space: nowrap;
}
.menu > li > a:hover,
.menu > li > button:hover,
.menu > li.active > a,
.menu > li.active > button,
.menu > li > a:focus-visible,
.menu > li > button:focus-visible {
  background: var(--purple-mid);
  color: #fff;
}
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  min-width: 220px;
  text-align: left;
  background: #fff;
  z-index: 30;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.menu > li:hover > .dropdown,
.menu > li:focus-within > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  border-bottom: 1px solid #f0ebe3;
  font-size: 13.5px;
}
.dropdown a:hover { background: var(--cream); color: var(--purple); }
.menu-toggle { display: none; }

.photo-slider {
  position: relative;
  aspect-ratio: 1120 / 360;
  min-height: 220px;
  max-height: 380px;
  height: auto;
  background: var(--purple-deep);
  overflow: hidden;
}
.photo-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.photo-slider .slide.is-active { opacity: 1; z-index: 1; }
.photo-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(47, 13, 72, .82));
  font-weight: 700;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--purple-deep);
  font-size: 24px;
  cursor: pointer;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.slider-dots button.is-active { background: var(--gold); }

.ticker {
  display: flex;
  background: #f8eef8;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-label {
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  padding: 9px 14px;
  white-space: nowrap;
}
.ticker-track { flex: 1; overflow: hidden; padding: 9px 0; }
.ticker-track p {
  margin: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
  font-weight: 650;
  color: var(--navy);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.home-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding: 18px 18px 28px;
  background: var(--cream);
}
.home-side, .home-main { min-width: 0; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
}
.panel h2 {
  margin: 0;
  padding: 9px 12px;
  background: linear-gradient(var(--purple), var(--purple-deep));
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.panel-body { padding: 12px; }
.notice-box { height: 210px; overflow: hidden; }
.notice-track { animation: rise 18s linear infinite; }
.notice-track:hover { animation-play-state: paused; }
.notice-track a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--navy);
  font-weight: 650;
  font-size: 14px;
}
@keyframes rise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.leader { text-align: center; }
.leader img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 50% 12%;
  margin-bottom: 8px;
}
.leader strong { display: block; color: var(--purple); }
.welcome-title {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--crimson), #8e1433);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.prose p { margin: 0 0 12px; }
.prose ol, .prose ul { padding-left: 18px; }
.disclosure-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ead9a8;
  background: #fff8e6;
  font-weight: 700;
  color: var(--purple-deep);
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}
.stat b { display: block; color: var(--purple); font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 12px; }
.video-frame {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111;
  margin-top: 16px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(47,13,72,.9), rgba(192,23,43,.55)),
    url("../assets/images/slider-01-assembly.jpg") center / cover;
  color: #fff;
  padding: 28px 18px;
}
.page-hero h1, .section h2, .page-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 6px;
  color: inherit;
}
.page-body h1, .section h2 { color: var(--purple-deep); }
.page-hero p { margin: 0; color: #f3eee6; max-width: 760px; }
.crumb { color: #f4e4b2; font-size: 13px; margin-bottom: 6px; }
.crumb a { color: #fff; }
.page-body { padding: 24px 18px 40px; background: var(--cream); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.split { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; align-items: start; }
.side-stack { display: grid; gap: 14px; }
.lede { color: var(--muted); margin-bottom: 16px; }
.news a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--navy);
  font-weight: 650;
}
.section { padding: 28px 18px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.icon-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}
.icon-card .mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f3e9fa;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  background: var(--crimson);
  color: #fff;
}
.btn:hover { color: #fff; background: #9c1223; }
.btn-ghost { background: var(--purple); }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--purple-deep); color: #fff; }
tr:nth-child(even) td { background: #fbf7f0; }
.progress { height: 12px; background: #ece5d8; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 80.6%; background: var(--leaf); }
.note { background: #fff7ea; border-left: 4px solid var(--gold); padding: 12px 14px; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid a {
  display: block;
  background: #111;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  padding: 8px 10px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(32, 10, 48, .9);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
}

.footer {
  width: min(var(--max), calc(100% - 20px));
  margin: 0 auto 16px;
  background: var(--purple-deep);
  color: #e6d9ef;
  padding: 28px 18px 14px;
}
.footer a { color: #f3d78a; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.footer h3 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 7px; }
.footer .foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.footer .foot-brand img { width: 54px; height: 54px; }
.legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
  font-size: 12.5px;
  color: #cbb8d8;
}

@media (max-width: 980px) {
  .site-frame, .footer { width: 100%; margin-left: 0; margin-right: 0; border-radius: 0; }
  .site-frame { margin-top: 0; }
  .brand-inner { grid-template-columns: 64px 1fr; }
  .emblem { width: 64px; height: 64px; }
  .brand-badges { display: none; }
  .brand { padding: 12px; }
  .brand h1 { font-size: 1.05rem; }
  .brand .board { font-size: 11.5px; }
  .topbar-inner { padding: 8px 12px; }
  .home-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "side";
    padding: 14px 12px 24px;
  }
  .home-main { grid-area: main; }
  .home-side { grid-area: side; }
  .split, .home-stats, .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .home-stats, .grid-2, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .photo-slider { max-height: 220px; min-height: 180px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 8px 0;
    background: var(--purple-mid);
    color: #fff;
    border: 0;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .nav { flex-wrap: wrap; padding: 0 10px 8px; }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #26103a;
  }
  .nav.open .menu { display: flex; }
  .menu > li { text-align: left; }
  .menu > li > a,
  .menu > li > button {
    min-height: 46px;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .dropdown {
    position: static;
    box-shadow: none;
    min-width: 0;
    background: #3a1858;
    border-top: 0;
  }
  .dropdown a { color: #fff; border-bottom-color: rgba(255,255,255,.08); }
  .dropdown a:hover { background: var(--purple-mid); color: #fff; }
  .menu > li.open > .dropdown { display: block; }
  .gallery-grid img { height: 150px; }
  .leader img { height: 280px; }
  .welcome-title { font-size: 1.05rem; }
  .slide-caption { font-size: 13px; padding: 24px 12px 12px; }
  .slider-dots { left: 12px; right: auto; }
  .page-hero, .page-body { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 560px) {
  .home-stats, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
  .quick-links, .meta-pills { gap: 8px; }
  .ticker { flex-direction: column; }
  .photo-slider { min-height: 168px; max-height: 190px; }
  .slider-btn { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track p, .notice-track, .photo-slider .slide { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .nav-wrap, .footer, .ticker, .slider-btn, .menu-toggle { display: none !important; }
  body { background: #fff; }
}
