/*--------------------------------------------------------------
# Skillset Development — thin site layer over theme.css.
# The Learner template's own design system (palette, fonts,
# components) is the visual identity; this file only adds what
# the template doesn't have.
--------------------------------------------------------------*/

/* Brand lockup: template sitename treatment, two-line for the long name */
.sd-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sd-brand-word {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 26px;
  color: var(--heading-color);
}
.header .sd-brand-word { color: #fff; }
.sd-brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ffffff 75%, transparent);
  margin-top: 3px;
}
.footer .sd-brand-sub { color: color-mix(in srgb, var(--default-color) 70%, transparent); }

/* Training Courses mega menu: 3-column panel on desktop, stacked list on mobile */
.sd-mega-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--nav-dropdown-color, #394450) 55%, transparent);
  padding: 8px 15px 4px;
}
.sd-mega .sd-mega-col > ul { list-style: none; margin: 0; padding: 0; }
.sd-mega .sd-mega-col a { display: flex; align-items: center; gap: 9px; }
.sd-mega .sd-mega-col a > i { font-size: 14px; color: var(--accent-color); flex-shrink: 0; }
.sd-mega .mt-3 { margin-top: 14px; }

@media (min-width: 1200px) {
  .sd-mega-dropdown > .sd-mega {
    display: flex !important;
    gap: 8px;
    min-width: 820px;
    padding: 18px 14px;
  }
  .sd-mega-dropdown:hover > .sd-mega { visibility: visible; opacity: 1; }
  .sd-mega .sd-mega-col { flex: 1; min-width: 0; }
  .sd-mega .sd-mega-domains { flex: 1.6; }
  .sd-mega .sd-mega-domains > ul {
    columns: 2;
    column-gap: 4px;
  }
  .sd-mega .sd-mega-domains > ul > li { break-inside: avoid; }
  .sd-mega .sd-mega-col:not(:last-child) {
    border-right: 1px solid color-mix(in srgb, var(--nav-dropdown-color, #394450) 10%, transparent);
    padding-right: 8px;
  }
}
@media (max-width: 1199px) {
  /* In the template's mobile accordion the panel is a plain nested list */
  .sd-mega .sd-mega-col { display: block; }
}

/* Category grid: keep 12 domain names on one line where possible */
.course-categories .category-card h5 {
  font-size: 15px;
  line-height: 1.3;
}

/* Accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
