:root {
  --bg: #ffffff;
  --text: #111;
  --accent: #333365;
  --focus: #005fcc;
  --shadow: 0 8px 20px rgba(0,0,0,.12);

  /* Skip-link colors */
  --skip-bg: #000;       /* black background */
  --skip-text: #fff;     /* white text */
  --skip-outline: #ff0;  /* yellow outline for high contrast */
}

html, body { margin: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); }

.sr-only {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,1px,1px); white-space:nowrap; border:0;
}

/* Global focus */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -1000px;
  left: 0;
  z-index: 2000;
  background: var(--skip-bg);
  color: var(--skip-text);
  padding: .75rem 1rem;
  text-decoration: none;
  font-weight: 800; /* bold per request */
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: .5rem;
  left: .5rem;
  outline: 4px solid var(--skip-outline); /* high-contrast, thick outline */
}

/* ===== Top bar (mobile only) ===== */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid #e9e9ee;
}
.topbar h3 {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  flex: 1 1 auto;
}

/* Mobile menu toggle (outside the list structure) */
#menuToggle {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem .85rem;
  font-size: 1rem;
  border-radius: .75rem;
  display: inline-block;
}

/* Search trigger */
.search-trigger {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem .9rem;
  border-radius: .75rem;
  cursor: pointer;
}

/* ===== Logo ===== */
.logo {
  display: block;
  margin-right: 1rem;
}
.logo img {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: contain;
}

/* ===== Nav and menu ===== */
.nav {
  border-top: 1px solid #e9e9ee;
  border-bottom: 1px solid #e9e9ee;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-right: .75rem; /* space for desktop search button */
}

.menubar {
  list-style: none;
  margin: 0;
  padding: 0 .75rem;
  display: flex;
  gap: .5rem;
  align-items: stretch;
  position: relative;
  flex: 1 1 auto; /* allow desktop search to sit at far right */
}

.menubar > li { position: relative; } /* for absolutely positioned submenu */

.menu-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .9rem 1rem;
  font: inherit;
  color: var(--text);
  border-radius: .75rem;
  cursor: pointer;
}
.menu-button:hover { background: #f5f6ff; }
.menu-button[aria-expanded="true"] {
  background: #eef0ff;
  box-shadow: var(--shadow);
}
/* Submenus */
.submenu {
  list-style: none;
  margin: 0;
  padding: .5rem;
  min-width: 14rem;
  background: #fff;
  border: 1px solid #e3e4ec;
  border-radius: .75rem;
  box-shadow: var(--shadow);
  position: absolute;
  left: 0;
  top: calc(100% + .35rem);
  display: none; /* hidden until opened via JS */
  z-index: 10;
}
/* Show when controlling button is expanded */
.menu-button[aria-expanded="true"] + .submenu { display: block; }

.submenu > li { margin: 0; padding: 0; }
.submenu a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: .6rem .75rem;
  border-radius: .5rem;
}
.submenu a:hover,
.submenu a:focus-visible { background: #f5f6ff; }


/* ===== Responsive ===== */
@media (max-width: 820px) {
  .topbar { display: flex; } /* show mobile top bar */
  .nav { padding-right: 0; }  /* no right padding needed on mobile */

  .logo { display: none; }   /* hide logo on mobile */

  /* Menubar is hidden until toggled open; stacks vertically */
  .menubar {
    display: none;
    flex-direction: column;
    padding: .5rem;
    gap: .25rem;
  }
  .menubar[data-open="true"] { display: flex; }
  .menu-button {
    width: 100%;
    text-align: left;
    padding: .9rem .9rem;
    background: #f7f8fb;
  }
  .submenu {
    position: static;
    display: none;        /* still controlled by aria-expanded */
    margin: .35rem 0 .5rem .5rem;
    border-radius: .6rem;
  }
  .menu-button[aria-expanded="true"] + .submenu { display: block; }
}

@media (min-width: 821px) {
  .topbar { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .submenu { transition: opacity .12s ease, transform .12s ease; opacity: 0; transform: translateY(-4px); }
  .menu-button[aria-expanded="true"] + .submenu { opacity: 1; transform: translateY(0); }
}

/* ===== Modal styles ===== */
.modal-root { position:fixed; inset:0; display:none; z-index:1000; }
.modal-root:not([hidden]) { display:block; } /* show only when NOT hidden */
.modal-overlay { position:absolute; inset:0; background:rgba(0,0,0,.45); }
.modal-dialog {
  position:relative; max-width:720px; margin:10vh auto 0 auto; background:#fff; border-radius:.9rem;
  box-shadow:var(--shadow); padding:1rem; width:clamp(300px, 92vw, 720px);
}
.modal-title { margin:.25rem 0 1rem 0; font-size:1.25rem; }
.modal-actions { display:flex; justify-content:flex-end; gap:.5rem; margin-top:.75rem; }
.close-btn {
  appearance:none; border:1px solid #d7d7e3; background:#f7f7fb; padding:.5rem .8rem; border-radius:.6rem; cursor:pointer;
}

/* Search form */
.search-form { display:flex; gap:.5rem; align-items:center; }
.search-input {
  flex:1 1 auto; padding:.7rem .8rem; border-radius:.6rem; border:1px solid #cfd2e6; font-size:1rem;
}
.submit-btn {
  appearance:none; border:0; background:var(--accent); color:#fff; padding:.7rem 1rem; border-radius:.6rem; cursor:pointer;
}

/* Mobile modal sheet style */
@media (max-width: 640px) {
  .modal-dialog { margin:0; position:fixed; left:0; right:0; bottom:0; border-bottom-left-radius:0; border-bottom-right-radius:0; }
}
@media (prefers-reduced-motion:no-preference) {
  .modal-dialog { transform:translateY(10px); opacity:0; transition:transform .15s ease, opacity .15s ease; }
  .modal-root:not([hidden]) .modal-dialog { transform:translateY(0); opacity:1; }
}



	.row { display: flex; }
.column1 { flex: 40%; padding: 5px; }
.column2 { flex: 60%; padding: 5px; }
.inline {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.inline li {
    display: inline;
    margin-right: 10px;
}
.alert { 
width="80%; margin-right: auto; margin-left: auto;
padding-top: 10px; padding-bottom: 10px;
background-color: #333365;
color: white; font-weight: 18pt;
border: 0; border-radius: 5px;
}
.alert a:link { color: yellow; }
.alert a:visited { color: yellow; text-decoration: underline; }
main h2 { color: #333365; font-weight: bold; text-decoration: none; }
main h3 { color: #333365; font-weight: bold; text-decoration: none; }
main h4 { color: #333365; font-weight: bold; text-decoration: none; }

.post { list-style-type: none; }
#post-title { font-weight: bold; color: #333365; }

    /* Tabs */
    .tabs {
      display: flex;
      border-bottom: 2px solid #bebebe;
    }

    .tabs button {
      background: #f2f2f2;
      border: 1px solid #bebebe;
      border-bottom: none;
      color: #333365;
      padding: 0.5rem 1rem;
      margin-right: 0.25rem;
      cursor: pointer;
      font-size: 0.9rem;
      border-radius: 0.5rem 0.5rem 0 0;
      transition: background 0.3s ease;
    }

    .tabs button[aria-selected="true"] {
      background: #333365;
      color: #fff;
      font-weight: bold;
    }

    .tabs button:focus {
      outline: 3px solid #333365;
      outline-offset: 2px;
    }

    /* Panels */
    .tab {
      display: none;
      border: 1px solid #bebebe;
      border-top: none;
      padding: 1rem;
      animation: fadeIn 0.3s ease-in-out;
    }

    .tab[aria-hidden="false"] {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(5px); }
      to { opacity: 1; transform: translateY(0); }
    }
