/* ==========================================================================
   Lochaber Weather - new look (Nov 2026)
   One stylesheet for the whole site. Night sky is the default theme; the
   light theme is used when <html data-theme="light"> (set by the toggle
   button in the header and remembered in the visitor's browser).

   To change a colour, change it once in the theme blocks below.
   ========================================================================== */

/* ---------- Theme colours ---------- */
:root,
[data-theme="night"] {
  color-scheme: dark;
  --bg:         #0B1626;   /* page background (night sky) */
  --surface:    #13233A;   /* cards, header, footer */
  --surface-2:  #1A2E4B;   /* boxes inside cards, table stripes */
  --hero:       #16304F;   /* highlighted panels */
  --border:     #28406A;
  --text:       #E8EEF6;
  --muted:      #A9B8CC;   /* secondary text */
  --accent:     #7BD3A0;   /* mountain green */
  --accent-ink: #0B1626;   /* text on accent */
  --link:       #8EC5FF;
  --link-hover: #C2E0FF;
  --warn-bg:    #3A2E10;
  --warn-line:  #F2B84B;
  --warn-text:  #FBE3A6;
  --red:        #FF8A80;   /* replaces the old pure red text */
  --blue:       #8EC5FF;   /* replaces the old pure blue text */
  --green:      #7BD3A0;
  --shadow:     0 1px 2px rgba(0,0,0,.35);
}
[data-theme="light"] {
  color-scheme: light;
  --bg:         #F2F5F9;
  --surface:    #FFFFFF;
  --surface-2:  #EDF2F8;
  --hero:       #E6EEF8;
  --border:     #D3DDEA;
  --text:       #10203A;
  --muted:      #4A5A70;
  --accent:     #1E7A4B;
  --accent-ink: #FFFFFF;
  --link:       #1D5FA8;
  --link-hover: #0E3F78;
  --warn-bg:    #FFF4D6;
  --warn-line:  #C98A00;
  --warn-text:  #4F3700;
  --red:        #C62828;
  --blue:       #1D5FA8;
  --green:      #1A6B42;
  --shadow:     0 1px 2px rgba(16,32,58,.08);
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--text);
  margin: 1.2em 0 .5em;
}
h1 { font-size: 1.9rem; margin-top: .2em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
/* old layout spacer images (spacer.gif) are not needed in the new look - and would stretch into big gaps */
img[src*="spacer.gif"] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
.doNotDisplay, .doNotPrint .doNotDisplay { display: none; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Page frame ---------- */
.nl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.nl-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.nl-header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 18px; padding-bottom: 14px;
}
.nl-brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--text); }
.nl-brand:hover { color: var(--text); }
.nl-logo { flex: none; width: 110px; height: 110px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.nl-brand-name {
  display: block; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700;
  font-size: 3.4rem; line-height: 1; letter-spacing: -1px;
}
.nl-brand-sub { display: block; margin-top: 6px; font-size: 1.3rem; color: var(--muted); }
.nl-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.nl-header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
/* rotating live conditions (ajax gizmo), right-aligned under the temperature */
.nl-gizmo { text-align: right; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.nl-gizmo .ajaxgizmo, .nl-gizmo .ajaxgizmo * { color: var(--muted); }
.nl-gizmo #gizmoindicator { color: var(--accent); }
.nl-gizmo img[src*="spacer.gif"] { display: none; }
.nl-gizmo img { vertical-align: middle; }
.nl-bigtemp {
  font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; font-size: 1.9rem; line-height: 1;
}
.nl-theme-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  color: var(--text); font: 600 .9rem Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer;
}
.nl-theme-btn:hover { border-color: var(--accent); }
.nl-theme-btn svg { width: 18px; height: 18px; }
/* the button offers the other theme: "Light" (sun) at night, "Night sky" (moon) in light */
.nl-to-light, .nl-to-night { display: inline-flex; align-items: center; gap: 8px; }
[data-theme="light"] .nl-to-light, :root:not([data-theme="light"]) .nl-to-night { display: none; }

/* centre strip under the header: frost / ice warnings and NexStorm alerts (only when there is one) */
.nl-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px;
  padding-bottom: 14px; font-size: .9rem; text-align: center;
}
.nl-strip img { vertical-align: middle; }
.nl-lightning a {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text);
  font-weight: 600; text-decoration: none;
}
.nl-lightning big { font-size: inherit; }
.nl-lightning img { max-height: 20px; width: auto; }
.nl-lightning.is-local a { background: #5A1A1A; border-color: #FF8A80; color: #FFE1DD; }
[data-theme="light"] .nl-lightning.is-local a { background: #FDE2E0; border-color: #C62828; color: #7A1010; }
.nl-frost:empty { display: none; }
/* frost / ice warning from frost_warning.php: shown as small pills instead of big headings */
.nl-frost { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.nl-frost br { display: none; }
.nl-frost h2 {
  display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  font: 600 .85rem Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .3px;
}
.nl-frost h2, .nl-frost font { color: var(--warn-text) !important; }

/* ---------- Main menu (built from flyout-menu.xml) ---------- */
.nl-nav { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.nl-nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text);
  font: 600 .95rem Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer;
}
.nl-menu, .nl-menu ul { list-style: none; margin: 0; padding: 0; }
.nl-menu { display: flex; flex-wrap: wrap; gap: 0; padding: 6px 0; }
@media (min-width: 1200px) { .nl-menu { justify-content: space-between; } .nl-nav > .nl-wrap { max-width: 1320px; } }  /* one even row on wide screens */
.nl-menu > li { position: relative; }
.nl-menu a, .nl-menu summary {
  display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px;
  border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.nl-menu summary { list-style: none; }
.nl-menu summary::-webkit-details-marker { display: none; }
.nl-menu summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nl-menu details[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nl-menu a:hover, .nl-menu summary:hover, .nl-menu details[open] > summary { background: var(--surface-2); }
.nl-menu a[aria-current="page"] { background: var(--hero); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.nl-menu details ul {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 230px; padding: 6px; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.nl-menu > li > details > ul { max-height: 70vh; overflow-y: auto; }
@media (min-width: 1200px) { .nl-menu > li:last-child > details > ul { left: auto; right: 0; } }  /* keep the last drop-down on screen */
.nl-menu details details ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }

/* ---------- Main content ---------- */
.nl-main { padding-top: 20px; padding-bottom: 28px; }
#main-copy {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px 28px; box-shadow: var(--shadow); overflow-x: auto;
  margin: 0; width: auto; color: var(--text); text-align: left;
}
#main-copy p { max-width: 75ch; }
#main-copy p[align="center"], #main-copy center p, #main-copy div[align="center"] p { margin-left: auto; margin-right: auto; }

/* tables used by the existing pages */
#main-copy table { border-collapse: collapse; max-width: 100%; color: var(--text); }
#main-copy th, #main-copy td { border-color: var(--border); }
#main-copy table[border="1"] td, #main-copy table[border="1"] th { border: 1px solid var(--border); padding: 4px 8px; }
#main-copy [bgcolor], #main-copy td[style*="background"], #main-copy tr[style*="background"] { background: var(--surface-2) !important; color: var(--text) !important; }
#main-copy font[color] { color: inherit; }
.table-top, .datahead {
  background: var(--surface-2) !important; color: var(--text) !important;
  font-weight: 600; text-align: center;
}

/* pages that are not wrapped in #main-copy still get readable text */
.nl-main { color: var(--text); }

/* show/hide panel on the Space Weather page */
#flip, #panel { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important; border-radius: 10px; max-width: 100%; }
#flip { cursor: pointer; }

/* boxes used by the warnings and live-update scripts */
.advisoryBox, .advisoryBox2 {
  background: var(--warn-bg) !important; color: var(--warn-text) !important;
  border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px;
  font-size: .95rem; text-align: left;
}
.advisoryBox a, .advisoryBox2 a { color: var(--warn-text); font-weight: 600; }
ul.feed-lists { padding: 0; margin: 0 0 16px; }
.feed-item {
  text-align: left !important; background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
}
.feed-item br { display: none; }
.feed-title a { color: var(--warn-text); }
.feed-description { color: var(--warn-text); font-size: .9rem; }

/* ---------- Homepage dashboard (stage 1: restyled; stage 2 rebuilds it as cards) ---------- */
.ajaxDashboard { width: 100% !important; color: var(--text); }
.ajaxDashboard table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ajaxDashboard .datahead { padding: 8px; border-radius: 10px 10px 0 0; font-size: .95rem; }
.ajaxDashboard .data1 { color: var(--text); font-size: .85rem; padding: 2px 4px; }
.ajaxDashboard .data2 { color: var(--muted); font-size: .8rem; }
.ajaxDashboard > table > tbody > tr > td,
.ajaxDashboard > table > tr > td { vertical-align: top; }
.ajaxDashboard [style*="color:#F00"], .ajaxDashboard [style*="color: #F00"], .ajaxDashboard [style*="color:#f00"] { color: var(--red) !important; }
.ajaxDashboard [style*="color:#00F"], .ajaxDashboard [style*="color: #00F"],
.ajaxDashboard [style*="color: #4863A0"], .ajaxDashboard [style*="color: #1A5C9E"], .ajaxDashboard [style*="color:#0066CC"] { color: var(--blue) !important; }
.ajaxDashboard [style*="color:#33CC00"], .ajaxDashboard [style*="color: #33CC00"] { color: var(--green) !important; }
.ajaxDashboard [style*="color:#000000"], .ajaxDashboard [style*="color: #000000"] { color: var(--accent-ink) !important; }
.ajaxDashboard input[type="button"], .ajaxDashboard button {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: 600 .85rem Inter, "Segoe UI", sans-serif; cursor: pointer;
}

/* ---------- Footer ---------- */
.nl-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.nl-footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 24px; padding-bottom: 16px;
}
.nl-footer h2 { font-size: .95rem; margin: 0 0 8px; color: var(--text); }
.nl-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nl-footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nl-footer-logos img { display: block; max-height: 100px; width: auto; }
.nl-footer-base { border-top: 1px solid var(--border); padding-top: 14px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.nl-footer-base p { margin: 0; }
.statcounter img { display: inline; vertical-align: middle; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 760px) {
  .nl-wrap { padding: 0 12px; }
  .nl-nav-toggle { display: inline-flex; }
  .nl-menu { display: none; flex-direction: column; padding: 0 0 10px; }
  .nl-nav.is-open .nl-menu { display: flex; }
  .nl-menu a, .nl-menu summary { min-height: 44px; white-space: normal; }
  .nl-menu details ul { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin-left: 12px; padding: 0 0 0 6px; min-width: 0; }
  #main-copy { padding: 14px 12px 20px; border-radius: 12px; }
  .nl-brand { gap: 12px; }
  .nl-logo { width: 72px; height: 72px; }
  .nl-brand-name { font-size: 1.8rem; }
  .nl-brand-sub { font-size: 1rem; }
  .nl-header-right { align-items: flex-start; margin-left: 0; }
  .nl-header-tools { justify-content: flex-start; }
  .nl-gizmo { text-align: left; }
  h1 { font-size: 1.55rem; }
  .ajaxDashboard .data1 { font-size: .8rem; }
}

/* ---------- Printing ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nl-nav, .nl-theme-btn, .nl-strip, .doNotPrint, .nl-footer-logos { display: none !important; }
  #main-copy { border: 0; box-shadow: none; padding: 0; background: #fff; color: #000; }
  .nl-header, .nl-footer { background: #fff; border: 0; color: #000; }
  a { color: #000; }
}

/* ==========================================================================
   Homepage dashboard as cards (nl-dashboard.php)
   ========================================================================== */
.nl-dash { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.nl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; min-width: 0; box-shadow: var(--shadow);
}
#main-copy .nl-card { background: var(--surface-2); border-color: var(--border); box-shadow: none; }
.nl-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.nl-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.nl-card-head h2 { margin: 0; }
.nl-card-head a, .nl-links a { font-size: .9rem; font-weight: 600; }
.nl-links { margin: 10px 0 0; font-size: .9rem; }
.nl-label { font-size: .8rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.nl-muted { color: var(--muted); font-size: .9rem; }
.nl-unit { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 3px; }
.nl-num { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.8rem; font-weight: 600; line-height: 1.15; }
.nl-num-s { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.35rem; font-weight: 600; }
.nl-accent-fill { fill: var(--accent); }
.nl-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nl-sep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.nl-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.nl-dl dt { color: var(--muted); }
.nl-dl dd { margin: 0; text-align: right; font-weight: 500; }
.nl-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }

/* toolbar */
.nl-dash-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: .9rem; color: var(--muted); }
.nl-units {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); font: 700 .85rem Inter, "Segoe UI", sans-serif; letter-spacing: .4px; cursor: pointer; color: var(--muted);
}
/* the live script colours the chosen unit blue and the other grey - restyle those colours */
.nl-units span[style*="blue"] { color: var(--accent) !important; }
.nl-units span[style*="gray"], .nl-units span[style*="grey"] { color: var(--muted) !important; }
.nl-updated #ajaxindicator { color: var(--accent); }

/* right now */
.nl-now { display: flex; flex-wrap: wrap; gap: 18px; }
.nl-hero { flex: 1 1 360px; background: var(--hero) !important; display: flex; flex-direction: column; gap: 14px; }
.nl-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.nl-bignum { font-family: "Space Grotesk", Inter, sans-serif; font-size: 4.6rem; font-weight: 600; line-height: 1; margin-top: 6px; }
.nl-cond { font-size: 1.15rem; font-weight: 500; margin-top: 8px; }
.nl-condicon { flex: none; width: 96px; height: auto; }
.nl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-pill { padding: 5px 12px; border-radius: 999px; background: var(--surface); font-size: .9rem; }
.nl-hi b { color: var(--red); } .nl-lo b { color: var(--blue); }
.nl-stats { flex: 2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.nl-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }

/* forecast */
.nl-fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.nl-fc { background: var(--surface); border-radius: 12px; padding: 10px; text-align: center; font-size: .85rem; }
.nl-fc-icon img { max-width: 64px; height: auto; display: block; margin: 4px auto; }
.nl-fc-icon b, .nl-fc-icon strong { font-size: .9rem; }
.nl-fc-temp { margin-top: 4px; font-weight: 600; }
.nl-fc-temp span[style*="color"] { filter: brightness(1.25); }
.nl-fc-text { margin-top: 12px; font-size: .92rem; }
.nl-fc-text p { margin: 0 0 6px; max-width: none; }

/* detail grid */
.nl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.nl-wide { grid-column: 1 / -1; }
.nl-compass { color: var(--text); flex: none; }
.nl-tides { display: grid; grid-template-columns: 1fr; gap: 8px; font-size: .88rem; text-align: left; }  /* one day under another */
.nl-tides > div { background: var(--surface); border-radius: 10px; padding: 8px 12px; white-space: nowrap; line-height: 1.5; }
.nl-tides img { max-width: 100%; height: auto; }
.nl-ferry table { width: 100% !important; border: 0 !important; }
.nl-ferry td { background: transparent !important; padding: 6px !important; vertical-align: middle; }
.nl-ferry .datahead { border-radius: 8px; }
.nl-ferry font { color: inherit !important; font-family: inherit !important; }
.nl-aurora img { display: block; width: 100%; max-width: 260px; height: auto; margin: 12px auto 0; border-radius: 12px; }

/* maps, radar, webcam */
.nl-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.nl-maps a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 500; }
.nl-maps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.nl-media-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

/* notes */
.nl-notes summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.nl-notes ol { margin: 10px 0 0; padding-left: 20px; font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .nl-bignum { font-size: 3.6rem; }
  .nl-card { padding: 14px; }
  .nl-condicon { width: 72px; }
}
/* forecast high/low colours from WXSIM: make them readable in both themes */
.nl-fc-temp [style*="blue" i], .nl-fc-temp [style*="#00f" i], .nl-fc-temp font[color*="blue" i], .nl-fc-temp font[color*="#00f" i] { color: var(--blue) !important; }
.nl-fc-temp [style*="red" i], .nl-fc-temp [style*="#f00" i], .nl-fc-temp [style*="#ff0000" i], .nl-fc-temp font[color*="red" i], .nl-fc-temp font[color*="#f00" i] { color: var(--red) !important; }
.nl-fc-temp span[style*="color"] { filter: none; }
#main-copy .nl-dash p { margin-left: 0; margin-right: 0; max-width: none; }

/* ---- dashboard card layout: 3 columns on wide screens, 2 on tablets, 1 on phones ---- */
.nl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nl-span2 { grid-column: span 2; }
@media (max-width: 1000px) { .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .nl-grid { grid-template-columns: minmax(0, 1fr); } .nl-span2 { grid-column: auto; } }

/* Sun & Moon: pie chart centred with the text underneath */
.nl-sunmoon .nl-row { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.nl-sunmoon .nl-sep { width: 100%; }

/* ---------- WXSIM 5-day forecast page (wxforecast2.php, nordicweather script) ----------
   The script's own CSS assumes a light page; these rules make its tables follow the theme. */
#main-copy .wxsimtbl { background: var(--surface) !important; color: var(--text); border-color: var(--border); box-shadow: none; }
#main-copy .wxsimtbl td { color: var(--text); }
#main-copy .wxsimdata { background: var(--surface); }
#main-copy .wxsimdataodd { background: var(--surface-2); }
#main-copy .wxsimdata:hover, #main-copy .wxsimdataodd:hover { background: var(--hero); }
#main-copy .wxsimtbl_header, #main-copy .wxsimtbl th { background: var(--hero); color: var(--text); text-shadow: none; }
#main-copy .wxsimtbl tr.wxsimdateline td { background: var(--hero); color: var(--text); text-shadow: none; }
#main-copy .wxsimtbl td.infobox2 { background: var(--surface-2); color: var(--muted); }
#wxsimtabs .tabs > div[style*="f2f2f2"] { display: none; }   /* light strip the script draws over the tab edge */
.flotwrap { border-radius: 10px; overflow: hidden; }

/* ---------- Cookie consent banner (CookieConsent v3) - matches the site theme ---------- */
#cc-main {
  --cc-font-family: inherit;
  --cc-bg: var(--surface);
  --cc-primary-color: var(--text);
  --cc-secondary-color: var(--muted);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: var(--accent-ink);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--link-hover);
  --cc-btn-primary-hover-color: var(--accent-ink);
  --cc-btn-primary-hover-border-color: var(--link-hover);
  --cc-btn-secondary-bg: var(--surface-2);
  --cc-btn-secondary-color: var(--text);
  --cc-btn-secondary-border-color: var(--border);
  --cc-btn-secondary-hover-bg: var(--hero);
  --cc-btn-secondary-hover-color: var(--text);
  --cc-btn-secondary-hover-border-color: var(--border);
  --cc-separator-border-color: var(--border);
  --cc-toggle-off-bg: var(--muted);
  --cc-toggle-readonly-bg: var(--border);
  --cc-cookie-category-block-bg: var(--surface-2);
  --cc-cookie-category-block-border: var(--border);
  --cc-cookie-category-block-hover-bg: var(--hero);
  --cc-cookie-category-block-hover-border: var(--border);
  --cc-cookie-category-expanded-block-hover-bg: var(--hero);
  --cc-footer-bg: var(--surface-2);
  --cc-footer-color: var(--muted);
  --cc-footer-border-color: var(--border);
  --cc-link-color: var(--link);
}
#cc-main .cm, #cc-main .pm { border: 1px solid var(--border); }
