/* ==========================================================================
   PRSM DESIGN SYSTEM TOKENS & VARIABLES
   ========================================================================== */
:root {
  --primary-blue: #0056b3;
  --primary-blue-hover: #004494;
  --primary-dark: #003875;
  --primary-navy: #002752;
  --hero-bg-from: #0052a3;
  --hero-bg-to: #003875;
  --footer-bg: #081225;
  --footer-sub: #050b17;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --soft: #f8fafc;
  --accent: #0056b3;
  --accent-dark: #003875;
  --warm: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --badge-bg: #e8f1fa;
  --badge-text: #0056b3;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(0, 40, 85, 0.08);
  --shadow-lg: 0 12px 30px -4px rgba(0, 40, 85, 0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   GLOBAL RESETS & BASE TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-subtle);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
}

/* Base Icon helper */
.prsm-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   INSTITUTIONAL HEADER & BRAND NAVIGATION
   ========================================================================== */
.brand-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  max-height: 54px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 42px;
    max-height: 44px;
    max-width: 230px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 36px;
    max-height: 38px;
    max-width: 190px;
  }
}

.brand-seal-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-divider {
  width: 1.5px;
  height: 38px;
  background: var(--primary-dark);
  opacity: 0.22;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.18;
  margin-top: 3px;
  display: flex;
  flex-direction: column;
}

/* Navigation menu */
.main-nav {
  display: flex;
  align-items: center;
}

.main-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-menu li {
  position: relative;
}

.main-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 24px 2px 22px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1e293b;
  position: relative;
  transition: color 0.2s ease;
}

.main-menu li a:hover,
.main-menu li a.active {
  color: var(--primary-blue);
}

.main-menu li a.active::after,
.main-menu li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 3px 3px 0 0;
}

.dropdown-arrow {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  transition: transform 0.2s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
  transform: translateY(1px);
  color: var(--primary-blue);
}

/* Submenu dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
  display: block;
}

.sub-menu li {
  width: 100%;
}

.sub-menu li a {
  display: block;
  width: 100%;
  padding: 9px 18px;
  text-transform: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}

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

.sub-menu li a:hover,
.sub-menu li a.active {
  background: #f0f7ff;
  color: var(--primary-blue);
}

/* Connexion button in nav */
.menu-admin-item {
  margin-left: 6px;
}

.btn-connexion,
.nav-login-link,
.nav-admin-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 15px !important;
  border-radius: var(--radius-sm) !important;
  background: #f1f5f9 !important;
  color: var(--primary-dark) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.btn-connexion::after,
.nav-login-link::after,
.nav-admin-link::after {
  display: none !important;
}

.btn-connexion:hover,
.nav-login-link:hover,
.nav-admin-link:hover {
  background: #e2e8f0 !important;
  color: var(--primary-navy) !important;
}

.btn-connexion.active,
.nav-login-link.active,
.nav-admin-link.active {
  background: #e0edfb !important;
  color: var(--primary-blue) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Legacy banner hidden */
.brand-banner {
  display: none !important;
}

/* ==========================================================================
   SECTION 1 - HERO & BARRE DE RECHERCHE (WITH MOROCCAN ARABESQUE WATERMARK)
   SECTION 1 - HERO & BARRE DE RECHERCHE (MODERN ROYALE SAPPHIRE GRADIENT)
   ========================================================================== */
.home-hero {
  background-color: #071e3d;
  background-image: 
    radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(99, 102, 241, 0.16) 0%, transparent 48%),
    linear-gradient(135deg, #071e3d 0%, #0c2d52 35%, #144b7d 70%, #1a5b94 100%);
  color: #ffffff;
  padding: 64px 20px 68px;
  position: relative;
  overflow: hidden;
}

/* Left Sunburst Watermark */
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpath id='spike' d='M48,36 L50,12 L52,36 Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/defs%3E%3Cg%3E%3Cuse href='%23spike' transform='rotate(0 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(15 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(30 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(45 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(60 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(75 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(90 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(105 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(120 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(135 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(150 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(165 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(180 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(195 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(210 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(225 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(240 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(255 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(270 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(285 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(300 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(315 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(330 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(345 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='9' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='4' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* Right Sunburst Watermark */
.home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpath id='spike' d='M48,36 L50,12 L52,36 Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/defs%3E%3Cg%3E%3Cuse href='%23spike' transform='rotate(0 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(15 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(30 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(45 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(60 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(75 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(90 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(105 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(120 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(135 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(150 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(165 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(180 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(195 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(210 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(225 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(240 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(255 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(270 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(285 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(300 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(315 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(330 50 50)'/%3E%3Cuse href='%23spike' transform='rotate(345 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='9' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='4' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Hero Badge Pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.22;
  margin: 0 0 14px;
  text-shadow: 0 2px 8px rgba(0, 15, 40, 0.3);
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 780px;
}

.hero-search-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 3;
}

.hero-tab {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  outline: none;
}

.hero-tab:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-tab.active {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}

.hero-search-box {
  background: #ffffff;
  border-radius: 0 18px 18px 18px;
  padding: 16px;
  box-shadow: 0 20px 45px -8px rgba(3, 20, 48, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-search-inputs {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 5px 8px;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search-inputs:focus-within {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.14);
}

.hero-scope-label {
  display: flex;
  align-items: center;
}

.hero-scope-select {
  border: none;
  background: transparent;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  border-right: 1.5px solid var(--line);
  cursor: pointer;
  outline: none;
  border-radius: 0;
  max-width: 220px;
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
  background: transparent;
  width: 100%;
}

.hero-search-input::placeholder {
  color: #94a3b8;
}

.hero-search-btn {
  background: linear-gradient(135deg, #0056b3 0%, #003e82 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #0063cc 0%, #004b9e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

.hero-search-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 6px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-link:hover {
  color: var(--primary-blue);
}

.hero-sep {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* Quick search suggestion chips */
.hero-quick-topics {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.quick-topics-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.quick-chips-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.quick-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   SECTION 2 - EXPLORER PAR DOMAINE (3x2 COLORFUL GRID)
   ========================================================================== */
.home-section {
  padding: 72px 20px 84px;
}

.home-section-2 {
  background: #ffffff;
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 46px;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 0.96rem;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 680px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  line-height: 1.55;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.domain-card {
  display: flex;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -4px rgba(0, 56, 117, 0.1);
  box-shadow: 0 16px 36px -6px rgba(12, 40, 80, 0.1);
}

.domain-card:hover::before {
  opacity: 1;
}

.domain-emerald::before { background: linear-gradient(90deg, #10b981, #059669); }
.domain-sapphire::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.domain-cyan::before { background: linear-gradient(90deg, #06b6d4, #0e7490); }
.domain-amber::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.domain-indigo::before { background: linear-gradient(90deg, #6366f1, #4338ca); }
.domain-rose::before { background: linear-gradient(90deg, #f43f5e, #be123c); }

.domain-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: #f0f7ff;
  color: var(--primary-blue);
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.domain-card:hover .domain-icon-box {
  transform: scale(1.08);
}

.domain-emerald .domain-icon-box { background: #ecfdf5; color: #059669; }
.domain-sapphire .domain-icon-box { background: #eff6ff; color: #2563eb; }
.domain-cyan .domain-icon-box { background: #f0fdfa; color: #0d9488; }
.domain-amber .domain-icon-box { background: #fffbeb; color: #d97706; }
.domain-indigo .domain-icon-box { background: #eef2ff; color: #4f46e5; }
.domain-rose .domain-icon-box { background: #fff1f2; color: #e11d48; }

.domain-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.domain-title {
  font-size: 1.05rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
  line-height: 1.35;
}

.domain-desc {
  font-size: 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.48;
  line-height: 1.5;
  margin: 0 0 18px;
  flex: 1;
}

.domain-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.domain-link-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-blue);
  transition: gap 0.2s ease;
}

.domain-card:hover .domain-link-text {
  gap: 7px;
  color: var(--primary-blue-hover);
}

/* ==========================================================================
   SECTION 3 - STATISTIQUES (MODERN SOFT CARDS WITH COLOR ACCENTS)
   ========================================================================== */
.home-section-3 {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  padding: 76px 20px 92px;
  border-top: 1px solid #e2e8f0;
}

.stats-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  margin-bottom: 12px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: badgePulse 2s infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 18px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px -2px rgba(12, 38, 70, 0.04);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card-sapphire::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.stat-card-emerald::before { background: linear-gradient(90deg, #059669, #10b981); }
.stat-card-purple::before { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.stat-card-amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
.stat-card-cyan::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -4px rgba(12, 45, 85, 0.1);
  border-color: #cbd5e1;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08);
}

.stat-card-sapphire .stat-icon { background: #eff6ff; color: #2563eb; }
.stat-card-emerald .stat-icon { background: #ecfdf5; color: #059669; }
.stat-card-purple .stat-icon { background: #fff8eb; color: #d97706; }
.stat-card-purple .stat-icon.stat-icon-doi {
  background: #fff8eb;
  border: 1px solid #fed7aa;
}
.stat-doi-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}
.stat-card-amber .stat-icon { background: #fffbeb; color: #d97706; }
.stat-card-cyan .stat-icon { background: #ecfeff; color: #0891b2; }

.stat-number {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION 4 - INSTITUTIONAL FOOTER (DEEP NAVY #081225)
   ========================================================================== */
   .site-footer {
  background-color: #071e3d;
  background-image: radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.18) 0%, transparent 45%), radial-gradient(circle at 82% 72%, rgba(99, 102, 241, 0.16) 0%, transparent 48%), linear-gradient(135deg, #071e3d 0%, #0c2d52 35%, #144b7d 70%, #1a5b94 100%);
  color: #cbd5e1;
  padding: 64px 20px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-top,
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 50px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-logo-img {
  height: 44px;
  max-height: 46px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-acronym {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.15;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin: 0 0 18px;
}

.footer-contact-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-contact-list li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list li a:hover {
  color: #ffffff;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: #ffffff;
}

/* Partner badges */
.footer-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.partner-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  min-height: 46px;
  transition: background 0.2s;
}

.partner-badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.partner-badge-wide {
  grid-column: span 2;
}

.partner-abbr {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-copy {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

.footer-bottom-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Responsive Rules for Institutional Layout */
@media (max-width: 1200px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .main-menu.open {
    display: flex;
  }
  .main-menu li {
    width: 100%;
  }
  .main-menu li a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-subtle);
  }
  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 16px;
    display: none;
  }
  .menu-item-has-children.dropdown-open .sub-menu {
    display: block;
  }
  .domains-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-search-inputs {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-scope-select {
    border-right: none;
    border-bottom: 1.5px solid var(--line);
    width: 100%;
    max-width: 100%;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PAGE LAYOUT & GENERAL CONTAINERS
   ========================================================================== */
.status {
  grid-area: status;
  justify-self: end;
  min-width: 96px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  background: var(--surface-subtle);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  grid-template-areas:
    "search search"
    "facets results";
  gap: 22px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.search-panel,
.facets,
.results-zone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-panel {
  grid-area: search;
  padding: 12px 18px;
}

.search-panel-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.unified-search h1,
.advanced-grid label,
.advanced-grid .journal-filter-field,
.search-filter-row .journal-filter-field,
.search-filter-row .search-sort-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.unified-search h1 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.simple-content {
  margin-top: 2px;
}

.field-label {
  display: block;
}

.search-line {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto auto;
  gap: 10px;
}

.main-field-box {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid #8e99a7;
  border-radius: 6px;
  background: #fff;
}

.main-field-box span {
  color: #1f6f9f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.main-field-box select {
  width: 100%;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.main-field-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 100, 96, 0.12);
}

.help-button {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #1f6f9f;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.help-button .help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}

.help-button:hover {
  color: #0b5f8a;
  background: transparent;
  text-decoration: underline;
}

.search-shortcuts {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.search-shortcuts .advanced {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.search-shortcuts .advanced-summary-legacy {
  width: fit-content;
  margin-left: auto;
  margin-right: 176px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}

.search-shortcuts .advanced-summary-legacy::-webkit-details-marker {
  display: none;
}

.search-shortcuts .advanced-summary-legacy::before {
  content: "▶";
  font-size: 11px;
  line-height: 1;
}

.search-shortcuts .advanced-summary-legacy-open::before {
  content: "▼";
}

.search-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.search-filter-label {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.search-filter-row .journal-filter-field,
.search-filter-row .search-sort-field,
.sort-direction-field {
  font-weight: 400;
}

.search-sort-field {
  width: min(100%, 300px);
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
}

.sort-direction-field {
  display: grid;
  width: min(100%, 230px);
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.search-sort-field span,
.sort-direction-field span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 29, 52, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.help-modal {
  width: min(720px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  border: 1px solid #bfd0df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(8, 29, 52, 0.28);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.2;
}

.modal-close {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #c4d2df;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-body {
  padding: 18px 22px 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.modal-body p {
  margin: 0 0 14px;
}

.modal-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.modal-body strong {
  color: var(--accent-dark);
  font-weight: 800;
}

.modal-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef4f7;
  color: #0d2d4f;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  border: 1px solid #c9d2dc;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  height: auto;
  vertical-align: middle;
  cursor: pointer;
}

button {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #9a9a9a37;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.advanced {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
}

.advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.scientific-query-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  border: 1px solid #c9d2dc;
  background: #f7fafc;
}

.scientific-query-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}

.scientific-query-field {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 !important;
}

.scientific-field-label {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid #c9d2dc;
  border-right: 0;
  padding: 9px 12px;
  color: #40566f;
  background: #eef4f7;
  font-weight: 700;
}

.scientific-query-field input {
  min-height: 46px;
  border-radius: 0 6px 6px 0;
}

.scientific-query-row .field-operator-control {
  align-self: stretch;
}

.scientific-query-row .field-operator-control select {
  height: 100%;
  min-height: 46px;
  color: var(--accent-dark);
  font-weight: 700;
}

.dynamic-query-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

.dynamic-query-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 280px) minmax(240px, 1fr) 30px;
  gap: 7px;
  align-items: stretch;
}

.dynamic-query-row.operator-hidden .dynamic-query-operator {
  visibility: hidden;
  pointer-events: none;
}

.dynamic-query-box {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #8e99a7;
  border-radius: 2px;
  background: #fff;
}

.dynamic-query-box-label {
  color: #1f6f9f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.dynamic-query-row select,
.dynamic-query-row input {
  width: 100%;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
}

.dynamic-query-row input::placeholder {
  color: #667789;
}

.dynamic-query-row input:focus,
.dynamic-query-row select:focus {
  box-shadow: none;
  outline: none;
}

.dynamic-query-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 100, 96, 0.12);
}

.dynamic-query-operator {
  align-self: start;
  min-height: 28px;
  margin-top: 2px;
  border: 0;
  border-bottom: 2px solid #1f6f9f;
  border-radius: 0;
  padding: 0 22px 4px 0;
  color: var(--accent-dark);
  background: transparent;
  font-weight: 700;
}

.remove-query-row {
  min-height: 30px;
  align-self: center;
  border: 0;
  border-radius: 4px;
  color: #1f6f9f;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.remove-query-row:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.add-query-row {
  grid-column: 1;
  grid-row: auto;
  justify-self: start;
  border: 0;
  min-height: auto;
  padding: 0;
  color: #0b67b2;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.add-query-row:hover {
  color: #084d87;
  background: transparent;
  text-decoration: underline;
}

.add-query-row:disabled {
  color: #6d7b89;
  cursor: not-allowed;
  text-decoration: none;
}

.add-query-row:disabled:hover {
  color: #6d7b89;
  text-decoration: none;
}

.add-query-row:focus,
.add-query-row:active {
  color: #084d87;
  background: transparent;
  outline: none;
}

.add-query-row:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(11, 103, 178, 0.35);
  outline-offset: 3px;
}

.add-query-row::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  color: #006bd6;
  font-size: 20px;
  font-weight: 400;
  line-height: 0;
  vertical-align: -1px;
}

.criteria-limit-message {
  grid-column: 1 / -1;
  color: #53657c;
  font-size: 13px;
  line-height: 1.4;
}

.criteria-limit-message[hidden] {
  display: none;
}

.advanced-filter-label {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  color: #53657c;
  font-weight: 700;
  white-space: nowrap;
}

.advanced-journal-field {
  grid-column: 3;
  grid-row: 3;
}

.advanced-sort-field {
  grid-column: 5;
  grid-row: 3;
}

.journal-filter-field {
  position: relative;
}

.picker-toggle {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9d2dc;
  text-align: left;
  font-weight: 400;
}

.picker-toggle:hover {
  color: var(--accent-dark);
  background: #eef7f6;
}

.journal-picker {
  position: absolute;
  z-index: 10;
  top: 72px;
  left: 0;
  width: min(360px, calc(100vw - 48px));
  min-width: min(280px, calc(100vw - 48px));
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 32, 42, .16);
}

.picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.facet-search {
  flex: 1 0 100%;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.facet-search:focus {
  outline: 2px solid rgba(15, 118, 110, .18);
  border-color: var(--accent);
}

.journal-picker .picker-actions,
.facet-journal-tree .picker-actions,
.facet-year-menu .picker-actions,
.facet-author-menu .picker-actions,
.facet-domain-menu .picker-actions,
.facet-sub-domain-menu .picker-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.picker-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.journal-checkboxes {
  display: grid;
  gap: 6px;
}

.journal-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
}

.journal-check span {
  font-weight: 400;
}

.journal-check[hidden] {
  display: none;
}

.journal-check input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.journal-check span {
  overflow-wrap: anywhere;
}

.journal-check strong {
  color: var(--warm);
}

.journal-group-check {
  background: #f8fbfc;
  font-weight: 400;
}

.facets .journal-group-check {
  font-weight: 400;
}

.journal-volume-check {
  margin-left: 18px;
  border-style: dashed;
  background: #fff;
  font-size: 12px;
}

.journal-issue-check {
  margin-left: 36px;
  border-style: dotted;
  background: #fff;
  font-size: 12px;
}

.selection-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.field-operator-control {
  align-self: end;
  justify-self: center;
  width: 74px;
  min-width: 74px;
}

.field-operator-control select {
  min-width: 74px;
  padding: 8px 20px 8px 10px;
  text-align: center;
}

.advanced-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.advanced-actions button {
  min-width: 110px;
}

#advanced-clear {
  color: var(--accent-dark);
  background: #eef7f6;
  border: 1px solid #b8d8d4;
}

#advanced-clear:hover {
  background: #dff0ee;
}

.facets {
  grid-area: facets;
  align-self: start;
  padding: 16px;
}

.facets section[hidden] {
  display: none !important;
}

.facets section + section {
  margin-top: 22px;
}

h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.facet-list {
  display: grid;
  gap: 7px;
}

.facet-select-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.facet-select {
  width: 100%;
  min-height: 42px;
}

.facet-journal-filter,
.facet-year-filter,
.facet-author-filter,
.facet-domain-filter,
.facet-sub-domain-filter {
  position: relative;
}

.facet-picker-toggle {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.facet-journal-tree {
  display: grid;
  gap: 6px;
  max-height: 360px;
  margin-top: 8px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

#journals-facet-options {
  display: grid;
  gap: 6px;
}

.facet-journal-tree[hidden] {
  display: none;
}

.facet-year-menu,
.facet-author-menu,
.facet-domain-menu,
.facet-sub-domain-menu {
  display: grid;
  gap: 6px;
  max-height: 300px;
  margin-top: 8px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.facet-year-menu[hidden],
.facet-author-menu[hidden],
.facet-domain-menu[hidden],
.facet-sub-domain-menu[hidden] {
  display: none;
}

#years-facet-options,
#authors-facet-options,
#domains-facet-options,
#sub-domains-facet-options {
  display: grid;
  gap: 6px;
}

.facet-journal-tree .journal-volume-check {
  margin-left: 12px;
}

.facet-journal-tree .journal-issue-check {
  margin-left: 24px;
}

.facet-button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  text-align: left;
}

.facet-button:hover {
  background: #eef7f6;
  color: var(--accent-dark);
}

.count {
  color: var(--warm);
  font-weight: 700;
}

.results-zone {
  grid-area: results;
  min-width: 0;
}

.results-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.results-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: max-content;
  white-space: nowrap;
}

.results-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.page-size-control select {
  width: 76px;
  min-height: 34px;
  padding: 5px 8px;
}

.results-controls .search-sort-field,
.results-controls .sort-direction-field {
  width: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.results-controls .search-sort-field select {
  width: 180px;
  min-height: 34px;
  padding: 5px 8px;
}

.results-controls .sort-direction-field select {
  width: 122px;
  min-height: 34px;
  padding: 5px 8px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.pager button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 22px;
}

.results {
  display: grid;
}

.result {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.result:last-child {
  border-bottom: 0;
}

/* Prominent Search Mode Switcher (Revues vs Articles) */
.mode-tabs-container {
  margin-bottom: 18px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  min-height: 56px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #475569;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.mode-tab-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mode-tab-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-tab-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.mode-tab-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.mode-tab:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: #cbd5e1;
  color: #003875;
}

.mode-tab:hover .mode-tab-icon-box {
  background: #dbeafe;
  color: #003875;
}

.mode-tab.active {
  background: #ffffff;
  border-color: #003875;
  color: #003875;
  box-shadow: 0 4px 14px rgba(0, 56, 117, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.mode-tab.active .mode-tab-icon-box {
  background: #003875;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 56, 117, 0.3);
}

.mode-tab.active .mode-tab-title {
  color: #003875;
}

.mode-tab.active .mode-tab-subtitle {
  color: #0284c7;
  font-weight: 600;
}

@media (max-width: 640px) {
  .mode-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mode-tab {
    padding: 10px 14px;
    min-height: 50px;
  }
}

.revues-search {
  margin-top: 2px;
}

.revues-search-line {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.journal-card {
  cursor: pointer;
}

.journal-card-meta {
  margin: 0 0 10px;
}

.journal-card-count {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(15, 118, 110, .1);
  font-size: 13px;
  font-weight: 700;
}

.fiche-main {
  max-width: 1200px;
  width: 100%;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.fiche-back-row {
  margin: 0 0 14px;
}

.fiche-back {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.fiche-back:hover {
  text-decoration: underline;
}

.fiche-hero,
.fiche-section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fiche-hero h1 {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1.25;
}

.fiche-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 24px;
  margin: 0 0 14px;
}

.fiche-meta-field dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fiche-meta-field dd {
  margin: 2px 0 0;
  font-size: 15px;
}

.fiche-count-row {
  margin: 0 0 14px;
}

.fiche-site-link {
  display: inline-block;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.fiche-site-link:hover {
  background: var(--accent-dark);
}

/* Fiche Description Section ("À propos de cette revue") */
.fiche-desc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fiche-desc-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fiche-desc-badge {
  display: inline-block;
  align-self: flex-start;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
}

.fiche-desc-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #003875;
}

.btn-fiche-articles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1.5px solid #003875;
  color: #003875;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-fiche-articles:hover {
  background: #003875;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 56, 117, 0.2);
}

.fiche-description-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #003875;
  border-radius: 8px;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.fiche-description-box p {
  margin: 0 0 16px;
}

.fiche-description-box p:last-child {
  margin-bottom: 0;
}

.fiche-desc-empty {
  color: #64748b;
  font-style: italic;
  padding: 12px 0;
}

.fiche-section h2 {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 17px;
}

.fiche-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.fiche-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fiche-pager button,
.fiche-page-number {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.fiche-pager button:hover:not(:disabled),
.fiche-page-number:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.fiche-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.fiche-page-number.active,
.fiche-page-number:disabled.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  opacity: 1;
}

.fiche-page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

.fiche-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.journal {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.result h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.abstract {
  margin: 0 0 10px;
  color: #344252;
}

.download {
  color: var(--accent-dark);
  font-weight: 700;
  word-break: break-word;
}

.search-hit {
  border-radius: 3px;
  padding: 0 2px;
  color: #111827;
  background: #fde68a;
  box-shadow: 0 0 0 1px rgba(180, 83, 9, .18);
}

.empty {
  padding: 28px 16px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .brand-banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "title"
      "slogan"
      "status";
    min-height: auto;
    padding: 18px;
    text-align: center;
  }

  .brand-title {
    gap: 12px;
  }

  .brand-title strong {
    font-size: 36px;
  }

  .brand-title > span {
    height: 54px;
  }

  .brand-title p {
    font-size: 25px;
  }

  .brand-slogan {
    font-size: 13px;
  }

  .status {
    justify-self: center;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "results"
      "facets";
    padding: 14px;
  }

  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-query-row {
    grid-template-columns: 1fr;
  }

  .dynamic-query-row.operator-hidden .dynamic-query-operator {
    display: none;
  }

  .add-query-row {
    grid-column: 1;
    grid-row: auto;
  }

  .scientific-query-field {
    grid-template-columns: 1fr;
  }

  .scientific-field-label {
    border-right: 1px solid #c9d2dc;
    border-bottom: 0;
  }

  .scientific-query-field input {
    border-radius: 0 0 6px 6px;
  }

  .search-line {
    grid-template-columns: 1fr;
  }

  .search-filter-row {
    justify-content: stretch;
  }

  .search-sort-field {
    width: 100%;
  }

  .search-panel-top {
    justify-content: flex-start;
  }

  .results-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .results-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .results-controls .search-sort-field select,
  .results-controls .sort-direction-field select {
    width: min(100%, 220px);
  }
}

/* ==========================================================================
   PAGE CONTAINERS & INDEX VIEWS (Auteurs, Revues, Etablissements, CMS, Admin)
   ========================================================================== */
.page-container {
  max-width: 1360px;
  width: 100%;
  margin: 32px auto 60px;
  padding: 36px 40px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.content-page-container {
  max-width: 1080px;
  width: 100%;
  margin: 32px auto 60px;
}

@media (max-width: 768px) {
  .page-container,
  .content-page-container {
    padding: 20px 16px;
    margin: 16px auto 32px;
  }
}


.page-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #0b4578;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-title {
  font-size: 1.75rem;
  color: #0b4578;
  margin: 0 0 8px;
  font-weight: 800;
}

.page-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Alphabetical Navigator */
.alpha-nav {
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.alpha-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.alpha-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alpha-btn:hover {
  background: #e2e8f0;
  color: #0b4578;
}

.alpha-btn.active {
  background: #0b4578;
  color: #ffffff;
  border-color: #0b4578;
}

.alpha-mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.alpha-mode-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alpha-mode-btn:hover {
  background: #f8fafc;
  color: #0b4578;
  border-color: #94a3b8;
}

.alpha-mode-btn.active {
  background: #0b4578;
  color: #ffffff;
  border-color: #0b4578;
}

.alpha-bar[dir="rtl"] {
  direction: rtl;
}

.alpha-bar[dir="rtl"] .alpha-btn {
  font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
}

.search-alpha-nav {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

/* Toolbar & Index Search */
.index-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.index-search-box {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 540px;
}

.index-search-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.index-search-box input:focus {
  border-color: #0b4578;
}

.index-count {
  font-size: 14px;
  color: #64748b;
}

.revues-toolbar .revues-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.revues-toolbar input,
.revues-toolbar select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

/* Author Cards & Grid */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.author-card:hover {
  background: #ffffff;
  border-color: #0b4578;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-avatar {
  width: 38px;
  height: 38px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-count {
  font-size: 12px;
  color: #64748b;
}

.author-arrow {
  color: #94a3b8;
  font-size: 18px;
  font-weight: 700;
}

/* Journal Entry Cards */
.revues-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.journal-entry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.journal-entry-card:hover {
  border-color: #0b4578;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.journal-entry-main {
  flex: 1;
}

.journal-entry-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-issn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-domain {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge-articles {
  background: #ecfdf5;
  color: #047857;
}

.journal-entry-title {
  font-size: 1.15rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.journal-entry-title a {
  color: #0b4578;
  text-decoration: none;
}

.journal-entry-title a:hover {
  text-decoration: underline;
}

.journal-entry-institution {
  font-size: 13px;
  color: #475569;
}

.journal-entry-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-external, .btn-sm {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: #0b4578;
  color: #ffffff;
}

.btn-primary:hover {
  background: #083359;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-external {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-external:hover {
  background: #dcfce7;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* Hierarchical Institution Cards & Accordions */
.institutions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.institution-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.institution-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(11, 69, 120, 0.07);
}

.inst-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.inst-header:hover {
  background: #f1f5f9;
}

.institution-card.expanded .inst-header {
  background: #edf2f7;
  border-bottom: 1px solid #e2e8f0;
}

.inst-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inst-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inst-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 8px;
  flex-shrink: 0;
}

.inst-name {
  font-size: 1.12rem;
  color: #0b4578;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.inst-etabs-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: #006460;
  background: #e6f6f4;
  padding: 1px 7px;
  border-radius: 12px;
  letter-spacing: 0.01em;
}

.inst-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.inst-collapse-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.25s ease;
}

.institution-card.expanded .inst-collapse-chevron {
  transform: rotate(180deg);
}

.inst-body {
  display: none;
  padding: 16px 20px;
  background: #ffffff;
}

.institution-card.expanded .inst-body {
  display: block;
}

.inst-etabs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inst-etab-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.inst-etab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  background: #f1f5f9;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}

.inst-etab-header:hover {
  background: #e2e8f0;
}

.inst-etab-group.collapsed .inst-etab-header {
  border-bottom-color: transparent;
}

.inst-etab-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inst-etab-icon {
  display: flex;
  align-items: center;
  color: #0b4578;
}

.inst-etab-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.inst-etab-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-etab-count {
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 10px;
}

.inst-etab-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.2s ease;
}

.inst-etab-group.collapsed .inst-etab-chevron {
  transform: rotate(-90deg);
}

.inst-etab-group.collapsed .inst-journals-list {
  display: none;
}

.inst-journals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.inst-journals-list.standalone {
  gap: 8px;
}

.inst-journal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.inst-journal-item:last-child {
  border-bottom: none;
}

.inst-journal-item:hover {
  background: #f8fafc;
}

.inst-journal-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.inst-journal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.4;
}

.inst-journal-title:hover {
  color: #0b4578;
  text-decoration: underline;
}

.inst-journal-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inst-journal-meta {
  font-size: 11.5px;
  color: #64748b;
}

.inst-journal-issn {
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: inherit;
}

.inst-journal-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Generic CMS Pages */
.content-page-container .content-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 100%;
}

.content-body h2 {
  color: #0b4578;
  margin-top: 24px;
}

.content-body ul {
  padding-left: 24px;
}

.faq-list dt {
  font-weight: 700;
  color: #0b4578;
  margin-top: 16px;
  font-size: 16px;
}

.faq-list dd {
  margin: 6px 0 12px 0;
  color: #475569;
}

.contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.pager-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

/* Administration Panel */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
}

.admin-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.admin-tab.active {
  color: #0b4578;
  border-bottom-color: #0b4578;
}

.admin-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: 13px;
}

.form-control, .form-control-sm {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-control-sm {
  padding: 6px 8px;
  font-size: 13px;
}

.admin-pages-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

.admin-pages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.admin-page-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}

.admin-page-item:hover {
  background: #f8fafc;
}

.admin-page-item.active {
  background: #0b4578;
  color: #ffffff;
}

/* ==========================================================================
   Modern CMS Home Sections Management Styles
   ========================================================================== */
.admin-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.admin-section-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.admin-section-card.is-disabled {
  opacity: 0.72;
  background: #f8fafc;
}

.sec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.sec-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #003875;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
}

.sec-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sec-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-system {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-custom {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sec-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* iOS-style toggle switch */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: all 0.25s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.sec-order-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.sec-order-input {
  width: 52px !important;
  min-height: 28px !important;
  padding: 2px 6px !important;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.btn-order-move {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-order-move:hover:not(:disabled) {
  background: #003875;
  color: #ffffff;
  border-color: #003875;
}

.btn-order-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-delete-sec {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  min-height: auto !important;
}

.btn-delete-sec:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.sec-card-body {
  padding: 20px;
}

.sec-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .sec-meta-grid {
    grid-template-columns: 1fr;
  }
}

.sec-system-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-left: 4px solid #0056b3;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #334155;
  margin-bottom: 16px;
}

.sec-system-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #0056b3;
}

/* Code editor with tabs */
.sec-code-container {
  margin-top: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.code-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.code-tabs-nav {
  display: flex;
  gap: 2px;
}

.code-tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  min-height: auto !important;
}

.code-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.code-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.code-editor-pane {
  display: none;
  padding: 12px;
  background: #0f172a;
}

.code-editor-pane.active {
  display: block;
}

.code-editor-textarea {
  width: 100% !important;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
  min-height: 140px;
  box-sizing: border-box;
}

.code-editor-textarea:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.sec-add-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px dashed #0056b3;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.sec-add-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #003875;
  margin: 0 0 4px;
}

.sec-add-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.btn-add-section {
  background: #0056b3;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
  min-height: auto !important;
}

.btn-add-section:hover {
  background: #003875;
}

/* Custom section styles on live home page */
.custom-home-section {
  padding: 60px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.custom-home-section:nth-child(even) {
  background: #f8fafc;
}

.btn-save-all {
  background: #15803d;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-save-all:hover {
  background: #166534;
}

.admin-global-actions {
  margin-top: 32px;
  text-align: right;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.editor-textarea {
  font-family: inherit;
  resize: vertical;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
}

.empty-msg, .error-msg, .loading-spinner {
  padding: 32px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.error-msg {
  color: #dc2626;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .hero-search-inputs {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-scope-select {
    max-width: 100%;
  }
  .journal-entry-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .journal-entry-actions {
    width: 100%;
  }
  .inst-journal-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-pages-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dropdown Submenus for Navigation
   ========================================================================== */
.main-menu .menu-item-has-children {
  position: relative;
}

.main-menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 1000;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sub-menu a:hover,
.sub-menu a.active {
  background: #f1f5f9;
  color: #0b4578;
}

/* Desktop Hover */
@media (min-width: 769px) {
  .menu-item-has-children:hover .sub-menu,
  .menu-item-has-children:focus-within .sub-menu {
    display: block;
  }
  .menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    padding-left: 16px;
  }
  .menu-item-has-children.dropdown-open .sub-menu {
    display: block;
  }
  .menu-item-has-children.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.menu-admin-item {
  margin-left: auto;
}

.nav-admin-link {
  color: #15803d !important;
  font-weight: 700 !important;
}

.nav-login-link {
  color: #475569 !important;
  font-size: 13px;
}

/* ==========================================================================
   Dual Search Tabs on Homepage
   ========================================================================== */
.hero-search-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-search-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 0;
}

.hero-tab {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-tab:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-tab.active {
  background: #ffffff;
  color: #0b4578;
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */
.login-body {
  background: #f8fafc;
  min-height: 100vh;
}

.login-container {
  max-width: 460px;
  width: 100%;
  margin: 60px auto 80px;
  padding: 0 20px;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.login-head {
  text-align: center;
  margin-bottom: 24px;
}

.login-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.login-title {
  font-size: 1.45rem;
  color: #0b4578;
  margin: 0 0 6px;
  font-weight: 800;
}

.login-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.login-footer-hint {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 12px;
  border-radius: 6px;
}

.login-footer-hint p {
  margin: 4px 0;
}

.login-footer-hint code {
  background: #e2e8f0;
  padding: 2px 5px;
  border-radius: 4px;
  color: #0f172a;
}

/* ==========================================================================
   Admin Topbar & User Management Styles
   ========================================================================== */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 12px max(24px, calc((100% - 1360px) / 2 + 24px));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-icon {
  font-size: 18px;
}

.admin-user-name {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.admin-topbar-actions {
  display: flex;
  gap: 8px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 1.25rem;
  color: #0b4578;
  margin: 0;
}

.panel-note {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}

.admin-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.new-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.form-actions-inline {
  display: flex;
  gap: 8px;
}

.admin-sub-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sub-menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-sm {
  max-width: 440px;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin: 60px auto;
}

.modal-md {
  max-width: 650px;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  margin: 40px auto;
}

