:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --surface2:#fbfbfd;
  --text:#111827;
  --muted:rgba(17,24,39,.72);
  --line:rgba(17,24,39,.12);
  --accent:#7a0010;
  --accent2:#c80000;
  --radius:16px;
  --shadow:0 10px 26px rgba(17,24,39,.10);
  --max:1180px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(122,0,16,.08), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(200,0,0,.06), transparent 55%),
    var(--bg);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline; text-underline-offset:3px}

.wrap{max-width:var(--max); margin:0 auto; padding:16px 14px 60px}
.shell{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.80));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.shell-inner{padding:14px 16px}

.header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-bottom:1px solid rgba(17,24,39,.10);
  padding:12px 16px;
  background:linear-gradient(180deg, rgba(122,0,16,.06), rgba(255,255,255,0));
}
.brand{display:flex; align-items:center; gap:10px; min-width:180px}
.brand img{width:44px; height:44px; object-fit:contain}
.brand .txt{display:flex; flex-direction:column}
.brand .kicker{font-weight:900; letter-spacing:.10em; text-transform:uppercase; font-size:.75rem; color:var(--muted)}
.brand .title{font-size:1.02rem; font-weight:900; line-height:1.05}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--surface2);
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  box-shadow:0 6px 18px rgba(17,24,39,.06);
}
.nav{
  position:relative;
}
.nav-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:6px;
}
.nav-list>li{position:relative}
.nav-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(17,24,39,.12);
  background:var(--surface2);
  color:var(--text);
  font-weight:900;
  white-space:nowrap;
}
.nav-link:hover{
  background:#fff; border-color:rgba(122,0,16,.28);
  text-decoration:none;
}
.has-sub>.nav-link::after{
  content:"▾";
  font-size:.85em;
  opacity:.75;
}

.nav-sub{
  list-style:none; margin:0; padding:8px;
  position:absolute; left:0; top:calc(100% + 8px);
  min-width:240px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 40px rgba(17,24,39,.12);
  display:none;
  z-index:30;
}
.nav-sub li{margin:0}
.nav-sub .nav-link{
  width:100%;
  justify-content:flex-start;
  padding:10px 10px;
  background:#fff;
}
.nav-sub .nav-link:hover{
  background:rgba(122,0,16,.06);
}

.has-sub:hover>.nav-sub{display:block}
.has-sub:focus-within>.nav-sub{display:block}

.content{
  padding:16px;
}
.card{
  border:1px solid rgba(17,24,39,.12);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:0 10px 26px rgba(17,24,39,.08);
  padding:14px;
}
.footer{
  border-top:1px solid rgba(17,24,39,.10);
  padding:14px 16px;
  color:var(--muted);
  font-weight:600;
  font-size:.93rem;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.footer a{color:var(--accent)}
/* Legacy safety net */
.legacy, .legacy *{font-family:inherit !important}
.legacy table{max-width:100% !important; width:100% !important; border-collapse:collapse}
.legacy img{max-width:100% !important; height:auto !important; border-radius:12px}
.legacy hr{border:0; height:1px; background:rgba(17,24,39,.10); margin:12px 0}
.legacy font{font-size:1rem !important; color:inherit !important}
.legacy td{padding:0}
.legacy a{color:var(--accent)}
.legacy p{color:var(--text); line-height:1.55}
.legacy iframe{max-width:100%}

/* Responsive */
@media (max-width: 980px){
  .nav-toggle{display:inline-flex}
  .nav-list{
    display:none;
    width:100%;
    margin-top:10px;
    flex-direction:column;
    gap:8px;
  }
  .nav.open .nav-list{display:flex}
  .nav-sub{
    position:static;
    display:block;
    box-shadow:none;
    border-radius:14px;
    margin-top:6px;
  }
  .has-sub>.nav-link::after{content:""}
}

/* Mobile: remove sidebar entirely */
/* Hide right sidebar on mobile */
@media (max-width: 980px) {
  td.sidebar {
    display: none !important;
  }
}

@media (max-width: 980px) {
  table[width="951"] {
    width: 100% !important;
  }
}

<!-- Fix formatting off the teams.html page -->
/* Teams legacy: fluid wrapper replaces fixed 951px table */
#teams-legacy .legacy-bg{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#teams-legacy .legacy-inner{
  width: 100%;
  max-width: 900px;   /* optional: keeps it from being too wide on desktop */
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
}

/* Prevent any legacy tables/images from forcing overflow */
#teams-legacy table{
  max-width: 100%;
}

#teams-legacy img{
  max-width: 100%;
  height: auto;
}

/* --- Teams page: kill mobile overflow from long text (emails / long labels) --- */
#teams-legacy,
#teams-legacy * {
  box-sizing: border-box;
}

#teams-legacy .legacy-inner {
  min-width: 0;              /* important if any parent uses flex */
}

/* Allow text to wrap instead of forcing horizontal overflow */
#teams-legacy h2,
#teams-legacy td,
#teams-legacy a {
  white-space: normal;
  overflow-wrap: anywhere;   /* modern: breaks long strings */
  word-break: break-word;    /* fallback */
}

/* Optional: slightly smaller h2 on narrow screens */
@media (max-width: 480px) {
  #teams-legacy h2 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
}