
:root {
  /* DAAB activities palette (daab-tokens.css) */
  --ink: #08263b;
  --ink-soft: #345f86;
  --paper: #f5fbff;
  --surface: #ffffff;
  --surface-muted: #eef7fc;
  --nav-blue: #0069b4;
  --nav-blue-deep: #005a9a;
  --nav-blue-soft: #dff2ff;
  --panel-blue: #e5f4fb;
  --panel-blue-deep: #d9eef9;
  --blue-400: #4eb4ee;
  --blue-600: #117fc8;
  --blue-800: #133f63;
  --blue-900: #06314e;
  --blue-soft: #9ed6f5;
  --gold: #c99b3b;
  --gold-soft: #fff0bf;
  --accent: #0069b4;
  --accent-hover: #005a9a;
  --line: rgba(0, 105, 180, 0.18);
  --line-strong: rgba(0, 105, 180, 0.26);
  --ring: rgba(0, 105, 180, 0.28);
  --shadow: 0 12px 32px rgba(0, 78, 140, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --max-wide: 1280px;
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 4.25rem;
  --breadcrumb-h: 2.7rem;
  --tools-bar-h: 4.5rem;
  --sticky-stack-h: 0rem;
  --tools-sticky-top: calc(var(--header-h) + var(--breadcrumb-h));
  --sticky-stack-bottom: calc(var(--header-h) + var(--breadcrumb-h) + var(--sticky-stack-h));
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
}
.page-category {
  --sticky-stack-h: 10.5rem;
  --tools-sticky-top: calc(var(--header-h) + var(--breadcrumb-h));
  --sticky-stack-bottom: calc(var(--header-h) + var(--breadcrumb-h) + var(--sticky-stack-h));
}
.page-home {
  --tools-sticky-top: calc(var(--header-h) + var(--breadcrumb-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.smooth-scroll { scroll-behavior: smooth; }
html.no-smooth-scroll,
html.no-smooth-scroll * {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(78, 180, 238, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(0, 105, 180, 0.08), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, var(--paper) 42%, #eef7fc 100%);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(0, 105, 180, 0.18);
  color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--nav-blue);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: linear-gradient(180deg, var(--blue-600) 0%, var(--nav-blue) 55%, var(--nav-blue-deep) 100%);
  border-bottom: 3px solid var(--blue-900);
  color: #fff;
}
.site-header__inner {
  position: relative;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
.site-header__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}
.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}
.global-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-width: min(17.6rem, 27.2vw);
  min-height: 3.1rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 45, 82, 0.16);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.global-search-toggle:hover,
.global-search-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 45, 82, 0.2);
}
.global-search-toggle svg {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}
.global-search-toggle__label {
  opacity: 0.92;
  white-space: nowrap;
  margin-right: auto;
}
.global-search-toggle__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.4rem;
  background: rgba(8, 38, 59, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.global-search[hidden] { display: none !important; }
.global-search {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: calc(var(--header-h) + 1rem) 1rem 1.5rem;
}
.global-search__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 38, 59, 0.45);
  cursor: pointer;
}
.global-search__panel {
  position: relative;
  z-index: 1;
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(72vh, 34rem);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 105, 180, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 45, 82, 0.28);
  overflow: hidden;
  color: var(--ink);
}
.global-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--nav-blue) 58%, var(--blue-400) 100%);
  border-bottom: 2px solid #f0c75e;
  color: #fff;
}
.global-search__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}
.global-search__close {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.global-search__field {
  display: block;
  padding: 0.9rem 1.05rem 0.35rem;
}
.global-search__field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(0, 105, 180, 0.28);
  border-radius: 999px;
  background: var(--panel-blue);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.global-search__field input:focus {
  outline: 3px solid var(--ring);
  outline-offset: 1px;
}
.global-search__status {
  margin: 0;
  padding: 0.25rem 1.15rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.global-search__results {
  padding: 0 0.65rem 0.85rem;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
}
.global-search__item {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
}
.global-search__item:hover,
.global-search__item:focus-visible {
  background: var(--surface-muted);
  border-color: rgba(0, 105, 180, 0.18);
}
.global-search__item-title {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.global-search__item-meta {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
body.global-search-open { overflow: hidden; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand__name { color: #fff; }
.brand:hover { color: #fff; opacity: 0.95; }

.breadcrumbs {
  position: sticky;
  top: var(--header-h);
  z-index: 35;
  background: rgba(238, 248, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  min-width: 0;
}
.breadcrumbs__item:not(:last-child)::after {
  content: ">";
  margin: 0 0.45rem;
  color: rgba(0, 78, 140, 0.35);
}
.breadcrumbs__item a {
  color: var(--nav-blue);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs__item a:hover {
  text-decoration: underline;
  color: var(--nav-blue-deep);
}
.breadcrumbs__item[aria-current="page"] span {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nav-dropdown { position: relative; font-family: var(--font-ui); }
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-dropdown > summary .menu-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.6rem;
}
.nav-dropdown > summary .menu-icon__svg {
  width: 15px;
  height: 15px;
}
.nav-dropdown > summary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.75);
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 160ms ease;
}
.nav-dropdown[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }
.nav-dropdown__list {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  min-width: min(22rem, 86vw);
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: linear-gradient(180deg, #eef8ff 0%, var(--panel-blue) 100%);
  border: 1px solid rgba(0, 105, 180, 0.22);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: min(70vh, 28rem);
  overflow: auto;
  opacity: 0;
  transform: translateY(-6px);
  animation: drop-in 180ms ease forwards;
  color: var(--ink);
}
.nav-dropdown__list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-dropdown__list a:hover,
.nav-dropdown__list a.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--nav-blue-deep);
}
.menu-icon {
  --icon-from: #0069b4;
  --icon-to: #4eb4ee;
  --icon-glow: #9ed6f5;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.7rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.35) 42%, transparent 43%),
    linear-gradient(145deg, var(--icon-from), var(--icon-to));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 4px rgba(0, 0, 0, 0.18) inset,
    0 4px 10px color-mix(in srgb, var(--icon-glow) 55%, transparent),
    0 2px 0 rgba(0, 0, 0, 0.12);
  transform: perspective(120px) rotateX(12deg) translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.menu-icon__svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
  stroke: #fff;
}
.nav-dropdown__list a:hover .menu-icon,
.nav-dropdown__list a.is-active .menu-icon {
  transform: perspective(120px) rotateX(6deg) translateY(-1px) scale(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -2px 4px rgba(0, 0, 0, 0.16) inset,
    0 7px 14px color-mix(in srgb, var(--icon-glow) 65%, transparent),
    0 2px 0 rgba(0, 0, 0, 0.1);
}

@keyframes drop-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-fade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-shine {
  from { transform: translateX(-30%) rotate(12deg); opacity: 0; }
  to { transform: translateX(0) rotate(12deg); opacity: 1; }
}
.intro {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.35rem;
  overflow: hidden;
}
.intro__atmosphere {
  position: absolute;
  top: 0.15rem;
  left: 1.25rem;
  right: 1.25rem;
  width: auto;
  transform: none;
  height: min(18rem, 52vw);
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 80% at 12% 20%, rgba(78, 180, 238, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 70% at 88% 10%, rgba(0, 105, 180, 0.18), transparent 58%),
    radial-gradient(ellipse 40% 50% at 70% 85%, rgba(201, 155, 59, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(217, 240, 255, 0.75), rgba(245, 251, 255, 0.35) 55%, rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(158, 214, 245, 0.55);
  box-shadow: 0 24px 60px rgba(0, 78, 140, 0.1);
}
.intro__atmosphere::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: intro-shine 1.1s ease both 180ms;
}
.intro__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.55rem 1.35rem 0.45rem 1.6rem;
  border: 1px solid rgba(0, 105, 180, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 248, 255, 0.88) 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 40px rgba(0, 78, 140, 0.12);
  animation: intro-fade 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro__copy {
  min-width: 0;
  text-align: center;
}
.intro__visual {
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
  animation: intro-fade 900ms cubic-bezier(0.22, 1, 0.36, 1) both 160ms;
}
.intro__visual img {
  width: min(100%, 11.5rem);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 78, 140, 0.14));
}
.intro__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  margin: 0 0 0.45rem;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  animation: intro-fade 760ms cubic-bezier(0.22, 1, 0.36, 1) both 120ms;
}
.intro__brand span {
  background: linear-gradient(135deg, var(--nav-blue) 10%, var(--blue-400) 55%, #2e9fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro__lead {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  animation: intro-fade 820ms cubic-bezier(0.22, 1, 0.36, 1) both 180ms;
}
@media (max-width: 760px) {
  .intro__content {
    grid-template-columns: 1fr;
    padding: 0.85rem 1.2rem 0.75rem;
    gap: 0.45rem;
  }
  .intro__visual {
    margin: 0;
    justify-self: center;
  }
  .intro__visual img {
    width: min(48%, 9.5rem);
  }
  .intro__atmosphere {
    height: min(22rem, 70vw);
  }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4.5rem;
}
.section__head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.section__head p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tools-bar {
  position: sticky;
  top: var(--tools-sticky-top);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 78, 140, 0.08);
  font-family: var(--font-ui);
}
.page-category .sticky-stack {
  position: sticky;
  top: calc(var(--header-h) + var(--breadcrumb-h));
  z-index: 32;
  background: rgba(245, 251, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 105, 180, 0.16);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}
.page-category .sticky-stack .category-hero,
.page-category .sticky-stack .tools-bar {
  position: relative;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  border-bottom: 0;
  margin-bottom: 0;
}
.page-category .tools-bar {
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2.5rem);
}
.tools-bar__search {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}
.tools-bar__search input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.tools-bar__search input:focus {
  outline: 3px solid var(--ring);
  outline-offset: 1px;
  border-color: rgba(0, 105, 180, 0.45);
}
.tools-bar__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.tools-bar__sort select {
  min-height: 2.6rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 105, 180, 0.2);
  border-radius: 999px;
  background: var(--panel-blue);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}
.tools-bar__images {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(0, 105, 180, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nav-blue), var(--blue-400));
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 45, 82, 0.14);
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}
.tools-bar__images:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.tools-bar__images[aria-pressed="true"] {
  background: var(--surface);
  color: var(--nav-blue);
  border-color: rgba(0, 105, 180, 0.35);
  box-shadow: none;
}
.tools-bar__status {
  margin: 0;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.tools-empty {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  text-align: center;
}
.page-category .tools-empty {
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2.5rem);
}
[hidden] { display: none !important; }

/* DAAB home page-card parity */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    column-gap: 0.65rem;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
  }
  .brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-header__actions {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }
  .global-search-toggle__label,
  .global-search-toggle__kbd { display: none; }
  .global-search-toggle {
    min-width: 2.5rem;
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.45rem;
    justify-content: center;
    box-shadow: none;
  }
  .global-search-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
  }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 45;
    padding: 0.75rem 1.25rem 1rem;
    background: linear-gradient(180deg, #f5fbff 0%, #e8f5fc 100%);
    border-bottom: 1px solid rgba(0, 105, 180, 0.18);
    box-shadow: 0 16px 28px rgba(0, 45, 82, 0.16);
  }
  .site-header.is-nav-open .primary-nav {
    display: block;
    animation: drop-in 180ms ease both;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary {
    display: none;
  }
  .nav-dropdown__list {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: min(70vh, 28rem);
    margin: 0;
    padding: 0.35rem;
    box-shadow: none;
    border: 1px solid rgba(0, 105, 180, 0.14);
    opacity: 1;
    transform: none;
    animation: none;
  }
  body.nav-open { overflow: hidden; }
}

.cat-card.page-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 0;
  min-height: 0;
  height: 100%;
  padding: 16px 16px 12px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--blue-soft);
  background: rgba(245, 251, 255, 0.96);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cat-card.page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(46, 159, 212, 0.12), transparent 52%, rgba(200, 155, 56, 0.13));
  transition: opacity 0.25s ease;
}
.cat-card.page-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  z-index: -1;
  width: 130px;
  height: 130px;
  background: rgba(46, 159, 212, 0.09);
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.cat-card.page-card:hover {
  transform: translateY(-7px);
  border-color: var(--blue-400);
  box-shadow: 0 20px 45px rgba(0, 78, 140, 0.2);
}
.cat-card.page-card:hover::before { opacity: 1; }
.cat-card.page-card:hover::after { transform: scale(1.25); }
.cat-card .card-icon-wrap {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: start;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  background: linear-gradient(135deg, #d9f0ff, #fff);
  border: 1px solid var(--blue-soft);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(0, 105, 180, 0.16);
}
.cat-card .card-icon-wrap .menu-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 3px rgba(0, 0, 0, 0.16) inset,
    0 3px 8px color-mix(in srgb, var(--icon-glow) 50%, transparent);
}
.cat-card .card-icon-wrap .menu-icon__svg {
  width: 16px;
  height: 16px;
}
.cat-card .card-body {
  display: contents;
}
.cat-card .card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 8px;
  color: var(--nav-blue-deep);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.cat-card .card-desc {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.cat-card__meta {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 105, 180, 0.16);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nav-blue);
  white-space: nowrap;
}

.category-page { padding-bottom: 3rem; }
.category-hero {
  width: 100%;
  margin: 0;
  padding: 0.95rem max(1.25rem, calc((100% - var(--max-wide)) / 2 + 1.25rem)) 0.8rem;
  background: transparent;
  animation: intro-fade 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin: 0 0 0.55rem;
}
.eyebrow a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}
.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  background: linear-gradient(135deg, var(--ink) 0%, var(--nav-blue-deep) 55%, var(--nav-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.category-hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.4;
}

.category-layout {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  overflow: visible;
}
/* DAAB News sidebar widget parity (activities.html) */
.story-nav.sidebar {
  position: sticky;
  top: calc(var(--sticky-stack-bottom) + 12px);
  align-self: start;
  width: 100%;
  max-height: calc(100vh - var(--sticky-stack-bottom) - 28px);
  overflow: visible;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.story-nav .sidebar-widget {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - var(--sticky-stack-bottom) - 28px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 105, 180, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 45, 82, 0.10);
}
.story-nav .widget-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--nav-blue-deep) 58%, #2e9fd4 100%);
  border-bottom: 2px solid #f0c75e;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.6px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.story-nav .widget-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.story-nav .events-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}
.story-nav .events-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}
.story-nav .widget-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2e9fd4 #e8eef5;
}
.story-nav .widget-body::-webkit-scrollbar { width: 6px; }
.story-nav .widget-body::-webkit-scrollbar-track { background: #e8eef5; border-radius: 3px; }
.story-nav .widget-body::-webkit-scrollbar-thumb { background: #2e9fd4; border-radius: 3px; }
.story-nav .widget-body::-webkit-scrollbar-thumb:hover { background: #1a6fa8; }
.story-nav .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-nav .timeline-list li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 45, 82, 0.08);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.3;
  color: #345d76;
  transition: color 0.18s ease;
}
.story-nav .timeline-list li:last-child { border-bottom: none; }
.story-nav .timeline-list li:hover { color: var(--nav-blue); }
.story-nav .timeline-list a {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: -2px -6px;
  padding: 2px 6px;
  color: inherit;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  border: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.story-nav .timeline-list a:hover,
.story-nav .timeline-list a:focus-visible,
.story-nav .timeline-list a.is-active {
  color: var(--nav-blue) !important;
  background: var(--surface-muted) !important;
  text-decoration: none !important;
}
.story-nav .timeline-list a.is-active {
  font-weight: 700;
}

.story-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* DAAB News feed card parity (activities.html) */
.story.news-card {
  scroll-margin-top: calc(var(--sticky-stack-bottom) + 28px);
  margin: 0 0 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 105, 180, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.story.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 78, 140, 0.2);
  border-color: rgba(78, 180, 238, 0.42);
}
.story .card-header {
  padding: 20px 28px 14px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--nav-blue) 58%, var(--blue-400) 100%);
  border-bottom: 2px solid #f0c75e;
  text-align: center;
}
.story .card-title,
.story__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.54vw, 19.6px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.38;
  color: #fff;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.story .card-body {
  padding: 14px 28px 26px;
  line-height: 1.45;
}
.story .card-body > :first-child {
  margin-top: 0;
}
.story__text,
.story .card-text {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.15;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.story__text p,
.story .card-text p {
  margin: 0 0 0.2rem;
  font-size: inherit;
  line-height: inherit;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.story__text p:last-child,
.story .card-text p:last-child {
  margin-bottom: 0;
}
.story__figure {
  margin: 18px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 105, 180, 0.14);
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: opacity 160ms ease, max-height 220ms ease, margin 160ms ease, padding 160ms ease;
}
.story__figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
}
body.images-collapsed .story__figure {
  display: none;
}
.story__content {
  display: flow-root;
}
.story__actions {
  float: right;
  clear: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: min(100%, 18rem);
  margin: 0 0 0.55rem 1rem;
}
.story-tts {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(0, 105, 180, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nav-blue), var(--blue-400));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 78, 140, 0.16);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}
.story-tts:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.story-tts[aria-pressed="true"] {
  background: linear-gradient(135deg, #0b3f66, #1769a8);
}
.story-tts svg {
  display: block;
  flex: 0 0 auto;
}
.story-tts__note {
  margin: 0;
  width: 100%;
  text-align: right;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.story-tts__note[hidden] {
  display: none !important;
}
.story__content .story__text {
  display: block;
}
@media (max-width: 760px) {
  .story .card-header,
  .story .card-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .story .card-title,
  .story__title {
    font-size: clamp(14px, 4.2vw, 17px);
  }
}

@media (max-width: 1060px) {
  .category-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .story-nav.sidebar {
    position: static;
    top: auto;
    max-height: none;
    order: 0;
    z-index: 30;
  }
  .story-list { order: 1; }
  .story-nav .sidebar-widget {
    max-height: none;
    overflow: hidden;
    border-radius: 18px;
  }
  .story-nav .widget-head {
    min-height: 58px;
  }
  .story-nav .events-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 42px;
    min-width: 44px;
  }
  .story-nav .sidebar-widget:not(.events-open) .widget-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  .story-nav .sidebar-widget.events-open .widget-body {
    max-height: min(62vh, 520px);
    padding: 12px 16px;
    overflow-y: auto;
  }
  .story-nav .timeline-list a {
    min-height: 44px;
    padding: 10px 12px;
    margin: -6px -8px;
    line-height: 1.35;
  }
}
@media (max-width: 720px) {
  .story-nav .widget-head {
    padding: 12px 16px;
    font-size: 16px;
  }
  .story-nav .timeline-list li {
    gap: 10px;
    font-size: 14px;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 105, 180, 0.28);
  background: var(--nav-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 78, 140, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}
.back-to-top::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2.5px solid currentColor;
  border-left: 2.5px solid currentColor;
  transform: translateY(0.18rem) rotate(45deg);
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--nav-blue-deep);
  color: #fff;
}
@media (max-width: 620px) {
  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.72), rgba(229, 244, 251, 0.9));
  padding: 1.6rem 1.25rem 2.2rem;
  font-family: var(--font-ui);
  color: var(--ink-soft);
}
.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
}
.site-footer__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.site-footer p { margin: 0; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
