/* Shared chrome for the non-map pages (stats / flights / uk-days).
   Page-specific styles stay inline in each page's <head>. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a14; color: #ccc; padding: 20px 24px 60px;
}
a { color: #00b4ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* header: brand + page nav + data freshness */
header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brand { font-size: 17px; color: #fff; font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { color: #00b4ff; text-decoration: none; }
nav.pages { display: flex; gap: 3px; }
nav.pages a { padding: 4px 11px; border-radius: 6px; font-size: 13px; color: #8898a8; }
nav.pages a:hover { color: #fff; background: rgba(0,150,255,0.12); text-decoration: none; }
nav.pages a.here { background: rgba(0,150,255,0.18); color: #fff; pointer-events: none; }
#freshness { font-size: 11px; color: #666; margin-left: auto; }
#freshness.stale { color: #ffb347; }

/* stat tiles */
#tiles {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px; margin-bottom: 18px;
}
.tile {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 14px 16px;
}
.tile .v { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 13px; color: #888; font-weight: 400; }
.tile .k { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #777; margin-top: 4px; }
.tile .sub { font-size: 11px; color: #666; margin-top: 4px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 16px 18px;
}
.card.wide { grid-column: 1 / -1; }
.card h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #777; margin-bottom: 12px; }
.card .note { font-size: 10px; color: #555; margin-top: 10px; line-height: 1.5; }

/* simple key/value rows */
.srow { display: flex; justify-content: space-between; font-size: 12px;
    padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #aaa; }
.srow:last-child { border-bottom: none; }
.srow span:last-child { color: #777; font-variant-numeric: tabular-nums; }

#loading { font-size: 13px; color: #777; padding: 40px 0; }
footer { margin-top: 28px; font-size: 11px; color: #555; line-height: 1.7; max-width: 900px; }
