@font-face {
  font-family: 'D-DIN';
  src: url('/assets/fonts/D-DIN.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN';
  src: url('/assets/fonts/D-DIN-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --color-accent: #ff0000;
  --color-accent-hover: #d90000;
  --color-background: #080808;
  --color-surface: #121212;
  --color-border: #303030;
  --color-muted: #a3a3a3;
  --font-family: 'D-DIN';
  --button-radius: 9999px;
  --button-height: 44px;
}
html,
body,
body *,
body *::before,
body *::after {
  font-family: var(--font-family);
}
body {
  background-color: var(--color-background);
  color: #f5f5f5;
}
h1,
h2,
h3,
strong {
  font-weight: 700;
}
h1,
h2 {
  letter-spacing: -0.025em;
}
:root
  body
  :is(
    .button,
    .btn-action,
    .btn-portal,
    .outline-button,
    .events-btn,
    .academy-ask,
    .nav-ask,
    a.assistant,
    button.assistant,
    .lilian-launch,
    .chat-launcher,
    .floating,
    .lilian-send,
    .chat-input-area button,
    button[type='submit']
  ) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--button-height);
  min-width: 0;
  padding: 12px 24px;
  border: 1px solid var(--color-accent);
  border-radius: var(--button-radius);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}
:root
  body
  :is(
    .button,
    .btn-action,
    .btn-portal,
    .outline-button,
    .events-btn,
    .academy-ask,
    .nav-ask,
    a.assistant,
    button.assistant,
    .lilian-launch,
    .chat-launcher,
    .floating,
    .lilian-send,
    .chat-input-area button,
    button[type='submit']
  ):hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #ffffff;
  box-shadow: none;
}
:root body :is(.button, .btn-action, .btn-portal, .events-btn, .academy-ask)::before {
  display: none;
}
body :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}
:root body button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:root body :is(.navbar .events-btn, .academy-ask) {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 11px;
  white-space: nowrap;
}
:root body .events-calendar {
  color: #ffffff;
}
:root
  body
  :is(
    .tabs [role='tab'],
    .reply-suggestions button,
    .lilian-choices button,
    .history-controls button,
    .pager button,
    .message-actions > button,
    .conversation-tools button,
    #tools-toggle,
    .lilian-reset
  ) {
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid #444444;
  border-radius: var(--button-radius);
  background: #171717;
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
:root body :is(.tabs [aria-selected='true'], .history-controls button[type='submit']) {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}
:root
  body
  :is(
    .tabs button,
    .reply-suggestions button,
    .lilian-choices button,
    .history-controls button,
    .pager button,
    .conversation-tools button
  ):hover {
  border-color: var(--color-accent);
  color: #ffffff;
}
:root body :is(.academy-toggle, .lilian-close, #chat-close, .sidebar-tools-close) {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  border: 1px solid transparent;
}
:root body :is(.academy-toggle, .lilian-close, #chat-close, .sidebar-tools-close):hover {
  background: #242424;
}
:root
  body
  :is(
    .card,
    .telemetry-card,
    .metrics,
    .metrics > div,
    .event-empty,
    .history-entry,
    .history-stats > div,
    .lilian-panel,
    .lilian-heading,
    .lilian-form,
    .lilian-message,
    .chat-stage,
    .message,
    .chat-panel,
    .chat-heading,
    .topic-tags span
  ) {
  border-color: var(--color-border);
}
:root
  body
  :is(
    .card,
    .history-entry,
    .history-stats > div,
    .event-empty,
    .lilian-panel,
    .chat-stage,
    .chat-panel
  ) {
  background: var(--color-surface);
}
:root body :is(.card:hover, .card:focus-within) {
  border-color: var(--color-accent);
}
:root body :is(.academy-nav, .navbar).scrolled {
  background: rgba(8, 8, 8, 0.94);
}
.course-meta {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}
:root body .lilian-widget,
:root body .lilian-form textarea {
  font-family: var(--font-family);
}
@media (max-width: 600px) {
  :root body :is(.navbar .events-btn, .academy-ask) {
    min-height: 36px;
    padding: 9px 12px;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  :root body .navbar > div:last-child {
    gap: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root body :is(button, .button, .btn-action, .btn-portal, .events-btn, .academy-ask) {
    transition: none;
  }
}

/* Catalogue references are secondary reading links, not red action buttons. */
:root body a[href*='catalogue.pdf'] {
  color: #d7d7d7;
  text-decoration: underline;
  text-decoration-color: #686868;
  text-underline-offset: 5px;
}
:root body a[href*='catalogue.pdf']:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* One compact chatbot launcher across every page. */
:root body button:is(.lilian-launch, .chat-toggle-btn) {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border: 1px solid #ff0000;
  border-radius: 50%;
  background: #ff0000;
  color: #ffffff;
  z-index: 1100;
}
:root body button:is(.lilian-launch, .chat-toggle-btn) svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
@media (max-width: 600px) {
  :root body button:is(.lilian-launch, .chat-toggle-btn) {
    right: 16px;
    bottom: 16px;
  }
}

:root body .chat-container {
  right: 24px;
  bottom: 96px;
}
:root body #chatWindow {
  margin-bottom: 0;
  max-height: calc(100dvh - 120px);
}
@media (max-width: 600px) {
  :root body .chat-container {
    right: 16px;
    bottom: 88px;
  }
}

/* Small copyright footer shared by every page that has one. */
:root body footer,
:root body footer.homepage-footer {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 16px;
  gap: 0;
  text-align: center;
  color: #a1a1a1;
  font-size: 11px;
  line-height: 1.4;
}
:root body footer p,
:root body footer .footer-copyright {
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.4;
}

/* Mobile footers include only the text and a few pixels of breathing room. */
@media (max-width: 600px) {
  :root body footer,
  :root body footer.homepage-footer {
    padding: 3px 12px;
    font-size: 10px;
    line-height: 14px;
    border: 0;
  }
  :root body footer p,
  :root body footer .footer-copyright {
    font-size: 10px;
    line-height: 14px;
  }
  :root body:not(.chat-page) main > section:last-of-type {
    padding-bottom: 14px !important;
    margin-bottom: 0;
    border-bottom: 0;
  }
}
