/* /weather/ hub and /weather/{code}/ airport pages (weather/default.aspx, weather/airport.aspx). Bump ?v= on both pages. */
.wp-page { max-width: 820px; margin: 0 auto; padding: 15px 0; }
.wp-page h1 { color: var(--blue-text,#1078b3); margin: 2px 0 6px; font-size: 24px; line-height: 1.25; }
.wp-crumb { font-size: 13px; margin: 0 0 6px; }
.wp-sub { display: block; font-size: 15px; line-height: 1.4; color: #666; font-weight: normal; margin-top: 4px; }
/* The subtitle is a paragraph after the h1 (SEO fix 9, 2026-10-23), spaced as when it was inside it. */
.wp-page p.wp-sub { margin: -2px 0 0; }
.wp-intro { font-size: 15px; line-height: 1.6; color: #333; margin: 10px 0 12px; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
#main .wp-btn, .wp-btn { display: inline-block; padding: 8px 14px; border-radius: 5px; font-size: 14px; font-weight: bold; text-decoration: none; border: 2px solid #169fe6; background: #fff; color: #1078b3; }
#main .wp-btn:hover, .wp-btn:hover { border-color: #1078b3; color: #1078b3; text-decoration: none; }
#main .wp-btn.wp-primary, .wp-btn.wp-primary { background: #1078b3; color: #fff; }
#main .wp-btn.wp-primary:hover, .wp-btn.wp-primary:hover { background: #0d6aa0; border-color: #0d6aa0; color: #fff; }
#main .wp-h, .wp-h { font-size: 18px; color: #003a70; margin: 22px 0 8px; }
.wp-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 14px; color: #555; }
/* Flight category colours are an aviation standard: the same in light and dark mode. */
.wp-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 14px; font-weight: bold; letter-spacing: 0.5px; color: #fff; }
.wp-vfr { background: #1b7f3b; }
.wp-mvfr { background: #1565c0; }
.wp-ifr { background: #c62828; }
.wp-lifr { background: #8e24aa; }
.wp-old { color: #c62828; font-weight: bold; }
.wp-sum { list-style: none; margin: 0 0 10px; padding: 0; }
.wp-sum li { margin: 0; padding: 5px 0; font-size: 15px; line-height: 1.5; color: #333; border-bottom: 1px solid #f0f2f4; }
.wp-sum li:last-child { border-bottom: 0; }
.wp-sum b { color: #003a70; }
.wp-raw { font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.5; background: #f5f7f9; border: 1px solid #e0e4e8; border-radius: 5px; padding: 8px 10px; margin: 6px 0 12px; white-space: pre-wrap; word-break: break-word; color: #222; }
.wp-note-s { font-size: 14px; color: #555; line-height: 1.5; margin: 4px 0 8px; }
.wp-empty { color: #666; font-size: 14px; }
.wp-fail { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #6d4c00; margin: 10px 0; }
.wp-tablewrap { overflow-x: auto; margin: 4px 0 6px; }
table.wp-rwy { border-collapse: collapse; width: 100%; font-size: 14px; }
table.wp-rwy th { background: #003a70; color: #fff; text-align: left; padding: 7px 10px; font-weight: bold; white-space: nowrap; }
table.wp-rwy td { padding: 7px 10px; border-bottom: 1px solid #e3e7eb; color: #222; background: #fff; }
table.wp-rwy tr.wp-best td { background: #e8f5e9; }
.wp-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: bold; background: #1b7f3b; color: #fff; white-space: nowrap; }
.wp-gust { color: #6b6b6b; font-size: 12px; }
.wp-periods { list-style: none; margin: 0; padding: 0; }
.wp-periods li { margin: 0 0 8px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.wp-pt { font-weight: bold; font-size: 14px; color: #003a70; margin-bottom: 2px; }
.wp-ps { font-size: 14px; line-height: 1.5; color: #333; }
.wp-rel { margin-top: 26px; padding-top: 4px; border-top: 1px solid #e3e7eb; }
#main .wp-rel h2 { color: #003a70; font-size: 18px; margin: 14px 0 6px; }
.wp-rel ul { list-style: none; padding: 0; margin: 0; }
.wp-rel li { margin: 0; padding: 5px 0; font-size: 14px; line-height: 1.5; border-bottom: 1px solid #f0f2f4; }
.wp-rel li:last-child { border-bottom: 0; }
.wp-near { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; }
.wp-note { font-size: 13px; color: #6b6b6b; line-height: 1.5; margin-top: 18px; }
/* Hub */
.wp-filter { margin: 6px 0 14px; }
.wp-filter label { display: block; font-size: 14px; color: #666; margin: 0 0 4px; }
.wp-filter input { padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 15px; width: 320px; max-width: 100%; box-sizing: border-box; background: #fff; color: #333; }
.wp-filter input:focus { border-color: #169fe6; outline: none; box-shadow: 0 0 0 2px rgba(22,159,230,0.2); }
#main .wp-group-h { color: #003a70; font-size: 20px; margin: 22px 0 4px; }
.wp-group { margin: 0 0 6px; }
#main .wp-group h3 { color: #003a70; font-size: 16px; margin: 14px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #e3e7eb; }
.wp-ap-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 18px; }
.wp-ap-list li { margin: 0; padding: 4px 0; font-size: 14px; line-height: 1.4; }
#main .wp-ap-list a { text-decoration: none; }
#main .wp-ap-list a:hover span { text-decoration: underline; }
#main .wp-ap-list b { display: inline-block; min-width: 38px; color: #003a70; opacity: 1; }
.wp-ap-list .wp-city { color: #666; }
/* Dark mode (css/dark-mode.css forces table cells light grey, spans #ddd and headings with !important). */
body.dark-mode .wp-sub, body.dark-mode .wp-note, body.dark-mode .wp-empty, body.dark-mode .wp-note-s, body.dark-mode .wp-now, body.dark-mode .wp-filter label, body.dark-mode .wp-ap-list .wp-city { color: #aaa; }
body.dark-mode .wp-intro, body.dark-mode .wp-sum li, body.dark-mode .wp-ps { color: #e0e0e0; }
body.dark-mode #main .wp-h, body.dark-mode #main .wp-rel h2, body.dark-mode #main .wp-group-h, body.dark-mode #main .wp-group h3 { color: #4da6ff !important; }
body.dark-mode .wp-sum b, body.dark-mode .wp-pt, body.dark-mode #main .wp-ap-list b { color: #e0e0e0; }
body.dark-mode .wp-sum li, body.dark-mode .wp-rel li { border-bottom-color: #333; }
body.dark-mode .wp-raw { background: #2a2a2a; border-color: #444; color: #7cbfff; }
body.dark-mode .wp-periods li { background: #2a2a2a; border-color: #444; }
body.dark-mode #main .wp-btn { background: transparent; color: #4da6ff; border-color: #4da6ff; }
body.dark-mode #main .wp-btn.wp-primary { background: #1078b3; border-color: #1078b3; color: #fff; }
body.dark-mode .wp-fail { background: #3a3220; border-color: #6d5a20; color: #f0d890; }
body.dark-mode .wp-rel, body.dark-mode #main .wp-group h3 { border-color: #444; }
body.dark-mode .wp-filter input { background: #2a2a2a; color: #e0e0e0; border-color: #555; }
body.dark-mode span.wp-badge, body.dark-mode span.wp-tag { color: #fff !important; }
body.dark-mode span.wp-old { color: #ff6b6b !important; }
body.dark-mode span.wp-gust { color: #aaa !important; }
body.dark-mode table.wp-rwy th, body.dark-mode table.wp-rwy thead th { background-color: #1e2a36 !important; color: #e0e0e0 !important; border-color: #444 !important; }
body.dark-mode table.wp-rwy td, body.dark-mode table.wp-rwy tr:nth-child(even) td, body.dark-mode table.wp-rwy tr:nth-child(odd) td { background-color: #2a2a2a !important; color: #e0e0e0 !important; border-color: #3a3a3a !important; }
body.dark-mode table.wp-rwy tr.wp-best td, body.dark-mode table.wp-rwy tr.wp-best:nth-child(even) td, body.dark-mode table.wp-rwy tr.wp-best:nth-child(odd) td { background-color: #1f3a27 !important; }
body.dark-mode table.wp-rwy tr:hover td { filter: none !important; }
@media (max-width: 767px) {
    .wp-page { padding: 10px 5px; }
    .wp-page h1 { font-size: 21px; }
    .wp-filter input { width: 100%; font-size: 16px; }
    .wp-btn { padding: 9px 12px; }
    table.wp-rwy { font-size: 13px; }
    table.wp-rwy th, table.wp-rwy td { padding: 6px 6px; }
    table.wp-rwy th:nth-child(5), table.wp-rwy td:nth-child(5) { display: none; }
}

/* Runway diagram (js/wx-diagram.js), drawn in the browser; the same rules as flights/weather.aspx (keep in step). */
/* A square from the start (aspect-ratio), so the diagram drawn after load does not push the table down. */
.wp-diagram { max-width: 420px; margin: 4px auto 6px; aspect-ratio: 404 / 404; }
.wp-diagram[hidden] { display: none; }
.wx-svg svg { width: 100%; height: auto; display: block; }
.wx-svg .ring { fill: #fff; stroke: #c9d3dc; stroke-width: 2; }
.wx-svg .tick { stroke: #c9cdd2; stroke-width: 1; }
.wx-svg .tick-major { stroke: #9aa3ab; stroke-width: 1.5; }
.wx-svg .tick-card { stroke: #1078b3; stroke-width: 2.5; }
.wx-svg .compass { fill: #1078b3; font: bold 17px Arial, sans-serif; }
.wx-svg .bearing { fill: #8a939b; font: 11px Arial, sans-serif; letter-spacing: 0.3px; }
.wx-svg .rw { fill: #4a4f55; }
.wx-svg .rw-best { fill: #2e3338; }
.wx-svg .mark { fill: #fff; font: bold 13px Arial, sans-serif; }
.wx-svg .cl { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 6 5; }
.wx-svg .wind { fill: #e65100; stroke: #e65100; }
.wx-svg .best { fill: #2e7d32; }
.wx-svg .grw { stroke: #4a4f55; stroke-width: 8; }
.wx-svg .grw-best { stroke: #22272b; stroke-width: 9; }
.wx-svg .grw-dim { stroke: #b4b9bf; }
.wx-svg .gcl { stroke: #fff; stroke-width: 1; stroke-dasharray: 5 4; }
.wx-svg .glabel { fill: #333; font: bold 11px Arial, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.wx-svg .glabel-best { fill: #1b5e20; font-size: 12px; }
.wx-svg { flex-basis: 100%; max-width: 340px; margin: 0 auto; }
body.dark-mode .wx-svg .ring { fill: #1e1e1e; stroke: #4a5560; }
body.dark-mode .wx-svg .tick { stroke: #4a4f55; }
body.dark-mode .wx-svg .tick-major { stroke: #7a828a; }
body.dark-mode .wx-svg .tick-card { stroke: #4da6ff; }
body.dark-mode .wx-svg .compass { fill: #4da6ff; }
body.dark-mode .wx-svg .bearing { fill: #8a939b; }
body.dark-mode .wx-svg .rw { fill: #6b7178; }
body.dark-mode .wx-svg .rw-best { fill: #868d95; }
body.dark-mode .wx-svg .grw { stroke: #8a9097; }
body.dark-mode .wx-svg .grw-best { stroke: #d0d4d8; }
body.dark-mode .wx-svg .grw-dim { stroke: #4a4f55; }
body.dark-mode .wx-svg .gcl { stroke: #1e1e1e; }
body.dark-mode .wx-svg .glabel { fill: #e0e0e0; stroke: #1e1e1e; }
body.dark-mode .wx-svg .glabel-best { fill: #81c784; }
body.dark-mode .wx-svg .best { fill: #66bb6a; }
