/* Lochaber Weather - local lightning detector page (wxlightning.php), Nov 2026 (v2: own map, no NSDisplay) */
.lx-intro { color: var(--muted); max-width: 88ch; }
.lx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.lx-tile strong { font-size: 1.4rem; }
.lx-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.lx-tile > span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.lx-tile strong { display: block; font: 600 1.55rem/1.2 "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-tile em { display: block; font-style: normal; font-size: .85rem; color: var(--muted); }
.lx-tile.is-active { border-left: 5px solid #f2c744; background: color-mix(in srgb, #f2c744 10%, var(--surface-2)); }
.lx-tile.is-active strong { color: #f2c744; }

.lx-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; min-width: 0; }
.lx-card h2 { margin: 0; font-size: 1.15rem; }
.lx-card > h2 { margin-bottom: 12px; }
.lx-card h3 { margin: 18px 0 8px; font-size: 1rem; }
.lx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.lx-pill { padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lx-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); max-width: 95ch; }
.lx-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.lx-two .lx-card { margin-bottom: 16px; }
.lx-hist { grid-template-columns: 1fr 1fr; }
.lx-hist[hidden], .lx-range[hidden] { display: none; }
.lx-head .lx-range + .lx-range { margin-left: auto; }

/* map */
#lx-map { height: 600px; border-radius: 12px; background: #1b1f27; }
.lx-range { display: flex; gap: 6px; flex-wrap: wrap; }
.lx-range button { font: inherit; font-size: .85rem; padding: 4px 12px; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.lx-range button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.lx-ringlbl { color: #9fb3d1; font-size: 10px; text-align: center; text-shadow: 0 0 3px #000; white-space: nowrap; }
.lx-home span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #3d9be0; border: 3px solid #fff; box-shadow: 0 0 0 1px #000, 0 0 0 6px rgba(61,155,224,.35); }
.lx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 4px 0; font-size: .8rem; color: var(--muted); }
.lx-leg-t { font-weight: 600; color: var(--text); margin-left: 4px; }
.lx-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid #111; }
.lx-legend i.is-cg { background: #ffe14d; width: 12px; height: 12px; }
.lx-legend i.is-ic { background: transparent; border: 2px solid #ffe14d; width: 8px; height: 8px; }
.lx-legend i.is-storm { background: rgba(255,153,0,.2); border: 2px solid #ff9900; width: 12px; height: 12px; }

/* charts */
.lx-chart { display: block; width: 100%; height: auto; }
.lx-chart .lx-grid { stroke: var(--border); }
.lx-chart .lx-ax { fill: var(--muted); font-size: 11px; }
.lx-tb { display: grid; grid-template-columns: 38px 1fr 56px 40px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.lx-tb:first-child { border-top: 0; }
.lx-tb span { font-weight: 700; }
.lx-tbar { height: 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.lx-tbar i { display: block; height: 100%; border-radius: 6px; }
.lx-tb strong { text-align: right; }
.lx-tb em { font-style: normal; color: var(--muted); text-align: right; font-size: .85rem; }

/* storms */
.lx-quiet { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--green, #2e9e5b); }
.lx-quiet > span { font-size: 2rem; line-height: 1; color: var(--muted); }
.lx-quiet div { color: var(--muted); font-size: .88rem; }
.lx-quiet strong { color: var(--text); font-size: 1rem; }
.lx-scroll { overflow-x: auto; }
.lx-trac { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 680px; }
.lx-trac th, .lx-trac td { padding: 8px 10px; border-top: 1px solid var(--border); text-align: left; white-space: nowrap; }
.lx-trac thead th { border-top: 0; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.lx-old td { font-size: .9rem; }
.lx-int { display: inline-block; padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; text-transform: capitalize; }
.lx-int.is-weak { background: #36a852; color: #fff; }
.lx-int.is-moderate { background: #ff9900; color: #2b1d05; }
.lx-int.is-strong { background: #ff6600; color: #fff; }
.lx-int.is-severe { background: #cc0000; color: #fff; }
.lx-al { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; background: #ff9900; color: #2b1d05; }
.lx-al.is-sev { background: #cc0000; color: #fff; }

/* types */
.lx-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lx-types div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: .9rem; line-height: 1.45; }
.lx-types b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.4); }
.lx-types strong { margin-right: 4px; }

@media (max-width: 1150px) { .lx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lx-two, .lx-types { grid-template-columns: minmax(0, 1fr); } #lx-map { height: 460px; } }
@media (max-width: 600px) { .lx-card { padding: 14px 10px; } .lx-tile strong { font-size: 1.25rem; } #lx-map { height: 380px; } }
