/* BCWARN red/grey theme, matching the original site */
:root {
  --page: #6b6b6b;        /* grey page background */
  --sheet: #ffffff;       /* white content sheet */
  --text: #545454;        /* body text */
  --title: #c0101a;       /* "BCWARN" wordmark */
  --heading: #68181c;     /* maroon headings */
  --link: #912127;        /* links and menu text */
  --bar-top: #c8222b;     /* red menu bar gradient */
  --bar-bottom: #8e1218;
  --tab: #f3e6e6;         /* menu tabs */
  --line: #dcdcdc;
  --muted: #7a7a7a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text);
  font: 14px/1.6 Verdana, Geneva, Arial, Helvetica, sans-serif; }
a { color: var(--link); }
a:hover { color: var(--title); }

/* The white sheet: header, content and footer stacked in one centred column */
header, main, footer { max-width: 960px; margin: 0 auto; background: var(--sheet); }
header { margin-top: 16px; border-radius: 10px 10px 0 0; overflow: hidden;
  background: linear-gradient(170deg, #fafafa 0%, #e9e9e9 55%, #cfcfcf 100%); }
footer { border-radius: 0 0 10px 10px; margin-bottom: 24px; }
.wrap { padding: 0; }
main.wrap { padding: 6px 24px 24px; display: flow-root; }

.top { padding: 22px 20px 18px; }
.brand { margin: 0; font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.brand a { color: var(--title); text-decoration: none; }
.brand small { display: block; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 1rem; font-weight: 400; color: #0d0d0d; margin-top: 4px; }

/* Red menu bar with light tabs */
nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0;
  background: linear-gradient(var(--bar-top), var(--bar-bottom)); }
nav a { display: block; padding: 5px 14px; font-size: .85rem; text-decoration: none;
  color: var(--link); background: var(--tab); border-radius: 6px 6px 0 0; }
nav a:hover { background: #ffffff; color: var(--title); }
nav a[aria-current="page"] { background: var(--sheet); color: var(--heading); font-weight: 700; }


section { margin: 18px 0; }
h1.h2, h2, h3 { font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; color: var(--heading); }
h1.h2, h2 { margin: 0 0 10px; font-size: 1.6rem; }
h3 { margin: 20px 0 6px; font-size: 1.15rem; }
.muted { color: var(--muted); font-size: .85rem; }

.status-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
figure { margin: 12px 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.graphs { display: block; }
.graphs figure { margin: 0 0 24px; }
.graphs figcaption { font-family: "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--heading); margin: 0 0 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 8px 0 0; font-size: .85rem; }
.legend li::before { content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 2px;
  margin-right: 6px; vertical-align: -1px; background: var(--c); border: 1px solid rgba(0,0,0,.2); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--heading); }
td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
tr.agg td { font-weight: 700; background: #f6eeee; color: var(--heading); }

ul.affil { columns: 2 280px; padding-left: 1.2em; margin: 0; }
ul.affil li { break-inside: avoid; margin-bottom: 2px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; }
address { font-style: normal; }

footer .badge { display: inline-block; line-height: 0; }
footer .badge img { display: block; border: 1px solid var(--line); }
footer p { margin: 8px 0 0; }
footer { text-align: center; font-size: .8rem; color: var(--muted);
  padding: 12px 16px 16px; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  header { margin-top: 0; border-radius: 0; }
  footer { border-radius: 0; margin-bottom: 0; }
  main.wrap { padding: 4px 16px 20px; }
  .brand { font-size: 2rem; }
}
