/* ==========================================================================
   FSSM theme overlay — Precision Civic
   Loaded after assets/css/style.css. Does not replace the vendor stylesheet.
   ========================================================================== */

:root {
  --navy: #061830;
  --navy-2: #0A2A56;
  --blue-deep: #0C4A8C;
  --blue-mid: #1A78C8;
  --blue-bright: #3A9BE8;
  --cyan: #6EC4F5;
  --paper: #F3F6FB;
  --surface: #FFFFFF;
  --ink: #1A2433;
  --ink-muted: #5B6778;
  --line: #D7E1EE;
  --ok: #1F8A5B;
  --warn: #C47A12;
  --grad: linear-gradient(135deg, #061830 0%, #0A2A56 42%, #0C4A8C 72%, #1A78C8 100%);
  --shadow: 0 12px 40px rgba(8, 28, 64, 0.10);
  --radius: 18px;
  --nav-h: 118px;
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --hairline: 2px solid var(--cyan);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans) !important;
  font-size: 1.0625rem !important;
  font-weight: 400;
  line-height: 1.7 !important;
  color: var(--ink);
  background: var(--paper) !important;
  background-image: none !important;
  -webkit-font-smoothing: antialiased;
}

body.data-spy,
body[data-spy="scroll"] {
  background: var(--paper) !important;
}

.page-body-wrapper {
  padding: 0 !important;
  background: var(--paper);
  min-height: 50vh;
}

section {
  padding-top: 0;
  padding-bottom: 0;
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--blue-mid);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  background: var(--surface);
  color: var(--navy);
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Type scale — never nest headings; body copy is p/li
   -------------------------------------------------------------------------- */

.site-main h1,
.site-hero h1,
.page-header h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.4rem;
}

.site-main h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: var(--hairline);
}

.site-main h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.site-main p,
.site-main li {
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
}

.site-main p {
  margin-bottom: 1rem;
  max-width: 68ch;
}

.page-header p,
.site-hero p {
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
}

.page-header .page-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.page-header .page-lede {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin: 0;
}

.site-hero .hero-kicker {
  color: var(--cyan);
}

.site-hero .hero-est {
  color: rgba(255, 255, 255, 0.78);
}

.site-hero .hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.site-main ul,
.site-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.site-main li + li {
  margin-top: 0.35rem;
}

.meta,
.page-eyebrow,
.page-lede,
figcaption,
.caption {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.5;
}

table,
.table {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Header / nav — two-row institutional bar
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(6, 24, 48, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(110, 196, 245, 0.22);
}

.header-bar {
  border-bottom: 1px solid rgba(110, 196, 245, 0.14);
}

.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-brand.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.15rem 0;
  color: #fff !important;
  text-decoration: none;
}

.navbar-brand.site-brand:hover,
.navbar-brand.site-brand:focus {
  color: #fff !important;
  text-decoration: none;
}

.navbar-brand.site-brand img,
.navbar .navbar-brand img {
  width: 44px !important;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(110, 196, 245, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.site-header .navbar-toggler {
  color: #fff;
  border: 1px solid rgba(110, 196, 245, 0.45);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: transparent;
}

.site-header .navbar-toggler:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.site-header .navbar {
  width: 100%;
  padding: 0 !important;
  height: auto !important;
  background: transparent !important;
  position: relative !important;
}

.site-header .navbar .container {
  align-items: center;
}

.navbar .navbar-nav {
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: 100%;
}

.navbar .navbar-nav .nav-item {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.navbar .navbar-nav .nav-item:last-child {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.navbar .navbar-nav .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--sans);
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.55rem !important;
  border-radius: 0 !important;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link:focus {
  background: rgba(110, 196, 245, 0.16) !important;
  color: #fff !important;
  text-decoration: none;
  border-radius: 0 !important;
}

.navbar .navbar-nav .nav-item .nav-link.active,
.navbar .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-item:last-child .nav-link.active {
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.navbar .close-menu {
  display: none;
}

@media (min-width: 1200px) {
  .mobile-drawer-head {
    display: none;
  }

  .site-header .navbar-toggler {
    display: none;
  }

  .navbar .navbar-nav {
    justify-content: space-between;
  }
}

@media (max-width: 1199.98px) {
  :root {
    --nav-h: 64px;
  }

  .brand-sub {
    max-width: 11rem;
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2) !important;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 18px 36px rgba(6, 24, 48, 0.45);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .navbar .navbar-nav {
    flex-wrap: wrap;
    align-items: stretch !important;
  }

  .navbar .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    padding: 0.75rem 0.15rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem !important;
    box-shadow: none !important;
  }

  .navbar .close-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: var(--display);
    font-weight: 600;
  }
}

.sidebar-overlay .site-header {
  background: rgba(6, 24, 48, 0.96);
}

/* --------------------------------------------------------------------------
   Precision grid overlay (hero / page-header only)
   -------------------------------------------------------------------------- */

.site-hero,
.page-header {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
}

.site-hero::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 196, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 196, 245, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.site-hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse at 78% 18%, rgba(110, 196, 245, 0.28) 0%, transparent 55%);
  pointer-events: none;
}

.site-hero > *,
.page-header > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

section.site-hero {
  padding: calc(var(--nav-h) + 2.75rem) 0 4rem !important;
  min-height: calc(var(--nav-h) + 22rem);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem 2.75rem;
  flex-wrap: nowrap;
}

.hero-seal {
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 3px rgba(110, 196, 245, 0.55),
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(6, 24, 48, 0.35);
  animation: rise 0.7s ease both;
}

.hero-seal img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  animation: rise 0.7s ease 0.12s both;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.site-hero h1 {
  max-width: 16em;
  margin: 0 0 0.45rem;
}

.hero-est {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.85rem;
}

.hero-tagline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seal,
  .hero-copy,
  .action-card,
  .announce-card {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */

.page-header {
  padding: calc(var(--nav-h) + 1.35rem) 0 1.6rem;
  min-height: 10.5rem;
}

.page-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.page-eyebrow a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.page-eyebrow a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-lede {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Content panels / cards
   -------------------------------------------------------------------------- */

.page-band {
  padding: 2rem 0 3.5rem;
}

.surface-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  border-top: var(--hairline);
}

.surface-card + .surface-card,
.stack-gap > * + * {
  margin-top: 1.5rem;
}

.surface-card p,
.event-card p,
.timeline-card p,
.doc-card p,
.contact-panel p {
  max-width: none;
}

.prose p {
  max-width: 68ch;
}

.prose p:last-child,
.prose ul:last-child {
  margin-bottom: 0;
}

/* Quick actions — related but not identical */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -2.25rem 0 2rem;
  position: relative;
  z-index: 2;
}

.action-card {
  display: block;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.15rem 1.15rem;
  text-decoration: none !important;
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 8.5rem;
  animation: rise 0.6s ease both;
}

.action-card:nth-child(1) { animation-delay: 0.15s; border-top: var(--hairline); }
.action-card:nth-child(2) { animation-delay: 0.22s; border-left: var(--hairline); border-top: 1px solid var(--line); }
.action-card:nth-child(3) { animation-delay: 0.29s; border-bottom: var(--hairline); border-top: 1px solid var(--line); }
.action-card:nth-child(4) { animation-delay: 0.36s; border-right: var(--hairline); border-top: 1px solid var(--line); }

.action-card:hover,
.action-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(8, 28, 64, 0.14);
  color: var(--ink);
}

.action-idx {
  display: block;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-mid);
  margin-bottom: 0.45rem;
}

.action-card h2,
.action-card .action-title {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  padding: 0;
  border: 0;
  color: var(--ink);
}

.action-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: none;
}

.action-card i {
  color: var(--blue-mid);
  font-size: 1.35rem;
  float: right;
}

@media (max-width: 991.98px) {
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.5rem;
  }

  .hero-inner {
    flex-wrap: wrap;
  }
}

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-seal {
    flex-basis: 148px;
    width: 148px;
    height: 148px;
  }

  .site-hero h1 {
    max-width: none;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Featured announcement */
.announce-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: var(--hairline);
  animation: rise 0.7s ease 0.28s both;
}

.announce-card figure {
  margin: 0;
}

.announce-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(8, 28, 64, 0.12);
}

.announce-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.4rem;
}

.announce-card h2 {
  border: 0;
  padding: 0;
  margin-bottom: 0.6rem;
}

.announce-card p {
  max-width: 52ch;
}

.btn-fssm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-deep);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-fssm:hover,
.btn-fssm:focus {
  background: var(--blue-mid);
  color: #fff !important;
}

.btn-fssm-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--blue-deep) !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--blue-mid);
  text-decoration: none !important;
}

.btn-fssm-outline:hover {
  background: rgba(26, 120, 200, 0.08);
}

.surface-card > .btn-fssm,
.surface-card > .btn-fssm-outline {
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .announce-card {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }
}

/* Download / doc cards */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.doc-card h2,
.doc-card h3 {
  margin: 0;
  border: 0;
  padding: 0;
}

.doc-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: none;
}

.doc-card .btn-fssm,
.doc-card .btn-fssm-outline {
  margin-top: auto;
  align-self: flex-start;
}

/* Quote */
.site-quote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: var(--hairline);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  max-width: 60ch;
}

.site-quote p {
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.site-quote footer {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-style: normal;
}

/* Logo legend */
.logo-figure {
  text-align: center;
  margin: 0 0 1.25rem;
}

.logo-figure img {
  width: 140px;
}

.logo-legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  max-width: 48ch;
  margin: 0;
}

.logo-legend dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--blue-deep);
}

.logo-legend dd {
  margin: 0;
  font-size: 1.0625rem;
}

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.status-badge--ok {
  background: rgba(31, 138, 91, 0.12);
  color: var(--ok);
}

.status-badge--warn {
  background: rgba(196, 122, 18, 0.14);
  color: var(--warn);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.office-table {
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.office-table thead th {
  border-bottom: 2px solid var(--line);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.office-table td,
.office-table th {
  vertical-align: middle !important;
  padding: 0.7rem 0.6rem;
}

/* Event cards */
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  border-top: var(--hairline);
}

.event-card + .event-card {
  margin-top: 1.25rem;
}

.event-card h2 {
  border: 0;
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.event-meta li {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.event-meta i {
  color: var(--blue-mid);
  margin-right: 0.35rem;
}

.poster-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.75rem 0 0.25rem;
}

.poster-row img {
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(8, 28, 64, 0.12);
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1rem;
}

.sponsor-row figure {
  margin: 0;
  text-align: center;
}

.sponsor-row figcaption {
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.sponsor-row img {
  max-height: 72px;
  width: auto;
}

/* Timeline (archive) */
.timeline {
  position: relative;
  padding-left: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line);
}

.timeline-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem;
  margin-bottom: 1.15rem;
  border-top: var(--hairline);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 1px);
  top: 1.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--surface);
}

.timeline-card h2 {
  border: 0;
  padding: 0;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-card ul {
  margin-bottom: 0.75rem;
}

.timeline-card img {
  border-radius: 10px;
  margin: 0.5rem 0;
}

/* Gallery */
.album {
  margin-bottom: 0;
}

.album + .album,
.surface-card.album + .surface-card.album {
  margin-top: 1.5rem;
}

.album h2 {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(8, 28, 64, 0.08);
  cursor: zoom-in;
}

.gallery-grid a:hover,
.gallery-grid a:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(8, 28, 64, 0.14);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-frame {
  max-width: 720px;
  margin: 0 auto 0.5rem;
}

/* Lightbox (click thumbnail → larger photo on the page) */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 3rem;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 48, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #061830;
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(110, 196, 245, 0.45);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.85rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

@media (max-width: 575.98px) {
  .lightbox {
    padding: 3.5rem 0.75rem 2.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

.video-frame video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--navy);
  display: block;
}

/* Partner links */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 1.0625rem;
  font-weight: 600;
}

.link-row:hover {
  border-color: var(--blue-mid);
  background: #fff;
}

.link-row i {
  color: var(--blue-mid);
  flex-shrink: 0;
}

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

/* Contact panel */
.contact-panel {
  max-width: 36rem;
}

.contact-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.contact-role {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.contact-mail {
  font-weight: 600;
  font-size: 1.125rem;
}

/* Modal (Bootstrap 4) — auto-popup poster */
.poster-modal .modal-dialog {
  max-width: min(520px, calc(100vw - 2rem));
  margin: 1.25rem auto;
}

.poster-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.poster-modal .modal-header,
.poster-modal .modal-footer {
  border-color: var(--line);
}

.poster-modal .modal-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}

.poster-modal .modal-body {
  text-align: center;
  background: var(--navy);
  padding: 0;
}

.poster-modal .modal-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer.footer,
.footer {
  color: rgba(255, 255, 255, 0.88) !important;
  background: var(--grad) !important;
  background-image: var(--grad) !important;
}

.footer .footer-top {
  padding: 3rem 0 2.5rem;
}

.footer .footer-title {
  font-family: var(--display);
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

.footer .list-footer li a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.9rem;
  padding: 0.28rem 0;
}

.footer .list-footer li a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.footer .social-icons a i {
  font-size: 1.75rem;
  color: #fff;
}

.footer .social-icons a:hover i {
  color: var(--cyan) !important;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.65rem;
}

/* --------------------------------------------------------------------------
   Colorlib leftovers — neutralize if any class remains
   -------------------------------------------------------------------------- */

.hero-wrap,
.js-fullheight,
.ftco-section,
.particles-js {
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .split-2 {
    grid-template-columns: 1fr;
  }

  .surface-card {
    padding: 1.4rem 1.15rem;
  }

  .page-header {
    min-height: 0;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 1040;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(8, 28, 64, 0.28);
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus {
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(8, 28, 64, 0.38);
  transform: translateY(-2px);
}

.back-to-top i {
  font-size: 1.65rem;
  line-height: 1;
}

body.lightbox-open .back-to-top {
  visibility: hidden;
  opacity: 0;
}
