:root {
  --green: #0b3d2e;
  --green-2: #145c45;
  --gold: #e8b923;
  --gold-2: #f0cb4a;
  --navy: #0a1628;
  --ink: #14201a;
  --muted: #5b6b63;
  --line: #d7e2dc;
  --bg: #f3f7f4;
  --card: #ffffff;
  --max: 1180px;
  --header-h: 72px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, 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(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--gold); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--navy), #0d2138);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem; color: #fff; font-weight: 800;
  letter-spacing: .02em; flex-shrink: 0;
}
.brand img, .brand svg {
  height: 44px; width: auto; max-width: 200px; display: block;
}
.brand-text { font-size: 1.15rem; color: #fff; }
.brand-text span { color: var(--gold); }
.nav-toggle {
  display: none; border: 1px solid rgba(255,255,255,.25); background: transparent;
  color: #fff; border-radius: 10px; padding: .45rem .7rem; cursor: pointer;
}
.nav-main { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.nav-main > a, .nav-drop > .nav-parent {
  color: #eef5f1; font-weight: 600; font-size: .95rem;
  padding: .55rem .75rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .25rem;
}
.nav-main > a:hover, .nav-drop:hover > .nav-parent, .nav-main > a.is-active, .nav-drop.is-active > .nav-parent {
  background: rgba(232,185,35,.16); color: var(--gold-2);
}
.nav-drop { position: relative; }
.nav-drop > .nav-parent::after { content: "▾"; font-size: .7em; opacity: .85; margin-left: .15rem; }
.nav-drop .submenu {
  position: absolute; top: calc(100% + .2rem); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .4rem; gap: .15rem; z-index: 60;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Desktop: open ONLY on hover over the category */
@media (hover: hover) and (min-width: 921px) {
  .nav-drop:hover > .submenu {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
.nav-drop .submenu a {
  color: var(--ink); padding: .55rem .7rem; border-radius: 8px; font-weight: 600; font-size: .92rem;
}
.nav-drop .submenu a:hover { background: #eef6f1; color: var(--green); }

/* Layout */
.page-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(232,185,35,.18), transparent 40%),
    linear-gradient(135deg, var(--navy), var(--green));
  color: #fff; padding: 2.2rem 0 2rem;
}
.page-hero h1 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }
.page-hero p { margin: 0; max-width: 62ch; color: #d7e5dd; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; font-size: .9rem; color: #b7c9bf; }
.breadcrumb a { color: var(--gold-2); }

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem; padding: 1.5rem 0 2.5rem;
}
.layout.full { grid-template-columns: 1fr; }

/* Cards / grids */
.section-title {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin: 0 0 1rem;
}
.section-title h2 { margin: 0; font-size: 1.35rem; color: var(--navy); }
.section-title a { font-weight: 700; font-size: .92rem; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10,22,40,.12); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #dfe8e3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .95rem 1rem 1.1rem; display: grid; gap: .45rem; }
.card-kicker {
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-2);
}
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-meta { color: #7a8a82; font-size: .8rem; }

/* Slideshow */
.slideshow {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
  background: #07111d; min-height: 340px;
}
.slide {
  display: none; position: relative; min-height: 340px;
  color: #fff; text-decoration: none;
}
.slide.is-active { display: block; }
.slide img {
  width: 100%; height: 340px; object-fit: cover; filter: brightness(.72);
}
.slide-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(7,17,29,.92));
}
.slide-caption .kicker { color: var(--gold-2); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.slide-caption h2 { margin: .35rem 0 .35rem; font-size: clamp(1.25rem, 2.4vw, 1.85rem); color: #fff; }
.slide-caption p { margin: 0; color: #d5dee8; max-width: 70ch; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.2rem; font-weight: 700;
}
.slide-nav.prev { left: .8rem; }
.slide-nav.next { right: .8rem; }
.slide-dots {
  position: absolute; left: 0; right: 0; bottom: .55rem;
  display: flex; justify-content: center; gap: .35rem; z-index: 2;
}
.slide-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.slide-dots button.is-active { background: var(--gold); }

/* Home blocks */
.home-top { padding: 1.4rem 0 0; }
.cat-panels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.4rem 0; }
.cat-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.cat-panel h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.cat-panel p { margin: 0 0 .8rem; color: var(--muted); }
.cat-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.cat-panel li a { font-weight: 650; }

/* Sidebar */
.sidebar { display: grid; gap: 1rem; align-content: start; }
.side-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.side-box h2 {
  margin: 0 0 .8rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--green); border-bottom: 2px solid var(--gold); padding-bottom: .45rem;
}
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.side-list li { display: grid; grid-template-columns: 64px 1fr; gap: .65rem; align-items: start; }
.side-list img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #dfe8e3;
}
.side-list a { color: var(--navy); font-weight: 700; font-size: .9rem; line-height: 1.35; }
.side-list a:hover { color: var(--green-2); }
.side-list .meta { color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.side-nav a {
  display: block; padding: .45rem 0; border-bottom: 1px dashed var(--line);
  color: var(--ink); font-weight: 600;
}
.side-nav a:last-child { border-bottom: 0; }

/* Article */
.article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.6rem; box-shadow: var(--shadow);
}
.article header h1 { margin: 0 0 .5rem; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.25; color: var(--navy); }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.article .featured {
  border-radius: 12px; overflow: hidden; margin: 0 0 1.2rem; background: #dfe8e3;
}
.article .featured img { width: 100%; max-height: 420px; object-fit: cover; }
.prose h2 { margin: 1.5rem 0 .6rem; font-size: 1.25rem; color: var(--navy); }
.prose h3 { margin: 1.2rem 0 .45rem; font-size: 1.05rem; color: var(--green); }
.prose p { margin: 0 0 1rem; font-size: 1.02rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose figure {
  margin: 1.2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef4f0;
}
.prose figcaption { padding: .55rem .8rem; font-size: .85rem; color: var(--muted); }
.prose strong { color: var(--navy); }
.tag {
  display: inline-block; background: #e7f3ec; color: var(--green); font-weight: 700;
  font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; margin-right: .3rem;
}

/* Category intro */
.cat-intro {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: .8rem; }
.subcat-grid a {
  display: block; background: #eef6f1; border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; font-weight: 750; color: var(--navy);
}
.subcat-grid a:hover { background: var(--green); color: #fff; }

/* Footer */
.site-footer {
  background: var(--navy); color: #c9d4de; margin-top: auto; border-top: 3px solid var(--gold);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem 0;
}
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; }
.footer-brand img, .footer-brand svg { height: 36px; width: auto; max-width: 170px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.footer-nav a { color: #dce5ee; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: .85rem; font-size: .85rem; color: #9aabba; }

/* Responsive */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .cat-panels { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-main {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #0d2138; border-bottom: 2px solid var(--gold); padding: .6rem .8rem 1rem;
    flex-direction: column; align-items: stretch;
  }
  .nav-main.is-open { display: flex; }
  .nav-drop .submenu {
    position: static; display: none !important; box-shadow: none; border: 0; background: rgba(255,255,255,.04);
    padding: .25rem .35rem .45rem; margin: 0 .2rem .35rem; border-radius: 10px;
  }
  /* Mobile: open ONLY after tap on category (class is-open), never permanently */
  .nav-drop.is-open > .submenu {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav-drop .submenu a { color: #dce8e1; }
  .nav-drop > .nav-parent { width: 100%; justify-content: space-between; }
  .slide img, .slideshow, .slide { min-height: 280px; height: auto; }
  .slide img { height: 280px; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .cards { grid-template-columns: 1fr; }
}

/* Related + hubs */
.related {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.related h2 { margin: 0 0 .55rem; font-size: 1.15rem; color: var(--navy); }
.related .hub-links { margin: 0 0 .75rem; font-size: .92rem; color: var(--muted); }
.related .hub-links a { font-weight: 700; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.related-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem .8rem;
  padding: .55rem .7rem; background: #eef6f1; border-radius: 10px; border: 1px solid var(--line);
}
.related-list a { font-weight: 700; color: var(--navy); }
.related-list a:hover { color: var(--green-2); }
.related-list .rel-meta { font-size: .78rem; color: var(--muted); font-weight: 600; }
.prose h2 {
  margin: 1.6rem 0 .55rem; font-size: 1.28rem; color: var(--navy);
  border-left: 4px solid var(--gold); padding-left: .6rem;
}


/* Article tables — clear cells, site-aligned */
.prose .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.35rem 0 1.6rem;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,22,40,.05);
}
.prose table.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1a1f2c;
  background: #fff;
}
.prose table.data-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: #0a1628;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid #e5e9ef;
  background: #fff;
}
.prose table.data-table th,
.prose table.data-table td {
  border: 1px solid #c5cdd8;
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  background: #fff;
}
.prose table.data-table thead th {
  background: #eef1f5 !important;
  color: #0a1628 !important;
  font-weight: 700;
  border-bottom: 2px solid #aeb8c6;
}
.prose table.data-table tbody tr:nth-child(even) td {
  background: #f7f9fb;
}
.prose table.data-table tbody td:first-child {
  font-weight: 600;
  color: #243044;
  white-space: nowrap;
}
.prose ul, .prose ol {
  margin: 0.6rem 0 1.1rem;
  padding-left: 1.25rem;
}
.prose li { margin: 0.35rem 0; }
.prose h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.05rem;
  color: #0b3d2e;
}

/* search */
.home-h1{padding:1.6rem 0 .4rem}
.home-h1 h1{font-size:1.9rem;line-height:1.15;margin:0 0 .35rem;color:#0a1628}
.home-h1-sub{margin:0;color:#5a6b63}
.nav-search{font-weight:600}
.search-form{display:flex;gap:.6rem;margin:1.2rem 0 1.6rem}
.search-form input{flex:1;padding:.8rem 1rem;border:1px solid #9aa5b5;border-radius:10px;font-size:1rem}
.search-form button{padding:.8rem 1.2rem;border:0;border-radius:10px;background:#0a1628;color:#fff;font-weight:700;cursor:pointer}
.search-meta{color:#5a6b63;margin:0 0 1rem}
.search-results{display:flex;flex-direction:column;gap:.7rem}
.search-hit{display:block;border:1px solid #d7e2dc;border-radius:12px;padding:.9rem 1rem;text-decoration:none;color:#1a2332;background:#fff}
.search-hit:hover{border-color:#0a1628}
.search-hit strong{display:block;margin:.15rem 0 .3rem}
.search-cat{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#5a6b63}
.search-snip{font-size:.92rem;color:#5a6b63}
