/* CELUS brand overrides for the Zensical (Material) theme.
   Color/type values measured directly from celus.net/support:
   body text  rgba(31,37,87,.86)  ·  headings & links  #242664
   accent     #2bb673 (green) / #4db6ac (teal, dark mode)
   font       Manrope everywhere */

:root {
  --md-primary-fg-color: #242664;
  --md-primary-fg-color--light: #3d3f8c;
  --md-primary-fg-color--dark: #191a47;
  --md-primary-bg-color: #ffffff;

  --md-accent-fg-color: #2bb673;
  --md-accent-fg-color--transparent: #2bb67326;

  --md-typeset-color: rgba(31, 37, 87, 0.86);
  --md-typeset-a-color: #242664;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #14173a;
  --md-accent-fg-color: #4db6ac;
  --md-typeset-a-color: #6fd4c9;
}

/* The live site uses a plain white header/nav bar with dark text, not a
   solid-primary-color banner. */
.md-header {
  background-color: #ffffff;
  color: #333840;
  border-bottom: 1px solid rgba(31, 37, 87, 0.08);
  box-shadow: none;
}

.md-header__title,
.md-header__button {
  color: #333840;
}

.md-header__title {
  font-weight: 600;
}

.md-tabs {
  background-color: #ffffff;
  color: #333840;
  border-bottom: 1px solid rgba(31, 37, 87, 0.08);
}

.md-tabs__link {
  color: rgba(51, 56, 64, 0.75);
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--md-primary-fg-color);
}

.md-search__input {
  background-color: rgba(31, 37, 87, 0.06);
  color: #333840;
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: var(--md-primary-fg-color);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .md-header__title,
[data-md-color-scheme="slate"] .md-header__button,
[data-md-color-scheme="slate"] .md-tabs__link {
  color: #fff;
}

/* Typography: match the site's Manrope headings/links, always-underlined
   in-content links, and active-nav highlighting in the accent green. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--md-typeset-a-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.md-typeset a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.md-typeset a:hover {
  color: var(--md-accent-fg-color);
}

.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--md-accent-fg-color);
}

.md-nav__item .md-nav__link--active {
  font-weight: 600;
}

/* Card grid used on the KB landing page and guide index pages. */
.celus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.celus-card {
  display: block;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: 12px;
  background: var(--md-default-bg-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
  position: relative;
}

.celus-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.celus-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 1.1rem;
}

.celus-card strong {
  display: block;
  color: #2d5854;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-md-color-scheme="slate"] .celus-card strong {
  color: var(--md-accent-fg-color);
}

.celus-card span {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* "Browse by area" cards: a colored left accent bar instead of an icon,
   matching celus.net's area cards. */
.celus-card--accent {
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent, var(--md-accent-fg-color));
}

.celus-card--accent strong {
  margin-bottom: 0.6rem;
}

/* Markdown wraps the raw <a> children in a <p>; unwrap it so the anchors
   become direct grid items of .celus-cards. */
.celus-cards p {
  display: contents;
}

.celus-article-list {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 44em) {
  .celus-article-list {
    columns: 1;
  }
}
