:root {
  --navy: #16314d;
  --teal: #147c7e;
  --teal-light: #e7f5f3;
  --background: #f6f8fa;
  --white: #ffffff;
  --ink: #243447;
  --muted: #657586;
  --line: #dce4e9;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--background); line-height: 1.55; }
a { color: var(--teal); }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #e8ae4b; outline-offset: 2px; }
.container { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; top: -50px; left: 12px; background: white; padding: 8px; }
.skip:focus { top: 8px; z-index: 20; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { color: var(--navy); font-size: 1.25rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--teal); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.nav-links a { color: var(--ink); font-size: .92rem; text-decoration: none; font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 3px; }
.nav-links a:hover { color: var(--teal); }
.hero { background: var(--navy); color: white; padding: 68px 0; }
.hero h1 { max-width: 650px; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.16; margin: 0 0 15px; }
.hero p { font-size: 1.06rem; max-width: 630px; color: #d9e6ee; margin: 0 0 24px; }
.hero .eyebrow { color: #83ded7; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
main { min-height: 68vh; }
.section { padding: 45px 0; }
.section-tight { padding-top: 6px; }
.section-title { margin: 0 0 8px; color: var(--navy); font-size: 1.7rem; }
.section-intro { color: var(--muted); margin: 0 0 25px; }
.page-head { padding: 42px 0 18px; }
.page-head h1 { margin: 0 0 8px; color: var(--navy); font-size: 2.25rem; }
.page-head p { color: var(--muted); margin: 0; }
.button, button.button { display: inline-block; padding: 11px 19px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal); color: white; text-decoration: none; font-weight: 700; font-size: .92rem; }
.button:hover { background: #11696c; color: white; text-decoration: none; }
.button.secondary { color: var(--teal); background: white; }
.button.secondary:hover { background: var(--teal-light); }
.button.danger { border-color: #b94444; color: #9e3333; background: white; }
.button.small { padding: 6px 10px; font-size: .83rem; }
.button:disabled { opacity: .55; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel, .event-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 25px; }
.event-card { display: flex; flex-direction: column; padding: 23px; min-height: 245px; }
.event-card .category { color: var(--teal); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.event-card h3 { color: var(--navy); margin: 11px 0; font-size: 1.16rem; line-height: 1.35; }
.event-card p { margin: 0 0 6px; color: var(--muted); font-size: .91rem; }
.event-card .card-link { margin-top: auto; padding-top: 16px; font-size: .9rem; font-weight: 700; }
.callout { background: var(--teal-light); padding: 25px; border-radius: var(--radius); margin-top: 25px; }
.callout h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.35rem; }
.callout p { margin: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-weight: 700; font-size: .89rem; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #bac8d1; border-radius: 7px; background: white; color: var(--ink); }
textarea { resize: vertical; min-height: 90px; }
.form-actions { margin-top: 7px; }
.filters { margin-bottom: 22px; }
.filters h2 { margin: 0 0 14px; font-size: 1.18rem; }
.status { min-height: 24px; margin: 14px 0; color: var(--teal); font-weight: 700; }
.status.error { color: #ab3838; }
.muted { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.detail-list { padding: 0; list-style: none; }
.detail-list li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.detail-list strong { display: inline-block; min-width: 110px; color: var(--navy); }
.hidden { display: none !important; }
.tab-row { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-row button { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 9px 16px; font-weight: 700; }
.tab-row button.active { color: white; background: var(--navy); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
th { background: #edf3f6; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--navy); }
.table-buttons { display: flex; gap: 8px; }
.footer { background: white; color: var(--muted); border-top: 1px solid var(--line); margin-top: 50px; padding: 24px 0; font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer p { max-width: 720px; margin: 0; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .nav { flex-direction: column; padding: 14px 0; align-items: flex-start; }
  .nav-links { gap: 14px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1100px); }
  .grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .page-head { padding: 30px 0 15px; }
  .page-head h1 { font-size: 1.85rem; }
  .section { padding: 30px 0; }
  .footer-inner { display: block; }
}

/* Flask version additions */
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font-size: .92rem; font-weight: 600; }
.link-button:hover { color: var(--teal); text-decoration: underline; }
.flash-area { padding-top: 18px; }
.flash { margin: 0 0 8px; padding: 10px 14px; border-radius: 7px; background: var(--teal-light); }
.flash.error { background: #fbeaea; }
.tab-row a.tab { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 9px 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tab-row a.tab.active { color: white; background: var(--navy); }
.table-buttons form { margin: 0; }
.small-text { font-size: .8rem; }
.big-number { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 0; }
