/*
 * luci.css — the classic LUCI look (white page, #bbddff bands, left
 * sidebar, Helvetica) rebuilt as small responsive CSS. Successor to the
 * 2000-06-07 v2.0 stylesheet and the mod_perl-era table layout.
 */

:root {
  --band: #bbddff;            /* the classic light-blue bands */
  --band-border: #8ab6e8;
  --ink: #1a1a1a;
  --link: #0645ad;
  --link-visited: #4b3a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }

/* ---- top and bottom bands ---- */

.topbar, .bottombar {
  background: var(--band);
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
}

.topbar {
  text-align: right;
  border-bottom: 1px solid var(--band-border);
  min-height: 1.75rem;
}

.bottombar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--band-border);
}

.bottombar address { font-style: normal; display: inline; }

/* ---- page frame: sidebar + main ---- */

.page {
  display: flex;
  min-height: 70vh;
}

.sidebar {
  flex: 0 0 11rem;
  background: var(--band);
  border-right: 1px solid var(--band-border);
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}

.sidebar img { max-width: 100%; height: auto; }

.sidebar .tagline { font-size: 0.85rem; }

.sidebar hr { border: 0; border-top: 1px solid var(--band-border); }

.sidebar ul.luglinks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul.luglinks li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--band-border);
}

.sidebar ul.luglinks li:first-child { border-top: none; }

main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
  min-width: 0;
  /* Full-width frame (sidebar pinned to the viewport edge, like the old
     table layout); cap the text column for readability instead. */
  max-width: 48rem;
}

main hr { border: 0; border-top: 1px solid #ccc; }

/* ---- navigation ---- */

.navbar {
  text-align: center;
  padding: 0.25rem 0;
}

/* ---- content ---- */

h1, h2, h3 { line-height: 1.25; }

h3 { margin-top: 1.5rem; }

.indented { margin-left: 1em; }

code.block {
  font-family: monospace;
  margin-left: 4em;
  display: block;
}

/* ---- small screens: stack the sidebar under the content ---- */

@media (max-width: 640px) {
  .page { flex-direction: column; }
  .sidebar {
    flex: none;
    order: 2;
    border-right: none;
    border-top: 1px solid var(--band-border);
  }
  main { order: 1; }
}
