/*
 * silug.css — the classic SILUG look (white page, #960019 red sidebar,
 * verdana, redbar dividers) rebuilt as small responsive CSS. Successor to
 * the mod_perl-era table layout and its 2026 responsive retrofit.
 */

:root {
  --red: #960019;
  --ink: #1a1a1a;
  --sidebar-text: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fefefe;
  color: var(--ink);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

a { color: var(--red); }
a:visited { color: #767676; }

/* ---- page frame: red sidebar pinned left + content ---- */

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

.sidebar {
  flex: 0 0 10rem;
  background: var(--red);
  padding: 1rem 0.5rem;
  text-align: center;
}

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

.sidebar nav ul, .sidebar ul.luglinks {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.sidebar nav li, .sidebar ul.luglinks li {
  padding: 0.2rem 0;
}

.sidebar a, .sidebar a:visited {
  color: var(--sidebar-text);
  font-size: 0.85rem;
  text-decoration: none;
}

.sidebar a:hover { text-decoration: underline; }

.sidebar nav a { font-weight: bold; }

.sidebar .luglinks-head {
  color: var(--sidebar-text);
  font-size: 0.8rem;
  margin: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 1rem;
}

.sidebar ul.luglinks a { font-size: 0.75rem; }

main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
  min-width: 0;
  max-width: 48rem;
}

.banner { text-align: center; }

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

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

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

hr, hr.redbar {
  border: none;
  height: 2px;
  background-color: var(--red);
  max-width: 375px;
  margin: 1.5rem auto;
}

.indented { margin-left: 1em; }

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

blockquote pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-size: 0.8rem;
}

/* ---- footer band ---- */

.bottombar {
  background: var(--red);
  color: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
}

.bottombar a, .bottombar a:visited { color: white; }

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

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

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