/* RUH Watch · ruhwatch.com · dark aviation theme */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/static/fonts/plexar-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/static/fonts/plexar-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(/static/fonts/plexar-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/static/fonts/plexar-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/static/fonts/plexar-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(/static/fonts/plexar-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/static/fonts/plexmono-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url(/static/fonts/plexmono-latin-600.woff2) format("woff2"); }

:root {
  --bg: #050a14; --bg2: #0a1426; --panel: rgba(148, 197, 255, .045); --panel2: rgba(148, 197, 255, .08);
  --line: rgba(125, 211, 252, .12); --line2: rgba(125, 211, 252, .22);
  --text: #e7eef8; --muted: #8ea2bd; --dim: #5d7190;
  --teal: #2dd4bf; --teal2: #7cf3e1; --amber: #fbbf24; --red: #f87171; --violet: #a78bfa; --green: #4ade80;
  --sky: #38bdf8; --grey: #94a3b8; --pink: #f472b6;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .65);
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(45, 212, 191, .13), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(56, 189, 248, .08), transparent 55%),
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .35), transparent 1px),
    radial-gradient(1px 1px at 140px 90px, rgba(255, 255, 255, .22), transparent 1px),
    radial-gradient(1px 1px at 260px 160px, rgba(255, 255, 255, .28), transparent 1px),
    linear-gradient(180deg, #060c18 0%, #050a14 40%, #04080f 100%);
  background-size: auto, auto, 300px 220px, 300px 220px, 300px 220px, auto;
  background-attachment: fixed;
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--teal2); text-decoration: none; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: currentColor; }
[dir="rtl"] .fwd { transform: scaleX(-1); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--teal); color: #04121a; padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; margin-inline-end: .35em; }
.flag.big { font-size: 1.3em; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5, 10, 20, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand .logo { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 1.04rem; }
.brand-text small { color: var(--muted); font-size: .74rem; }
.logo-sweep { transform-origin: 32px 32px; animation: sweep 6s linear infinite; }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 460px; margin-inline-start: auto; }
.search > .ic { position: absolute; inset-inline-start: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 9px 12px; padding-inline-start: 38px; font: inherit; font-size: .9rem; transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--teal); background: rgba(5, 10, 20, .92); }
.results { position: absolute; top: calc(100% + 6px); inset-inline: 0; max-height: 60vh; overflow: auto; list-style: none; margin: 0; padding: 6px; background: #0b1528; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; }
.results li a, .results li span { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); }
.results li a:hover, .results li a.sel { background: var(--panel2); }
.results small { color: var(--muted); }
.search-btn { display: none; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; margin-inline-start: auto; }
.lang { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); color: var(--text); font-size: .86rem; white-space: nowrap; flex: none; }
.lang:hover { border-color: var(--teal); }
.navbar { border-top: 1px solid rgba(125, 211, 252, .07); }
.nav-in { display: flex; gap: 4px; height: 46px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav-in a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; white-space: nowrap; transition: background .15s, color .15s; flex: none; }
.nav-in a:hover { color: var(--text); background: var(--panel2); }
.nav-in a.on { color: var(--text); background: linear-gradient(180deg, rgba(45, 212, 191, .2), rgba(45, 212, 191, .06)); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .28); }
.nav-in a .ic { opacity: .9; }
.nav-in a.on .ic { color: var(--teal); }
[lang="ar"] .eyebrow { font-family: var(--font); letter-spacing: 0; text-transform: none; }

/* closure bar */
.alert-bar { background: linear-gradient(90deg, rgba(248, 113, 113, .22), rgba(251, 191, 36, .14)); border-bottom: 1px solid rgba(248, 113, 113, .35); }
.alert-in { display: flex; align-items: center; gap: 10px; padding-block: 9px; flex-wrap: wrap; font-size: .92rem; }
.alert-in b { color: #fecaca; }
.alert-in a { margin-inline-start: auto; color: #fde68a; display: inline-flex; gap: 6px; align-items: center; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(248, 113, 113, .7); animation: pulse 1.8s infinite; flex: none; }

/* hero */
.hero { padding-block: 34px 10px; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.eyebrow { color: var(--teal); font-size: .78rem; letter-spacing: .14em; margin-bottom: .5em; text-transform: uppercase; }
.lead { font-size: 1.12rem; color: #c4d2e6; max-width: 60ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(180deg, #2dd4bf, #14a596); color: #03211d; font-weight: 700; border: 0; box-shadow: 0 8px 24px -10px rgba(45, 212, 191, .7); }
.btn:hover { color: #021512; filter: brightness(1.08); }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--teal); }
.closure-card { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(248, 113, 113, .16), rgba(251, 191, 36, .07)); border: 1px solid rgba(248, 113, 113, .35); }
.closure-head { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: #fecaca; margin-bottom: 6px; }
.closure-card .until { color: #fde68a; }

/* radar */
.radar { display: grid; place-items: center; }
.radar-disc { position: relative; width: min(340px, 72vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background:
    repeating-radial-gradient(circle at center, transparent 0 15.6%, rgba(45, 212, 191, .22) 15.8% 16%),
    radial-gradient(circle at center, #0f2b42 0%, #071322 62%, #040a14 100%);
  box-shadow: 0 0 0 2px rgba(124, 243, 225, .55), 0 0 0 10px rgba(45, 212, 191, .06), 0 0 80px -10px rgba(45, 212, 191, .45), inset 0 0 60px rgba(0, 0, 0, .6); }
.radar-disc::before, .radar-disc::after { content: ""; position: absolute; background: rgba(45, 212, 191, .18); }
.radar-disc::before { inset-block: 0; inset-inline-start: 50%; width: 1px; }
.radar-disc::after { inset-inline: 0; top: 50%; height: 1px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(45, 212, 191, 0) 0deg, rgba(45, 212, 191, 0) 280deg, rgba(45, 212, 191, .45) 358deg, rgba(124, 243, 225, .9) 360deg); animation: sweep 5s linear infinite; }
.blip { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--teal2); box-shadow: 0 0 12px var(--teal2); animation: blip 5s ease-out infinite; }
.blip.b1 { top: 22%; left: 64%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation-delay: .5s; }
.blip.b2 { top: 62%; left: 22%; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation-delay: 3.4s; }
.blip.b3 { top: 70%; left: 70%; animation-delay: 1.8s; }
.blip.b4 { top: 34%; left: 30%; animation-delay: 4.2s; }
.blip.b5 { top: 15%; left: 42%; background: var(--red); box-shadow: 0 0 12px var(--red); animation-delay: 4.7s; }
.radar-plane { position: absolute; width: 34px; height: 34px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); fill: #eaf2fb; filter: drop-shadow(0 0 8px rgba(124, 243, 225, .6)); }
.radar-label { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); font-weight: 600; letter-spacing: .3em; color: #d6e6f5; font-size: .95rem; }

/* sections and cards */
section.wrap { margin-block: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 small { font-weight: 400; font-size: .85rem; margin-inline-start: 6px; }
.card { background: linear-gradient(180deg, rgba(148, 197, 255, .06), rgba(148, 197, 255, .025)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.card-head h3 .ic { color: var(--teal); }
.more { font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2b { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.page-head h1 .ic { color: var(--teal); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(148, 197, 255, .07), rgba(148, 197, 255, .02)); border: 1px solid var(--line); }
.kpi .ic { width: 22px; height: 22px; color: var(--sky); margin-bottom: 6px; }
.kpi b { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 70%); }
.kpi.k-dep .ic, .kpi.k-arr .ic { color: var(--green); }
.kpi.k-arr::after, .kpi.k-dep::after { background: radial-gradient(circle, rgba(74, 222, 128, .16), transparent 70%); }
.kpi.k-delay .ic { color: var(--amber); }
.kpi.k-delay::after { background: radial-gradient(circle, rgba(251, 191, 36, .16), transparent 70%); }
.kpi.k-cancel .ic { color: var(--red); }
.kpi.k-cancel::after { background: radial-gradient(circle, rgba(248, 113, 113, .18), transparent 70%); }
.kpi.k-divert .ic { color: var(--violet); }
.kpi.k-divert::after { background: radial-gradient(circle, rgba(167, 139, 250, .18), transparent 70%); }

/* boards */
.table-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
table.board th { text-align: start; font-size: .75rem; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 2px; }
table.board td { padding: 10px 12px; background: rgba(5, 10, 20, .55); border-block: 1px solid var(--line); vertical-align: middle; }
table.board td:first-child { border-inline-start: 1px solid var(--line); border-start-start-radius: 12px; border-end-start-radius: 12px; }
table.board td:last-child { border-inline-end: 1px solid var(--line); border-start-end-radius: 12px; border-end-end-radius: 12px; }
table.board tr:hover td { background: rgba(45, 212, 191, .06); border-color: var(--line2); }
table.board td small { display: block; font-size: .78rem; }
.c-time { white-space: nowrap; }
.t-main { font-size: 1.06rem; font-weight: 600; color: #f2f7ff; }
.t-main.struck { text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .8); color: var(--muted); font-size: .9rem; margin-inline-end: 6px; }
.t-new { font-size: 1.06rem; font-weight: 600; color: var(--amber); }
.fcode { display: inline-block; font-weight: 600; letter-spacing: .04em; color: #f2f7ff; background: rgba(148, 197, 255, .08); border: 1px solid var(--line2); border-radius: 7px; padding: 1px 8px; }
.fcode:hover { border-color: var(--teal); color: #fff; }
.c-city a { color: var(--text); font-weight: 600; }
.c-city a:hover { color: var(--teal2); }
.code { letter-spacing: .06em; }
.late { color: var(--amber); font-family: var(--mono); }
.dir-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); margin-inline-end: 6px; }
.dir-tag.dir-D .ic { color: var(--sky); }
.dir-tag.dir-A .ic { color: var(--green); }
.st-row-cancelled td { background: rgba(248, 113, 113, .045); }
.st-row-cancelled .t-main { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 22px !important; }
.day-group { margin-bottom: 18px; }
.day-label { display: flex; align-items: baseline; gap: 10px; font-size: 1.1rem; padding: 6px 2px; position: sticky; top: 111px; z-index: 5; background: linear-gradient(180deg, rgba(5, 10, 20, .95) 70%, rgba(5, 10, 20, 0)); }
.day-label small { font-weight: 400; font-size: .82rem; }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip .ic { width: 15px; height: 15px; }
.st-scheduled { color: #cbd5e1; background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .25); }
.st-ontime { color: #86efac; background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .3); }
.st-delayed { color: #fcd34d; background: rgba(251, 191, 36, .11); border-color: rgba(251, 191, 36, .35); }
.st-cancelled { color: #fca5a5; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .38); }
.st-diverted { color: #c4b5fd; background: rgba(167, 139, 250, .13); border-color: rgba(167, 139, 250, .38); }
.st-departed { color: #7dd3fc; background: rgba(56, 189, 248, .11); border-color: rgba(56, 189, 248, .32); }
.st-landed { color: #86efac; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .34); }
.st-airborne { color: #5eead4; background: rgba(45, 212, 191, .12); border-color: rgba(45, 212, 191, .34); }
.st-noupdate { color: #94a3b8; background: rgba(100, 116, 139, .12); border-color: rgba(100, 116, 139, .3); }
.st-closed { color: #fdba74; background: rgba(251, 146, 60, .1); border-color: rgba(251, 146, 60, .32); }

/* filters */
.filters { display: flex; flex-direction: column; gap: 12px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; display: inline-flex; gap: 6px; align-items: center; }
.fchip b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.fchip:hover { border-color: var(--line2); color: var(--text); }
.fchip.on { color: #03211d; background: var(--teal); border-color: var(--teal); }
.fchip.on b { color: #03211d; }
.filter-inputs { display: flex; gap: 10px; flex-wrap: wrap; }
.finput { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.finput .ic { position: absolute; inset-inline-start: 11px; color: var(--muted); }
.finput input, .filter-inputs select { width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: rgba(5, 10, 20, .6); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.finput input { padding-inline-start: 36px; }
.filter-inputs select { width: auto; min-width: 200px; }
.finput input:focus, .filter-inputs select:focus { outline: none; border-color: var(--teal); }
.no-match { text-align: center; }

/* home sparkline and lists */
.spark { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 190px; padding: 8px 2px 0; }
.sbar { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sbar span { position: absolute; bottom: 22px; width: 70%; border-radius: 6px 6px 2px 2px; }
.s-all { background: linear-gradient(180deg, rgba(56, 189, 248, .85), rgba(56, 189, 248, .25)); }
.s-canc { background: linear-gradient(180deg, rgba(248, 113, 113, .95), rgba(248, 113, 113, .35)); width: 40% !important; }
.sbar small { position: absolute; bottom: 0; font-size: .7rem; color: var(--dim); font-family: var(--mono); }
.sbar { padding-bottom: 22px; }
.legend { display: flex; gap: 12px; align-items: center; color: var(--muted); margin-top: 8px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 4px; vertical-align: -1px; }
.lg-all { background: var(--sky); }
.lg-canc { background: var(--red); }
.lg-route { background: var(--teal); }
.toplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toplist li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 1fr auto; gap: 12px; align-items: center; }
.toplist a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist a:hover { color: var(--teal2); }
.bar { height: 8px; border-radius: 6px; background: rgba(148, 197, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--sky)); }
[dir="rtl"] .bar i { background: linear-gradient(270deg, var(--teal), var(--sky)); margin-inline-start: 0; }
.al-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--al); margin-inline-end: 8px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }

/* posts */
.posts.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post { position: relative; padding: 14px; border-radius: 14px; background: rgba(5, 10, 20, .55); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.post header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.kind { font-weight: 700; font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: var(--text); }
.k-cancel .kind, .k-group_cancel .kind, .k-late_cancel .kind { background: rgba(248, 113, 113, .16); color: #fecaca; }
.k-delay .kind, .k-group_delay .kind, .k-delay_update .kind { background: rgba(251, 191, 36, .16); color: #fde68a; }
.k-divert .kind { background: rgba(167, 139, 250, .18); color: #ddd6fe; }
.k-hourly .kind, .k-daily .kind { background: rgba(56, 189, 248, .16); color: #bae6fd; }
.k-notice .kind { background: rgba(251, 146, 60, .18); color: #fed7aa; }
.k-correction .kind { background: rgba(74, 222, 128, .16); color: #bbf7d0; }
.ptext { white-space: pre-line; font-size: .92rem; line-height: 1.8; color: #d7e2f0; text-align: start; }
.xlink { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; margin-top: auto; color: var(--muted); }
.xlink:hover { color: var(--text); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding-inline-start: 24px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--teal), rgba(45, 212, 191, .05)); }
.timeline .dot { position: absolute; inset-inline-start: -23px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.timeline .k-cancel .dot, .timeline .k-group_cancel .dot { border-color: var(--red); }
.timeline .k-divert .dot { border-color: var(--violet); }
.timeline .k-notice .dot { border-color: var(--amber); }
.is-reply { margin-inline-start: 18px; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { display: none; }
.more-btn { display: inline-block; margin-top: 6px; color: var(--teal2); font-size: .85rem; }

/* flight page */
.flight-hero { display: flex; flex-direction: column; gap: 16px; }
.fh-top { display: flex; align-items: center; gap: 16px; }
.fh-top h1 { margin: 0; font-size: 2.4rem; letter-spacing: .06em; }
.al-badge { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--al), color-mix(in srgb, var(--al) 55%, #000)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 22px -10px var(--al); letter-spacing: .04em; }
.route-line { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.route-line .end { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.route-line .end b { font-size: 1.6rem; color: #f2f7ff; }
.route-line .end span { color: var(--muted); font-size: .9rem; }
.path { display: flex; align-items: center; gap: 10px; }
.path .dash { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 18px); opacity: .7; }
.plane-mid { width: 28px; height: 28px; color: var(--teal2); transform: rotate(90deg); filter: drop-shadow(0 0 8px rgba(45, 212, 191, .6)); }
[dir="rtl"] .plane-mid { transform: rotate(-90deg); }
.al-head { display: flex; align-items: center; gap: 16px; }

/* airlines and airports */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.al-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); transition: transform .15s, border-color .15s; }
.al-card:hover { transform: translateY(-2px); border-color: var(--line2); color: var(--text); }
.al-top { display: flex; align-items: center; gap: 12px; }
.al-top b { display: block; }
.al-top .al-badge { min-width: 46px; height: 46px; font-size: .95rem; }
.al-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.al-stats div { display: flex; flex-direction: column; }
.al-stats b { font-size: 1.25rem; }
.al-stats span { color: var(--muted); font-size: .78rem; }
.al-stats .bad b { color: var(--red); }
.meter { height: 6px; border-radius: 6px; background: rgba(74, 222, 128, .2); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #f87171, #fb923c); }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.country h2 { display: flex; align-items: center; gap: 4px; font-size: 1.1rem; }
.ap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text); }
.ap-list a:hover { background: var(--panel2); }
.ap-list .num { color: var(--teal2); }
.al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.al-list a { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 6px; border-radius: 12px; }
.al-list a:hover { background: var(--panel2); }
.al-list .al-badge { min-width: 40px; height: 40px; font-size: .85rem; border-radius: 11px; }

/* charts and map */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(5, 10, 20, .6); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .88rem; color: var(--muted); background: transparent; border: 0; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--teal); color: #03211d; font-weight: 700; }
.chart { width: 100%; height: 300px; }
.chart-lg { height: 420px; }
.map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.map-card { padding: 8px; overflow: hidden; }
.map { width: 100%; height: 560px; border-radius: 12px; background: radial-gradient(ellipse at center, #0b1d33 0%, #050a14 75%); }
.map-legend { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 8px; }

/* about */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1em; color: var(--teal2); }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.legend-list { list-style: none; padding: 0 !important; }
.legend-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 404 */
.nf { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; min-height: 60vh; }
.nf-radar .radar-disc { width: 240px; }

/* footer */
.footer { margin-top: 50px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 20, 38, .4), rgba(5, 10, 20, .9)); padding-block: 28px 18px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand .logo { width: 54px; height: 54px; flex: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot-cols h4 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.foot-cols a { display: block; color: var(--text); padding: 3px 0; font-size: .92rem; }
.foot-cols a:hover { color: var(--teal2); }
.foot-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* the home page shows the closure in its hero card */
.page-home .alert-bar { display: none; }

/* motion */
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(1.25); } 40% { opacity: .55; transform: scale(1); } 80% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .7); } 70% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 960px) {
  .hero-in, .grid-2, .grid-2b, .map-layout, .footer-in { grid-template-columns: 1fr; }
  .radar { order: -1; }
  .radar-disc { width: min(260px, 64vw); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .posts.mini { grid-template-columns: 1fr; }
  .map { height: 420px; }
}
@media (max-width: 760px) {
  .search-btn { display: inline-flex; }
  .radar { display: none; }
  .alert-in { font-size: .82rem; gap: 6px; padding-block: 7px; }
  .alert-in a { display: none; }
  .search { display: none; position: absolute; top: 64px; inset-inline: 0; max-width: none; padding: 8px 16px 12px; background: rgba(5, 10, 20, .98); border-bottom: 1px solid var(--line2); }
  .search > .ic { inset-inline-start: 28px; top: 19px; }
  .topbar.searching .search { display: flex; }
  .brand-text small { display: none; }
  .nav-in a { padding: 7px 10px; font-size: .88rem; }
  .kpis, .kpis-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi b { font-size: 1.5rem; }
  table.board thead { display: none; }
  table.board, table.board tbody, table.board tr, table.board td { display: block; width: 100%; }
  table.board tr { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin-bottom: 8px; padding: 10px 12px; background: rgba(5, 10, 20, .55); border: 1px solid var(--line); border-radius: 12px; }
  table.board td { background: none !important; border: 0 !important; padding: 2px 0; border-radius: 0 !important; }
  table.board td.c-time { grid-row: span 2; }
  table.board td.c-status { grid-column: 1 / -1; padding-top: 6px; }
  .toplist li { grid-template-columns: minmax(110px, 1.3fr) 1fr auto; }
  .nf { grid-template-columns: 1fr; text-align: center; }
  .nf .hero-links { justify-content: center; }
  .nf-radar { display: grid; place-items: center; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .lang { padding: 7px 9px; }
  .search input { width: 110px; }
  .brand-text b { font-size: .92rem; }
}
