:root {
  --green: #2f8f1e;
  --green-dark: #1f6a14;
  --ink: #1c1c1c;
  --muted: #3d3d3d;
  --forest: #003300;
  --paper: #f3f4f0;
  --line: #cfcfcf;
  --link: #1a1a1a;
  --link-hover: #990000;
  --max: 1120px;
  --reading: 48rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

a:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.site-header { background: #fff; }

.banner { display: block; }

.banner img {
  display: block;
  width: min(100%, var(--max));
  height: auto;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--green);
  border-top: 6px solid #000;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  padding: 14px 18px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--green-dark);
  color: #fff;
}

.site-nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

main {
  width: min(100% - 48px, var(--reading));
  margin: 40px auto 64px;
  min-width: 0;
  flex: 1;
}

main:has(table) {
  width: min(100% - 48px, var(--max));
}

main::after {
  content: "";
  display: block;
  clear: both;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
}

h1 + h1 {
  margin-top: -10px;
  font-size: 20px;
  color: var(--forest);
}

.cancelled {
  width: 100vw;
  position: relative;
  left: 50%;
  margin: 8px 0 32px -50vw;
  padding: 22px max(24px, calc((100vw - var(--reading)) / 2));
  background: var(--forest);
  color: #fff;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.news {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}

.news img {
  width: 160px;
  height: auto;
}

.news p { margin: 0; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.float-right {
  float: right;
  width: min(260px, 42%);
  height: auto;
  margin: 4px 0 16px 24px;
}

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 20px;
}

.figures img {
  width: 100%;
  height: auto;
  display: block;
}

p { margin: 0 0 14px; }

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid #e2e2e2;
  vertical-align: top;
}

th:nth-child(-n+3),
td:nth-child(-n+3),
th:nth-child(n+6),
td:nth-child(n+6) {
  white-space: nowrap;
}

th {
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
}

tbody tr:nth-child(even) { background: #f6f7f4; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: auto;
  margin: 0;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  background: #fff;
  border-top: 4px solid var(--green);
  color: #555;
  font-size: 14px;
  text-align: left;
}

.site-footer p { margin: 0; }

.site-footer a { color: #555; }

.follow br { display: none; }

.follow a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  margin-right: 16px;
}

.follow img {
  width: 19px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

.stay img {
  display: block;
  width: 120px;
  height: auto;
}

@media (max-width: 700px) {
  .site-nav { justify-content: flex-start; }
  .site-nav a { padding: 12px 14px; }
  main { width: min(100% - 32px, var(--reading)); margin-top: 24px; }
  h1 { font-size: 24px; }
  .cancelled {
    font-size: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .news,
  .figures { grid-template-columns: 1fr; }
  .float-right {
    float: none;
    display: block;
    width: min(100%, 320px);
    margin: 0 0 16px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
