:root {
  --ink: #222428;
  --brand: #0e6e6e;
  --brand-deep: #0b5757;
  --brand-soft: #f3f8f8;
  --accent: #4bb4d8;
  --danger: #e66e5f;
  --surface: #ffffff;
  --surface-soft: #fbfcfd;
  --bg: #f3f4f6;
  --line: #e1e3e6;
  --ring: rgba(14, 110, 110, 0.24);
}

* {
  box-sizing: border-box;
}

body .sk_branding .sk-content-reveal > .tutorial_link {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 7% 10%, rgba(75, 180, 216, 0.16), transparent 40%),
    radial-gradient(circle at 94% 2%, rgba(14, 110, 110, 0.1), transparent 36%),
    linear-gradient(180deg, #f7f9fb 0%, var(--bg) 36%, #f8fafb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
  max-width: 100%;
}

table {
  width: 100%;
  max-width: 100%;
}

.table-full-width {
  display: table;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.56) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.56) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

.site-header {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(213, 225, 240, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 36px;
  z-index: 50;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 51;
  background: #3a3c40;
  color: #f3f4f6;
  padding: 0.55rem 1rem;
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.8rem;
}

.site-header-inner {
  width: calc(100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(340px, 100%);
  max-height: 58px;
  height: auto;
}

.main-nav {
  display: contents;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid rgba(225, 227, 230, 0.95);
  background: #fff;
  color: var(--brand-deep);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  padding: 0.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(8, 24, 43, 0.08);
}

.mobile-nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  grid-column: 2 / span 2;
  min-width: 0;
}

.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1 1 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-actions form {
  margin: 0;
}

.nav-profile-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.nav-profile-link .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.nav-item {
  position: relative;
}

.top-nav-item {
  position: static;
}

.nav-link-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-toggle {
  display: none;
  border: 1px solid transparent;
  background: transparent;
  color: #1d3e52;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--line);
  background: rgba(14, 110, 110, 0.1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  transition: background-color 180ms ease, color 180ms ease;
  color: var(--brand);
}

.top-nav-item.is-active > .nav-link-wrap > .nav-link,
.nav-link.is-active {
  background: rgba(14, 110, 110, 0.12);
  color: var(--brand-deep);
}

.nav-caret {
  width: 0.85rem;
  height: 0.85rem;
}

.mega-menu {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 2rem));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  display: none;
  z-index: 70;
  box-shadow: 0 18px 38px rgba(9, 37, 67, 0.14);
  overflow: hidden;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.mega-menu.align-left {
  left: 50%;
  transform: translateX(-50%);
}

.mega-menu.align-up {
  top: 112px;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.75fr) minmax(190px, 0.7fr);
  gap: 0;
  padding: 0;
}

.mega-menu-intro {
  padding: 1rem;
  border-right: 1px solid rgba(225, 227, 230, 0.9);
  background: linear-gradient(180deg, #f9fbfc 0%, #f2f7f7 100%);
}

.mega-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #526a6f;
}

.mega-menu-intro h3 {
  margin: 0.45rem 0 0;
  font-size: 1.06rem;
}

.mega-intro-text {
  margin: 0.55rem 0 0;
  color: #526a6f;
  font-size: 0.9rem;
}

.mega-view-all {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.mega-menu-intro h3 a {
  color: #1d3e52;
  text-decoration: none;
}

.mega-menu-intro h3 a:hover {
  color: var(--brand);
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0.7rem;
}

.mega-column {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
}

.mega-column:hover {
  background: #f8fbfb;
}

.mega-column h4 {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
}

.mega-column h4 a {
  color: #1d3e52;
  text-decoration: none;
}

.mega-column h4 a:hover {
  color: var(--brand);
}

.mega-links {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.mega-links-nested {
  margin-top: 0.3rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(225, 227, 230, 0.95);
}

.mega-link {
  color: #335b61;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.mega-link:hover {
  color: var(--brand);
}

.mega-featured {
  border-left: 1px solid rgba(225, 227, 230, 0.92);
  padding: 0.95rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f8f9 100%);
}

.mega-featured h4 {
  margin: 0;
  color: #1d3e52;
}

.mega-featured-links {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.mega-featured-link {
  display: block;
  text-decoration: none;
  color: #1d3e52;
  background: #ffffff;
  border: 1px solid rgba(225, 227, 230, 0.95);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.mega-featured-link:hover {
  border-color: rgba(14, 110, 110, 0.35);
  background: rgba(14, 110, 110, 0.06);
  color: var(--brand-deep);
}

.mega-featured-link-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.sub-nav {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  min-width: 210px;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: none;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(7, 52, 98, 0.12);
}

.sub-nav .nav-item {
  width: 100%;
}

.sub-nav .nav-link {
  width: 100%;
  border-radius: 8px;
}

.sub-nav .sub-nav {
  left: calc(100% - 1px);
  top: -1px;
}

.sub-nav.align-left {
  left: auto;
  right: 0;
}

.sub-nav .sub-nav.align-left {
  left: auto;
  right: calc(100% - 1px);
}

.sub-nav.align-up {
  top: auto;
  bottom: calc(100% - 1px);
}

.nav-item:hover > .sub-nav,
.nav-item:focus-within > .sub-nav {
  display: block;
}

.top-nav-item:hover > .mega-menu,
.top-nav-item:focus-within > .mega-menu {
  display: block;
}

.top-nav-item.is-open > .mega-menu {
  display: block;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  color: var(--brand-deep);
  background: rgba(14, 110, 110, 0.12);
}

.container {
  width: min(100%, calc(100vw - 1.5rem));
  max-width: none;
  margin: 1.2rem auto 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.events-page {
  margin-bottom: 1em;
}

.container-no-shell {
  margin-top: 0;
  padding-top: 0.5rem;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(225, 227, 230, 0.98);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(26, 39, 58, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 39, 58, 0.1);
}

.hero {
  background:
    radial-gradient(circle at 95% 5%, rgba(75, 180, 216, 0.34), transparent 42%),
    linear-gradient(125deg, #0b5757 0%, #0e6e6e 45%, #1d3e52 100%);
  color: #f3f8f8;
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: #d9ebeb;
}

.hero-summary {
  max-width: 780px;
  color: #d9ebeb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--brand-deep);
}

.hero .btn-primary:hover {
  color: #083d3d;
}

.hero .btn-ghost {
  border-color: rgba(217, 235, 235, 0.82);
  color: #eff7f7;
  background: rgba(255, 255, 255, 0.12);
}

.hero .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  background: #ffffff;
  border: 1px solid rgba(225, 227, 230, 0.95);
  border-radius: 14px;
  padding: 0.75rem;
  min-width: 180px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #173a4d;
}

.stat-label {
  font-size: 0.9rem;
  color: #5c5f64;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

/* Keep checkbox labels on one line with clearer, larger controls */
label:has(> input[type="checkbox"]),
label:has(input[type="checkbox"]:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  font-weight: 500;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin: 0.04rem 0 0;
  border: 2px solid #587a84;
  border-radius: 0.35rem;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

input[type="checkbox"]:checked {
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2l3 3L12.8 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.9rem 0.9rem;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.field-block {
  display: grid;
  gap: 0.35rem;
}

.field-title {
  font-weight: 600;
}

.field-hint {
  font-size: 0.85rem;
  color: #526a6f;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--brand);
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

button,
.btn-primary,
.btn-danger,
.btn-ghost {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #c73527 0%, var(--danger) 100%);
  color: #fff;
  margin-top: 0.5rem;
}

.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: #1d3e52;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(14, 110, 110, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: #1d3e52;
  border-radius: 12px;
  padding: 0.62rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(14, 110, 110, 0.08);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.list li {
  border: 1px solid rgba(225, 227, 230, 0.92);
  border-radius: 14px;
  padding: 0.92rem;
  background: #ffffff;
}

.list.compact li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.upcoming-events-list li {
  padding: 0;
  overflow: hidden;
}

.upcoming-event-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.92rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 150ms ease;
}

.upcoming-event-link:hover,
.upcoming-event-link:focus-visible {
  background: rgba(14, 110, 110, 0.08);
}

.upcoming-event-date {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-deep);
  white-space: nowrap;
}

.upcoming-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.upcoming-event-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-item {
  position: relative;
  padding-right: 4.5rem;
}

.announcement-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.announcement-actions form {
  margin: 0;
}

.announcement-reactions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0.75rem;
}

.announcement-reaction-picker {
  position: relative;
}

.reaction-trigger {
  color: var(--ink);
}

.reaction-picker-popover[hidden] {
  display: none;
}

.reaction-picker-popover {
  display: grid;
  /* minmax(0, 1fr), not plain 1fr: emoji glyphs are wide enough that grid tracks would
     otherwise expand to their content's intrinsic width and push columns past the container. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.15rem;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  width: 14rem;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.reaction-pill-form {
  display: inline-flex;
}

.reaction-picker-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.reaction-picker-option:hover {
  background: rgba(14, 110, 110, 0.1);
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
}

.reaction-pill.is-active {
  border-color: var(--brand);
  background: rgba(14, 110, 110, 0.1);
}

.announcement-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.announcement-comments {
  margin-top: 0.75rem;
}

.comment-toggle {
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
}

.comment-list {
  margin-top: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 110, 110, 0.04);
}

.comment-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-body {
  margin: 0 0 0.25rem;
  white-space: pre-wrap;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.comment-delete-btn {
  width: 1.9rem;
  height: 1.9rem;
}

.comment-delete-btn .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.comment-form {
  margin-top: 0.75rem;
}

.comment-form textarea {
  resize: vertical;
}

.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.department-heading {
  margin: 2.5rem 0 0.75rem;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 5px solid #0e6e6e;
  font-size: 1.05rem;
}
.people-card-main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.people-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 227, 230, 0.95);
  background: #fff;
  flex: 0 0 64px;
}

.people-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f5f5a;
  background: rgba(15, 118, 110, 0.14);
}

.people-card-main h3 {
  margin: 0;
}

.people-card-main p {
  margin: 0.25rem 0;
}

.people-card-main small {
  display: block;
  color: #3c565d;
}

.people-contact {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
}

.people-contact .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: #0f5f5a;
}

.people-contact a {
  color: #3c565d;
  text-decoration: none;
}

.people-contact a:hover,
.people-contact a:focus-visible {
  color: #0f5f5a;
  text-decoration: underline;
}

.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid rgba(225, 227, 230, 0.95);
  border-radius: 16px;
  overflow: hidden;
  display: table;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(225, 227, 230, 0.82);
  padding: 0.72rem 0.62rem;
  white-space: normal;
  word-break: break-word;
}

.table th {
  color: #1d3e52;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #f8fbfb 0%, #f0f5f5 100%);
}

.table th.is-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.4rem;
}

.table th.is-sortable:hover,
.table th.is-sortable:focus-visible {
  background: rgba(75, 180, 216, 0.18);
}

.table th.is-sortable:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.6);
  outline-offset: -2px;
}

.table th.is-sortable::after {
  content: "\2195";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  font-size: 0.85rem;
}

.table th.is-sortable.is-sorted-asc::after {
  content: "\2191";
  opacity: 1;
}

.table th.is-sortable.is-sorted-desc::after {
  content: "\2193";
  opacity: 1;
}

.table tbody tr:nth-child(even) {
  background: rgba(243, 248, 248, 0.8);
}

.table tbody tr:hover {
  background: rgba(75, 180, 216, 0.1);
}

.ticket-row {
  cursor: pointer;
}

.ticket-row:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.6);
  outline-offset: -2px;
}

.table tbody tr.ticket-priority-row.ticket-priority-low {
  background: #dff4e8;
}

.table tbody tr.ticket-priority-row.ticket-priority-medium {
  background: #fff2dc;
}

.table tbody tr.ticket-priority-row.ticket-priority-high {
  background: #fce8e5;
}

.table tbody tr.ticket-priority-row.ticket-priority-low:hover {
  background: #cdebda;
}

.table tbody tr.ticket-priority-row.ticket-priority-medium:hover {
  background: #ffe9c7;
}

.table tbody tr.ticket-priority-row.ticket-priority-high:hover {
  background: #fad9d5;
}

.table td > .icon-btn,
.table td > .inline-form {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.35rem 0.35rem 0;
}

.table td > .inline-form {
  align-items: center;
}

.actions-col {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

th.actions-col {
  padding-left: 1rem;
}

td.actions-col {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  min-width: 11rem;
  text-align: right;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom-color: transparent;
}

td.actions-col > .icon-btn,
td.actions-col > .inline-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

td.actions-col > .inline-form {
  flex-wrap: nowrap;
  margin-bottom: 0;
}

td.actions-col > .icon-btn + .icon-btn,
td.actions-col > .inline-form + .icon-btn,
td.actions-col > .icon-btn + .inline-form {
  margin-left: 0;
}

td.actions-col > dialog.modal,
td.actions-col > dialog.modal .modal-inner,
td.actions-col > dialog.modal .modal-inner form,
td.actions-col > dialog.modal .modal-inner label,
td.actions-col > dialog.modal .modal-inner .field-block,
td.actions-col > dialog.modal .modal-inner .field-title,
td.actions-col > dialog.modal .modal-inner .field-hint {
  text-align: left !important;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.24rem 0.58rem;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: #0f5f5a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending,
.status-open,
.status-medium {
  background: #fff2dc;
  color: #8f5700;
}

.status-approved,
.status-closed,
.status-low {
  background: #dff4e8;
  color: #1f6b45;
}

.status-rejected,
.status-high {
  background: #fce8e5;
  color: #8f2e21;
}

.status-in_progress {
  background: #dceefc;
  color: #235d8b;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 130px;
}

.quick-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.rich-editor {
  display: grid;
  gap: 0.5rem;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rich-editor-toolbar .btn-ghost {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.rich-editor-area {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem;
}

.rich-editor-area:focus {
  outline: 0;
  border-color: var(--brand);
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.quill-editor-wrap {
  display: grid;
  gap: 0;
  margin-bottom: 0.25rem;
}

.quill-editor-wrap[hidden] {
  display: none !important;
}

textarea.editor-source-hidden {
  display: none !important;
}

form.is-rich-editor-active textarea[data-page-content="true"] {
  display: none !important;
}

.quill-editor-wrap .ql-toolbar.ql-snow {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #f8fcfc;
}

.quill-editor-wrap .ql-container.ql-snow {
  border: 1px solid var(--line);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  min-height: 320px;
  background: #fff;
}

.quill-editor-wrap .ql-editor {
  min-height: 300px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.content-rich .ql-align-center {
  text-align: center;
}

.content-rich .ql-align-right {
  text-align: right;
}

.content-rich .ql-align-justify {
  text-align: justify;
}

.content-rich .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}

.content-rich .ql-indent-1 {
  padding-left: 3em;
}

.content-rich .ql-indent-2 {
  padding-left: 6em;
}

.content-rich .ql-indent-3 {
  padding-left: 9em;
}

.content-rich .ql-indent-4 {
  padding-left: 12em;
}

.content-rich .ql-indent-5 {
  padding-left: 15em;
}

.content-rich .ql-indent-6 {
  padding-left: 18em;
}

.content-rich .ql-indent-7 {
  padding-left: 21em;
}

.content-rich .ql-indent-8 {
  padding-left: 24em;
}

.content-rich .ql-size-small {
  font-size: 0.75em;
}

.content-rich .ql-size-large {
  font-size: 1.5em;
}

.content-rich .ql-size-huge {
  font-size: 2.5em;
}

.kb-connect-prompt {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  max-width: 640px;
}

.kb-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.kb-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.kb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: #36535b;
}

.kb-breadcrumb a {
  color: #0d5651;
  text-decoration: none;
}

.kb-breadcrumb a:hover {
  text-decoration: underline;
}

.kb-breadcrumb-sep {
  color: #9aa7ab;
}

.kb-breadcrumb-current {
  font-weight: 600;
  color: var(--ink);
}

.kb-drive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.kb-drive-item {
  border: 1px solid rgba(225, 227, 230, 0.9);
  border-radius: 12px;
  background: #fff;
}

.kb-drive-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

a.kb-drive-row:hover {
  background: rgba(15, 118, 110, 0.08);
}

.kb-drive-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  color: #335b61;
}

.kb-drive-file-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

.kb-drive-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-drive-meta {
  color: #6b7d80;
  font-size: 0.85rem;
  flex: none;
}

.kb-drive-actions {
  flex: none;
  margin-left: 0.5rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr) minmax(250px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-main {
  display: grid;
  gap: 1rem;
}

.dashboard-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.dashboard-events {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.upcoming-events-card {
  position: sticky;
  top: 1rem;
}

.quick-actions-card {
  position: sticky;
  top: 1rem;
}

.quick-actions-card h2 {
  margin-top: 0;
}

.quick-actions-list {
  display: grid;
  gap: 0.6rem;
}

.quick-action-link {
  width: 100%;
  text-align: center;
}

.linkedin-feed-card {
  margin-top: 1rem;
}

.linkedin-feed-card h2 {
  margin-top: 0;
}

body .sk-ww-linkedin-page-post {
  margin-inline: 0 !important;
}

.sk-ww-linkedin-page-post > body.sk-ww.linkedin-page-post {
  margin-inline: 0 !important;
}

.linkedin-badge-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
  min-height: 44px;
}

.linkedin-post-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.linkedin-post-item {
  border: 1px solid var(--border-color, #dce3ea);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #f9fbfd;
}

.linkedin-post-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.linkedin-post-text {
  margin: 0 0 0.4rem;
  line-height: 1.45;
}

.linkedin-post-link {
  font-weight: 600;
  color: var(--accent-color, #0b5fff);
}

.linkedin-visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.linkedin-visit-link .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-btn {
  width: calc(1.5em + 1.1rem + 2px);
  height: calc(1.5em + 1.1rem + 2px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
}

.icon-btn .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.ui-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.icon-btn.btn-danger {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.search-inline {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.search-inline input[type="search"] {
  min-width: min(320px, 45vw);
  width: 100%;
}

.section-toolbar h1,
.section-toolbar h2 {
  margin: 0;
}

.segmented-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(225, 227, 230, 0.5);
  margin-bottom: 1rem;
}

.segmented-toggle-btn {
  border: 0;
  background: transparent;
  color: #36535b;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.segmented-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.segmented-toggle-btn.is-active {
  background: #fff;
  color: #0d5651;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.segmented-toggle-btn[hidden] {
  display: none;
}

dialog.modal {
  width: min(680px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
}

dialog.modal.modal-wide {
  width: min(960px, 95vw);
}

dialog.modal.modal-full {
  width: 95vw;
  max-width: 1600px;
  max-height: 90vh;
  overflow: hidden;
  position: fixed;
  top: 4vh;
  margin-top: 0;
}

dialog.modal.modal-full .modal-inner {
  max-height: 90vh;
  overflow-y: auto;
}


dialog.modal::backdrop {
  background: rgba(14, 38, 38, 0.5);
  backdrop-filter: blur(2px);
}

.modal-inner {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.ticket-edit-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

[data-ticket-view][hidden],
[data-ticket-edit][hidden] {
  display: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay::backdrop {
  background: rgba(14, 38, 38, 0.35);
  backdrop-filter: blur(1px);
}

.loading-overlay:not([open]) {
  display: none;
}

.loading-overlay-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: loading-overlay-spin 0.8s linear infinite;
}

@keyframes loading-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

.ticket-edit-left {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.ticket-edit-right {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

@media (max-width: 760px) {
  .ticket-edit-grid {
    grid-template-columns: 1fr;
  }
}

.ticket-view-fields {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.ticket-view-fields > div {
  display: grid;
  gap: 0.15rem;
}

.ticket-view-fields dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #526a6f;
  margin: 0;
}

.ticket-view-fields dd {
  margin: 0;
  font-weight: 600;
}

.ticket-edit-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.6rem;
}

.ticket-description-view {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
  max-height: 320px;
  overflow-y: auto;
}

.ticket-description-readonly {
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.ticket-description-view img {
  max-width: 100%;
  height: auto;
}

.ticket-description-view :first-child {
  margin-top: 0;
}

.ticket-description-view :last-child {
  margin-bottom: 0;
}

.ticket-comments h3 {
  margin: 0 0 0.6rem;
}

.ticket-reply-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-height: 280px;
  overflow-y: auto;
}

.ticket-reply-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ticket-reply-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.4rem 0.6rem 0.4rem 0.8rem;
  background: #e4f0ef;
  border-bottom: 1px solid var(--line);
}

.ticket-reply-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0d5651;
}

.ticket-reply-date {
  font-size: 0.75rem;
  color: #526a6f;
  white-space: nowrap;
}

.ticket-reply-header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.ticket-reply-header-actions form.inline-form {
  margin: 0;
  display: inline-flex;
}

.ticket-reply-header-actions .icon-btn {
  width: calc(1em + 1rem);
  height: calc(1em + 1rem);
  color: #0d5651;
}

.ticket-reply-header-actions .icon-btn .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.ticket-reply-header-actions[hidden] {
  display: none;
}

.ticket-reply-body {
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
  padding: 0.65rem 0.8rem;
}

.ticket-reply-body img {
  max-width: 100%;
  height: auto;
}

.ticket-reply-body :first-child {
  margin-top: 0;
}

.ticket-reply-body :last-child {
  margin-bottom: 0;
}

.ticket-reply-textarea {
  resize: vertical;
  min-height: 2.4rem;
}

.ticket-reply-field .quill-editor-wrap .ql-container.ql-snow {
  min-height: 90px;
  resize: vertical;
  overflow-y: auto;
}

.ticket-reply-field .quill-editor-wrap .ql-editor {
  min-height: 90px;
}

.ticket-reply-close-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #555);
  cursor: pointer;
  user-select: none;
}

.ticket-reply-close-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.ticket-reply-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem 0.65rem;
  background: #fff;
}

.ticket-reply-actions form.inline-form {
  margin: 0;
}

.ticket-reply-edit-form {
  padding: 0.65rem 0.8rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.ticket-reply-edit-form[hidden],
.ticket-reply-actions[hidden] {
  display: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header h2 {
  margin: 0;
}

.modal-close {
  min-width: 96px;
}

.table-scroll {
  max-height: 60vh;
  overflow-y: auto;
}

.headshot-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 227, 230, 0.95);
  background: #fff;
}

.profile-form {
  max-width: 760px;
}

.profile-headshot-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 227, 230, 0.95);
  background: #fff;
  flex: 0 0 96px;
}

.profile-headshot-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f5f5a;
  background: rgba(15, 118, 110, 0.14);
}

.headshot-crop-stage {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0.5rem;
  border: 1px solid rgba(225, 227, 230, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f5f8 100%);
}

#headshotCropCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  touch-action: none;
  cursor: grab;
  border: 1px solid rgba(195, 203, 216, 0.95);
  background: #1c2128;
}

#headshotCropCanvas.is-dragging {
  cursor: grabbing;
}

#folderDeleteChoiceForm > label {
  font-weight: 500;
}

.delete-choice-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid rgba(225, 227, 230, 0.95);
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.delete-choice-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin: 0.05rem 0 0;
  border: 2px solid #5a7f84;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.delete-choice-row input[type="radio"]:checked {
  border-color: var(--brand);
  background-image: radial-gradient(circle, var(--brand) 0 44%, transparent 48%);
}

.delete-choice-row input[type="radio"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.delete-choice-row span {
  line-height: 1.35;
}

#folderDeleteDestinationWrap {
  display: grid;
  gap: 0.35rem;
}

.content-plain {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
}

.content-rich {
  line-height: 1.6;
}

.content-rich img {
  max-width: 100%;
  height: auto;
}

.content-rich table {
  width: 100%;
  border-collapse: collapse;
}

.content-rich table th,
.content-rich table td {
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.muted,
small {
  color: #526a6f;
}

.required-asterisk {
  color: #b3261e;
  display: inline;
}

.error {
  background: #fff2ef;
  border: 1px solid #f0c2b9;
  color: #6b2e25;
  border-radius: 12px;
  padding: 0.6rem;
}

.success {
  background: #edf9f1;
  border: 1px solid #badfca;
  color: #1f5b3c;
  border-radius: 12px;
  padding: 0.6rem;
}

.auth-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 60;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  border-radius: 18px;
}

.auth-login-form {
  margin: 0;
}

.auth-login-form .btn-primary,
.auth-login-google {
  width: 100%;
  text-align: center;
}

.auth-login-google {
  display: block;
  margin-top: 0.75rem;
}

.hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4e656c;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: card-rise 320ms ease both;
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1600px) {
  .container {
    padding-left: clamp(2rem, 3vw, 4rem);
    padding-right: clamp(2rem, 3vw, 4rem);
  }
}

@media (max-width: 1024px) {
  .site-header {
    top: 30px;
  }

  .site-header-inner {
    width: calc(100% - 1.25rem);
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .container {
    width: calc(100% - 1.25rem);
  }

  .card {
    padding: 0.95rem;
  }

  .section-toolbar {
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-topbar {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table thead,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: table;
    width: auto;
    min-width: 100%;
  }

  .site-header {
    top: 30px;
  }

  .site-header-inner {
    width: calc(100% - 1.5rem);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .quick-actions-card,
  .upcoming-events-card {
    position: static;
  }

  .table {
    font-size: 0.9rem;
  }

  .kb-search-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kb-layout {
    grid-template-columns: 1fr;
  }

  .kb-doc-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    grid-column: 2;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    z-index: 80;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border: 1px solid rgba(225, 227, 230, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(8, 24, 43, 0.14);
  }

  .mobile-nav-panel.is-open {
    display: flex;
  }

  .mobile-nav-panel .main-nav-list {
    display: grid;
    gap: 0.25rem;
    grid-column: auto;
    justify-content: stretch;
  }

  .mobile-nav-panel .nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: stretch;
    grid-column: auto;
    justify-self: auto;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(225, 227, 230, 0.9);
  }

  .mobile-nav-panel .nav-actions a,
  .mobile-nav-panel .nav-actions form,
  .mobile-nav-panel .nav-actions button {
    width: 100%;
  }

  .mobile-nav-panel .nav-profile-link {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-nav-item {
    width: 100%;
  }

  .nav-link-wrap {
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem;
  }

  .top-nav-item .nav-link {
    flex: 1;
    padding-right: 0.4rem;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0.15rem 0 0.55rem;
    box-shadow: none;
    border-radius: 12px;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .mega-menu-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(225, 227, 230, 0.9);
    padding: 0.75rem 0.8rem;
  }

  .mega-columns {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.65rem;
  }

  .mega-column {
    border: 1px solid rgba(225, 227, 230, 0.92);
    border-radius: 10px;
    padding: 0.55rem;
    background: #fbfcfd;
  }

  .mega-featured {
    border-left: 0;
    border-top: 1px solid rgba(225, 227, 230, 0.92);
    padding: 0.7rem 0.8rem;
  }

  .sub-nav {
    position: static;
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 29px;
  }

  .site-header-inner {
    width: calc(100% - 1rem);
  }

  .brand-logo {
    max-height: 48px;
  }

  .container {
    width: calc(100% - 0.75rem);
    margin: 0.75rem auto 1rem;
  }

  .card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll-to-top button */
.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 9998;
}

.scroll-to-top-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 15px solid #fff;
  margin-top: -2px;
}

.scroll-to-top:hover {
  background: var(--brand-deep);
}

.scroll-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── OpenDyslexic font ─── */
@font-face {
  font-family: "OpenDyslexic";
  src: url("https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Accessibility FAB ─── */
.a11y-fab {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 9998;
}

.a11y-fab svg {
  width: 1.4rem;
  height: 1.4rem;
}

.a11y-fab:hover {
  background: var(--brand-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* ── Accessibility Panel ─── */
.a11y-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 92vw);
  z-index: 9999;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.a11y-panel.is-open {
  transform: translateX(0);
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.a11y-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.a11y-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, color 150ms ease;
}

.a11y-close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.a11y-panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 0.6rem 1rem 2rem;
}

.a11y-section {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.a11y-section:last-of-type {
  border-bottom: none;
}

.a11y-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

/* Font size controls */
.a11y-font-size-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.4rem;
}

.a11y-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.93rem;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.a11y-btn:hover {
  border-color: var(--brand);
  background: #e4f1f1;
}

/* Contrast grid */
.a11y-contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.a11y-contrast-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 0.45rem 0.3rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.a11y-contrast-btn:hover,
.a11y-contrast-btn.is-active {
  border-color: var(--brand);
  background: #d9edee;
}

/* Toggle rows */
.a11y-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}

.a11y-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2.4rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.a11y-toggle span {
  position: absolute;
  top: 50%;
  left: 0.18rem;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #9aa0a6;
  transition: left 200ms ease, background 200ms ease;
}

.a11y-toggle.is-on {
  background: var(--brand);
  border-color: var(--brand-deep);
}

.a11y-toggle.is-on span {
  left: calc(100% - 0.18rem - 0.95rem);
  background: #fff;
}

/* Reset button */
.a11y-reset {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.a11y-reset:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Accessibility state classes ─── */

html[data-a11y-font-size="-2"] { font-size: 80%; }
html[data-a11y-font-size="-1"] { font-size: 90%; }
html[data-a11y-font-size="1"]  { font-size: 112%; }
html[data-a11y-font-size="2"]  { font-size: 125%; }
html[data-a11y-font-size="3"]  { font-size: 140%; }
html[data-a11y-font-size="4"]  { font-size: 158%; }

html.a11y-large-line-height * { line-height: 2 !important; }
html.a11y-large-letter-spacing * { letter-spacing: 0.12em !important; }
html.a11y-large-word-spacing * { word-spacing: 0.25em !important; }

html.a11y-grayscale { filter: grayscale(100%); }

html.a11y-dyslexia-font,
html.a11y-dyslexia-font * {
  font-family: "OpenDyslexic", "Comic Sans MS", Arial, sans-serif !important;
}

html.a11y-highlight-links a {
  background: rgba(255, 235, 59, 0.35) !important;
  color: #7a5b00 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  outline: 2px solid rgba(255, 193, 7, 0.5);
  border-radius: 2px;
  padding: 0 2px;
}

html.a11y-left-align * { text-align: left !important; }

/* Allow specific images to opt-out of the global "hide images" accessibility
   rule by giving them the `a11y-allow` class (e.g. small UI icons/logo). */
html.a11y-hide-images img:not(.a11y-allow),
html.a11y-hide-images video:not(.a11y-allow),
html.a11y-hide-images [role="img"]:not(.a11y-allow) { visibility: hidden !important; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-enhanced-focus *:focus-visible {
  outline: 3px solid #ffb300 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.28) !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2 L5 18 L9 14 L12 21 L14 20 L11 13 L16 13 Z' fill='white' stroke='black' stroke-width='0.8'/%3E%3C/svg%3E") 5 2, auto !important;
}

/* High contrast — dark */
html.a11y-contrast-high-dark {
  --bg: #000000;
  --surface: #111111;
  --surface-soft: #1a1a1a;
  --ink: #ffffff;
  --line: rgba(255, 255, 255, 0.45);
  --brand: #ffd400;
  --brand-deep: #e0b800;
  --brand-soft: #1c1c00;
}
html.a11y-contrast-high-dark body { background: #000 !important; color: #fff !important; }

/* High contrast — light */
html.a11y-contrast-high-light {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f0f0f0;
  --ink: #000000;
  --line: rgba(0, 0, 0, 0.42);
  --brand: #00008b;
  --brand-deep: #000066;
  --brand-soft: #e6e6f5;
}
html.a11y-contrast-high-light body { background: #fff !important; color: #000 !important; }

/* Yellow on black */
html.a11y-contrast-yellow {
  --bg: #000000;
  --surface: #000000;
  --surface-soft: #121200;
  --ink: #ffff00;
  --line: rgba(255, 255, 0, 0.5);
  --brand: #ffff00;
  --brand-deep: #cccc00;
  --brand-soft: #1a1a00;
}
html.a11y-contrast-yellow body { background: #000 !important; color: #ffff00 !important; }

/* A number of components across the site use a hardcoded white background
   (or a hardcoded dark text color) rather than the `--surface`/`--ink`
   theme variables above, so they don't automatically pick up the dark and
   yellow-on-black contrast themes. Force them onto the active theme's
   surface/ink colors here so no white panels remain in those modes. */
html.a11y-contrast-high-dark .mega-menu,
html.a11y-contrast-high-dark .sub-nav,
html.a11y-contrast-high-dark .mega-featured-link,
html.a11y-contrast-high-dark .stat,
html.a11y-contrast-high-dark .card,
html.a11y-contrast-high-dark .table,
html.a11y-contrast-high-dark .list li,
html.a11y-contrast-high-dark .people-avatar,
html.a11y-contrast-high-dark .segmented-toggle-btn.is-active,
html.a11y-contrast-high-dark .modal-inner,
html.a11y-contrast-high-dark .rich-editor-area,
html.a11y-contrast-high-dark .quill-editor-wrap .ql-container.ql-snow,
html.a11y-contrast-high-dark .ticket-description-view,
html.a11y-contrast-high-dark .ticket-reply-item,
html.a11y-contrast-high-dark .ticket-reply-body,
html.a11y-contrast-high-dark .ticket-reply-actions,
html.a11y-contrast-high-dark .ticket-reply-edit-form,
html.a11y-contrast-high-dark .headshot-preview,
html.a11y-contrast-high-dark .profile-headshot,
html.a11y-contrast-high-dark .delete-choice-row input[type="radio"],
html.a11y-contrast-high-dark .kb-drive-item,
html.a11y-contrast-high-dark .site-header,
html.a11y-contrast-high-dark .btn-ghost,
html.a11y-contrast-high-dark .btn-secondary,
html.a11y-contrast-high-dark .segmented-toggle,
html.a11y-contrast-high-dark .segmented-toggle-btn,
html.a11y-contrast-high-dark .cookie-banner,
html.a11y-contrast-high-dark .auth-card,
html.a11y-contrast-high-dark input,
html.a11y-contrast-high-dark textarea,
html.a11y-contrast-high-dark select,
html.a11y-contrast-yellow .mega-menu,
html.a11y-contrast-yellow .sub-nav,
html.a11y-contrast-yellow .mega-featured-link,
html.a11y-contrast-yellow .stat,
html.a11y-contrast-yellow .card,
html.a11y-contrast-yellow .table,
html.a11y-contrast-yellow .list li,
html.a11y-contrast-yellow .people-avatar,
html.a11y-contrast-yellow .segmented-toggle-btn.is-active,
html.a11y-contrast-yellow .modal-inner,
html.a11y-contrast-yellow .rich-editor-area,
html.a11y-contrast-yellow .quill-editor-wrap .ql-container.ql-snow,
html.a11y-contrast-yellow .ticket-description-view,
html.a11y-contrast-yellow .ticket-reply-item,
html.a11y-contrast-yellow .ticket-reply-body,
html.a11y-contrast-yellow .ticket-reply-actions,
html.a11y-contrast-yellow .ticket-reply-edit-form,
html.a11y-contrast-yellow .headshot-preview,
html.a11y-contrast-yellow .profile-headshot,
html.a11y-contrast-yellow .delete-choice-row input[type="radio"],
html.a11y-contrast-yellow .kb-drive-item,
html.a11y-contrast-yellow .site-header,
html.a11y-contrast-yellow .btn-ghost,
html.a11y-contrast-yellow .btn-secondary,
html.a11y-contrast-yellow .segmented-toggle,
html.a11y-contrast-yellow .segmented-toggle-btn,
html.a11y-contrast-yellow .cookie-banner,
html.a11y-contrast-yellow .auth-card,
html.a11y-contrast-yellow input,
html.a11y-contrast-yellow textarea,
html.a11y-contrast-yellow select {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

html.a11y-contrast-high-dark .mega-featured-link,
html.a11y-contrast-high-dark .field-hint,
html.a11y-contrast-high-dark .mega-column h4,
html.a11y-contrast-high-dark .mega-menu-intro h3,
html.a11y-contrast-high-dark .nav-toggle,
html.a11y-contrast-high-dark .nav-link,
html.a11y-contrast-high-dark .brand,
html.a11y-contrast-yellow .mega-featured-link,
html.a11y-contrast-yellow .field-hint,
html.a11y-contrast-yellow .mega-column h4,
html.a11y-contrast-yellow .mega-menu-intro h3,
html.a11y-contrast-yellow .nav-toggle,
html.a11y-contrast-yellow .nav-link,
html.a11y-contrast-yellow .brand {
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark .table tbody tr:nth-child(even),
html.a11y-contrast-yellow .table tbody tr:nth-child(even) {
  background: var(--surface-soft) !important;
}

html.a11y-contrast-high-dark .table th,
html.a11y-contrast-yellow .table th {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark .segmented-toggle-btn:hover,
html.a11y-contrast-high-dark .btn-ghost:hover,
html.a11y-contrast-high-dark .btn-secondary:hover,
html.a11y-contrast-yellow .segmented-toggle-btn:hover,
html.a11y-contrast-yellow .btn-ghost:hover,
html.a11y-contrast-yellow .btn-secondary:hover {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark .hero .btn-primary,
html.a11y-contrast-yellow .hero .btn-primary {
  background: var(--brand) !important;
  color: var(--bg) !important;
}

/* The decorative page-wide gradients/grid overlay are hardcoded light colors
   and don't respond to the theme variables above; suppress them entirely in
   the high-contrast themes so they don't wash out the page. */
html.a11y-contrast-high-dark body,
html.a11y-contrast-yellow body {
  background-image: none !important;
}

html.a11y-contrast-high-dark body::before,
html.a11y-contrast-yellow body::before {
  display: none !important;
}

/* Mega menu "Explore" intro column and "Featured" column both use hardcoded
   light gradients/backgrounds and dark text colors, independent of the
   `.mega-menu` background override above (which only targets the outer
   wrapper, not these inner panels). Force them onto the theme surface. */
html.a11y-contrast-high-dark .mega-menu-intro,
html.a11y-contrast-high-dark .mega-column,
html.a11y-contrast-high-dark .mega-column:hover,
html.a11y-contrast-high-dark .mega-featured,
html.a11y-contrast-yellow .mega-menu-intro,
html.a11y-contrast-yellow .mega-column,
html.a11y-contrast-yellow .mega-column:hover,
html.a11y-contrast-yellow .mega-featured {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

html.a11y-contrast-high-dark .mega-kicker,
html.a11y-contrast-high-dark .mega-intro-text,
html.a11y-contrast-high-dark .mega-link,
html.a11y-contrast-high-dark .mega-featured h4,
html.a11y-contrast-high-dark .mega-featured-link-title,
html.a11y-contrast-yellow .mega-kicker,
html.a11y-contrast-yellow .mega-intro-text,
html.a11y-contrast-yellow .mega-link,
html.a11y-contrast-yellow .mega-featured h4,
html.a11y-contrast-yellow .mega-featured-link-title {
  color: var(--ink) !important;
}

/* Status/priority pills in tables (open/closed/pending/approved/etc.) use
   hardcoded pastel backgrounds with dark text, which become unreadable or
   invisible against the high-contrast dark/yellow themes. Force them onto
   the theme surface with themed text instead. */
html.a11y-contrast-high-dark .status,
html.a11y-contrast-high-dark .pill,
html.a11y-contrast-yellow .status,
html.a11y-contrast-yellow .pill {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}

html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-low,
html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-medium,
html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-high,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-low,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-medium,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-high {
  background: var(--surface) !important;
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-low:hover,
html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-medium:hover,
html.a11y-contrast-high-dark .table tbody tr.ticket-priority-row.ticket-priority-high:hover,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-low:hover,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-medium:hover,
html.a11y-contrast-yellow .table tbody tr.ticket-priority-row.ticket-priority-high:hover {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

/* Safety net: the site uses many one-off hardcoded muted text colors (greys,
   navys, etc.) tuned for the default light theme, which lose their intended
   contrast once the surrounding backgrounds switch to near-black (High Dark)
   or pure black (Yellow/Black). Rather than hunt down every individual
   selector, force ALL text within these two themes onto the theme's own
   `--ink` color, then restore a small set of intentional exceptions
   (links, and buttons with a solid/colourful background) so those remain
   legible against their own background rather than blending into it. */
html.a11y-contrast-high-dark,
html.a11y-contrast-high-dark *,
html.a11y-contrast-yellow,
html.a11y-contrast-yellow * {
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark a,
html.a11y-contrast-yellow a {
  color: var(--brand) !important;
  text-decoration: underline;
}

html.a11y-contrast-high-dark .btn-primary,
html.a11y-contrast-high-dark .btn-danger,
html.a11y-contrast-high-dark .hero .btn-primary,
html.a11y-contrast-high-dark .cookie-btn-accept,
html.a11y-contrast-yellow .btn-primary,
html.a11y-contrast-yellow .btn-danger,
html.a11y-contrast-yellow .hero .btn-primary,
html.a11y-contrast-yellow .cookie-btn-accept {
  color: var(--bg) !important;
}

html.a11y-contrast-high-dark .a11y-fab,
html.a11y-contrast-yellow .a11y-fab {
  color: var(--bg) !important;
}

/* The Events calendar page uses several hardcoded backgrounds/colors
   (white cells, near-transparent-black grid background, brand-tinted
   rgba() event pills, fixed grey text) instead of the theme variables, so
   they didn't respond to the high-contrast/yellow themes above. Force them
   onto the active theme's surface/ink colors here. */
html.a11y-contrast-high-dark .events-calendar,
html.a11y-contrast-yellow .events-calendar {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

html.a11y-contrast-high-dark .events-calendar-cell,
html.a11y-contrast-yellow .events-calendar-cell {
  background: var(--surface) !important;
}

html.a11y-contrast-high-dark .events-calendar-cell-empty,
html.a11y-contrast-yellow .events-calendar-cell-empty {
  background: transparent !important;
}

html.a11y-contrast-high-dark .events-calendar-weekday,
html.a11y-contrast-high-dark .events-calendar-date,
html.a11y-contrast-yellow .events-calendar-weekday,
html.a11y-contrast-yellow .events-calendar-date {
  color: var(--ink) !important;
}

html.a11y-contrast-high-dark .events-calendar-event,
html.a11y-contrast-yellow .events-calendar-event {
  background: var(--surface-soft) !important;
  border-left-color: var(--brand) !important;
}

html.a11y-contrast-high-dark .events-calendar-event:hover,
html.a11y-contrast-high-dark .events-calendar-event:focus-visible,
html.a11y-contrast-yellow .events-calendar-event:hover,
html.a11y-contrast-yellow .events-calendar-event:focus-visible {
  background: var(--surface) !important;
}

html.a11y-contrast-high-dark .events-clickable-row:hover,
html.a11y-contrast-high-dark .events-clickable-row:focus-visible,
html.a11y-contrast-yellow .events-clickable-row:hover,
html.a11y-contrast-yellow .events-clickable-row:focus-visible {
  background: var(--surface-soft) !important;
}

html.a11y-contrast-high-dark .events-month-select,
html.a11y-contrast-high-dark .events-year-select,
html.a11y-contrast-yellow .events-month-select,
html.a11y-contrast-yellow .events-year-select {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}


/* Reading guide */
.a11y-reading-guide-line {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 152, 0, 0.85);
  pointer-events: none;
  z-index: 9900;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.55), 0 0 2px rgba(255, 152, 0, 0.9);
  transform: translateY(-1px);
}

/* Reading mask */
.a11y-mask-top,
.a11y-mask-bottom {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.68);
  pointer-events: none;
  z-index: 9899;
}

.a11y-mask-top { top: 0; height: 0; }
.a11y-mask-bottom { top: 100vh; bottom: 0; }

@media (max-width: 560px) {
  .a11y-panel {
    width: 100vw;
  }

  .a11y-contrast-grid {
    grid-template-columns: 1fr;
  }
}

/* Events calendar */
.events-tabs {
  margin: 0.5rem 0 0.75rem;
}

.events-clickable-row {
  cursor: pointer;
}

.events-clickable-row:hover,
.events-clickable-row:focus-visible {
  background: rgba(14, 110, 110, 0.12);
  outline: none;
}

.events-modal-columns {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.events-modal-left {
  border-right: 1px solid var(--line);
  padding-right: 1.25rem;
}

.events-open-in-salesforce {
  display: inline-block;
  margin-top: 1rem;
}

.events-click-hint {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.events-modal-right {
  min-width: 0;
}

@media (max-width: 800px) {
  .events-modal-columns {
    grid-template-columns: 1fr;
  }

  .events-modal-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

.events-filter-form {
  margin-bottom: 1.25rem;
}

.events-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.events-sidebar {
  position: sticky;
  top: 1rem;
}

.events-sidebar .section-toolbar {
  margin-bottom: 0.75rem;
}

.events-sidebar .events-filter-form {
  margin-bottom: 0;
}

.events-sidebar .events-filter-grid {
  grid-template-columns: 1fr;
}

.events-sidebar .events-filter-actions {
  flex-direction: column;
  align-items: stretch;
}

.events-main {
  min-width: 0;
}

@media (max-width: 900px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-sidebar {
    position: static;
  }

  .events-sidebar .events-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .events-sidebar .events-filter-actions {
    flex-direction: row;
    align-items: center;
  }
}

.events-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.events-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #36535b;
}

.events-filter-grid select {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
}

.events-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.events-clear-link {
  text-align: center;
}

.events-calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.events-month-label {
  margin: 0;
  flex: 1;
  text-align: center;
  min-width: 180px;
}

.events-month-year-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  margin: 0;
}

.events-month-select,
.events-year-select {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d3e52;
  background: #fff;
}

.events-year-select {
  min-width: 90px;
}

.events-today-link {
  margin-left: auto;
}

.events-calendar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: 10px;
}

.events-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.events-calendar-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px 4px;
  margin-bottom: 4px;
}

.events-calendar-bar {
  position: relative;
  height: 20px;
  margin: 0;
  padding: 0 0.35rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.events-calendar-bar:hover,
.events-calendar-bar:focus-visible {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-deep) 100%);
  transform: translateY(-1px);
}

.events-calendar-bar-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.events-calendar-bar-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.events-calendar-bar-row-start {
  margin-left: 0.4rem;
}

.events-calendar-bar-row-end {
  margin-right: 0.4rem;
}

.events-calendar-weekday {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  color: #36535b;
}

.events-calendar-cell {
  background: #fff;
  border-radius: 8px;
  min-height: 100px;
  overflow: hidden;
}

.events-calendar-cell-body {
  padding: 0 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.events-calendar-cell-empty {
  background: transparent;
}

.events-calendar-cell-today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}


.events-calendar-date {
  font-weight: 700;
  font-size: 0.85rem;
  color: #36535b;
  padding: 0.4rem 0.4rem 0.75rem;
}

.events-calendar-event {
  background: rgba(14, 110, 110, 0.12);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
  text-align: left;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.events-calendar-event:hover,
.events-calendar-event:focus-visible {
  background: rgba(14, 110, 110, 0.24);
  transform: translateY(-1px);
}

.events-calendar-event-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-calendar-event-type {
  font-size: 0.68rem;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .events-calendar-weekdays,
  .events-calendar-week {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
  }

  .events-calendar-cell {
    min-height: 70px;
    font-size: 0.7rem;
  }

  .events-calendar-weekday {
    font-size: 0.7rem;
  }
}

