:root {
  --site-width: min(923px, calc(100vw - 24px));
  --inner-width: min(923px, calc(100vw - 56px));
  --text: #ffffff;
  --muted: #c7d2d9;
  --link: #9cc3d0;
  --panel: rgba(7, 14, 20, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --menu: rgba(4, 13, 19, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: url("legacy/mac_bg.png") repeat;
  color: var(--text);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  padding-top: 14px;
}

.container {
  width: var(--site-width);
  margin: 0 auto;
}

.container {
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.container-inner {
  width: var(--inner-width);
  margin: 0 auto;
  background: url("legacy/container_inner.jpg") no-repeat top center;
  background-size: 100% auto;
}

.site-header {
  position: relative;
  padding-top: 2px;
}

.logo-link {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 52px;
  margin-top: -4px;
  padding: 6px 14px 8px;
  background: linear-gradient(180deg, rgba(20, 36, 51, 0.92), rgba(8, 18, 28, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav a {
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
}

.theme-toggle {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 18, 26, 0.55);
  color: #fff;
  font: inherit;
  cursor: pointer;
  opacity: 0.82;
  border-radius: 999px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 1;
}

.theme-toggle-track {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  height: 18px;
  padding: 0 5px;
  position: relative;
}

.theme-toggle-icon {
  font-size: 9px;
  line-height: 1;
  z-index: 1;
}

.theme-toggle-icon-light {
  color: #ffe8a3;
}

.theme-toggle-icon-dark {
  color: #d7e5ee;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease;
}

html[data-theme="teal"] .theme-toggle-thumb {
  transform: translateX(22px);
}

.hero-frame {
  margin-top: -1px;
}

.slideshow {
  position: relative;
  height: min(31.9vw, 295px);
  min-height: 190px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.shadow-down {
  height: 0;
  background: transparent;
}

.content {
  padding: 12px 20px 26px;
}

.content-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 0;
  margin-top: -10px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.content-front .content-side {
  border-left: 0;
}

.content-page {
  margin-top: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.content-main,
.content-side {
  background: var(--panel);
  border: 1px solid var(--line);
}

.content-main {
  padding: 18px 18px 24px;
}

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

.content-main-wide {
  width: 100%;
}

.content-side {
  padding: 18px 16px;
}

.content-side h2 a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.content-page .content-main > h1 {
  margin-top: 12px;
}

h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 17px;
  line-height: 1.25;
}

p,
li,
td,
label,
input,
textarea,
button {
  font: inherit;
}

p {
  margin: 0 0 12px;
}

.content-main p,
.content-main li,
.content-main td,
.content-main label,
.content-main input,
.content-main textarea,
.content-main button,
.content-side li,
.content-side p {
  font-size: 13px;
}

ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.news-list {
  margin: 0;
  padding-left: 18px;
}

.news-list li {
  margin-bottom: 10px;
}

.news-feature {
  display: grid;
  gap: 10px;
}

.news-feature-image-link {
  display: block;
}

.news-feature-image {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.news-feature-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-family: Verdana, Geneva, sans-serif;
}

.news-feature-title a {
  color: inherit;
  text-decoration: none;
}

.news-archive {
  display: grid;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.news-card-image-link {
  display: block;
}

.news-card-image {
  width: 100%;
  max-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.news-card-body {
  min-width: 0;
}

.news-card-title {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.2;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-date,
.article-date {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.news-article h1,
.news-card-title a,
.news-list a {
  font-family: Verdana, Geneva, sans-serif;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

td {
  padding: 8px;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

tr.highlight td {
  background: #003366;
}

.contact-block {
  margin-bottom: 20px;
}

.contact-form-static {
  display: grid;
  gap: 14px;
}

.contact-form-static label {
  display: grid;
  gap: 6px;
}

.contact-form-static input,
.contact-form-static textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact-form-static button {
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #11324b;
  color: #fff;
  cursor: pointer;
}

.news-article-image {
  float: left;
  max-width: 220px;
  margin: 2px 16px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.news-more {
  margin-top: 16px;
}

.news-more a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.news-more a:hover,
.news-more a:focus-visible {
  text-decoration: underline;
}

.news-pager {
  margin-top: 14px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager li {
  margin: 0;
}

.pager a,
.pager-current {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.pager-current {
  background: rgba(255, 255, 255, 0.14);
}

.site-footer {
  width: var(--site-width);
  margin: 8px auto 20px;
  color: #000;
  font-size: 12px;
  padding: 0 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer-text {
  display: inline-block;
}

@media (max-width: 860px) {
  .site-header {
    z-index: 10;
  }

  .container-inner {
    width: calc(100% - 18px);
    background-size: cover;
  }

  .menu-toggle {
    display: inline-block;
    left: 12px;
    right: auto;
    top: 18px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    z-index: 20;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
  }

  .content-front {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .content-front .content-side {
    border-left: 1px solid var(--line);
  }

  .news-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 8px;
  }

  .container,
  .site-footer {
    width: calc(100vw - 10px);
  }

  .container-inner {
    width: calc(100% - 10px);
  }

  .hero-frame {
    padding: 0 8px;
  }

  .content {
    padding: 10px 8px 18px;
  }

  .content-front,
  .content-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .content-main,
  .content-side {
    padding: 14px 12px 18px;
  }

  h1 {
    font-size: 20px;
  }

  table {
    min-width: 560px;
  }

  .news-article-image {
    float: none;
    margin: 0 0 14px;
    max-width: 100%;
  }
}
