/* Extracted site styles */
/*
  Cleanup note (2025-12-28):
  - Scroll-entry animations are handled by AOS via `data-aos` attributes in HTML.
  - The rules below are kept because they provide interactive behavior AOS
    does not replace: mobile menu open/close, modal transitions, and hover
    effects (e.g. `.brand-card`). No CSS-only scroll-reveal rules were found.
*/

/* Prevent horizontal scrollbar caused by occasional overflow */
html,
body {
  overflow-x: hidden;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Ensure images never exceed their container width */
img {
  max-width: 100%;
}

/* Brand card shadow using #095763 */
.brand-card {
  box-shadow: 0 8px 20px rgba(9, 87, 99, 0.34);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.brand-card:hover {
  box-shadow: 0 12px 28px rgba(9, 87, 99, 0.46);
  transform: translateY(-2px);
}

/* Mobile menu collapsed + open animation */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  /* Long transition used when opening (slower entrance) */
  transition: max-height 1400ms cubic-bezier(.2, .8, .2, 1), opacity 1100ms ease, transform 1400ms cubic-bezier(.2, .8, .2, 1);
}

#mobile-menu.menu-open {
  /* Shorter transition used when closing (faster exit) */
  transition: max-height 420ms cubic-bezier(.2, .8, .2, 1), opacity 320ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

/* Keep the container transparent so the white background doesn't show
   before individual item highlights appear. Anchors' ::before handles the
   visible background per-item. */
#mobile-menu,
#mobile-menu.menu-open {
  background-color: transparent !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}


/* When the mobile menu is active, remove the header's white background so
   the per-item highlights show against the page background instead. */
header.menu-active {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Staggered reveal for mobile menu items: appear one-by-one when opening */
#mobile-menu a {
  position: relative;
  display: block;
  z-index: 2;
  color: #095763 !important;
  /* force brand color for clear contrast */
  background: transparent !important;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: 0ms;
  /* no delay when hiding */
}

#mobile-menu.menu-open a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays only applied while opening (.menu-open) so closing is fast */
#mobile-menu.menu-open a:nth-of-type(1) {
  transition-delay: 140ms;
}

#mobile-menu.menu-open a:nth-of-type(2) {
  transition-delay: 300ms;
}

#mobile-menu.menu-open a:nth-of-type(3) {
  transition-delay: 460ms;
}

/* Background bar that appears with the text (uses ::before so hover/bg utility still works)
   The pseudo-element reveals in sync with the anchor via matching transition delays. */
#mobile-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  /* white background for each mobile menu link */
  color: #095763;
  /* brand color for the text */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  border-radius: 6px;
  /* slight rounding for the highlight */
  z-index: -1;
}

#mobile-menu.menu-open a::before {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.menu-open a:nth-of-type(1)::before {
  transition-delay: 140ms;
}

#mobile-menu.menu-open a:nth-of-type(2)::before {
  transition-delay: 300ms;
}

#mobile-menu.menu-open a:nth-of-type(3)::before {
  transition-delay: 460ms;
}

/* Modal backdrop + panel animations (fade backdrop, scale+slide panel) */
.site-modal {
  /* ensure the modal is a flex container for centering */
  display: flex;
  /* start hidden and non-interactive until shown */
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(.2, 1, .3, 1);
  will-change: opacity;
}

.site-modal.hidden {
  /* reliably hide regardless of utility class ordering (fallbacks may include both `hidden` and `flex`) */
  display: none !important;
}

.site-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Inner panel animation: slight upward move + scale/opacity */
.site-modal .modal-panel {
  transform: translateY(-8px) scale(0.96);
  opacity: 0;
  transition: transform 800ms cubic-bezier(.2, 1, .3, 1), opacity 600ms ease;
  will-change: transform, opacity;
}

.site-modal.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* When removing .show we let transition run, then JS will add .hidden */
table.csv-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
  max-width: 100%;
  overflow: auto
}

th,
td {
  border: 1px solid #095763;
  padding: 4px 4px;
  text-align: center;
  font-size: 13px;
}

th {
  background: #61a1ab;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #9bc4ca;
}

.container {
  overflow: auto;
}
/* Disabled card state: grays out and disables interactions for non-active features */
.disabled-card {
  opacity: 0.52;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: not-allowed;
  transition: opacity 200ms ease, filter 200ms ease;
}
