* { box-sizing: border-box; }

html { background: #dfe7ef; }

body {
  margin: 0;
  color: #222;
  background: #dfe7ef;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0;
  line-height: 1.5;
}

.site-shell { font-size: 12px; }

body:has(.home-button) { display: grid; min-height: 100vh; place-items: center; }
.home-button {
  padding: 5px 12px;
  color: #ffffff;
  background: linear-gradient(#4b8dcc, #215a9b);
  border: 1px solid #8db9df;
  border-right-color: #0f3970;
  border-bottom-color: #0f3970;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  text-transform: lowercase;
}
.home-button:hover, .home-button:focus { color: #ffffff; background: #174a8b; border-color: #0f3970 #8db9df #8db9df #0f3970; }

a { color: #0000cc; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover, a:focus { color: #ffffff; background: #2867b2; outline: 1px dotted #174a8b; }

.site-shell {
  width: 920px;
  max-width: calc(100% - 24px);
  margin: 18px auto;
  border: 1px solid #174a8b;
  background: #ffffff;
  box-shadow: 1px 1px 0 #ffffff, 2px 2px 0 #a6a6a6;
}

.site-header {
  min-height: 83px;
  padding: 14px 20px 12px;
  color: #ffffff;
  background: linear-gradient(#3b82c4, #174a8b);
  border-bottom: 1px solid #0e3566;
  box-shadow: inset 0 1px 0 #a8d2f3;
}
.header-mark { font-family: Tahoma, Verdana, sans-serif; font-size: 28px; font-weight: bold; letter-spacing: 1px; line-height: 1.15; text-shadow: 1px 1px #174a8b; }
.header-subtitle { margin-top: 4px; color: #dceeff; font-size: 11px; }

.site-nav {
  display: flex;
  gap: 2px;
  padding: 4px 8px;
  background: #2867b2;
  border-bottom: 1px solid #174a8b;
}
.site-nav a {
  min-width: 72px;
  padding: 3px 12px;
  color: #ffffff;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #8db9df;
  border-right-color: #0f3970;
  border-bottom-color: #0f3970;
  background: linear-gradient(#4b8dcc, #215a9b);
}
.site-nav a:hover, .site-nav a:focus, .site-nav a.active { background: #174a8b; border-color: #0f3970 #8db9df #8db9df #0f3970; }

.site-body { display: grid; grid-template-columns: 184px 1fr; min-height: 520px; }
.sidebar { padding: 12px 10px; background: #f3f8fd; border-right: 1px solid #a6a6a6; }
.side-section { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #c5d9eb; }
.side-section:last-child { border-bottom: 0; }
.side-section h2 { margin: 0 0 5px; padding: 3px 5px; color: #ffffff; background: #2867b2; border: 1px solid #174a8b; font-size: 11px; letter-spacing: .3px; }
.side-section p { margin: 5px 4px; }
.online { color: #174a8b; font-weight: bold; }
.status-light { display: inline-block; width: 8px; height: 8px; margin-right: 3px; background: #2e9b43; border: 1px solid #176324; box-shadow: inset 1px 1px 0 #a5d9aa; }
.site-info { display: grid; grid-template-columns: auto 1fr; gap: 2px 5px; margin: 5px 4px; font-size: 10px; }
.site-info dt { color: #555; font-weight: bold; }
.site-info dd { margin: 0; }
.side-links { margin: 5px 4px; padding-left: 16px; }
.side-links li { margin: 2px 0; }
.side-links small { color: #777; font-size: 9px; }
.best-viewed { margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 2px 0; }
.badges span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 25px; padding: 1px 3px; color: #174a8b; background: #ffffff; border: 2px outset #a6a6a6; font-family: Arial, sans-serif; font-size: 8px; font-weight: bold; line-height: 1.05; text-align: center; }

.main-content { padding: 17px 23px 28px; background: #ffffff; }
.content-section { margin-bottom: 26px; }
.content-section h1, .content-section h2 { margin: 0 0 9px; color: #174a8b; font-family: Tahoma, Verdana, sans-serif; font-weight: bold; }
.content-section h1 { font-size: 21px; border-bottom: 1px solid #174a8b; padding-bottom: 4px; }
.content-section h2 { font-size: 16px; border-bottom: 1px solid #a6c6e1; padding-bottom: 3px; }
.content-section p { margin: 5px 0; }
.intro-section { padding-bottom: 2px; }
.intro-copy { color: #333; font-size: 13px; line-height: 1.7; }
.project-list { border-top: 1px solid #a6a6a6; }
.project-entry { padding: 9px 7px 10px; border-bottom: 1px solid #c7d7e6; background: #fbfdff; }
.project-entry:nth-child(even) { background: #f3f8fd; }
.project-title { color: #174a8b; font-size: 13px; font-weight: bold; }
.project-number { color: #777; font-family: monospace; }
.project-entry p { margin: 3px 0 5px 37px; color: #444; }
.project-meta { display: flex; justify-content: space-between; margin-left: 37px; color: #666; font-family: Tahoma, Arial, sans-serif; font-size: 10px; }
.project-meta strong { color: #555; }
.project-meta .status-active { color: #18722b; }
.project-meta .status-experimental { color: #9a5a00; }
.currently-section { max-width: 390px; margin-bottom: 0; }
.currently-list { margin: 7px 0 0; padding: 0; list-style: none; }
.currently-list li { margin: 2px 0; color: #444; }
.currently-list li::before { content: "> "; color: #2867b2; font-weight: bold; }

.contact-body { min-height: 440px; }
.contact-section { max-width: 540px; }
.contact-lead { margin: 16px 0 18px !important; font-size: 13px; }
.contact-box { padding: 12px 14px; background: #f3f8fd; border: 1px solid #a6a6a6; border-left: 4px solid #2867b2; }
.contact-label { margin-bottom: 3px; color: #555; font-size: 10px; font-weight: bold; }
.contact-email { font-size: 13px; }
.return-link { margin-top: 18px !important; }

.site-footer { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 12px; color: #666; background: #eeeeee; border-top: 1px solid #a6a6a6; font-size: 10px; }
.footer-links { margin-left: auto; }

@media (max-width: 640px) {
  .site-shell { max-width: calc(100% - 10px); margin: 8px auto; }
  .site-body { display: flex; flex-direction: column-reverse; min-height: 0; }
  .main-content { padding: 14px 13px 23px; }
  .sidebar { border-top: 1px solid #a6a6a6; border-right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 10px; }
  .side-section { margin-bottom: 10px; }
  .best-viewed { grid-column: 1 / -1; }
  .site-footer { display: block; line-height: 1.8; }
  .site-footer span { display: block; }
  .footer-links { margin-left: 0; }
  .project-meta { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
}
