/* Lochaber Weather - WXSIM forecast page (wxforecast2.php), Nov 2026 */
.fx { --fx-rain: #5aa9ff; --fx-night: rgba(4, 10, 22, .28); --fx-grid: color-mix(in srgb, var(--border) 70%, transparent);
  --fx-t: #ffb86b; --fx-fl: #c9a3ff; --fx-dp: #63d2c6; --fx-ws: #7bd3a0; --fx-g: #7bd3a0; --fx-p: #d7b6ff; }
[data-theme="light"] .fx { --fx-rain: #2f7fd8; --fx-night: rgba(29, 60, 110, .07); --fx-t: #d2691e; --fx-fl: #7b4fc9;
  --fx-dp: #11867b; --fx-ws: #1e7a4b; --fx-g: #1e7a4b; --fx-p: #8a4fd0; }

.fx h1 { margin: 0 0 4px; font-size: 1.6rem; }
.fx-sub { margin: 0; color: var(--muted); max-width: 90ch; line-height: 1.5; }
.fx-sub strong { color: var(--text); }
.fx-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); padding: 10px 14px; border-radius: 12px; }
.fx-note { color: var(--muted); }
.fx-head { margin-bottom: 16px; }

/* temperature colours (same scale as the rest of the site) */
.fx .t0 { color: #7fb2ff; } .fx .t1 { color: #63d2c6; } .fx .t2 { color: #8fd36a; }
.fx .t3 { color: #f2c94c; } .fx .t4 { color: #f2994a; } .fx .t5 { color: #eb5757; }
[data-theme="light"] .fx .t0 { color: #1f5fd1; } [data-theme="light"] .fx .t1 { color: #11867b; } [data-theme="light"] .fx .t2 { color: #3f8a1c; }
[data-theme="light"] .fx .t3 { color: #a87800; } [data-theme="light"] .fx .t4 { color: #c25a0c; } [data-theme="light"] .fx .t5 { color: #c0392b; }

.fx-arr { vertical-align: -3px; margin-right: 3px; fill: currentColor; opacity: .85; }

/* ---- Now ---- */
.fx-now { display: grid; grid-template-columns: minmax(260px, auto) 1fr; gap: 14px 24px; align-items: center;
  background: linear-gradient(135deg, var(--hero), var(--surface-2)); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.fx-now-main { display: flex; align-items: center; gap: 14px; }
.fx-now-ico { width: 112px; height: 112px; flex: none; }
.fx-now-lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fx-big { display: block; font-size: 3rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fx-now-tx { display: block; color: var(--muted); }
.fx-now-words h2 { margin: 0 0 4px; font-size: 1rem; }
.fx-now-words p { margin: 0; line-height: 1.5; }
.fx-tiles { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-tiles li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.fx-tiles span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx-tiles strong { display: block; font-size: 1.15rem; margin: 2px 0; }
.fx-tiles em { font-style: normal; font-size: .8rem; color: var(--muted); }

/* ---- Sections ---- */
.fx-sec { margin-top: 26px; }
.fx-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.fx-sec-head h2 { margin: 0; font-size: 1.2rem; }
.fx-sec-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.fx-key { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* ---- Hour by hour ---- */
.fx-hours { display: flex; overflow-x: auto; gap: 0; padding: 6px 0 10px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--border); scroll-snap-type: x proximity; scrollbar-width: thin; }
.fx-hr { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-align: center; }
.fx-hr.night { background: var(--fx-night); }
.fx-hr.newday { border-left: 1px dashed var(--border); }
.fx-hr-time { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-hr-day { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; min-height: 1em; }
.fx-hr img { width: 44px; height: 44px; }
.fx-hr-t { font-weight: 800; font-size: 1.05rem; }
.fx-hr-rain { position: relative; width: 34px; height: 30px; border-radius: 6px; background: color-mix(in srgb, var(--fx-rain) 10%, transparent);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.fx-hr-rain i { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--fx-rain) 55%, transparent); }
.fx-hr-rain b { position: relative; font-size: .75rem; padding-bottom: 2px; }
.fx-hr-rain.dry b { color: var(--muted); font-weight: 400; }
.fx-hr-wind { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---- Day picker ---- */
.fx-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fx-day { font: inherit; color: var(--text); text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 12px 8px; transition: transform .15s, border-color .15s, background .15s; }
.fx-day:hover { transform: translateY(-2px); border-color: var(--accent); }
.fx-day[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--surface-2) 82%, var(--accent) 18%);
  box-shadow: 0 0 0 1px var(--accent) inset; }
.fx-day-name { font-weight: 800; }
.fx-day-date { font-size: .75rem; color: var(--muted); }
.fx-day img { width: 64px; height: 64px; }
.fx-day-cond { font-size: .78rem; color: var(--muted); min-height: 2.3em; line-height: 1.15; display: flex; align-items: center; }
.fx-day-temps { display: flex; gap: 10px; align-items: baseline; }
.fx-day-temps b { font-size: 1.35rem; font-weight: 800; }
.fx-day-temps i { font-style: normal; font-size: 1rem; font-weight: 700; opacity: .9; }
.fx-range { position: relative; width: 86%; height: 6px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.fx-range i { position: absolute; top: -1px; bottom: -1px; border-radius: 9px; background: linear-gradient(90deg, #63d2c6, #f2c94c, #f2994a); }
.fx-day-rain { font-size: .82rem; font-weight: 700; color: var(--fx-rain); margin-top: 4px; }
.fx-day-rain em { font-style: normal; font-weight: 500; color: var(--muted); }
.fx-day-wind { font-size: .78rem; color: var(--muted); }
.fx-day-wind em { font-style: normal; opacity: .8; }

/* ---- Day details ---- */
.fx-dd { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.fx-dd h3 { margin: 0 0 10px; font-size: 1.1rem; }
.fx-dd-words { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.fx-dd-p { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.fx-dd-p.night { background: color-mix(in srgb, var(--surface) 86%, #34507f 14%); }
.fx-dd-p img { width: 52px; height: 52px; flex: none; }
.fx-dd-p h4 { margin: 0 0 3px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fx-dd-p h4 span { font-size: .85rem; font-weight: 800; }
.fx-dd-p p { margin: 0; font-size: .9rem; line-height: 1.45; }
.fx-dd-p .fx-dd-meta { margin-top: 5px; font-size: .8rem; color: var(--muted); }
.fx-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fx-facts > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.fx-facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx-facts dd { margin: 2px 0 0; font-weight: 700; }
.fx-facts dd span { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.fx-facts .cold { border-color: #7fb2ff; } .fx-facts .cold dd { color: #7fb2ff; }
.fx-facts .warn { border-color: var(--warn-line); } .fx-facts .warn dd { color: var(--warn-line); }
[data-theme="light"] .fx-facts .cold dd { color: #1f5fd1; }

/* ---- Graphs ---- */
.fx-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.fx-seg button { font: inherit; font-size: .82rem; color: var(--text); background: var(--surface-2); border: 0; padding: 6px 12px; cursor: pointer; }
.fx-seg button + button { border-left: 1px solid var(--border); }
.fx-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.fx-graph { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 6px 4px; touch-action: pan-y; min-height: 200px; }
.fx-graph:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fx-graph svg { display: block; width: 100%; height: auto; user-select: none; }
.fx-graph text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.fx-graph .ttl { fill: var(--text); font-weight: 700; font-size: 11.5px; }
.fx-graph .day { fill: var(--text); font-weight: 700; font-size: 12px; }
.fx-graph .grid { stroke: var(--fx-grid); stroke-width: 1; }
.fx-graph .mid { stroke: var(--border); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fx-graph .zero { stroke: #7fb2ff; stroke-width: 1.2; stroke-dasharray: 5 4; }
.fx-graph .nite { fill: var(--fx-night); }
.fx-graph .cur { stroke: var(--text); stroke-width: 1; opacity: .8; }
.fx-graph .now { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 3; }
.fx-graph .dot { stroke: var(--surface-2); stroke-width: 2; }
.fx-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 10px; font-size: .82rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); min-width: 190px; }
.fx-tip h4 { margin: 0 0 4px; font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.fx-tip h4 img { width: 34px; height: 34px; }
.fx-tip table { border-collapse: collapse; width: 100%; }
.fx-tip td { padding: 1px 0; }
.fx-tip td + td { text-align: right; font-weight: 700; padding-left: 12px; font-variant-numeric: tabular-nums; }
.fx-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.fx-key .k { display: inline-block; white-space: nowrap; }
.fx-key .k::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin: 0 4px 3px 8px; vertical-align: middle; background: currentColor; }
.fx-key .k.t::before { background: linear-gradient(90deg, #7fb2ff, #63d2c6, #8fd36a, #f2c94c, #f2994a); height: 4px; } .fx-key .k.fl::before { background: var(--fx-fl); }
.fx-key .k.dp::before { background: var(--fx-dp); } .fx-key .k.r::before { background: var(--fx-rain); height: 9px; }
.fx-key .k.rt::before { background: none; border-top: 2px dashed var(--fx-rain); height: 0; }
.fx-key .k.ws::before { background: var(--fx-ws); } .fx-key .k.g::before { background: color-mix(in srgb, var(--fx-g) 30%, transparent); height: 9px; }
.fx-key .k.p::before { background: var(--fx-p); } .fx-key .k.n::before { background: var(--fx-night); height: 9px; border: 1px solid var(--border); }

/* ---- Words ---- */
.fx-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-w { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.fx-w.night { background: color-mix(in srgb, var(--surface-2) 86%, #34507f 14%); }
.fx-w img { width: 44px; height: 44px; flex: none; }
.fx-w h3 { margin: 0 0 2px; font-size: .95rem; }
.fx-w p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.fx-credit { font-size: .8rem; color: var(--muted); margin-top: 18px; }

@media (max-width: 900px) {
  .fx-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .fx-now { grid-template-columns: 1fr; padding: 14px; }
  .fx-now-ico { width: 88px; height: 88px; }
  .fx-big { font-size: 2.4rem; }
  .fx-dd-words, .fx-words { grid-template-columns: 1fr; }
  .fx-dd { padding: 12px 10px; }
}
@media (max-width: 480px) {
  .fx-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-tiles { grid-template-columns: 1fr 1fr; }
  .fx-tiles strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .fx-day { transition: none; } .fx-day:hover { transform: none; } }

/* ---- Grass & soil ---- */
.fx-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
#main-copy .fx-soil-t { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.fx-soil-t th, .fx-soil-t td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fx-soil-t thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.fx-soil-t tbody th { text-align: left; font-weight: 700; }
.fx-soil-t tbody tr:last-child th, .fx-soil-t tbody tr:last-child td { border-bottom: 0; }
.fx-soil-t td { font-weight: 600; }
.fx-soil-t .frost { font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #7fb2ff; color: #0b1626; }
.fx-soil-t .up { color: var(--fx-rain); font-size: .7rem; } .fx-soil-t .dn { color: #d4a373; font-size: .7rem; }
.fx-soil-g { margin-top: 12px; }

.fx-aside { margin: 10px 0 0; padding: 9px 12px; font-size: .85rem; line-height: 1.45; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--warn-line); }
