/*
Theme Name: République Gabonaise
Theme URI: https://github.com/aninf/ministere-gabon
Author: ANINF
Author URI: http://www.aninf.ga/
Description: Thème WordPress moderne pour les Ministères de la République Gabonaise, basé sur Tailwind CSS.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ministere-gabon
*/

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body, #ffffff);
}

/* ===========================================
   Preloader
   =========================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Garde-fou CSS si JavaScript est bloqué ou échoue */
  animation: preloaderAutoDismiss 0.5s ease 5s forwards;
}

@keyframes preloaderAutoDismiss {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

#preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  max-width: 120px;
  height: auto;
}

.preloader-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.preloader-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preloader-sitename {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.preloader-progress-wrap {
  width: 200px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  transition: none;
}

.preloader-percent {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gabarais-green {
  color: var(--color-primary, #009639);
}

.bg-gabarais-green {
  background-color: var(--color-primary, #009639);
}

.bg-gabarais-yellow {
  background-color: var(--color-secondary, #FFD100);
}

.bg-gabarais-blue {
  background-color: var(--color-accent, #0072C6);
}

.text-gabarais-green {
  color: var(--color-primary, #009639);
}

.border-gabarais-green {
  border-color: var(--color-primary, #009639);
}

.bg-cat-badge {
  background-color: var(--megamenu-col1-bg, #dcfce7);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-carousel-track {
  position: relative;
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-carousel-btn-prev {
  left: 1rem;
}

.hero-carousel-btn-next {
  right: 1rem;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 9999px;
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.hero-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.hero-carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary, #009639);
  transition: width 0.1s linear;
}

.header-logo-2 {
  min-width: 3rem;
}

@media (max-width: 767px) {
  .hero-carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero-carousel-btn-prev {
    left: 0.5rem;
  }

  .hero-carousel-btn-next {
    right: 0.5rem;
  }
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary, #009639);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card {
  transition: all 0.3s;
}

.service-card:hover,
.service-card:focus-within {
  border-color: var(--color-primary, #009639) !important;
  background-color: var(--megamenu-col1-bg, #e8f5e9);
}

.arrow-btn {
  transition: transform 0.3s;
}

.arrow-btn:hover {
  transform: translateX(4px);
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.search-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  transform: translateY(-30px);
  transition: transform 0.3s ease;
}

.search-overlay.open .search-panel {
  transform: translateY(0);
}

/* Custom adjustments for dynamic WordPress menu styling to match the mock */
.nav-container {
  position: relative;
}

.nav-container > ul {
  display: flex;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.nav-container > ul > li {
  position: relative;
  margin: 0;
}

.nav-container > ul > li:first-child {
  margin-left: 0;
}

.nav-container > ul > li > a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  white-space: normal;
  transition: color 0.2s;
  position: relative;
}

.nav-container > ul > li > a:hover {
  color: var(--color-primary, #009639);
}

/* Active menu item — top level */
.nav-container > ul > .current-menu-item > a,
.nav-container > ul > .current-menu-ancestor > a,
.nav-container > ul > .current-menu-parent > a {
  color: var(--color-primary, #009639);
}

.nav-container > ul > .current-menu-item > a::after,
.nav-container > ul > .current-menu-ancestor > a::after,
.nav-container > ul > .current-menu-parent > a::after {
  width: 100%;
}

.nav-container > ul > .current-menu-item:not(.menu-item-has-children) > a::after,
.nav-container > ul > .current-menu-ancestor:not(.menu-item-has-children) > a::after,
.nav-container > ul > .current-menu-parent:not(.menu-item-has-children) > a::after {
  transform: scaleX(1);
}

/* Active sub-menu item */
.nav-container .sub-menu li.current-menu-item > a,
.nav-container .sub-menu li.current-menu-ancestor > a {
  background-color: var(--megamenu-col1-bg, #f0fdf4);
  color: var(--color-primary, #009639);
  font-weight: 600;
}

/* Underline animation — top-level links only (not chevron parents) */
.nav-container > ul > li:not(.menu-item-has-children) > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary, #009639);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-container > ul > li:not(.menu-item-has-children) > a:hover::after {
  transform: scaleX(1);
}

/* ===========================================
   Dropdown Sub-menus
   =========================================== */

.nav-container .menu-item-has-children {
  position: relative;
}

/* Invisible bridge so hover is not lost between parent and panel */
.nav-container .menu-item-has-children::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 49;
}

/* Sub-menu: hidden by default */
.nav-container .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 50;
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
}

/* Show direct sub-menu on hover or keyboard focus */
.nav-container .menu-item-has-children:hover > .sub-menu,
.nav-container .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-container .sub-menu li {
  position: relative;
  width: 100%;
}

.nav-container .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem !important;
  white-space: nowrap;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  font-weight: 400;
  color: #374151;
  transition: background-color 0.15s, color 0.15s;
}

.nav-container .sub-menu li:last-child > a {
  border-bottom: none;
}

.nav-container .sub-menu li a:hover,
.nav-container .sub-menu li a:focus {
  background-color: #f9fafb;
  color: var(--color-primary, #009639);
}

.menu-icon {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--color-primary, #009639);
  opacity: 0.65;
}

.sub-menu li a:hover .menu-icon {
  opacity: 1;
}

.menu-item-title {
  flex: 1;
}

/* Dropdown chevron — top-level parents only */
.nav-container > ul > .menu-item-has-children > a {
  padding-right: 1.5rem !important;
}

.nav-container > ul > .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  bottom: auto;
  left: auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transform: translateY(-50%);
  background: none;
}

/* Nested sub-menu items with children */
.nav-container .sub-menu .menu-item-has-children > a {
  padding-right: 2rem !important;
}

.nav-container .sub-menu .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.5;
  transform: translateY(-50%);
}

/* 3rd level sub-menu: flyout to the right */
.nav-container .sub-menu .sub-menu {
  top: -4px;
  left: 100%;
  margin-left: -1px;
}

.nav-container .sub-menu .menu-item-has-children:hover > .sub-menu,
.nav-container .sub-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===========================================
   Mobile Menu Submenus
   =========================================== */

#mobileMenu .sub-menu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

#mobileMenu .sub-menu .sub-menu {
  padding-left: 1rem;
}

#mobileMenu .sub-menu.open {
  display: block;
}

#mobileMenu .sub-menu li a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
}

#mobileMenu .sub-menu li a::after {
  display: none !important;
}

#mobileMenu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0.5rem;
}

#mobileMenu .menu-item-has-children > a::after {
  display: inline-block;
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.2s;
}

#mobileMenu .menu-item-has-children > a.toggled::after {
  transform: rotate(180deg);
}

/* ===========================================
   Archive Page Pagination
   =========================================== */

.pagination-archive .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pagination-archive .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.pagination-archive .nav-links .page-numbers:hover {
  background-color: #f3f4f6;
  border-color: var(--color-primary, #009639);
  color: var(--color-primary, #009639);
}

.pagination-archive .nav-links .page-numbers.current {
  background-color: var(--color-primary, #009639);
  border-color: var(--color-primary, #009639);
  color: #fff;
  font-weight: 600;
}

.pagination-archive .nav-links .prev,
.pagination-archive .nav-links .next {
  border: none;
  color: var(--color-primary, #009639);
}

.pagination-archive .nav-links .prev:hover,
.pagination-archive .nav-links .next:hover {
  background-color: #e8f5e9;
}

/* ===========================================
   Archive Search Input Focus
   =========================================== */

.focus\:border-gabarais-green:focus {
  border-color: var(--color-primary, #009639);
}

.focus\:ring-gabarais-green:focus {
  --tw-ring-color: var(--color-primary, #009639);
}

/* ===========================================
   Mega Menu (nav-container walker)
   =========================================== */

.nav-container .mega-menu-item {
  position: static !important;
}

.nav-container .mega-menu-item::before {
  display: none;
}

.nav-container .mega-menu-item > .mega-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 50;
  padding: 1.5rem;
}

.nav-container .mega-menu-item:hover > .mega-container,
.nav-container .mega-menu-item:focus-within > .mega-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 4-column grid */
.nav-container .mega-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 1.5rem;
}

/* Column 1 — Description */
.nav-container .mega-col-desc {
  background: var(--megamenu-col1-bg, #f0fdf4);
  padding: 1rem;
  border-radius: 6px;
}

.nav-container .mega-col-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem 0;
}

.nav-container .mega-col-desc-text {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Column 2 — Parent links */
.nav-container .mega-col-parents {
  border-right: 1px solid #e5e7eb;
  padding-right: 1rem;
}

.nav-container .mega-parents-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-container .mega-parent-item {
  margin-bottom: 0.25rem;
}

.nav-container .mega-parent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-container .mega-parent-link:hover,
.mega-container .mega-parent-link:focus {
  background: var(--megamenu-col1-bg, #f0fdf4);
  color: var(--color-primary, #009639);
}

.nav-container .mega-parent-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.nav-container .mega-parent-link:hover .mega-parent-chevron {
  opacity: 1;
  transform: translateX(2px);
}

/* Column 3 — Children panels */
.nav-container .mega-col-children {
  padding: 0 1rem;
  min-height: 120px;
}

.nav-container .mega-children-panel {
  display: none;
}

.nav-container .mega-children-panel.active {
  display: block;
}

.nav-container .mega-children-title {
  display: none;
}

.nav-container .mega-children-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-container .mega-child-link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-container .mega-child-link:hover {
  color: var(--color-primary, #009639);
}

.nav-container .mega-children-placeholder {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

/* Column 4 — Minister */
.nav-container .mega-col-minister {
  text-align: center;
  padding-left: 1rem;
  border-left: 1px solid #e5e7eb;
}

.nav-container .minister-photo-wrap {
  margin-bottom: 0.75rem;
}

.nav-container .minister-photo {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 0;
  border: 0;
  display: block;
  margin: 0 auto;
}

.nav-container .minister-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  line-height: 1.3;
}

/* ===========================================
   Mega Menu (alternate megamenu walker)
   =========================================== */

/* Mega Menu Panel */
.megamenu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--color-primary, #009639);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  max-width: 1400px;
  margin: 0 auto;
}

.megamenu-top-item:hover .megamenu-panel,
.megamenu-top-item:focus-within .megamenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-inner {
  padding: 2rem 3rem;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Mega Menu Column */
.megamenu-column {
  padding: 0;
}

.megamenu-column-header {
  margin-bottom: 1rem;
}

.megamenu-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary, #009639);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.megamenu-col-title:hover {
  color: var(--color-primary, #009639);
}

.megamenu-col-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Mega Menu Sublinks */
.megamenu-sublinks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-sublink-item {
  margin-bottom: 0.5rem;
}

.megamenu-sublink {
  font-size: 0.9375rem;
  color: #4b5563;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
  position: relative;
}

.megamenu-sublink::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary, #009639);
  transition: width 0.2s ease;
}

.megamenu-sublink:hover {
  color: var(--color-primary, #009639);
  padding-left: 0.75rem;
}

.megamenu-sublink:hover::before {
  width: 4px;
}

.megamenu-sublink-active {
  color: var(--color-primary, #009639);
  font-weight: 600;
}

/* Mega Menu Top Item */
.megamenu-top-item {
  position: static;
}

.megamenu-top-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  position: relative;
}

.megamenu-top-link:hover {
  color: var(--color-primary, #009639);
}

.megamenu-top-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary, #009639);
  transition: width 0.2s ease;
}

.megamenu-top-link:hover::after {
  width: 100%;
}

.megamenu-current {
  color: var(--color-primary, #009639) !important;
}

.megamenu-current::after {
  width: 100% !important;
}

.megamenu-chevron {
  transition: transform 0.2s ease;
}

.megamenu-has-children:hover .megamenu-chevron {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .megamenu-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
  }

  .megamenu-inner {
    padding: 0;
  }

  .megamenu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .megamenu-col-title {
    font-size: 0.9375rem;
  }
}

/* ===========================================
   Archive / News listing
   =========================================== */

.archive-breadcrumb {
  background-color: #f9fafb;
}

.archive-card {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.archive-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.archive-search-input:focus {
  border-color: var(--color-primary, #009639);
  box-shadow: 0 0 0 1px var(--color-primary, #009639);
}

/* ===========================================
   Featured News Slider
   =========================================== */

.featured-slide-content {
  will-change: transform, opacity;
}

/* ===========================================
   Scroll-Triggered Reveal
   =========================================== */

[data-reveal] {
  will-change: transform, opacity;
}

/* ===========================================
   "Plus d'actualités" link
   =========================================== */

.more-news-link {
  position: relative;
  transition: color 0.3s;
}

.more-news-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary, #009639);
  transition: width 0.3s ease;
}

.more-news-link:hover::after {
  width: 100%;
}

/* Navbar: reserve room for actions and keep full labels readable. */
.primary-navigation .nav-layout { gap: 1rem; min-height: 64px; }
.primary-navigation .nav-container { min-width: 0; }
.primary-navigation .nav-container > ul { gap: .5rem; }
.primary-navigation .nav-container > ul > li { display: flex; align-items: stretch; }
.primary-navigation .nav-container > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: .75rem .5rem;
  font-size: .875rem;
  line-height: 1.35;
  white-space: normal;
  max-width: 15rem;
}
.primary-navigation .nav-actions { flex: 0 0 auto; margin-left: auto; }
.primary-navigation .nav-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.primary-navigation #hamburgerBtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.primary-navigation a:focus-visible, #mobileMenu a:focus-visible, #mobileMenu button:focus-visible,
.primary-navigation button:focus-visible { outline: 2px solid var(--color-primary, #009639); outline-offset: 3px; }
.primary-navigation .nav-container > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.primary-navigation .nav-container .sub-menu { width: 300px; max-width: calc(100vw - 48px); }
.primary-navigation .nav-container .sub-menu li a { white-space: normal; min-height: 44px; }
#mobileMenu { width: min(360px, 100vw); visibility: hidden; overscroll-behavior: contain; }
#mobileMenu.open { visibility: visible; }
#mobileMenu a, #mobileMenu button { min-height: 44px; }
#mobileMenu .menu-item-has-children > a::after { flex-shrink: 0; margin-left: .5rem; }
#mobileMenu .sub-menu .menu-item-has-children > a::after { display: inline-block !important; }
body.admin-bar .primary-navigation { top: 32px; }
body.admin-bar #mobileMenu { top: 32px; height: calc(100dvh - 32px); }
@media (min-width: 1100px) {
  .primary-navigation .nav-container { display: block; }
}
@media (max-width: 1099px) {
  .primary-navigation .nav-container { display: none; }
  .primary-navigation .nav-layout { min-height: 56px; }
}
@media (max-width: 782px) {
  body.admin-bar .primary-navigation { top: 46px; }
  body.admin-bar #mobileMenu { top: 46px; height: calc(100dvh - 46px); }
}
@media (max-width: 600px) { body.admin-bar .primary-navigation { top: 0; } }
@media (prefers-reduced-motion: reduce) { #mobileMenu { transition: none; } }

/* Internal pages: readable editorial content and legacy imported markup. */
.internal-page { padding-top: 2rem; padding-bottom: 4rem; }
.page-breadcrumb { flex-wrap: wrap; line-height: 1.6; }
.page-reading-layout { max-width: 1120px; margin: 2.5rem auto 0; display: grid; gap: 3.5rem; }
.page-reading-main { min-width: 0; max-width: 780px; width: 100%; }
.page-reading-layout:not(.has-toc) { max-width: 780px; }
.page-title { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin-top: 0; margin-bottom: 1.5rem; color: #172b24; }
.page-prose { color: #37443e; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.page-prose p { margin: 0 0 1.25em; }
.page-prose h1, .page-prose h2, .page-prose h3, .page-prose h4, .page-prose h5, .page-prose h6 { font-weight: 700; color: #173e2c; line-height: 1.35; margin: 2em 0 .8em; scroll-margin-top: 110px; text-wrap: pretty; }
.page-prose h1, .page-prose h2 { font-size: 1.5rem; }
.page-prose h3 { font-size: 1.25rem; }
.page-prose h4, .page-prose h5, .page-prose h6 { font-size: 1.1rem; }
.page-prose h2 { padding-bottom: .6rem; border-bottom: 1px solid #dce7df; }
.page-prose ul, .page-prose ol { margin: 1rem 0 1.75rem; padding-left: 1.5rem; }
.page-prose ul { list-style: disc; }
.page-prose ol { list-style: decimal; }
.page-prose li { padding-left: .25rem; margin: .55rem 0; }
.page-prose li::marker { color: #16814b; font-weight: 600; }
.page-prose li p { margin-bottom: .5rem; }
.page-prose a[href] { color: var(--color-primary, #009639); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.page-prose a[href]:hover { color: var(--color-primary, #009639); text-decoration-thickness: 2px; }
.page-prose a:focus-visible, .page-toc a:focus-visible { outline: 2px solid var(--color-primary, #009639); outline-offset: 4px; }
.page-prose img { max-width: 100%; height: auto; margin: 1.75rem auto; border-radius: 4px; }
.page-prose figure { max-width: 100%; margin: 2rem 0; }
.page-prose figcaption { color: #64716a; font-size: .875rem; text-align: center; }
.page-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 2rem 0; font-size: .95rem; }
.page-prose th, .page-prose td { padding: .85rem 1rem; border: 1px solid #dce7df; text-align: left; min-width: 100px; }
.page-prose th { background: #edf5ef; color: #173e2c; font-weight: 700; }
.page-prose blockquote { border-left: 3px solid #009639; padding: .75rem 1.5rem; margin: 2rem 0; background: #f4f8f5; }
.page-prose .address > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.page-prose .address .col-md-6 { padding-top: 1.25rem; border-top: 1px solid #dce7df; min-width: 0; }
.page-prose .address .col-md-6 > span { display: block; font-size: 1rem; line-height: 1.5; font-weight: 700; color: #173e2c; }
.page-prose .address ul { list-style: none; padding: 0; margin: .75rem 0; font-size: .9rem; }
.page-prose .address li { padding: 0; margin: .25rem 0; }
.page-prose .address li:empty { display: none; }
.page-prose .form-box { padding: 1.25rem 1.5rem; background: #f4f8f5; border-left: 3px solid #009639; }
.page-prose .form-box p:last-child { margin-bottom: 0; }
.page-toc { align-self: start; border-left: 2px solid #e0e9e3; padding-left: 1.5rem; }
.page-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: #173e2c; margin-bottom: 1rem; }
.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc a { display: block; font-size: .875rem; line-height: 1.5; padding: .5rem 0; color: #54635a; }
.page-toc a:hover { color: var(--color-primary, #009639); }
.page-toc .toc-level-3 { padding-left: .8rem; }
@media (min-width: 1024px) { .page-reading-layout.has-toc { grid-template-columns: minmax(0, 780px) 240px; } .page-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; } }
@media (max-width: 1023px) { .page-toc { grid-row: 1; } .page-reading-layout { gap: 2rem; } }
@media (max-width: 600px) { .internal-page { padding: 1.25rem 1.25rem 2.5rem; } .page-reading-layout { margin-top: 1.5rem; } .page-prose { font-size: 16px; line-height: 1.75; } .page-prose .address > .row { grid-template-columns: 1fr; gap: .75rem; } .page-prose h2 { font-size: 1.3rem; } }
.internal-page .page-heading { max-width: 1120px; margin: 2.5rem auto 0; border-left: 5px solid var(--color-primary, #009639); padding-left: 1rem; }
.internal-page .page-heading .page-title { margin: 0; }
.internal-page .page-heading + .page-reading-layout { margin-top: 2rem; }
@media (max-width: 600px) { .internal-page .page-heading { margin-top: 1.5rem; } }

.page-related-title { font-weight: 500; }

.page-related-card-title, .page-related-card-title a { font-weight: 400; }

/* Consistent editorial type scale; retain the requested 24px page titles. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
.internal-page .page-title { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.page-prose { font-size: 16px; line-height: 1.75; }
.page-prose h1, .page-prose h2 { font-size: 22px; }
.page-prose h3 { font-size: 20px; }
.page-prose h4, .page-prose h5, .page-prose h6 { font-size: 18px; }
.page-prose :is(h1,h2,h3,h4,h5,h6) { font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.page-prose :is(strong,b), .page-prose th, .page-prose .address .col-md-6 > span { font-weight: 600; }
.page-prose :is(h1,h2,h3,h4,h5,h6) :is(strong,b) { font-weight: inherit; }
.page-prose table { font-size: 16px; }
.page-prose figcaption, .page-prose .address ul, .page-toc a, .page-breadcrumb { font-size: 14px; line-height: 1.6; }
.page-toc h2 { font-size: 12px; font-weight: 600; }
.internal-page article > .mt-8 > h3 { font-size: 18px; line-height: 1.5; font-weight: 500; }
.page-related-title { font-size: 24px; line-height: 1.35; font-weight: 500; }
.page-related-card-title { font-size: 18px; line-height: 1.5; }
.page-related-card-title, .page-related-card-title a { font-weight: 400; }

/* National tricolors stay fixed independently of the customizable UI palette. */
.masthead-tricolor { height: 12px; background: linear-gradient(to bottom, #009639 0 33.333%, #FFD100 33.333% 66.666%, #233163 66.666% 100%); }
.site-masthead .masthead-layout { min-height: 92px; gap: 2rem; padding-top: 10px; padding-bottom: 10px; }
.site-masthead .masthead-brand { max-width: 720px; gap: 8px; }
.masthead-brand-stripe { align-self: stretch; width: 7px; gap: 0; }
.masthead-brand-stripe > div { width: 7px; height: auto; flex: 1; }
.masthead-brand-stripe > div:nth-child(1) { background-color: #009639; }
.masthead-brand-stripe > div:nth-child(2) { background-color: #FFD100; }
.masthead-brand-stripe > div:nth-child(3) { background-color: #233163; }
.masthead-subtitle { font-size: 15px; font-weight: 500; line-height: 1.4; max-width: none; white-space: normal; }
.masthead-title { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; width: 500px; max-width: 100%; white-space: normal; }
.masthead-tools { gap: 40px; }
.site-masthead #openSearch { display: grid; place-items: center; width: 48px; height: 48px; }
.site-masthead #openSearch svg { width: 30px; height: 30px; }
.site-masthead .header-logo-2 { height: 72px; min-width: 72px; border: 0; }
.site-masthead #openSearch:focus-visible { outline: 2px solid var(--color-primary, #009639); outline-offset: 3px; }
.primary-navigation .nav-container > ul { justify-content: flex-start; gap: 1rem; }
.primary-navigation .nav-container > ul > li > a { position: relative; font-size: 15px; font-weight: 600; padding: 1rem .5rem; }
.primary-navigation .nav-container > ul > li.current-menu-item > a::before,
.primary-navigation .nav-container > ul > li.current-menu-ancestor > a::before { content: ''; position: absolute; left: .5rem; right: .5rem; bottom: 0; height: 3px; background: var(--color-primary, #009639); }
.primary-navigation .nav-actions { align-self: stretch; gap: 20px; }
.primary-navigation .nav-actions > a { min-height: 64px; padding-left: 35px; padding-right: 35px; font-weight: 600; }
.primary-navigation #hamburgerBtn { width: 52px; }
.primary-navigation #hamburgerBtn svg { width: 28px; height: 28px; }
@media (max-width: 1099px) { .primary-navigation .nav-actions > a { min-height: 56px; } }
@media (max-width: 600px) {
  .site-masthead .masthead-layout { min-height: 80px; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .masthead-brand { gap: 10px; }
  .masthead-subtitle { font-size: 11px; }
  .masthead-title { font-size: 16px; }
  .masthead-tools { gap: 6px; }
  .site-masthead .header-logo-2 { height: 44px; min-width: 36px; }
  .site-masthead #openSearch { width: 44px; height: 44px; }
  .site-masthead #openSearch svg { width: 24px; height: 24px; }
  .primary-navigation .nav-actions { gap: 12px; }
}

/* Compact navigation with softer separators. */
.site-masthead, .primary-navigation { border-bottom-color: #f0f2f1; }
.primary-navigation .nav-layout { min-height: 52px; }
.primary-navigation .nav-container > ul > li > a { min-height: 52px; padding-top: .65rem; padding-bottom: .65rem; }
.primary-navigation .nav-actions > a { min-height: 52px; }
.primary-navigation .nav-container > ul > li.current-menu-item > a::before,
.primary-navigation .nav-container > ul > li.current-menu-ancestor > a::before { height: 2px; }
@media (max-width: 1099px) {
  .primary-navigation .nav-layout, .primary-navigation .nav-actions > a { min-height: 48px; }
}

/* Document library */
.document-library { padding-bottom: 64px; }
.document-library .page-breadcrumb { color: #65716a; display: flex; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #edf0ee; }
.document-heading { margin: 32px 0 28px; }
.document-heading h1 { font-size: 24px; line-height: 1.35; font-weight: 600; padding-left: 16px; border-left: 4px solid var(--color-primary); }
.document-heading p { margin-top: 12px; color: #65716a; font-size: 16px; }
.document-filters { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr auto; align-items: end; gap: 16px; padding: 24px; background: var(--bg-section,#f3f4f6); }
.document-filters > div { min-width: 0; }
.document-filters label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.document-filters input,.document-filters select { width: 100%; height: 46px; border: 1px solid #d7ded9; background: white; padding: 0 12px; font: inherit; font-size: 14px; border-radius: 3px; }
.document-filters button { height: 46px; background: var(--color-primary); color: white; padding: 0 24px; border-radius: 3px; font-size: 14px; }
.document-library :is(a,button,input,select):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.document-results { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; font-size: 14px; color: #65716a; }
.document-results a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
@media (min-width: 1001px) {
  .category-actes-de-gestion .document-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.document-card { border: 1px solid #e1e7e3; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.document-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #65716a; margin-bottom: 18px; }
.document-file-icon { color: var(--color-primary); }
.document-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.document-tags a { color: var(--color-primary); background: transparent; border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent); padding: 4px 8px; font-size: 11px; line-height: 1.5; }
.document-card h2 { font-size: 18px; line-height: 1.5; font-weight: 400; margin: 0 0 24px; overflow-wrap: anywhere; }
.document-card h2 a:hover { color: var(--color-primary); }
.document-card-actions { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid #edf0ee; font-size: 13px; }
.document-card-actions a { color: var(--color-primary); font-weight: 600; min-height: 32px; display: inline-flex; gap: 8px; align-items: center; }
.document-card-actions a:hover { text-decoration: underline; }
.document-pagination { margin-top: 36px; }
.document-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.document-pagination .page-numbers { padding: 10px 16px; border: 1px solid #e1e7e3; }
.document-pagination .current { background: var(--color-primary); color: white; }
.document-empty { padding: 64px 20px; text-align: center; border: 1px solid #e1e7e3; }
.document-empty h2 { font-size: 20px; margin-bottom: 12px; }
.document-empty a { display: inline-block; margin-top: 20px; color: var(--color-primary); text-decoration: underline; }
@media(max-width:1000px) { .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .document-filters { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px) { .document-grid,.document-filters { grid-template-columns: 1fr; } .document-filters { padding: 18px; } .document-card { padding: 20px; } }

/* Keep the library quiet; reserve the theme accent for primary actions. */
.document-library .document-file-icon { color: #6b746f; }
.document-library .document-tags a { color: #5d6761; border-color: #e1e5e2; background: transparent; }
.document-library .document-tags a:hover { color: #26352c; border-color: #aeb8b1; }
.document-library .document-card-actions a { color: #425148; }
.document-library .document-card-actions .document-download { color: var(--color-primary); }
.document-library .document-results a { color: #5d6761; }
.primary-navigation .nav-container > ul > li > a { max-width: none; }

.primary-navigation .nav-layout { border: 0; }
.primary-navigation { border-style: solid; border-color: #BFBFBF; border-width: 1px 0; }

/* Editorial homepage carousel; retain the configurable brand palette. */
.featured-editorial { position:relative; margin-top:10px; background:#17231c; color:white; overflow:hidden; }
.featured-editorial .featured-slides-wrapper { display:grid; }
.featured-editorial .featured-slide { grid-area:1 / 1; position:relative; display:flex; align-items:center; opacity:0; visibility:hidden; transition:opacity .5s ease; min-height:430px; }
.featured-editorial .featured-slide.is-active { opacity:1; visibility:visible; }
.featured-background,.featured-shade { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.featured-shade { background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.48) 68%,rgba(0,0,0,.3)); }
.featured-editorial .featured-slide-content { position:relative; padding:36px 0; margin-left:12%; width:61%; }
.featured-labels { display:flex; gap:8px; margin-bottom:22px; }
.featured-labels span { background:white; color:var(--color-primary); padding:6px 10px; font-size:12px; font-weight:600; }
.featured-slide-content h2 { font-size:26px; line-height:1.25; font-weight:600; margin:0 0 22px; }
.featured-slide-content h2 a { color:white; }
.featured-slide-content p { font-size:16px; line-height:1.65; margin:0 0 28px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.featured-read-more { display:inline-flex; align-items:center; gap:16px; background:white; color:var(--color-primary); font-size:14px; font-weight:600; padding:14px 22px; }
.featured-read-more:hover { background:var(--color-primary); color:white; }
.featured-dots { position:absolute; left:3%; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:4px; }
.featured-dot { width:28px; height:28px; border:1px solid transparent; background:transparent; display:grid; place-items:center; }
.featured-dot::after { content:''; width:5px; height:5px; background:white; }
.featured-dot[aria-current=true] { border-color:var(--color-secondary); }
.featured-dot[aria-current=true]::after { background:var(--color-secondary); }
.featured-preview-panel { position:absolute; right:3%; width:18%; top:50%; transform:translateY(-50%); }
#slideCounter { display:block; font-size:24px; font-weight:400; margin-bottom:12px; font-variant-numeric:tabular-nums; }
.featured-preview { display:block; width:100%; text-align:left; border:1px solid #ffffff70; background:#0004; color:white; }
.featured-preview img { width:100%; aspect-ratio:1.6; object-fit:cover; }
.featured-preview > span { display:flex; justify-content:space-between; padding:10px 12px; font-size:13px; }
.featured-editorial button:focus-visible,.featured-editorial a:focus-visible { outline:2px solid var(--color-secondary); outline-offset:4px; }
.home-news-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; }
@media(max-width:767px) {
 .featured-editorial .featured-slide { min-height:430px; }
 .featured-editorial .featured-slide-content { margin:0; padding:28px 24px 64px; width:100%; }
 .featured-slide-content h2 { font-size:24px; }
 .featured-labels { margin-bottom:18px; }
 .featured-labels span { font-size:12px; }
 .featured-preview-panel { display:none; }
 .featured-dots { top:auto; bottom:16px; left:16px; transform:none; flex-direction:row; gap:0; }
 .featured-dot { width:32px; }
}
@media(prefers-reduced-motion:reduce) { .featured-editorial .featured-slide { transition:none; } }

.home-news-date { font-size:14px; }

/* Institutional mega menu: full navbar width and four clear columns. */
@media (min-width:1100px) {
 .primary-navigation .nav-layout { position:relative; }
 .primary-navigation .nav-container, .primary-navigation .nav-container > ul { position:static; }
 .nav-container .mega-menu-item > .mega-institutional { padding:0; box-shadow:0 12px 24px #00000012; }
 .nav-container .mega-institutional .mega-grid { grid-template-columns:26% 30% 28% 16%; gap:0; min-height:320px; }
 .mega-institutional .mega-col-desc { padding:32px; border-radius:0; }
 .mega-institutional .mega-col-title { font-size:26px; font-weight:600; }
 .mega-institutional .mega-col-parents { margin:20px 0; padding:0 24px; border-color:#bfbfbf; }
 .mega-institutional .mega-parent-item { margin:0; }
 .mega-institutional .mega-parent-link { justify-content:flex-start; gap:10px; padding:9px 0; border-radius:0; font-size:15px; line-height:1.4; }
 .mega-institutional .mega-parent-link::before, .mega-institutional .mega-child-link::before { content:'→'; flex-shrink:0; font-weight:400; }
 .mega-institutional .mega-parent-chevron { display:none; }
 .mega-institutional .mega-parent-link:hover, .mega-institutional .mega-parent-link:focus, .mega-institutional .mega-parent-link.is-selected { background:transparent; color:var(--color-primary); }
 .mega-institutional .mega-col-children { padding:28px 24px; }
 .mega-institutional .mega-children-title { display:block; font-size:20px; font-weight:600; line-height:1.4; margin:0 0 26px; }
 .mega-institutional .mega-child-link { display:flex; gap:10px; font-size:15px; padding:9px 0; line-height:1.4; }
 .mega-institutional .mega-col-minister { border:0; padding:20px 20px 20px 0; }
 .mega-institutional .minister-photo-wrap { margin:0; }
 .mega-institutional .minister-photo { width:100%; max-width:180px; height:280px; object-fit:cover; object-position:top; }
}

/* Shared typography scale for public pages. Component exceptions stay explicit. */
:root {
 --font-site: 'Inter', sans-serif;
 --type-hero: 26px;
 --type-page: 24px;
 --type-section: 22px;
 --type-subsection: 20px;
 --type-card: 18px;
 --type-body: 16px;
 --type-navigation: 15px;
 --type-small: 14px;
 --type-label: 12px;
}
body { font-family:var(--font-site); font-size:var(--type-body); line-height:1.6; font-weight:400; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
button,input,select,textarea { font-family:inherit; }
body h1[class] { font-size:var(--type-page); font-weight:600; line-height:1.35; letter-spacing:-.015em; }
body h2[class] { font-size:var(--type-page); font-weight:600; line-height:1.35; letter-spacing:-.01em; }
body h3[class] { font-size:var(--type-card); font-weight:600; line-height:1.5; letter-spacing:-.01em; }
body h4[class],body h5[class],body h6[class] { font-size:var(--type-body); font-weight:600; line-height:1.5; }
.page-prose,.single-post .prose { font-size:var(--type-body); line-height:1.75; }
.page-prose :is(h1,h2),.single-post .prose :is(h1,h2) { font-size:var(--type-section); font-weight:500; line-height:1.4; }
.page-prose h3,.single-post .prose h3 { font-size:var(--type-subsection); font-weight:500; line-height:1.4; }
.page-prose :is(h4,h5,h6),.single-post .prose :is(h4,h5,h6) { font-size:var(--type-card); font-weight:500; }
.single-post .prose :is(p,li) { font-family:var(--font-site); font-size:var(--type-body); line-height:1.75; }
.single-post .prose :is(strong,b) { font-weight:600; }
body .page-related-title { font-size:var(--type-page); font-weight:500; }
body .page-related-card-title,body .page-related-card-title a { font-size:var(--type-card); font-weight:400; }
body .document-card h2 { font-size:var(--type-card); font-weight:400; line-height:1.5; }
body .document-tags a,body .document-card-meta { font-size:var(--type-label); }
body .document-card-actions { font-size:var(--type-small); }
body .page-toc h2 { font-size:var(--type-label); font-weight:600; }
body .featured-slide-content h2 { font-size:var(--type-hero); font-weight:600; line-height:1.25; }
body .featured-slide-content p { font-size:var(--type-body); line-height:1.65; }
body .home-news-title { font-size:var(--type-card); font-weight:600; line-height:1.5; }
body .home-news-date,body .page-breadcrumb { font-size:var(--type-small); }
body .mega-institutional .mega-col-title { font-size:var(--type-page); font-weight:600; }
body .mega-institutional .mega-children-title { font-size:var(--type-subsection); font-weight:600; }
body .mega-institutional :is(.mega-parent-link,.mega-child-link) { font-size:var(--type-navigation); line-height:1.5; }
@media(max-width:767px) { body .featured-slide-content h2 { font-size:var(--type-page); } }
body .archive-card h2 { font-size:var(--type-card); font-weight:600; line-height:1.5; }

/* Keep the current route distinct from the temporarily hovered mega-menu panel. */
.nav-container .mega-institutional a.is-current {
  color: var(--color-primary, #009639);
  background: var(--megamenu-col1-bg, #f0fdf4);
  font-weight: 600;
  box-shadow: inset 3px 0 var(--color-primary, #009639);
  padding-left: 12px;
}
.document-reader canvas { max-width: 100%; height: auto; margin: 16px auto; border: 1px solid #e5e7eb; }
.document-reader-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.document-reader-controls button { padding: 8px 14px; color: var(--color-primary); border: 1px solid currentColor; }
.document-reader-controls button:disabled { opacity: .4; cursor: default; }
.document-reader-controls button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.communique-pdf-icon { height:100%; min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--color-primary); background:var(--megamenu-col1-bg); }
.communique-badge { color:var(--color-primary); background:var(--megamenu-col1-bg); }

.document-filters-scoped { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
@media (max-width: 1000px) { .document-filters-scoped { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .document-filters-scoped { grid-template-columns: 1fr; } }

/* Dynamic hover colors, shared by navigation and footer text links. */
.hover\:text-gabarais-green:hover,
.hover\:text-gabarais-green:focus-visible {
  color: var(--color-primary, #009639);
}
.more-news-link { font-size: 18px; transition: color .2s, border-color .2s; }
.more-news-link:hover, .more-news-link:focus-visible {
  color: var(--color-primary, #009639);
  border-color: var(--color-primary, #009639);
}
footer a:focus-visible, .more-news-link:focus-visible {
  outline: 2px solid var(--color-primary, #009639);
  outline-offset: 4px;
}
