/* ===== DESP Header & Footer (per ESA visual guidelines) ===== */
.desp-header,
.desp-footer {
  background-color: #0D1527; /* ESA-compliant dark blue */
  color: #fff;
}

.desp-header {
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.desp-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
}

body {
  padding-bottom: 48px; /* leave space for footer */
}

/* --- Palette & base --- */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e8ee;
  --brand: #0ea5e9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(2,6,23,.06), 0 10px 30px rgba(2,6,23,.08);

  --header-h: 64px;
  --footer-h: var(--footer-height);

  /* Accessibility text-size scaling */
  --app-font-scale: 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --panel: #0f172a;
    --text: #e2e8f0;
    --muted: #9aa6b2;
    --border: #1f2937;
    --brand: #38bdf8;
  }
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: calc(16px * var(--app-font-scale));
}

/* --- Topbar --- */
.topbar {
  height: 56px;
  background: rgba(255,255,255,.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(8px);
}

.brand {
  font-weight: 700;
  letter-spacing: .2px;
}

.brand-icon {
  font-size: 1.25rem;
  color: var(--brand);
}

.soft {
  border-radius: 999px;
}

/* --- Three-pane grid layout --- */
.layout {
  display: grid;
  grid-template-columns:
    minmax(260px, 380px)
    1fr
    minmax(260px, 360px);
  gap: 16px;
  padding: 16px;

  min-height: calc(100vh - var(--header-h));
  box-sizing: border-box;

  padding-bottom: calc(var(--footer-h) + 16px);
}

.btn-group {
  display: flex;
  flex-wrap: nowrap;
}

.btn-group .btn {
  white-space: nowrap;
}

/* =========================
   Previous orders cards
========================= */

#tab-previous-orders .order-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(35, 55, 35, 0.18);
  border-left: 4px solid rgba(15, 118, 110, 0.55);
  border-radius: 12px;
  padding: 10px 10px 9px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

#tab-previous-orders .order-card + .order-card {
  margin-top: 8px;
}

/* Status + actions on one compact row */
.order-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: visible;
}

/* Backward compatibility if old wrapper remains somewhere */
.order-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow: visible;
}

/* Status pills */
.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;

  padding: 4px 8px;
  border-radius: 999px;

  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 30, 20, 0.10);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.order-status-pill i {
  font-size: 0.74rem;
}

.order-status-pill--completed {
  color: #087a4f;
  border-color: rgba(8, 122, 79, 0.20);
}

.order-status-pill--running {
  color: #9a6700;
  border-color: rgba(154, 103, 0, 0.22);
}

.order-status-pill--archived {
  color: #475569;
  border-color: rgba(71, 85, 105, 0.20);
}

/* Compact Map + Export buttons */
.order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  margin-top: 0;
  overflow: visible;
}

.order-action-btn {
  min-height: 28px;
  width: auto;
  min-width: 68px;

  padding: 5px 9px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.order-action-btn i {
  font-size: 0.78rem;
  line-height: 1;
}

.order-action-btn span {
  line-height: 1;
}

/* Map button */
.order-action-btn--map {
  background: rgba(255, 255, 255, 0.82);
  color: #17456b;
  border: 1px solid rgba(23, 69, 107, 0.18);
}

.order-action-btn--map:hover {
  background: #ffffff;
  color: #0f3553;
  border-color: rgba(23, 69, 107, 0.28);
  box-shadow: 0 4px 12px rgba(15, 53, 83, 0.10);
  transform: translateY(-1px);
}

/* Export button */
.order-action-btn--export {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.order-action-btn--export:hover,
.order-action-btn--export:focus {
  background: rgba(15, 118, 110, 0.18);
  color: #0b5f59;
  border-color: rgba(15, 118, 110, 0.30);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.10);
  transform: translateY(-1px);
}

/* Disabled export */
.order-action-btn--export-disabled {
  background: rgba(255, 255, 255, 0.46);
  color: rgba(65, 80, 65, 0.50);
  border: 1px solid rgba(65, 80, 65, 0.12);
  cursor: not-allowed;
}

.order-action-btn--export-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Custom export menu */
.order-export-menu {
  position: relative;
  width: auto;
  overflow: visible;
}

.export-chevron {
  font-size: 0.62rem !important;
  margin-left: 1px;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.order-export-menu.is-open .export-chevron {
  transform: rotate(180deg);
}

.export-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;

  min-width: 135px;
  z-index: 99999;
  padding: 5px;

  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.order-export-menu.is-open .export-options {
  display: block;
}

.export-options a {
  display: flex;
  align-items: center;
  gap: 7px;

  padding: 7px 9px;
  border-radius: 9px;

  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.export-options a:hover {
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

/* Small-screen tuning */
@media (max-width: 576px) {
  .order-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .order-action-btn {
    min-height: 30px;
    font-size: 0.72rem;
    padding: 6px 9px;
  }

  .order-status-pill {
    font-size: 0.72rem;
  }
}

/* =========================
   Panels
========================= */

.panel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 0;
  overflow: auto;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

/* --- Map panel --- */
.panel--map {
  padding: 12px;
  position: relative;
}

#map {
  flex: 1 1 auto;
  height: 100%;
  min-height: 420px;
  max-height: calc(100vh - var(--header-h) - var(--footer-h) - 32px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  background: var(--panel);
}

/* Buttons & forms */
.form-label {
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 999px;
}

.btn-primary:hover {
  filter: brightness(.96);
}

.btn-outline-secondary {
  border-radius: 999px;
}

/* Legend */
.legend {
  margin: 0;
  padding: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0;
  color: var(--muted);
}

.legend-dot {
  font-size: .7rem;
  color: var(--brand);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Leaflet niceties */
.leaflet-control {
  border-radius: 10px !important;
}

.ol-control {
  border-radius: 10px !important;
}

/* DESP topbar override */
.topbar.desp-header {
  background: #0D1527 !important;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: none;
}

.topbar.desp-header .brand,
.topbar.desp-header a {
  color: #fff !important;
}

.topbar.desp-header .btn.btn-light {
  background: #fff;
  color: #0D1527;
  border: 0;
}

/* Keep footer fixed */
.desp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
}

#predictionPanel {
  position: absolute;
  top: 15px;
  right: 15px;

  z-index: 9999;
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 260px;

  border: 1px solid #ddd;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.hero-section {
  background-image: url("/static/img/conops_banner.png");
  background-size: cover;
  background-position: center;
  min-height: 420px;
  border-radius: 0 0 8px 8px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.45));
  border-radius: 0 0 8px 8px;
}

/* DESP header/user dropdown layering */
#desp-header-container {
  z-index: 5000 !important;
}

#user-frame {
  position: absolute !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
}

#info-frame {
  z-index: 10000 !important;
}

#desp-header-inner-container,
#right-container,
#user-container {
  overflow: visible !important;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

#main-container {
  margin-top: var(--header-h);
  padding-bottom: 120px;
}

.panel--map,
#map {
  position: relative;
  z-index: 1;
}

/* Pagination */
#tab-previous-orders .pagination {
  flex-wrap: wrap;
  gap: 4px;
}

#tab-previous-orders .page-link {
  border-radius: 10px;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

#tab-previous-orders .page-item.active .page-link {
  font-weight: 700;
}

/* Keep export menu visible */
#tab-previous-orders,
#tab-previous-orders .order-card,
.order-footer-row,
.order-actions,
.order-export-menu {
  overflow: visible;
}

/* Left sidebar color */
#leftSidebar {
  background:
    linear-gradient(
      135deg,
      #cfe2bd 0%,
      #bdd7ad 40%,
      #a9c99d 70%,
      #95bd8e 100%
    );
}

/* Right sidebar color */
#rightSidebar {
  background:
    linear-gradient(
      135deg,
      #d7e4cf 0%,
      #c9dbc0 38%,
      #b8d0ad 68%,
      #9fbe97 100%
    );
}

/* =========================
   Accessibility tools bar
========================= */

.dashboard-accessibility-row {
  display: grid;
  grid-template-columns:
    minmax(260px, 380px)
    1fr
    minmax(260px, 360px);
  gap: 16px;

  padding: 10px 16px 0;
  margin-bottom: -4px;
  box-sizing: border-box;
}

.dashboard-accessibility-row::before,
.dashboard-accessibility-row::after {
  content: "";
}

.accessibility-tools-bar {
  justify-self: center;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 6px 8px 6px 10px;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;

  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(8px);
}

.accessibility-tools-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.accessibility-tools-label i {
  font-size: 0.95rem;
}

.accessibility-tools-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accessibility-tool-btn {
  min-width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;

  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.accessibility-tool-btn i {
  font-size: 0.9rem;
}

.accessibility-tool-btn:hover,
.accessibility-tool-btn:focus-visible {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.30);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  outline: 3px solid rgba(11, 95, 255, 0.28);
  outline-offset: 2px;
}

.accessibility-tool-btn[aria-pressed="true"] {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

@media (max-width: 768px) {
  .dashboard-accessibility-row {
    display: flex;
    justify-content: center;
    padding-inline: 12px;
  }

  .accessibility-tools-label {
    font-size: 0.72rem;
  }

  .accessibility-tools-bar {
    gap: 6px;
  }
}

/* =========================
   Accessibility: high contrast mode
========================= */

body.high-contrast-mode {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #000000;
  --muted: #111827;
  --border: #000000;
  --brand: #0047ff;

  background: #ffffff !important;
  color: #000000 !important;
}

body.high-contrast-mode #leftSidebar,
body.high-contrast-mode #rightSidebar {
  background: #ffffff !important;
  border: 2px solid #000000;
}

body.high-contrast-mode .panel,
body.high-contrast-mode .order-card,
body.high-contrast-mode #predictionPanel {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

body.high-contrast-mode .text-muted,
body.high-contrast-mode .form-label,
body.high-contrast-mode .small {
  color: #000000 !important;
}

body.high-contrast-mode input,
body.high-contrast-mode select,
body.high-contrast-mode textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .btn,
body.high-contrast-mode .order-action-btn,
body.high-contrast-mode .accessibility-tools-bar,
body.high-contrast-mode .accessibility-tool-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

body.high-contrast-mode .btn-primary,
body.high-contrast-mode .order-action-btn--map,
body.high-contrast-mode .accessibility-tool-btn[aria-pressed="true"] {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .order-status-pill {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .export-options {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

body.high-contrast-mode .export-options a {
  color: #000000 !important;
}

body.high-contrast-mode .export-options a:hover,
body.high-contrast-mode .export-options a:focus-visible {
  background: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast-mode .page-link {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .page-item.active .page-link {
  background: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast-mode button:focus-visible,
body.high-contrast-mode a:focus-visible,
body.high-contrast-mode select:focus-visible,
body.high-contrast-mode input:focus-visible,
body.high-contrast-mode textarea:focus-visible,
body.high-contrast-mode .order-action-btn:focus-visible,
body.high-contrast-mode .page-link:focus-visible,
body.high-contrast-mode .accessibility-tool-btn:focus-visible {
  outline: 4px solid #ffbf00 !important;
  outline-offset: 3px !important;
}

/* =========================
   WCAG: visible keyboard focus
========================= */

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.page-link:focus-visible,
.order-action-btn:focus-visible,
.accessibility-tool-btn:focus-visible,
.export-options a:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.18);
}

/* Keep focus visible on Bootstrap controls */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.18);
}

/* Stronger focus in high contrast mode */
body.high-contrast-mode button:focus-visible,
body.high-contrast-mode a:focus-visible,
body.high-contrast-mode select:focus-visible,
body.high-contrast-mode input:focus-visible,
body.high-contrast-mode textarea:focus-visible,
body.high-contrast-mode .page-link:focus-visible,
body.high-contrast-mode .order-action-btn:focus-visible,
body.high-contrast-mode .accessibility-tool-btn:focus-visible,
body.high-contrast-mode .export-options a:focus-visible {
  outline: 4px solid #ffbf00 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

.webinar-announcement-card {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 0.45rem 1.35rem rgba(15, 23, 42, 0.08);
}

.webinar-announcement-card--top {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.webinar-announcement-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.webinar-announcement-card p,
.webinar-announcement-card .small {
  color: #475569 !important;
}

.webinar-modal-content {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.webinar-meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.85rem;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
}

.webinar-meta-card i {
  font-size: 1.35rem;
}

.webinar-agenda-table th {
  color: #334155;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f8fafc;
}

.webinar-agenda-table td {
  vertical-align: middle;
}

.webinar-info-box {
  background: #f8fafc !important;
}

.high-contrast-mode .webinar-announcement-card,
.high-contrast-mode .webinar-modal-content,
.high-contrast-mode .webinar-meta-card,
.high-contrast-mode .webinar-info-box {
  background: #000000 !important;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
}

.high-contrast-mode .webinar-announcement-card h3,
.high-contrast-mode .webinar-announcement-card p,
.high-contrast-mode .webinar-announcement-card .small,
.high-contrast-mode .webinar-modal-content .text-muted,
.high-contrast-mode .webinar-meta-card .text-muted,
.high-contrast-mode .webinar-info-box .text-muted {
  color: #ffffff !important;
}

.high-contrast-mode .webinar-agenda-table th,
.high-contrast-mode .webinar-agenda-table td {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

.hero-section--contained {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.12);
}

.hero-section--contained .hero-overlay {
  border-radius: inherit;
}

.hero-content {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

@media (max-width: 768px) {
  .hero-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section--contained {
    min-height: auto;
  }
}


.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}

.landing-hero-main {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 3.25rem;
  border-radius: 1.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #64748b 100%);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
}

.landing-hero-main::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.landing-hero-main h1 {
  position: relative;
  max-width: 850px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
  z-index: 1;
}

.landing-lead {
  position: relative;
  max-width: 740px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
  z-index: 1;
}

.landing-cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  z-index: 1;
}

.landing-trust-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  z-index: 1;
}

.landing-trust-row > div {
  min-width: 145px;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-trust-row strong {
  display: block;
  font-size: 1rem;
}

.landing-trust-row span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
}

.landing-webinar-card {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.22);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.11);
}

.landing-webinar-card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.webinar-detail-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.webinar-detail-list div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.95rem;
}

.webinar-detail-list i {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0d6efd;
  background: #eff6ff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-kicker {
  display: inline-block;
  color: #0d6efd;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: #64748b;
  font-size: 1rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 0.7rem 1.6rem rgba(15, 23, 42, 0.06);
}

.capability-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: #eff6ff;
  color: #0d6efd;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.capability-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.access-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.access-card {
  padding: 1.6rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 0.7rem 1.6rem rgba(15, 23, 42, 0.06);
}

.access-card h3 {
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.access-card p {
  color: #64748b;
}

.access-card ul {
  color: #475569;
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.access-card li {
  margin-bottom: 0.35rem;
}

.access-card-advanced {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(25, 135, 84, 0.22);
}

/* Webinar modal styles retained for the existing agenda popup */
.webinar-modal-content {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.webinar-meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.85rem;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
}

.webinar-meta-card i {
  font-size: 1.35rem;
}

.webinar-agenda-table th {
  color: #334155;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f8fafc;
}

.webinar-agenda-table td {
  vertical-align: middle;
}

.webinar-info-box {
  background: #f8fafc !important;
}

@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero-main {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .landing-hero-main {
    padding: 2rem;
  }

  .landing-hero-main h1 {
    font-size: 2.25rem;
  }

  .capability-grid,
  .access-split {
    grid-template-columns: 1fr;
  }

  .landing-trust-row > div {
    flex: 1 1 100%;
  }
}

.high-contrast-mode .landing-hero-main,
.high-contrast-mode .landing-webinar-card,
.high-contrast-mode .capability-card,
.high-contrast-mode .access-card,
.high-contrast-mode .webinar-modal-content,
.high-contrast-mode .webinar-meta-card,
*.high-contrast-mode .webinar-info-box {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

.high-contrast-mode .landing-webinar-card h2,
.high-contrast-mode .section-heading h2,
.high-contrast-mode .capability-card h3,
.high-contrast-mode .access-card h3,
.high-contrast-mode .landing-webinar-card .text-muted,
.high-contrast-mode .section-heading p,
.high-contrast-mode .capability-card p,
.high-contrast-mode .access-card p,
.high-contrast-mode .access-card ul,
.high-contrast-mode .webinar-detail-list div,
.high-contrast-mode .webinar-modal-content .text-muted,
.high-contrast-mode .webinar-meta-card .text-muted,
.high-contrast-mode .webinar-info-box .text-muted {
  color: #ffffff !important;
}

.high-contrast-mode .webinar-detail-list i,
.high-contrast-mode .capability-icon {
  background: #ffffff !important;
  color: #000000 !important;
}

.high-contrast-mode .webinar-agenda-table th,
.high-contrast-mode .webinar-agenda-table td {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* =========================
   Previous Orders filter labels
========================= */

.filter-group-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.68);
  margin-left: 2px;
  margin-bottom: 2px;
}

/* =========================
   Previous Orders checkbox filters
========================= */

.filter-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px 0;
}

.filter-check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 34px;
  padding: 6px 11px 6px 9px;

  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.42);

  color: #102033;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.filter-check-item:hover {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.filter-check-item input {
  width: 17px;
  height: 17px;
  margin: 0;

  accent-color: #0f8f5f;
  cursor: pointer;
}

.filter-check-item span {
  line-height: 1;
}

.filter-check-item:has(input:not(:checked)) {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.25);
}

.filter-check-item:has(input:focus-visible) {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.18);
}

body.high-contrast-mode .filter-group-label {
  color: #000000 !important;
}

body.high-contrast-mode .filter-check-item {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

body.high-contrast-mode .filter-check-item:has(input:not(:checked)) {
  opacity: 1;
}

body.high-contrast-mode .filter-check-item input {
  accent-color: #000000;
}

body.high-contrast-mode .filter-check-item:has(input:focus-visible) {
  outline: 4px solid #ffbf00 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* =========================
   CONOPS page toast messages
========================= */

.conops-toast-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  transform: translate(-50%, -50%) !important;

  z-index: 999999 !important;

  width: min(92vw, 440px);
  padding: 0 !important;

  pointer-events: none;
}

.conops-toast {
  width: 100%;
  min-width: 0;
  max-width: 440px;

  border: 0;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.38);

  pointer-events: auto;
}

.conops-toast .toast-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.conops-toast .toast-body {
  background: #ffffff;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
  padding: 1rem;
}

/* Success */
.conops-toast--success .toast-header {
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
}

.conops-toast--success #conopsToastIcon {
  color: #059669;
}

/* Error */
.conops-toast--error .toast-header {
  background: rgba(220, 38, 38, 0.13);
  color: #7f1d1d;
}

.conops-toast--error #conopsToastIcon {
  color: #dc2626;
}

/* Warning */
.conops-toast--warning .toast-header {
  background: rgba(245, 158, 11, 0.16);
  color: #78350f;
}

.conops-toast--warning #conopsToastIcon {
  color: #d97706;
}

/* Info */
.conops-toast--info .toast-header {
  background: rgba(14, 165, 233, 0.13);
  color: #075985;
}

.conops-toast--info #conopsToastIcon {
  color: #0284c7;
}

/* High contrast support */
body.high-contrast-mode .conops-toast,
body.high-contrast-mode .conops-toast .toast-header,
body.high-contrast-mode .conops-toast .toast-body {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

body.high-contrast-mode .conops-toast {
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .conops-toast .toast-header {
  border-bottom: 2px solid #000000 !important;
}

body.high-contrast-mode #conopsToastIcon {
  color: #000000 !important;
}

body.high-contrast-mode .conops-toast .btn-close {
  filter: none !important;
}

/* =========================
   Empty states
========================= */

.empty-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 14px 14px;
  margin: 10px 0;

  border-radius: 14px;
  border: 1px dashed rgba(100, 116, 139, 0.38);
  background: rgba(248, 250, 252, 0.82);

  color: #334155;
}

.empty-state--compact {
  padding: 11px 12px;
  margin: 6px 0 0 0;
}

.empty-state > i {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;

  font-size: 1rem;
}

.empty-state strong {
  display: block;
  margin-bottom: 2px;

  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.empty-state span {
  display: block;

  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

body.high-contrast-mode .empty-state {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px dashed #000000 !important;
}

body.high-contrast-mode .empty-state > i {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

body.high-contrast-mode .empty-state strong,
body.high-contrast-mode .empty-state span {
  color: #000000 !important;
}