:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --navy-mid: #14325a;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --white: #ffffff;
  --off: #f5f7fb;
  --ink: #1a2332;
  --muted: #5b677a;
  --line: #d7deea;
  --ok: #1b7f4e;
  --warn: #b86e00;
  --crit: #a11b1b;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--off);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); }
a:hover { color: var(--gold); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: inherit; }
.brand-seal {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-size: 1.2rem; font-weight: 700;
}
.brand-logo {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(201,162,39,.25);
  background: #fff;
}
.footer-brand { display: flex; gap: .85rem; align-items: flex-start; }
.footer-logo {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(201,162,39,.55);
  background: #fff;
}
.brand-text strong { display: block; font-size: 1.1rem; letter-spacing: .02em; }
.brand-text small { color: var(--gold-soft); font-size: .78rem; }
.nav-toggle {
  display: none; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: .45rem .8rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav a {
  color: #e8eef8; text-decoration: none; padding: .45rem .7rem; border-radius: 8px;
  font-size: .92rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a.active { background: rgba(201,162,39,.18); color: var(--gold-soft); }

.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(201,162,39,.25), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a4a7a 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--gold);
}
.hero h1 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.hero .lead { max-width: 40rem; color: #d9e4f5; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 999px; padding: .7rem 1.2rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: .95rem;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }

.page-hero {
  background: var(--navy); color: var(--white); padding: 2rem 0 1.5rem;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-hero .lead { margin: .5rem 0 0; color: #c9d6ea; max-width: 40rem; }

.section { padding: 2.25rem 0; }
.section-title {
  margin: 0 0 1rem; font-size: 1.35rem; color: var(--navy);
  border-left: 4px solid var(--gold); padding-left: .7rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: .75rem; font-weight: 700; text-decoration: none; }
.muted { color: var(--muted); }
.prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.prose h2 { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .35rem; text-align: left; }

.list-cards { display: grid; gap: 1rem; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px;
  background: #eef2f8; color: var(--navy);
}
.badge-agenda { background: #e7f0ff; }
.badge-minutes { background: #e8f7ee; color: var(--ok); }
.badge-info { background: #eef2f8; }
.badge-watch { background: #fff4d6; color: var(--warn); }
.badge-warning { background: #ffe8cc; color: var(--warn); }
.badge-critical { background: #fde2e2; color: var(--crit); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.gallery-item {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #cfd8e6; }
.gallery-item figcaption { padding: .7rem .85rem; font-size: .9rem; }

.status-board { display: grid; gap: 1rem; }
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert-item {
  border-left: 4px solid var(--warn); padding: .75rem 1rem; background: #fffaf0;
  border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: .75rem;
}
.alert-item.severe { border-left-color: var(--crit); background: #fff5f5; }
.temp-big { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.live-dot {
  display: inline-block; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--ok); margin-right: .35rem; box-shadow: 0 0 0 3px rgba(27,127,78,.2);
}

.site-footer {
  background: var(--navy-deep); color: #c9d6ea; margin-top: 2rem;
  border-top: 3px solid var(--gold); padding: 2rem 0 1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; }
.footer-title { color: var(--gold); font-size: .95rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #dce6f5; text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer a { color: var(--gold-soft); }

/* Admin */
.admin-body { background: #e9eef6; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy-deep); color: #d7e2f2; padding: 1.25rem 1rem;
}
.admin-side a { color: #d7e2f2; text-decoration: none; display: block; padding: .5rem .65rem; border-radius: 8px; }
.admin-side a:hover, .admin-side a.active { background: rgba(201,162,39,.2); color: var(--gold-soft); }
.admin-main { padding: 1.25rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.table th { background: #f0f4fa; color: var(--navy); }
.form-grid { display: grid; gap: .85rem; max-width: 720px; }
label { display: grid; gap: .3rem; font-weight: 600; color: var(--navy); font-size: .9rem; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
textarea { min-height: 140px; }
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.flash-ok { background: #e8f7ee; color: var(--ok); }
.flash-err { background: #fde2e2; color: var(--crit); }
.login-box {
  max-width: 400px; margin: 4rem auto; background: #fff; padding: 1.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.danger { color: var(--crit); }

@media (max-width: 900px) {
  .grid-3, .grid-2, .status-row, .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .5rem; }
  .header-inner { flex-wrap: wrap; }
}

/* Homepage photo hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero--photos {
  background: #071526 !important;
  min-height: clamp(22rem, 52vh, 34rem);
  display: flex;
  align-items: center;
}
.hero--photos .hero-content {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  max-width: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(7,21,38,.78) 0%, rgba(11,31,58,.55) 48%, rgba(11,31,58,.35) 100%),
    linear-gradient(to top, rgba(7,21,38,.55) 0%, transparent 42%);
  pointer-events: none;
}
.hero-dots {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.hero-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.3);
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}



/* Document / link lists (forms & links pages) */
.doc-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.doc-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.doc-list li:last-child { border-bottom: 0; }
.doc-list a {
  font-weight: 600;
  text-decoration: none;
}
.doc-list a:hover { text-decoration: underline; }
