/* Lochaber Weather - Mountain weather (wxmountains.php), Nov 2026.
   Summit cards use the .fc-hl styles from wxforecast.css. */
.mw-intro { color: var(--muted); max-width: 85ch; line-height: 1.55; }
.mw-empty { padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.mw-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.mw-h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.mw-small { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* map + now */
.mw-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; align-items: stretch; }
.mw-mapcard { padding: 10px; }
#mw-map { height: 380px; border-radius: 12px; background: #1b1f27; }
#mw-map img { max-width: none !important; max-height: none !important; }
.mw-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 2px; font-size: .8rem; color: var(--muted); }
.mw-k::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; }
.mw-k.w0::before { background: #3fa36b; } .mw-k.w1::before { background: #f0b429; }
.mw-k.w2::before { background: #e4572e; } .mw-k.w3::before { background: #9b1c31; }
.mw-label { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mw-now h2 { margin: 4px 0 0; font-size: 1.1rem; }
.mw-big { margin: 2px 0 8px; font: 700 2.6rem/1.1 "Space Grotesk", Inter, sans-serif; }
.mw-now dl { margin: 0; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.mw-now dl div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mw-now dt { font-size: .85rem; color: var(--muted); }
.mw-now dd { margin: 0; font-weight: 600; text-align: right; }
.mw-now dd span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.mw-now .mw-small { margin: 12px 0 0; }

/* at a glance */
.mw-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
#main-copy .mw-glance { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.mw-glance th, .mw-glance td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.mw-glance tbody tr:last-child th, .mw-glance tbody tr:last-child td { border-bottom: 0; }
.mw-glance thead th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mw-glance thead th span { font-weight: 400; }
.mw-glance thead th:first-child, .mw-glance tbody th { text-align: left; }
.mw-glance tbody th a { font-weight: 700; }
.mw-glance tbody th span { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.mw-glance td b { display: block; font-size: 1.05rem; }
.mw-glance td span { display: block; font-size: .8rem; }
.mw-glance td em { display: block; font-style: normal; font-size: .75rem; font-weight: 600; color: #7fb2ff; }
[data-theme="light"] .mw-glance td em { color: #1f5fd1; }
.mw-glance td span.mw-g { display: inline-block; margin: 3px 0 2px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.mw-g.w0 { background: rgba(63,163,107,.2); color: #5cc48a; }
.mw-g.w1 { background: #f0b429; color: #3a2a00; }
.mw-g.w2 { background: #e4572e; color: #fff; }
.mw-g.w3 { background: #9b1c31; color: #fff; }
[data-theme="light"] .mw-g.w0 { color: #1e7a4b; }
.mw-glance thead th:first-child, .mw-glance tbody th { width: 30%; }

/* cards and links */
.mw-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mw-cards .fc-hl-card { scroll-margin-top: 80px; }
.mw-go { margin-top: 22px; }
.mw-go h2 { margin: 0 0 6px; font-size: 1.15rem; }
.mw-go > p:first-of-type { margin: 0 0 10px; color: var(--muted); }
.mw-go ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mw-go li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.mw-go li a { font-weight: 700; }
.mw-go li span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 800px) {
  .mw-top { grid-template-columns: 1fr; }
  #mw-map { height: 300px; }
}
@media (max-width: 700px) {
  .mw-card { padding: 12px; }
  #main-copy .mw-glance { min-width: 0; font-size: .82rem; }
  .mw-glance th, .mw-glance td { padding: 7px 4px; }
  .mw-glance thead th:first-child, .mw-glance tbody th { width: 34%; padding-left: 8px; }
  .mw-glance thead th span, .mw-glance tbody th span { display: none; }
  .mw-glance thead th { white-space: normal; }
  .mw-glance td span.mw-g { padding: 1px 5px; font-size: .72rem; }
  .mw-cards { grid-template-columns: 1fr; }
}
