/* ===================================================   ========================================================= */
:root {
  --brand: #0d5c56;          /* deep teal */
  --brand-600: #0a4a45;
  --brand-700: #083b37;
  --brand-50: #e7f2f1;
  --accent: #f47b20;         /* saffron orange */
  --accent-600: #b84f00;     /* high-contrast saffron for accessible link hovers */
  --ink: #1d2a2a;
  --muted: #4f5d5d;          /* accessible muted text (5.8:1 contrast against white) */
  --surface: #ffffff;
  --surface-2: #eef2f2;
  --line: #d7e0df;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(13, 92, 86, .08);
  --shadow: 0 10px 30px rgba(13, 92, 86, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-base: 1rem;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 13, 92, 86;
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--accent-600);
  --bs-body-font-family: "Noto Sans", "Inter", system-ui, sans-serif;
  --bs-body-color: var(--ink);
}

html { font-size: var(--fs-base); scroll-behavior: smooth; }
body { background: var(--surface); overflow-x: hidden; }
a { text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-700);
}
.btn-outline-brand {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-600); --bs-btn-active-color: #fff;
}
.btn-view-more {
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
  border-radius: 6px; padding: .35rem .8rem; display: inline-flex; align-items: center; gap: .35rem;
  transition: all .25s var(--ease);
}
.btn-view-more:hover { background: var(--brand); color: #fff; }
.btn-view-more:hover i { transform: translateX(3px); }
.btn-view-more i { transition: transform .25s var(--ease); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-block { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand-block img { height: 56px; width: auto; }
.brand-block .gov { font-size: .8rem; line-height: 1.1; color: var(--muted); }
.brand-block .min { font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--ink); }

.header-search { max-width: 320px; }
.header-search .form-control {
  border-radius: 999px 0 0 999px; border-color: var(--line); font-size: .9rem; padding-left: 1rem;
}
.header-search .btn { border-radius: 0 999px 999px 0; border-color: var(--line); background: #fff; color: var(--muted); }
.header-search .form-control:focus { box-shadow: 0 0 0 .2rem rgba(13,92,86,.15); border-color: var(--brand); }

.skill-logo {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  font-weight: 800; color: var(--brand); font-size: .95rem;
}
.skill-logo .sk-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 33%, #fff 0 66%, #138808 0);
  border: 2px solid var(--brand); margin-bottom: 3px;
}
.skill-logo small { font-size: .55rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; }

.a11y-tools .btn {
  width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 8px; color: var(--brand); border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 700;
}
.a11y-tools .btn:hover { background: var(--brand-50); }

/* ---------- Main nav ---------- */
.main-nav { background: #fff; border-bottom: 3px solid var(--brand); transition: box-shadow .3s var(--ease); z-index: 1030; }
.main-nav.scrolled { box-shadow: var(--shadow); }
.main-nav .nav-link {
  font-weight: 600; color: var(--ink); padding: .8rem 1.1rem !important; position: relative; font-size: .95rem;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { background: var(--brand); color: #fff; border-radius: 6px 6px 0 0; }
.main-nav .nav-link.active::after { display: none; }
.main-nav .dropdown-menu {
  border: 0; border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: .5rem; min-width: 230px;
}
.main-nav .dropdown-item { border-radius: 6px; padding: .5rem .8rem; font-size: .9rem; }
.main-nav .dropdown-item:hover { background: var(--brand-50); color: var(--brand); }
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .25s var(--ease); }
  .main-nav .dropdown-menu { margin-top: 0; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero .carousel-item { height: clamp(260px, 42vw, 560px); }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,30,70,.85) 0%, rgba(8,30,70,.45) 40%, rgba(0,0,0,.1) 75%);
}
.hero-caption {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; text-align: center; padding-top: clamp(1rem, 4vw, 3rem); color: #fff;
}
.hero-caption .kicker {
  color: var(--accent); font-weight: 800; letter-spacing: .02em; font-size: clamp(1.1rem, 3.2vw, 2.6rem); line-height: 1.1;
}
.hero-caption h2 { font-weight: 800; font-size: clamp(1rem, 2.8vw, 2.3rem); margin: .3rem 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-caption .pill {
  background: var(--accent); color: #fff; font-weight: 700; padding: .35rem 1.2rem; border-radius: 999px;
  font-size: clamp(.7rem, 1.6vw, 1.15rem); letter-spacing: .04em; box-shadow: 0 6px 20px rgba(244,123,32,.45);
}
.carousel-item.active .hero-caption > * { animation: rise .8s var(--ease) both; }
.carousel-item.active .hero-caption > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-caption > *:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; z-index: 3; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon {
  background-color: rgba(0,0,0,.45); border-radius: 50%; padding: 1.1rem; background-size: 50%;
}
.hero-controls {
  position: absolute; right: 1rem; bottom: .8rem; z-index: 4; display: flex; gap: .5rem; align-items: center;
}
.hero-controls .carousel-indicators { position: static; margin: 0; }
.hero-controls .carousel-indicators [data-bs-target] {
  width: 26px; height: 6px; border-radius: 3px; border: 0; background: #fff; opacity: .5;
}
.hero-controls .carousel-indicators .active { opacity: 1; background: var(--accent); width: 40px; }
.hero-controls .btn-pause {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
}

/* ---------- Announcement ticker ---------- */
.ticker { background: var(--brand-50); border-bottom: 1px solid var(--line); }
.ticker-label {
  background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; padding: .55rem 1rem;
  white-space: nowrap; display: flex; align-items: center; gap: .4rem; position: relative;
}
.ticker-label::after {
  content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px;
  background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 100%; animation: ticker 40s linear infinite; }
.ticker-items a { color: var(--ink); font-size: .88rem; }
.ticker-items a:hover { color: var(--accent-600); }
.ticker-items a::before { content: "\25CF"; color: var(--accent); margin-right: .5rem; font-size: .6rem; vertical-align: middle; }
.ticker.paused .ticker-items, .ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-toggle { border: 0; background: transparent; color: var(--brand); padding: 0 1rem; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface-2); }
.section-title {
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.3rem; color: var(--brand); margin-bottom: 1.25rem;
}
.section-title .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 1.15rem;
}

/* Quote */
.quote-wrap { position: relative; }
.quote-photo {
  width: clamp(120px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.quote-text { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--brand); font-weight: 600; line-height: 1.5; position: relative; }
.quote-text .bi-quote { color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -.6rem; }
.quote-author { color: var(--muted); font-size: .85rem; }
.quote-author strong { color: var(--ink); display: block; font-size: .95rem; }

/* About */
.about-text { color: var(--muted); line-height: 1.8; }
.about-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem .5rem;
  color: var(--ink); font-weight: 600; height: 100%; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.about-tile i { font-size: 1.6rem; color: var(--brand); transition: transform .3s var(--ease); }
.about-tile::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.about-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--brand); border-color: transparent; }
.about-tile:hover::before { transform: scaleX(1); }
.about-tile:hover i { transform: scale(1.15); }

.leader-card { text-align: center; }
.leader-card img {
  width: 140px; height: 160px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.leader-card:hover img { transform: scale(1.03); }
.leader-card h3 { font-size: 1rem; font-weight: 700; margin: .75rem 0 .15rem; }
.leader-card p { font-size: .8rem; color: var(--muted); margin: 0; }

/* Key offerings */
.offer-tabs { border: 0; gap: 0; }
.offer-tabs .nav-link {
  border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fff; font-weight: 600; font-size: .9rem;
}
.offer-tabs .nav-item:first-child .nav-link { border-radius: 8px 0 0 0; }
.offer-tabs .nav-item:last-child .nav-link { border-radius: 0 8px 0 0; }
.offer-tabs .nav-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.offer-panel {
  background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  max-height: 290px; overflow-y: auto;
}
.offer-panel::-webkit-scrollbar { width: 6px; }
.offer-panel::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; transition: all .25s var(--ease);
}
.link-row:last-child { border-bottom: 0; }
.link-row i { color: var(--muted); transition: transform .25s var(--ease), color .25s; flex-shrink: 0; }
.link-row:hover { background: var(--brand-50); color: var(--brand); padding-left: 1.3rem; }
.link-row:hover i { transform: translateX(4px); color: var(--accent); }

.whats-new {
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff;
  border-radius: var(--radius); padding: 1.5rem; min-height: 200px; position: relative; overflow: hidden;
}
.whats-new::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,123,32,.35), transparent 70%);
}
.whats-new .carousel-item p { font-size: 1rem; line-height: 1.6; margin-bottom: .5rem; }
.whats-new .badge-new { background: var(--accent); font-size: .7rem; }
.whats-new .wn-nav { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: flex; gap: .4rem; }
.whats-new .wn-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  transition: all .2s;
}
.whats-new .wn-nav button:hover { background: #fff; color: var(--brand); }

/* Documents */
.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: 100%;
  border-left: 4px solid var(--brand); transition: all .3s var(--ease); display: block; color: var(--ink);
}
.doc-card h3 { font-size: .95rem; font-weight: 700; color: var(--brand); margin-bottom: .35rem; }
.doc-card p { font-size: .8rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card:hover { border-left-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

/* Personas */
.persona { text-align: center; }
.persona img {
  width: min(190px, 70%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply;
}
.persona h3 { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; margin-top: .5rem; }
.persona-indicators { position: static; margin: .5rem 0 0; }
.persona-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 0; }
.persona-carousel .carousel-control-prev-icon, .persona-carousel .carousel-control-next-icon { filter: invert(1) grayscale(1); width: 1.2rem; }

/* Important links */
.imp-links { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-right: 4px solid var(--brand); }

/* Media strip */
.media-tile { position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 200px; display: block; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); position: absolute; inset: 0; }
.media-tile:hover img { transform: scale(1.06); }
.media-tile .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; color: #fff;
  background: linear-gradient(90deg, transparent 30%, rgba(0,0,0,.65));
}
.media-tile .overlay.end { align-items: flex-end; text-align: right; }
.media-tile .big { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; line-height: 1; }
.media-tile .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--brand); display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.media-tile .tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.success-tile { background: linear-gradient(135deg, #0b2a6b, #1856c9); }
.success-tile .overlay { background: none; }

/* Partner logos */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-track { display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: .25rem; }
.logo-track::-webkit-scrollbar { display: none; }
.partner-logo {
  flex: 0 0 auto; width: 170px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; text-align: center; line-height: 1.1;
  filter: grayscale(1); opacity: .75; transition: all .3s var(--ease);
}
.partner-logo:hover { filter: none; opacity: 1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner-logo small { display: block; font-size: .6rem; font-weight: 600; color: var(--muted); }
.logo-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); flex-shrink: 0;
}
.logo-btn:hover { background: var(--brand); color: #fff; }

/* Footer */
.site-footer { background: var(--brand); color: rgba(255,255,255,.85); font-size: .88rem; }
.site-footer h2 { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: #fff; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; }
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(4, auto); } }
.footer-links a::before { content: "\2022"; color: var(--accent); margin-right: .45rem; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); transition: all .25s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.gov-badge {
  background: #fff; color: var(--brand); border-radius: 6px; padding: .35rem .7rem; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem;
}
.footer-bottom { background: var(--brand-700); font-size: .8rem; }

.newsletter .form-control { border-radius: 999px 0 0 999px; border: 0; font-size: .85rem; }
.newsletter .btn { border-radius: 0 999px 999px 0; background: var(--accent); color: #fff; border: 0; font-weight: 600; }
.newsletter .btn:hover { background: var(--accent-600); }

/* Back to top */
#backToTop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; box-shadow: var(--shadow); z-index: 1040; opacity: 0; visibility: hidden;
  transform: translateY(20px); transition: all .3s var(--ease);
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* High contrast mode */
body.high-contrast { --brand: #000; --brand-600: #000; --brand-700: #000; --brand-50: #222; --surface-2: #111; --line: #ffd400; --ink: #fff; --muted: #ddd; --accent: #ffd400; background: #000; color: #fff; }
body.high-contrast .site-header, body.high-contrast .main-nav, body.high-contrast .about-tile,
body.high-contrast .offer-panel, body.high-contrast .doc-card, body.high-contrast .imp-links,
body.high-contrast .partner-logo, body.high-contrast .offer-tabs .nav-link, body.high-contrast .btn-view-more,
body.high-contrast .a11y-tools .btn, body.high-contrast .header-search .btn { background: #000 !important; color: #fff !important; }
body.high-contrast a { color: #ffd400; }
body.high-contrast .org-card, body.high-contrast .data-table td, body.high-contrast .team-block,
body.high-contrast .team-table, body.high-contrast .perf-media, body.high-contrast .featured-person { background: #000 !important; color: #fff !important; }

/* =========================================================
   INNER PAGES
   ========================================================= */

/* Active top-nav item: underline style (matches inner-page design) */
.main-nav .nav-link.active { background: transparent; color: var(--brand); font-weight: 700; }
.main-nav .nav-link.active::after { display: block; transform: scaleX(1); background: var(--brand); }
.main-nav .dropdown-item.active, .main-nav .dropdown-item:active { background: var(--brand); color: #fff; }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.8rem, 7vw, 5.5rem);
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(120deg, #0a4a45 0%, #0f7d74 55%, #19a99c 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 180 C 200 120 400 240 600 170 S 1000 90 1200 150'/%3E%3Cpath d='M0 200 C 200 140 400 260 600 190 S 1000 110 1200 170'/%3E%3Cpath d='M0 220 C 200 160 400 280 600 210 S 1000 130 1200 190'/%3E%3Cpath d='M0 240 C 200 180 400 300 600 230 S 1000 150 1200 210'/%3E%3Cpath d='M0 120 C 250 60 450 200 650 110 S 1000 40 1200 90'/%3E%3Cpath d='M0 100 C 250 40 450 180 650 90 S 1000 20 1200 70'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center; animation: waveDrift 18s ease-in-out infinite alternate;
}
@keyframes waveDrift { to { transform: translateX(-4%) scale(1.06); } }
.page-hero--image { background: #231c17 url("../img/hero-archives.jpg") right center / cover no-repeat; }
.page-hero--image::before {
  animation: none; opacity: 1; background: linear-gradient(90deg, rgba(25,20,16,.95) 0%, rgba(25,20,16,.75) 40%, rgba(25,20,16,.1) 75%);
}
.page-hero .container-xl { position: relative; z-index: 1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.7); --bs-breadcrumb-item-active-color: #fff; font-size: .82rem; margin-bottom: .35rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; animation: rise .7s var(--ease) both; }
.page-hero .lead-sm { opacity: .85; max-width: 620px; margin: .5rem 0 0; font-size: .95rem; }

/* Sub navigation (overlaps hero) */
.sub-nav-wrap { margin-top: -1.75rem; position: relative; z-index: 5; }
.sub-nav {
  background: var(--brand); border-radius: 10px; display: flex; gap: .15rem; overflow-x: auto; padding: .35rem .5rem;
  box-shadow: 0 12px 30px rgba(8,59,55,.25); scrollbar-width: none; scroll-snap-type: x proximity;
}
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav a {
  color: rgba(255,255,255,.85); white-space: nowrap; padding: .55rem .85rem; border-radius: 7px; font-size: .92rem;
  scroll-snap-align: center; transition: background .2s, color .2s;
}
.sub-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.sub-nav a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.08); }
.sub-nav a.active::before {
  content: ""; display: inline-block; width: 7px; height: 14px; margin-right: .45rem; vertical-align: -2px;
  background: radial-gradient(circle, #fff 1.1px, transparent 1.6px) 0 0 / 3.5px 4.7px;
}

/* List toolbar */
.list-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin: 1.75rem 0 1rem; }
.tool-field { position: relative; }
.tool-field > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .9rem; }
.tool-field .form-control, .tool-field .form-select {
  padding-left: 2.2rem; font-size: .88rem; border-color: #b9d9d6; border-radius: 6px; min-height: 38px;
}
.tool-field .form-control:focus, .tool-field .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(13,92,86,.15); }
.tool-search { flex: 1 1 240px; max-width: 320px; }
.list-count { font-size: .8rem; color: var(--muted); }

/* Responsive data table */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0 .55rem; font-size: .85rem; margin-top: -.55rem; }
.data-table thead th {
  background: #a8dcd8; color: var(--brand-700); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .75rem 1rem; font-weight: 700; white-space: nowrap;
}
.data-table thead th:first-child { border-radius: 6px 0 0 6px; }
.data-table thead th:last-child { border-radius: 0 6px 6px 0; }
.data-table tbody td {
  background: #fff; padding: .95rem 1rem; vertical-align: middle;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.data-table tbody td:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.data-table tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.data-table tbody tr:hover td { border-color: var(--brand); background: #fbfefe; }
.id-cell { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.date-cell { white-space: nowrap; color: var(--ink); }
.file-meta { color: var(--brand); font-weight: 600; white-space: nowrap; font-size: .8rem; }
.file-meta i { color: #c62828; font-size: 1.05rem; margin-right: .3rem; vertical-align: -2px; }
.btn-view {
  background: #d6efed; color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  border-radius: 6px; padding: .4rem .8rem; border: 0; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  transition: all .2s var(--ease);
}
.btn-view:hover { background: var(--brand); color: #fff; }
.list-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.list-empty i { font-size: 2.5rem; color: #a8dcd8; display: block; margin-bottom: .5rem; }

/* Generic "stack on mobile" tables */
@media (max-width: 767.98px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack { border-spacing: 0; margin-top: 0; }
  .table-stack tr { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
  .table-stack tr[hidden] { display: none; }
  .table-stack tbody td, .table-stack tbody td:first-child, .table-stack tbody td:last-child {
    border: 0; border-radius: 0; border-bottom: 1px dashed var(--line); display: flex; gap: 1rem; padding: .6rem .9rem;
  }
  .table-stack tbody td:last-child { border-bottom: 0; }
  .table-stack td[data-label]::before {
    content: attr(data-label); flex: 0 0 38%; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--brand); padding-top: .15rem;
  }
  .table-stack td.cell-full { display: block; font-weight: 600; background: var(--brand-50); }
  .table-stack td.cell-full::before { display: none; }
  .table-stack td.cell-action { justify-content: flex-end; }
  .table-stack td.cell-action::before { display: none; }
}

/* Pagination */
.pagination-brand { gap: .2rem; }
.pagination-brand .page-link {
  border: 0; color: var(--ink); border-radius: 50% !important; width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center; font-size: .85rem; background: transparent; transition: all .2s;
}
.pagination-brand .page-link:hover { background: var(--brand-50); color: var(--brand); }
.pagination-brand .page-item.active .page-link { background: #a8dcd8; color: var(--brand-700); font-weight: 700; }
.pagination-brand .page-item.disabled .page-link { color: #b5bfbf; background: transparent; }
.pagination-brand .page-link:focus { box-shadow: 0 0 0 .2rem rgba(13,92,86,.2); }

/* About page */
.aside-quote {
  background: var(--surface-2); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px;
  border-left: 4px solid var(--accent);
}
.aside-quote p { color: var(--brand); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.45; margin-bottom: .75rem; }
.aside-quote small { color: var(--muted); font-weight: 600; }
.on-this-page { margin-top: 1.25rem; }
.on-this-page a { display: block; color: var(--muted); font-size: .85rem; padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--line); }
.on-this-page a:hover { color: var(--brand); border-left-color: var(--accent); }
.prose { color: #3d4a4a; }
.prose p, .prose li { line-height: 1.85; font-size: .95rem; }
.prose h2 { color: var(--brand); font-size: 1.3rem; font-weight: 700; margin: 2.25rem 0 1rem; scroll-margin-top: 90px; }
.prose h3 { color: var(--ink); font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.prose ol li::marker, .prose ul li::marker { color: var(--brand); font-weight: 700; }
.prose ul ul { list-style: circle; }
.objective-card {
  background: #dff1ef; border: 1px solid #bfe3df; border-radius: var(--radius); padding: 1.25rem; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.objective-card .num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .75rem; display: block; }
.objective-card p { margin: 0; font-size: .9rem; color: var(--ink); }
.objective-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doc-accordion { --bs-accordion-active-bg: var(--brand-50); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(13,92,86,.15); --bs-accordion-border-color: var(--line); }
.doc-accordion .accordion-button { font-weight: 600; font-size: .95rem; }
.file-chip {
  display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .9rem; color: var(--ink); font-size: .85rem; background: #fff; transition: all .2s;
}
.file-chip i { color: #c62828; font-size: 1.2rem; }
.file-chip span { color: var(--muted); font-size: .75rem; }
.file-chip:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }

/* Team page */
.featured-panel { background: linear-gradient(135deg, #dff1ef, #eef8f7); border-radius: var(--radius); padding: 2.25rem 1rem; text-align: center; }
.featured-person { display: inline-block; background: #fff; border-radius: 12px; padding: 1.5rem 2.25rem; box-shadow: var(--shadow); }
.featured-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent); }
.featured-person .role { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .9rem; }
.featured-person strong { display: block; color: var(--brand); font-size: 1.05rem; margin-top: .2rem; }
.team-block { margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.team-block > h2 {
  background: var(--brand); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .75rem 1rem; margin: 0; display: flex; align-items: center; gap: .5rem; font-weight: 700;
}
.team-table { width: 100%; font-size: .85rem; margin: 0; border-collapse: collapse; }
.team-table thead th { background: #dff1ef; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-700); padding: .6rem 1rem; font-weight: 700; }
.team-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.team-table tbody tr { transition: background .2s; }
.team-table tbody tr:hover { background: #f6fbfb; }
.team-table .name { font-weight: 700; color: var(--ink); display: block; }
.team-table .desig { color: var(--muted); font-size: .8rem; }
.contact-line { display: flex; align-items: center; gap: .4rem; color: var(--ink); white-space: nowrap; }
.contact-line i { color: var(--brand); }
.contact-line + .contact-line { margin-top: .25rem; }
@media (max-width: 767.98px) {
  .team-table.table-stack tr { border: 0; border-radius: 0; border-top: 1px solid var(--line); margin: 0; }
}

/* Organisations page */
.org-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; height: 100%;
  display: flex; flex-direction: column; color: var(--ink); transition: all .3s var(--ease);
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.org-card h2 { font-size: 1rem; color: var(--brand); font-weight: 600; line-height: 1.4; margin: 0; }
.org-logo {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0;
  background: var(--tint, #e7f2f1); color: var(--tone, var(--brand)); font-weight: 800; transition: transform .4s var(--ease);
}
.org-card:hover .org-logo { transform: rotate(-8deg) scale(1.06); }
.org-card p { font-size: .85rem; color: var(--muted); margin: 1rem 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.org-card .go {
  margin-top: auto; align-self: flex-end; width: 34px; height: 34px; border-radius: 6px; background: #a8dcd8; color: var(--brand-700);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.org-card:hover .go { background: var(--brand); color: #fff; }

/* Performance page */
.eyebrow-link { color: var(--brand); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.eyebrow-link:hover i { transform: translateX(3px); }
.eyebrow-link i { transition: transform .2s; }
.perf-card { display: block; color: var(--ink); height: 100%; }
.perf-card:hover { color: var(--brand); }
.perf-media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.perf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.perf-card:hover .perf-media { box-shadow: var(--shadow); }
.perf-card:hover .perf-media img { transform: scale(1.05); }
.perf-ext {
  position: absolute; right: .6rem; bottom: .6rem; width: 34px; height: 34px; background: #a8dcd8; color: var(--brand-700);
  border-radius: 6px; display: grid; place-items: center; transition: all .2s;
}
.perf-card:hover .perf-ext { background: var(--brand); color: #fff; }
.perf-card h2 { font-size: .98rem; font-weight: 600; margin: .8rem 0 .2rem; line-height: 1.4; }
.perf-card time { font-size: .75rem; color: var(--accent-600); font-weight: 600; }
.logo-tile { height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem; background: radial-gradient(circle at 30% 20%, #fff, #f4f8f8); }
.logo-tile .wordmark { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.logo-tile .wordmark span { color: var(--accent); }
.logo-tile small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-top: .5rem; text-transform: uppercase; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; height: 100%; border-top: 4px solid var(--brand); }
.stat-card .val { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-card .lbl { font-size: .82rem; color: var(--muted); }
.stat-card i { font-size: 1.5rem; color: var(--accent); }

/* Image heroes with teal fade (Offerings / Media) */
.page-hero--teal { background-color: var(--brand); background-repeat: no-repeat; background-size: cover; background-position: right center; }
.page-hero--teal::before {
  animation: none; opacity: 1;
  background: linear-gradient(90deg, #0d5c56 0%, #0d5c56 25%, rgba(13,92,86,.6) 52%, rgba(13,92,86,0) 78%);
}
.hero-offerings { background-image: url("../img/hero-offerings.jpg"); }
.hero-media { background-image: url("../img/hero-media.jpg"); }
@media (max-width: 767.98px) {
  .page-hero--teal::before { background: linear-gradient(90deg, rgba(13,92,86,.95), rgba(13,92,86,.7)); }
}

.btn-archive {
  display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--brand); color: var(--brand); background: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: .5rem .9rem; border-radius: 4px; transition: all .2s var(--ease);
}
.btn-archive:hover { background: var(--brand); color: #fff; }
.no-data { text-align: center; font-weight: 700; color: var(--ink); padding: 1.5rem 1rem; font-size: .9rem; }

/* Directory */
.alpha-bar {
  background: #e9eded; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem; padding: .4rem; border-radius: 6px; margin-bottom: 1.25rem;
}
.alpha-bar button {
  border: 0; background: transparent; min-width: 30px; height: 30px; border-radius: 6px; font-weight: 600; font-size: .85rem;
  color: var(--brand); transition: all .2s;
}
.alpha-bar button:hover { background: #fff; }
.alpha-bar button.active { background: var(--brand); color: #fff; }
@media (max-width: 767.98px) {
  .alpha-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
}
.dir-row {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1rem 1.5rem; padding: 1.1rem .75rem; border-bottom: 1px solid var(--line);
  position: relative; transition: background .2s;
}
.dir-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform .25s var(--ease);
}
.dir-row:hover { background: #f6fbfb; }
.dir-row:hover::before { transform: scaleY(1); }
.dir-row:nth-child(3n) { border-bottom-color: #8ccfc9; }
.dir-role { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.dir-name { display: block; font-weight: 600; font-size: .92rem; margin: .1rem 0 .35rem; }
.dir-tag { display: inline-block; background: #cdebe8; color: var(--brand-700); font-size: .68rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.dir-row .contact-line { font-size: .82rem; white-space: normal; word-break: break-word; }
.dir-addr { display: flex; gap: .4rem; font-size: .82rem; }
.dir-addr i { color: var(--brand); }
@media (max-width: 767.98px) {
  .dir-row { grid-template-columns: 1fr; gap: .5rem; }
}

/* Vacancies */
.vac-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: 100%;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.vac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vac-title {
  background: #a8dcd8; color: var(--brand-700); font-size: 1rem; font-weight: 600; text-align: center; line-height: 1.35;
  padding: .65rem .8rem; border-radius: 4px; margin: 0 0 .75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vac-desc { font-size: .85rem; color: var(--ink); margin-bottom: 1.25rem; }
.vac-meta { margin: 0 0 1rem; font-size: .75rem; }
.vac-meta > div { display: flex; justify-content: space-between; align-items: center; padding: .3rem 0; }
.vac-meta dt { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: .5rem; color: var(--ink); }
.vac-meta dt i { color: var(--brand); font-size: 1rem; }
.vac-meta dd { margin: 0; color: var(--ink); }
.vac-card .jd-link { font-size: .78rem; text-decoration: underline; color: #1565c0; }
.vac-docs { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .8rem; }
.vac-docs li + li { margin-top: .35rem; }
.vac-docs a { color: var(--ink); display: flex; gap: .4rem; align-items: center; }
.vac-docs a:hover { color: var(--brand); }
.vac-docs i { color: #c62828; }
.btn-mint {
  background: #cdebe8; color: var(--brand-700); font-size: .7rem; font-weight: 700; letter-spacing: .05em; border: 0;
  border-radius: 4px; padding: .5rem 1rem; transition: all .2s;
}
.btn-mint:hover, .btn-mint[aria-expanded="true"] { background: var(--brand); color: #fff; }
.badge-status { font-size: .65rem; font-weight: 700; letter-spacing: .05em; padding: .3rem .55rem; border-radius: 999px; }
.badge-open { background: #e3f4e8; color: #2e7d32; }
.badge-closed { background: #fde4e4; color: #c62828; }

/* Media galleries */
.media-card { display: block; color: var(--ink); height: 100%; }
.media-card:hover { color: var(--brand); }
.media-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 2px solid #1d2a2a; background: #1d2a2a;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.media-card:hover .media-thumb img { transform: scale(1.06); opacity: .9; }
.thumb-go {
  position: absolute; right: .5rem; bottom: .5rem; width: 30px; height: 30px; border-radius: 4px;
  background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; transition: all .25s var(--ease);
}
.media-card:hover .thumb-go { background: var(--accent); }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 38px; border-radius: 10px;
  background: #e62117; color: #fff; display: grid; place-items: center; font-size: 1.4rem; transition: transform .25s var(--ease);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.media-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }
.media-card h2 {
  font-size: .85rem; font-weight: 500; margin: .55rem 0 .35rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.media-meta { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }

.media-modal .modal-content { background: #0e1716; color: #fff; border: 0; border-radius: 12px; overflow: hidden; }
.media-modal .modal-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.media-modal .carousel-item img { max-height: 75vh; object-fit: contain; background: #000; }
.album-count { position: absolute; right: 1rem; bottom: 1rem; background: rgba(0,0,0,.6); padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; }
.video-fallback { background-size: cover; background-position: center; }
.video-fallback::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.video-fallback > div { z-index: 1; display: flex; padding: 1rem; }

/* Sitemap */
.hero-sitemap { background-image: url("../img/hero-sitemap.jpg"); }
.sitemap { max-width: 900px; }
.sitemap-home { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.sitemap-home:hover { color: var(--brand); }
.sitemap-group { margin-top: 1.25rem; }
.sitemap-group h2 {
  font-size: .9rem; font-weight: 700; color: var(--brand); margin: 0; padding-bottom: .55rem;
  border-bottom: 1px solid var(--line); position: relative;
}
.sitemap-group h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--accent); }
.sitemap-group ul { list-style: none; margin: .4rem 0 0; padding: 0 0 0 1rem; }
.sitemap-group li { border-bottom: 1px solid #edf1f1; }
.sitemap-group li[hidden] { display: none; }
.sitemap-group a {
  display: flex; align-items: center; gap: .45rem; padding: .55rem .25rem; font-size: .85rem; color: var(--ink);
  transition: color .2s, padding-left .25s var(--ease), background .2s;
}
.sitemap-group a::before {
  content: "\F285"; font-family: "bootstrap-icons"; font-size: .65rem; color: var(--muted); transition: color .2s, transform .25s var(--ease);
}
.sitemap-group a:hover { color: var(--brand); padding-left: .6rem; background: #f6fbfb; }
.sitemap-group a:hover::before { color: var(--accent); transform: translateX(2px); }
.sitemap-group a mark { background: #ffe8d1; padding: 0 .1em; border-radius: 2px; }

/* Connect & RTI */
.hero-connect { background-image: url("../img/hero-connect.jpg"); }

.contact-details { font-size: .88rem; color: #222; }
.contact-section { margin-bottom: 1.5rem; }
.contact-section h2 { font-size: .95rem; font-weight: 700; color: #111; margin-bottom: .25rem; }
.contact-section p { margin-bottom: .2rem; line-height: 1.55; }
.contact-section a { color: #0056b3; text-decoration: underline; word-break: break-all; }
.contact-section a:hover { color: var(--accent-600); }

.contact-map-frame {
  width: 100%; height: 500px; border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.06); overflow: hidden;
}
.qr-box {
  display: inline-block; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.qr-box svg, .qr-box img { display: block; width: 140px; height: 140px; }

/* RTI Specific */
.rti-title { color: #0d5c56; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.rti-intro { font-size: .9rem; line-height: 1.65; color: #333; }
.rti-intro strong { color: #111; }
.rti-accordion .accordion-item {
  border: 1px solid #d2dedc; border-radius: 6px !important; margin-bottom: .85rem; overflow: hidden;
}
.rti-accordion .accordion-button {
  background: #fff; color: #0d5c56; font-weight: 600; font-size: .92rem; padding: 1rem 1.25rem;
  box-shadow: none !important;
}
.rti-accordion .accordion-button:not(.collapsed) {
  background: #f0f7f6; color: #083b37; border-bottom: 1px solid #d2dedc;
}
.rti-accordion .accordion-button::after {
  filter: hue-rotate(130deg);
}

/* Error Pages */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}
.error-card {
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(13, 92, 86, 0.08);
  position: relative;
  overflow: hidden;
}
.error-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}
.error-code {
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -2px;
  text-shadow: 2px 4px 12px rgba(13, 92, 86, 0.15);
}
.error-code.danger-code {
  color: #c62828;
}
.error-code.warning-code {
  color: #d9650f;
}
.error-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.error-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.error-quick-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
}
.error-quick-links a {
  color: var(--brand);
  font-weight: 600;
  margin: 0 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error-quick-links a:hover {
  color: var(--accent);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .main-nav .nav-link.active { border-radius: 6px; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .navbar-collapse { padding-bottom: .75rem; }
}
@media (max-width: 575.98px) {
  .brand-block img { height: 44px; }
  .brand-block .min { font-size: .9rem; }
  .hero-controls { right: .5rem; bottom: .5rem; }
  .ticker-label span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}