/* Talas Civil Air Terminal: avia.iradgov.org
   A 2009-style CIS airport portal: sky ground, glossy blue header with a plane, tabbed menu,
   "test mode" bar, black flight board, right-hand column of boxes, grey footer with counters. */
:root {
  --sky: #2b6cb0;
  --sky-deep: #17457a;
  --sky-dark: #0e2c52;
  --sky-light: #9cc3ea;
  --sky-wash: #eaf2fb;
  --orange: #f08a00;
  --orange-deep: #c76a00;
  --ink: #1e2329;
  --muted: #66707a;
  --line: #bfd0e2;
  --board: #0d0f12;
  --board-row: #16191e;
  --flap: #f4f4f0;
  --flap-yel: #ffd23a;
  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --narrow: "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", Arial, sans-serif;
  --small: Tahoma, Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 12px/1.5 var(--small);
  background: #8db8e3 linear-gradient(180deg, #3d7fc4 0, #79abdf 240px, #c4dcf3 620px, #e3eef9 100%) no-repeat;
  min-height: 100vh;
}
body.big { font-size: 16px; }
body.big .board td, body.big .board th { font-size: 17px; }
img, svg { max-width: 100%; }
a { color: #0b4f9e; }
a:visited { color: #4b3c8c; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--sky-deep); line-height: 1.25; }
h1 { font-size: 20px; margin: 0 0 10px; font-weight: bold; }
h2 { font-size: 16px; margin: 20px 0 8px; padding: 3px 0 3px 8px; border-left: 4px solid var(--orange); background: linear-gradient(90deg, var(--sky-wash), transparent); }
h3 { font-size: 13px; margin: 14px 0 5px; }
p { margin: 0 0 9px; }
.skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 6px 10px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px dotted var(--orange-deep); outline-offset: 1px; }

#sheet { width: 990px; max-width: 100%; margin: 0 auto 18px; background: #fff; box-shadow: 0 0 14px rgba(10,40,80,.35); }

/* top strip: world clocks, visually impaired version, languages */
.strip { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; background: var(--sky-dark); color: #b9cde6; font-size: 11px; padding: 3px 10px; }
.strip a, .strip button.vi { color: #e3edf8; }
.clocks { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.clocks span b { color: #fff; font-family: var(--font); }
.strip .right { display: flex; align-items: center; gap: 10px; }
button.vi { background: none; border: 0; padding: 0; font: 11px var(--small); cursor: pointer; text-decoration: underline; display: inline-flex; align-items: center; gap: 4px; }
button.vi .eye { display: inline-block; width: 14px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
button.vi .eye::after { content: ""; position: absolute; left: 3px; top: 1px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.langs { display: inline-flex; }
.langs button { background: none; border: 1px solid transparent; font: bold 10px var(--font); letter-spacing: .5px; color: #9fc0e6; padding: 1px 5px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--sky-dark); background: #fff; border-color: #fff; cursor: default; }

/* header */
.mast { position: relative; height: 128px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #5d9ee0 0%, #2f78c4 48%, #1d5aa0 52%, #2a6db7 100%); }
.mast .sky { position: absolute; inset: 0; pointer-events: none; }
.mast .photo { position: absolute; right: 0; top: 0; bottom: 0; width: 520px; background-size: cover; background-position: 50% 60%; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%); mask-image: linear-gradient(90deg, transparent 0, #000 55%); }
.mast .home-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 0 0 14px; color: #fff; text-decoration: none; width: max-content; max-width: 100%; }
.mast .mark { width: 100px; height: 100px; flex: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.mast .ttl .k { font: bold 11px var(--font); letter-spacing: 1px; text-transform: uppercase; color: #d6e8fb; }
.mast .ttl .n { font: bold 27px/1.05 var(--font); letter-spacing: -.3px; text-shadow: 1px 2px 2px rgba(0,0,0,.4); }
.mast .ttl .s { font: italic 13px var(--font); color: #ffd98a; margin-top: 3px; }
.mast .emb { position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 8px; font: 11px/1.25 var(--font); color: #eaf3fc; text-align: right; text-shadow: 0 1px 1px rgba(0,0,0,.5); max-width: 260px; }
.mast .emb img { width: 46px; height: 46px; flex: none; }

/* tabbed menu */
.nav { background: linear-gradient(#dfeaf6, #c3d6ec); border-bottom: 4px solid var(--orange); padding: 6px 8px 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.nav li a { display: block; padding: 7px 15px 6px; font: bold 12px var(--font); color: #fff; text-decoration: none; border-radius: 7px 7px 0 0;
  background: linear-gradient(#5b97d6 0, #2f6fb3 50%, #245e9d 51%, #2c6aad 100%); border: 1px solid #1d518b; border-bottom: 0; text-shadow: 0 -1px 0 rgba(0,0,0,.35); }
.nav li a:hover { background: linear-gradient(#ffb546 0, #f39a12 50%, #e48600 51%, #ef9300 100%); border-color: #c76a00; }
.nav li a[aria-current="page"] { background: linear-gradient(#ffb546 0, #f39a12 50%, #e48600 51%, #ef9300 100%); border-color: #c76a00; }
.burger { display: none; }

.testbar { background: #fff8c4; border-bottom: 1px solid #e8d77a; color: #6b5a00; font-size: 11px; padding: 4px 12px; text-align: center; }
.testbar b { color: #b33; }

/* body: main + right column */
.frame { display: flex; align-items: flex-start; }
#main { flex: 1; min-width: 0; padding: 14px 16px 22px; }
#side { width: 236px; flex: none; padding: 12px 10px 20px 0; }
.crumbs { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 13px; }
.small { font-size: 11px; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }

/* side boxes */
.box { border: 1px solid var(--line); margin-bottom: 12px; background: #fff; }
.box h4 { margin: 0; padding: 5px 9px; font: bold 12px var(--font); color: #fff; background: linear-gradient(#4f8dcf, #2a66a8); border-bottom: 1px solid #1d518b; }
.box h4.o { background: linear-gradient(#ffad3b, #e88400); border-bottom-color: #c76a00; }
.box .in { padding: 8px 9px; }
.box ul { list-style: none; margin: 0; padding: 4px 0; }
.box li a { display: block; padding: 3px 9px 3px 20px; position: relative; }
.box li a::before { content: ""; position: absolute; left: 9px; top: 9px; border: 4px solid transparent; border-left-color: var(--orange); border-right: 0; }
.box .tel { font: bold 17px var(--font); color: var(--sky-dark); }
.wx { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.wx .t { font: bold 20px var(--font); color: var(--sky-deep); }
.poll label { display: block; margin: 2px 0; cursor: pointer; }
.poll .res div { margin: 3px 0 0; font-size: 11px; }
.poll .bar { height: 7px; background: linear-gradient(#ffb546, #e48600); border: 1px solid #c76a00; }
.poll button { margin-top: 6px; }
.btn { display: inline-block; font: bold 12px var(--font); color: #fff !important; text-decoration: none; padding: 5px 12px; border: 1px solid #1d518b; border-radius: 3px; cursor: pointer;
  background: linear-gradient(#5b97d6, #2c6aad); }
.btn:hover { background: linear-gradient(#ffb546, #e48600); border-color: #c76a00; }

/* online board */
.board-wrap { margin: 6px 0 16px; }
.tabs { display: flex; gap: 2px; align-items: flex-end; flex-wrap: wrap; }
.tabs button { font: bold 13px var(--font); text-transform: uppercase; letter-spacing: .5px; padding: 7px 16px; border: 1px solid #333; border-bottom: 0; border-radius: 5px 5px 0 0; cursor: pointer;
  background: linear-gradient(#5d636b, #3a3f45); color: #ccd; display: inline-flex; align-items: center; gap: 7px; }
.tabs button[aria-selected="true"] { background: var(--board); color: var(--flap-yel); }
.tabs .upd { margin-left: auto; font-size: 11px; color: var(--muted); padding-bottom: 3px; }
.tabs svg { width: 18px; height: 18px; fill: currentColor; }
.board { width: 100%; border-collapse: separate; border-spacing: 0 2px; background: var(--board); padding: 6px; font-family: var(--narrow); color: var(--flap); }
.board th { font: bold 11px var(--font); text-transform: uppercase; color: #8b96a3; text-align: left; padding: 3px 6px; letter-spacing: .3px; }
.board td { background: var(--board-row); padding: 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; border-top: 1px solid #222830; border-bottom: 1px solid #07080a; vertical-align: middle; }
.board td.fl { font-family: "Courier New", Courier, monospace; font-weight: bold; color: #fff; white-space: nowrap; }
.board td.tm { font-family: "Courier New", Courier, monospace; font-weight: bold; font-size: 16px; white-space: nowrap; }
.board td.al img { width: 22px; height: 22px; vertical-align: middle; background: #fff; border-radius: 2px; padding: 1px; }
.board td.st { color: var(--flap-yel); font-weight: bold; }
.board td.st.ok { color: #7fe07f; }
.board td.st.bad { color: #ff6b5e; }
.board td.st.go { color: #fff; }
.board td.st.go b { animation: blink 1.1s steps(1) infinite; }
.board td.st.dim, .board tr.past td { color: #7d8792; }
.board tr.past td.fl { color: #9aa3ad; }
.board .via { display: block; font-size: 11px; color: #9aa3ad; text-transform: none; letter-spacing: 0; }
.board .day td { background: none; color: #8b96a3; font: bold 11px var(--font); padding: 8px 6px 2px; border: 0; }
.board .none td { color: #8b96a3; text-transform: none; font-family: var(--small); font-size: 12px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .board td.st.go b { animation: none; } }
.board-note { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* notices */
.notice { border-bottom: 1px dashed var(--line); padding: 8px 0 6px; }
.notice .meta { font-size: 11px; color: var(--orange-deep); font-weight: bold; }
.notice .t { font: bold 13px var(--font); color: var(--sky-deep); margin: 2px 0 4px; }
.notice p { margin: 0 0 4px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.facts { border-collapse: collapse; width: 100%; margin: 6px 0 12px; }
table.facts th, table.facts td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
table.facts thead th { background: linear-gradient(#e5eef8, #cddcee); color: var(--sky-dark); font-size: 11px; }
table.facts tbody tr:nth-child(even) td { background: #f5f9fd; }
table.facts td.num, table.facts th.num { text-align: right; white-space: nowrap; }
table.facts .days span { display: inline-block; width: 16px; text-align: center; color: #c2c9d1; font-weight: bold; }
table.facts .days span.on { color: #fff; background: var(--sky); border-radius: 2px; }
.kv th { width: 34%; background: #f3f7fb; }

/* figures, info boxes */
figure.photo { margin: 6px 0 14px; border: 1px solid var(--line); padding: 4px; background: #fff; }
figure.photo img { display: block; width: 100%; height: auto; }
figure.photo figcaption { font-size: 11px; color: var(--muted); padding: 4px 2px 0; }
.photo.right { float: right; width: 46%; margin: 4px 0 10px 14px; }
.info { background: #fff6e0; border: 1px solid #f0c674; padding: 8px 10px; margin: 8px 0 12px; }
.info.blue { background: var(--sky-wash); border-color: var(--line); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 6px; }
.quick a { display: block; text-align: center; padding: 10px 6px 8px; border: 1px solid var(--line); background: linear-gradient(#fff, #eaf2fb); text-decoration: none; font: bold 12px var(--font); color: var(--sky-deep); border-radius: 4px; }
.quick a:hover { border-color: var(--orange); color: var(--orange-deep); }
.quick svg { display: block; margin: 0 auto 4px; width: 30px; height: 30px; fill: var(--sky); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
ul.dash { padding-left: 18px; margin: 4px 0 10px; }
ul.dash li { margin: 2px 0; }
.clear { clear: both; }

/* footer */
.foot { background: linear-gradient(#dfe6ee, #c9d3de); border-top: 4px solid var(--sky); padding: 10px 14px 12px; font-size: 11px; color: #46505a; }
.foot .fl { margin-bottom: 8px; }
.foot .fl a { margin-right: 12px; color: var(--sky-dark); }
.foot .row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.foot .ctr { display: flex; gap: 6px; }
.foot .c88 { width: 88px; height: 31px; border: 1px solid #6f7d8b; background: linear-gradient(#f9fbfd, #c5d2df); font: 9px/1.15 Tahoma, Verdana, sans-serif; color: #234; padding: 2px 3px; overflow: hidden; }
.foot .c88 b { display: block; font-size: 10px; color: #b13; }
.foot .c88.g { background: linear-gradient(#5c6e80, #2f3c49); color: #dfe8f1; border-color: #222; }
.foot .c88.g b { color: #9fe36e; }
.foot .best { margin-top: 8px; color: #6b7682; font-size: 10px; }

/* phones */
@media (max-width: 860px) {
  .frame { display: block; }
  #side { width: auto; padding: 0 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .mast .photo { display: none; }
  .mast .emb { display: none; }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .strip .clocks span:nth-child(n+3) { display: none; }
  .mast { height: auto; padding-bottom: 12px; }
  .mast .mark { width: 58px; height: 58px; }
  .mast .ttl .n { font-size: 20px; }
  .mast .home-link { padding: 12px 0 0 12px; }
  .nav { padding: 0; border-bottom-width: 3px; }
  .burger { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--sky-dark); font: bold 13px var(--font); padding: 9px 12px; cursor: pointer; }
  .burger .bars, .burger .bars::before, .burger .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .burger .bars::before, .burger .bars::after { content: ""; position: absolute; left: 0; }
  .burger .bars::before { top: -5px; } .burger .bars::after { top: 5px; }
  .nav ul { display: none; flex-direction: column; gap: 0; }
  .nav.open ul { display: flex; }
  .nav li a { border-radius: 0; border-width: 1px 0 0; }
  #main { padding: 12px 12px 18px; }
  #side { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .photo.right { float: none; width: auto; margin: 6px 0 12px; }
  .board { padding: 3px; }
  .board td { font-size: 13px; padding: 5px 4px; }
  .board .h-ac, .board .h-ex, .board .h-ck, .board .via { display: none; }
  .board td.st { font-size: 12px; }
  .board td.tm { font-size: 14px; }
  .tabs button { padding: 6px 10px; font-size: 12px; }
}
