@font-face {
  font-family: "RusLine Manrope";
  src: url("../fonts/ops-manrope.946beb949095.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* Shared tokens for the operational pages. Print exports keep their own styles. */
@media screen {
  .ops-site body {
    --site-deep: #082d31;
    --site-action: #0b5149;
    --site-action-hover: #10443f;
    --site-mint: #aaf4bd;
    --site-wash: #edf8f2;
    --site-border: #dceae5;
    --ink: var(--site-deep);
    --ink-2: #3e5e62;
    --ink-3: #486368;
    --line: var(--site-border);
    --line-2: #edf3f0;
    --bg-body: #fff;
    --bg-card: #fff;
    --bg-muted: #f5faf7;
    --bg-hover: #f0f8f4;
    --font: "RusLine Manrope", "Segoe UI", sans-serif;
    --bs-body-font-family: var(--font);
    --bs-link-color: var(--site-action);
    --bs-link-color-rgb: 11, 81, 73;
    --bs-link-hover-color: var(--site-action-hover);
    --bs-link-hover-color-rgb: 16, 68, 63;
    --bs-border-color: var(--site-border);
    --bs-secondary-color: var(--ink-2);
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--ink);
  }
  .ops-site .site-header {
    background: #fff;
    border-bottom: 1px solid var(--site-border);
    box-shadow: none;
  }
  .ops-site .site-header > .site-nav-shell { max-width: 1376px }
  .ops-site .site-header .site-nav-main .nav-link {
    color: #24454a;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
  }
  .ops-site .site-header .site-nav-main .nav-link:is(.active,:hover,:focus-visible) {
    color: #0d5552 !important;
    background: #e8f6ee;
  }
  .ops-site .site-header .site-dropdown {
    border-color: var(--site-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px #163b331a;
  }
  .ops-site .site-header .site-dropdown .sd-title { color: var(--site-deep) }
  .ops-site .site-header .site-dropdown .sd-hint { color: var(--ink-2) }
  .ops-site .site-header .site-dropdown a:hover { background: var(--site-wash) }
  .ops-site :is(.site-header,#main-content) :is(a,button,summary,select,input,textarea):focus-visible {
    outline-color: var(--site-action);
  }
  .ops-site #main-content h1:not(.home h1,.ops-cio h1) {
    color: var(--site-deep);
    letter-spacing: -.048em;
    font-weight: 670;
  }
  .ops-site :is(.login-panel,.form-panel,.schedule-workspace,.kb-mapcard) {
    border-color: var(--site-border);
    box-shadow: 0 4px 14px #123a3009;
  }
  .ops-site :is(.btn-primary,.btn-dark) {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--site-action);
    --bs-btn-border-color: var(--site-action);
    --bs-btn-hover-bg: var(--site-action-hover);
    --bs-btn-hover-border-color: var(--site-action-hover);
    --bs-btn-active-bg: #0c3c37;
    --bs-btn-active-border-color: #0c3c37;
    color: #fff;
    background: var(--site-action);
    border-color: var(--site-action);
    border-radius: 999px;
  }
  .ops-site :is(.btn-primary,.btn-dark):is(:hover,:focus-visible) {
    background: var(--site-action-hover);
    border-color: var(--site-action-hover);
  }
  .ops-site :is(.btn-outline-dark,.btn-outline-primary,.btn-outline-secondary) { border-radius: 999px }
  .ops-site .table > thead > tr > th {
    --bs-table-bg: #f1f8f4;
    color: #315858;
    border-color: var(--site-border);
  }
  .ops-site .table > :not(caption) > * > * { border-bottom-color: var(--site-border) }
  .ops-site .hero-banner {
    background: linear-gradient(120deg,#082f33,#0a4742 65%,#155b4b);
    border-radius: 14px;
  }
  .ops-site .hero-plane { filter: drop-shadow(0 10px 14px #08232270) }
  .ops-site .schedule-workspace .nav-button:hover:not(:disabled) {
    border-color: var(--site-action);
    color: var(--site-action);
  }

  /* Monitoring, reports, the daily plan, NOTAM and activity. */
  .ops-site :is(.monitor-tabs,.wx-tabs,.dp-nav,.act-periods) { border-color: var(--site-border) }
  .ops-site :is(.monitor-tabs a[aria-current],.wx-tab.is-active,.act-period.is-active) {
    color: var(--site-action);
    border-color: var(--site-action);
  }
  .ops-site :is(.monitor-panel,.monitor-sourcebar,.dp-panel,.an-kpi,.act-online) {
    border-color: var(--site-border);
    border-radius: 12px;
  }
  .ops-site :is(.monitor-sourcebar,.monitor-filters,.dp-source:not(.dp-weather)) { background: #f4faf7 }
  .ops-site :is(.monitor-table,.dp-table-scroll table) th {
    color: #416362;
    background: #eef7f2;
  }
  .ops-site :is(.monitor-table,.dp-table-scroll table) :is(td,th) { border-bottom-color: var(--site-border) }
  .ops-site :is(.monitor-table td a,.dp-weather-link,.nt-form a,.weather-board-settings summary,.weather-airport-link) {
    color: var(--site-action);
  }
  .ops-site .dp-header h1 { font-size: clamp(28px,4.5vw,54px) }
  .ops-site .dp-date button {
    background: var(--site-action);
    border-color: var(--site-action);
    color: white;
    border-radius: 999px;
  }
  .ops-site .dp-kpis article { border-color: var(--site-border); background: #f8fcfa }
  .ops-site .dp-chart-scroll { border-color: var(--site-border) }

  /* Keep the signal board compact and retain its state colors. */
  .ops-site .wx-page :is(.wx-eyebrow,.wx-sub,.weather-list-rules) { color: var(--ink-2) }
  .ops-site .weather-airport { border-color: var(--site-border) !important; box-shadow: 0 2px 5px #123a3009 }
  .ops-site .weather-name-link:hover { color: var(--site-action) }
  .ops-site .weather-name-icao { color: #416668 }
  .ops-site :is(.weather-board-settings-body,.weather-list-stats article) { border-color: var(--site-border) }
  .ops-site :is(.ac-panel,.ac-facts article,.ac-runway,.ac-details,.ac-report) { border-color: var(--site-border) }
  .ops-site .ac-runway.is-selected { background: #eef8f3; border-color: #a7cfc0 }
  .ops-site :is(.ac-back,.ac-muted,.ac-panelhead > span,.ac-decision-english) { color: var(--ink-2) }
  .ops-site :is(.ac-motion-toggle,.ac-selector select,.ac-selector button) { border-color: var(--site-border); color: var(--site-action) }
  .ops-site :is(.ac-raw-item,.ac-profile-caption) { background: #f0f8f4; border-color: var(--site-border) }
  .ops-site .ac-graphic-readings { border-color: var(--site-border); background: #f4faf7 }
  .ops-site .ac-graphic-readings > div + div { border-color: var(--site-border) }

  /* Django admin keeps its layout and high-contrast dark mode. */
  html:has(.ops-admin-brand) { --font-family-primary: "RusLine Manrope", "Segoe UI", sans-serif }
  html:has(.ops-admin-brand) #header { background: #0b393d; color: #fff }
  html:has(.ops-admin-brand) #branding a, html:has(.ops-admin-brand) #user-tools a { color: #e9fcf3 }
  html:has(.ops-admin-brand) .breadcrumbs { background: #164c46; color: #fff }
  html:has(.ops-admin-brand) :is(.module h2,.module caption,.inline-group h2) {
    background: #1d6257;
    color: #fff;
  }
}

@media screen and (max-width: 640px) {
  .ops-site .site-header .presence-chip { padding-inline: 7px }
  .ops-site .site-header .presence-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ops-site .site-header .site-account { gap: 5px !important }
  .ops-site .site-header .site-account > span { display: none }
  .ops-site .act-table { max-width: 100%; overflow-x: auto }
  html:has(.ops-admin-brand) #header { flex-wrap: wrap; gap: 8px; min-width: 0 }
  html:has(.ops-admin-brand) #branding { min-width: 0 }
  html:has(.ops-admin-brand) #site-name { white-space: normal; overflow-wrap: anywhere }
}
@media screen and (max-width: 640px) {
  html:has(.ops-admin-brand) .dashboard #content { box-sizing: border-box; max-width: 100%; overflow-x: auto }
  html:has(.ops-admin-brand) .dashboard #content-main .module { overflow-x: auto }
  html:has(.ops-admin-brand) .dashboard .module table td { white-space: normal }
}

@media screen {
  .ops-site { background: #fff }
  .ops-site .dp-nav a[aria-current] { color: var(--site-action); border-bottom-color: var(--site-action) }
  .ops-site .dp-eyebrow { color: var(--ink-2) }
}
@media screen and (min-width: 1320px) {
  .ops-site .site-header > .site-nav-shell { max-width: 1480px; column-gap: 12px }
  .ops-site .site-header .site-navigation .navbar-nav {
    flex-wrap: wrap;
    gap: 2px;
    margin-inline: 0 !important;
  }
  .ops-site .site-header .site-nav-main .nav-link { padding-inline: 9px }
}
@media screen and (min-width: 1320px) and (max-width: 1550px) {
  .ops-site .site-header .site-account > span { display: none }
}
