/* Banano Node Monitor, classic layout: the PHP Nano Node Monitor's horizontal
   page (navbar, banner, four columns), ported for theme = "classic",
   "classic-dark" and "classic-light" (2026-10-24).
   Dark palette: the PHP "banano-modern" theme. Light palette: the PHP "banano"
   theme. Layout: the parts of Bootstrap 4 that page used, with Bootstrap's own
   sizes, plus the monitor's main.css. Fonts: Inter (dark) and Nunito (light),
   SIL Open Font License 1.1 (see /static/fonts/), served from here: this page
   fetches nothing from third parties. The clipboard icon is Font Awesome's
   (CC BY 4.0). */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
/* The Cyrillic of both, loaded only for text that needs it (Ukrainian). */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* And their Vietnamese, loaded only for text that needs it. */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-vietnamese.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-vietnamese.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* And their Latin Extended-A (Polish ą ę ł ś ż, Turkish ğ İ ş, Azerbaijani ə…), loaded
   only for text that needs it; the letters the Vietnamese files carry are
   theirs. */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-ext-v2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0167, U+016A-017F, U+018F, U+0259;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-latin-ext-v2.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0167, U+016A-017F, U+018F, U+0259;
}

/* ── Palette ──────────────────────────────────────────────────────────────
   Dark ("banano-modern"). The other palettes are separate files linked after
   this one: classic-light.css, classic-nano.css, classic-nano-light.css. */
:root {
  color-scheme: dark;
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --bg: #0d0d0f;
  --glow-1: rgba(251, 221, 17, 0.10);
  --glow-2: rgba(255, 200, 87, 0.06);
  --text: #e8e6de;
  --heading: #f7f5ee;
  --accent: #fbdd11;
  --link: #fbdd11;
  --link-hover: #fde75c;
  --link-hover-line: none;
  --line: rgba(255, 255, 255, 0.08);
  --body-top: 130px;

  --nav-bg: rgba(13, 13, 15, 0.78);
  --nav-bg-open: #0d0d0f; /* solid: nothing shows through the open menu */
  --nav-blur: blur(14px);
  --nav-line: 1px solid rgba(255, 255, 255, 0.08);
  --nav-pad: 1.1% 0;
  --nav-size: 1.05rem;
  --nav-weight: 500;
  --logo-color: #f7f5ee;
  --logo-weight: 600;
  --logo-spacing: 0.01em;
  --navlink: #9a9488;
  --navlink-hover: #f7f5ee;
  --navlink-hover-bg: rgba(255, 255, 255, 0.055);
  --toggler: #fbdd11;

  --h3-size: 0.82rem;
  --h3-weight: 600;
  --h3-color: #9a9488;
  --h3-case: uppercase;
  --h3-spacing: 0.14em;
  --h3-pad: 0;
  --h3-rule: 0;
  --h3-gap: 0.8rem;

  --p-size: 0.92rem;
  --p-line: 1.45rem;
  --p-spacing: 0.01em;
  --lead-color: #f7f5ee;
  --lead-weight: 500;

  --panel-bg: rgba(255, 255, 255, 0.035);
  --panel-line: rgba(255, 255, 255, 0.08);
  --panel-radius: 14px;
  --panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --panel-lift: translateY(-2px);
  --panel-hover-line: rgba(251, 221, 17, 0.35);
  --item-bg: transparent;
  --item-pad: 0.85rem 1.1rem;
  --label: #9a9488;
  --value: #f7f5ee;
  --item-link: #fbdd11;
  --addr: #fbdd11;

  --hr: rgba(255, 255, 255, 0.08);
  --hr-opacity: 1;
  --foot: #9a9488;
  --foot-link: #9a9488;
  --foot-link-hover: #fbdd11;
  --clip: #9a9488;
  --clip-hover: #fbdd11;

  --alert-bg: rgba(251, 221, 17, 0.15);
  --alert-line: rgba(251, 221, 17, 0.4);
  --alert-text: #f7f5ee;
  --alert-link: #fbdd11;
  --alert-radius: 14px;
  --widget-radius: 14px;
  --widget-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);

  /* Same for both Banano palettes; Nano's set their own. */
  --selection: rgba(251, 221, 17, 0.15);
  --item-text: var(--text);
  --acct-label: var(--text);
  --bg-art: none;
  --social-bg: rgba(255, 255, 255, 0.055);
  --social-line: rgba(255, 255, 255, 0.08);
  --social-text: #e8e6de;
  --social-hover-bg: rgba(251, 221, 17, 0.15);
  --social-hover-line: #fbdd11;
  --social-hover-text: #f7f5ee;
  --social-radius: 10px;
}


/* ── Base (Bootstrap 4 reboot) ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--body-top);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    var(--bg-art),
    radial-gradient(900px 480px at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(800px 420px at 92% 4%, var(--glow-2), transparent 60%);
  background-position: center right, 0 0, 0 0;
  background-size: 800px auto, auto, auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); }
a { color: var(--link); text-decoration: none; transition: color 0.15s ease-in-out; }
a:hover { color: var(--link-hover); text-decoration: var(--link-hover-line); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; border-radius: 4px; }
img { vertical-align: middle; }
p { margin: 0 0 1rem; font-size: var(--p-size); line-height: var(--p-line); letter-spacing: var(--p-spacing); }
strong { font-weight: bolder; }
[hidden] { display: none !important; }

/* ── Grid ────────────────────────────────────────────────────────────── */
/* Fluid at every width, so it never sits narrower than the screen, until
   the screen fits 1280px; then it stays 1280px, centred. */
.container { width: 100%; max-width: 1280px; padding: 0 15px; margin: 0 auto; }
.grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.grid__col { position: relative; width: 100%; min-width: 0; padding: 0 15px; }
.grid__col--fill { flex: 1 0 0%; max-width: 100%; }
@media (min-width: 576px) { .banner__text, .banner__widget { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 992px) {
  .grid__col--quarter { flex: 0 0 25%; max-width: 25%; }
  .banner__widget { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .banner__text { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1030;
  padding: var(--nav-pad);
  background-color: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur); backdrop-filter: var(--nav-blur);
  border-bottom: var(--nav-line);
  font-size: var(--nav-size); line-height: 1.6rem; letter-spacing: 0.02rem; font-weight: var(--nav-weight);
}
.navbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.navbar__brand {
  display: inline-block; padding: 0.3125rem 0; margin-inline-end: 1rem;
  font-size: 1.25rem; line-height: inherit; white-space: nowrap;
}
.navbar__brand:hover { text-decoration: none; }
.navbar__logo { height: 1em; width: auto; vertical-align: baseline; }
.navbar__title { color: var(--logo-color); padding-inline-start: 12px; font-weight: var(--logo-weight); letter-spacing: var(--logo-spacing); }
.navbar__nav { display: flex; margin: 0 0 0 auto; padding: 0; list-style: none; }
.navbar__link { display: block; padding: 0.5rem; color: var(--navlink); border-radius: 8px; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }
.navbar__link:hover { color: var(--navlink-hover); background: var(--navlink-hover-bg); text-decoration: none; }
/* Narrow screens: the link folds behind a menu button, like the PHP page's
   (a <details>, so it works without the script). The PHP page's toggler
   was a data: URI, which this page's CSP doesn't allow, so it's inline SVG. */
.navbar__menu { display: none; margin-inline-start: auto; position: relative; }
.navbar__toggle { list-style: none; cursor: pointer; padding: 0.25rem 0.75rem; color: var(--toggler); line-height: 1; }
.navbar__toggle::-webkit-details-marker { display: none; }
.navbar__toggle svg { display: block; }
.navbar__menu > .navbar__nav { flex-basis: 100%; }
@media (max-width: 991.98px) {
  /* A grid, so opening the menu adds its links below without moving the
     button: the first row is the button's height (30px icon + padding),
     holding the brand, the theme button and the menu button; the menu spans
     both rows. The brand keeps clear of the buttons, ending in "…" on the
     smallest phones. */
  .navbar__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto 54px; grid-template-rows: calc(30px + 0.5rem) auto;
  }
  .navbar__brand { grid-area: 1 / 1; align-self: center; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--logo-color); position: relative; z-index: 1; }
  .navbar__nav--wide { display: none; }
  .navbar__langs { grid-area: 1 / 2; align-self: center; position: relative; z-index: 2; }
  .navbar__theme { grid-area: 1 / 3; align-self: center; position: relative; z-index: 1; }
  .navbar__menu { display: block; grid-area: 1 / 1 / 3 / 5; margin-inline-start: 0; }
  .navbar__toggle { margin-inline-start: auto; width: max-content; }
  .navbar__menu > .navbar__nav { margin: 0.5rem 0 0; }
  /* Open, the bar is solid: the page (the big logo) mustn't tint the menu. */
  .navbar:has(.navbar__menu[open]) { background-color: var(--nav-bg-open); }
}

/* The languages beside the theme button; the footer has them too. The list
   opens downward from here, and on a phone the button is its globe alone, its
   language still there for a screen reader. */
.navbar__langs { margin-inline-start: 0.25rem; }
.navbar__langs-toggle { padding: 0.5rem; color: var(--navlink); border-radius: 8px; white-space: nowrap; }
.navbar__langs-toggle:hover { color: var(--navlink-hover); background: var(--navlink-hover-bg); }
.navbar__langs .langs__list { inset-block: calc(100% + 6px) auto; inset-inline: auto 0; }
.navbar__langs .langs__chevron { transform: rotate(180deg); }
.navbar__langs .langs__menu[open] .langs__chevron { transform: none; }
@media (max-width: 575.98px) {
  .navbar__langs-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.navbar__theme { color: var(--navlink); margin-inline-start: 0.25rem; }
.navbar__theme:hover { color: var(--navlink-hover); background: var(--navlink-hover-bg); }

/* ── Banner ──────────────────────────────────────────────────────────── */
.banner { margin-bottom: 1rem; }
/* The PHP banner ended with an (empty) social buttons group, mb-3. */
.banner__text { padding-bottom: 1rem; }
.banner__logo { width: 220px; height: auto; }
/* Nano: the PHP page showed its 50 px badge here, not a wide logo. */
.banner__badge { width: 50px; height: auto; }
.banner__title { margin: 0.5rem 0 1rem; font-size: 1.25rem; line-height: 1.16; font-weight: var(--lead-weight); color: var(--lead-color); letter-spacing: 0.01em; }
/* Links (the PHP banner's social buttons). */
.social { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.375rem 0.75rem; line-height: 1.5;
  background-color: var(--social-bg); border: 1px solid var(--social-line); border-radius: var(--social-radius);
  color: var(--social-text); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.social__link:hover { background-color: var(--social-hover-bg); border-color: var(--social-hover-line); color: var(--social-hover-text); text-decoration: none; }
.social__icon { width: 16px; height: 24px; fill: currentColor; }
.banner__picture { display: block; max-width: 250px; width: 100%; height: auto; margin: 0 0 0 auto; }
.banner__qr { width: 150px; padding: 8px; margin: 0 0 0 auto; background: #ffffff; border-radius: var(--widget-radius); box-shadow: var(--widget-shadow); }
.banner__qr-img { display: block; width: 100%; height: auto; }

/* ── Content ─────────────────────────────────────────────────────────── */
/* Section titles: <h2> in the markup (the page's h1 is the banner title),
   styled as the PHP page's h3. */
.section-title {
  margin: 0 0 var(--h3-gap); max-width: 930px;
  font-size: var(--h3-size); line-height: 1.2; font-weight: var(--h3-weight);
  color: var(--h3-color); text-transform: var(--h3-case); letter-spacing: var(--h3-spacing);
  padding-inline-start: var(--h3-pad); border-inline-start: var(--h3-rule);
}
.panel {
  display: flex; flex-direction: column; margin: 0 0 1.5rem; padding: 0; list-style: none;
  background-color: var(--panel-bg); border: 1px solid var(--panel-line); border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow); overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.panel:hover { transform: var(--panel-lift); border-color: var(--panel-hover-line); }
.panel__row {
  display: flex; align-items: center; gap: 0;
  padding: var(--item-pad); background-color: var(--item-bg); color: var(--item-text);
  border-top: 1px solid var(--panel-line); font-size: 0.9rem;
}
.panel__row:first-child { border-top: 0; }
.panel__value a { color: var(--item-link); }
.panel__value a:hover { color: var(--link-hover); }
/* main.css: label left, value right, each half the row, cut with "…". */
/* Labels and values wrap rather than clip (WCAG 1.4.12); a linked value (an
   address) keeps one line, its whole text in the title and the link. */
.panel__label, .panel__value { width: 50%; overflow-wrap: anywhere; }
/* A long word (German "Synchronisierungsstand") is hyphenated where the
   browser knows the language, rather than cut anywhere. */
.panel__label { hyphens: auto; }
.panel__value:has(> a[href]) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panel__label { margin-inline-end: auto; text-align: start; color: var(--label); }
.panel__value { margin-inline-start: auto; text-align: end; color: var(--value); font-variant-numeric: tabular-nums; }
.account { justify-content: space-between; }
/* The Questions (macros.html faq): the panel's rows, each opening below. */
.faq { margin: 0 0 1.5rem; }
.faq__item {
  padding: var(--item-pad); background-color: var(--item-bg); color: var(--item-text);
  border: 1px solid var(--panel-line); border-top: 0; font-size: 0.9rem;
}
.faq__item:first-of-type { border-top: 1px solid var(--panel-line); border-radius: var(--panel-radius) var(--panel-radius) 0 0; }
.faq__item:last-of-type { border-radius: 0 0 var(--panel-radius) var(--panel-radius); }
.faq__question { cursor: pointer; color: var(--label); }
.faq__answer { margin: 0.5rem 0 0; color: var(--value); }
/* Underlined: in the light palettes a link is the text's own colour. */
.faq__answer a { color: var(--item-link); text-decoration: underline; }
.account__label { margin-inline-end: 1rem; padding-inline-start: 0.5rem; flex: none; color: var(--acct-label); }
.account__address { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--addr); }
.account__address:hover { color: var(--link-hover); }
.account__copy {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.25rem 0.5rem; font: inherit; font-size: 0.875rem; line-height: 1.5;
  color: var(--clip); background: none; border: 1px solid transparent; border-radius: 0.2rem; cursor: pointer;
}
.account__copy:hover { color: var(--clip-hover); }
.account__copy svg { width: 14px; height: 18.7px; fill: currentColor; }

.alert {
  position: relative; margin-bottom: 1rem; padding: 0.75rem 1.25rem;
  background-color: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: var(--alert-radius);
  color: var(--alert-text);
}
.alert__link { font-weight: 700; color: var(--alert-link); }
.offline { padding: 20px; margin-bottom: 30px; background-color: #d32f2f; color: #ffffff; } /* 4.98:1 */

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer__rule {
  display: block; height: 1px; margin: 1em 0; padding: 0;
  border: 0; border-top: 1px solid var(--hr); opacity: var(--hr-opacity);
}
.footer { color: var(--foot); }
/* The corner QR card (common.css) covers the bottom 246 px on wide
   screens: 222 px of card, 24 px off the edge. While it shows, the page
   ends with that much room after the footer (whose own 1rem margin is the
   gap), so the last row scrolls clear of it; and the card stays put
   instead of riding up (app.js --qr-lift) over the text above. */
@media screen and (min-width: 1000px) {
  body:has(> .qr-card:not([hidden])) > .container { padding-bottom: 246px; }
  /* body > outranks common.css's .qr-card, which is linked after this. */
  body > .qr-card { translate: none; }
}
.footer__list { font-size: 80%; margin: 0 0 1rem; padding: 0; padding-inline: 40px 10px; text-align: end; letter-spacing: 0.02em; list-style: none; }
.footer__link { color: var(--foot-link); }
/* The footer's rows end at the right: so does the language list. */
.footer__list .langs__list { inset-inline-start: auto; inset-inline-end: 0; }
.footer__link:hover { color: var(--foot-link-hover); }

@media (prefers-reduced-motion: reduce) {
  .panel, .panel:hover { transition: none; transform: none; }
}

/* The footer's links (the languages among them), each a 24 px target
   (WCAG 2.2 target size). */
.footer__list a { display: inline-block; min-height: 24px; line-height: 24px; }
