/* MKU Signature Design System v1.0.1
 * Global layer for standard WordPress/Elementor content. Dedicated MKU component
 * roots are intentionally not reset, to prevent existing plugins from breaking.
 */
body.mku-signature-design-system-active {
  --mku-signature-navy: #142f43;
  --mku-signature-navy-deep: #0c2234;
  --mku-signature-orange: #f58232;
  --mku-signature-orange-dark: #d9691f;
  --mku-signature-ink: #243545;
  --mku-signature-muted: #465563;
  --mku-signature-line: #e2e8ee;
  --mku-signature-soft: #f5f7f9;
  --mku-signature-radius: 14px;
  --mku-signature-shadow: 0 12px 32px rgba(17, 43, 63, .08);
  color: var(--mku-signature-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.mku-signature-design-system-active ::selection {
  background: rgba(245, 130, 50, .22);
  color: var(--mku-signature-navy-deep);
}

/* Standard WordPress content headings only. :where() keeps these rules low
   specificity, letting specially designed MKU plugin components retain their own styles. */
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h1,
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h2,
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h3 {
  color: var(--mku-signature-navy);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h1 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  margin-block: .2em .6em;
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  margin-block: 1.8em .65em;
  padding-bottom: .45em;
  border-bottom: 1px solid var(--mku-signature-line);
  position: relative;
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content, .elementor-location-single .elementor-widget-theme-post-content .elementor-widget-container) > h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 48px;
  border-radius: 4px;
  background: var(--mku-signature-orange);
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > h3 {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  margin-block: 1.5em .55em;
}

body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > p,
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > ul,
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > ol {
  color: var(--mku-signature-ink);
  font-size: 1rem;
  line-height: 1.8;
  margin-block: 0 1.1em;
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) li::marker {
  color: var(--mku-signature-orange);
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > a:not(.wp-block-button__link),
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > p > a:not(.wp-block-button__link) {
  color: var(--mku-signature-navy);
  text-decoration-color: var(--mku-signature-orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > a:hover,
body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > p > a:hover {
  color: var(--mku-signature-orange-dark);
}

/* Gutenberg call-to-action buttons */
body.mku-signature-design-system-active .entry-content .wp-block-button__link,
body.mku-signature-design-system-active .wp-block-post-content .wp-block-button__link {
  background: var(--mku-signature-orange);
  color: #fff;
  border: 1px solid var(--mku-signature-orange);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(245, 130, 50, .18);
  padding: .8em 1.45em;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.mku-signature-design-system-active .entry-content .wp-block-button__link:hover,
body.mku-signature-design-system-active .wp-block-post-content .wp-block-button__link:hover {
  background: var(--mku-signature-navy);
  border-color: var(--mku-signature-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 47, 67, .18);
  transform: translateY(-1px);
}

/* Elementor single-page content headings, standard buttons and form controls. */
body.mku-signature-design-system-active .elementor-location-single .elementor-widget-heading .elementor-heading-title {
  color: var(--mku-signature-navy);
  letter-spacing: -.02em;
  font-weight: 750;
}
body.mku-signature-design-system-active .elementor-location-single .elementor-widget-button .elementor-button {
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.mku-signature-design-system-active .elementor-location-single .elementor-widget-button .elementor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 47, 67, .14);
}
body.mku-signature-design-system-active .elementor-location-single .elementor-field,
body.mku-signature-design-system-active .elementor-location-single .elementor-field-textual,
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form input:not([type="submit"]),
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form select,
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form textarea {
  border-color: #d8e0e7;
  border-radius: 9px;
  box-shadow: none;
}
body.mku-signature-design-system-active .elementor-location-single .elementor-field:focus,
body.mku-signature-design-system-active .elementor-location-single .elementor-field-textual:focus,
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form input:focus,
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form select:focus,
body.mku-signature-design-system-active .elementor-location-single .wpcf7-form textarea:focus {
  border-color: var(--mku-signature-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 50, .12);
  outline: none;
}

/* Standard tables / quotes / separators in normal content. */
body.mku-signature-design-system-active .entry-content > table,
body.mku-signature-design-system-active .entry-content > .wp-block-table table,
body.mku-signature-design-system-active .wp-block-post-content > table,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mku-signature-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body.mku-signature-design-system-active .entry-content > table th,
body.mku-signature-design-system-active .entry-content > .wp-block-table table th,
body.mku-signature-design-system-active .wp-block-post-content > table th,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table table th {
  background: var(--mku-signature-navy);
  color: #fff;
  font-weight: 700;
}
body.mku-signature-design-system-active .entry-content > table th,
body.mku-signature-design-system-active .entry-content > table td,
body.mku-signature-design-system-active .entry-content > .wp-block-table table th,
body.mku-signature-design-system-active .entry-content > .wp-block-table table td,
body.mku-signature-design-system-active .wp-block-post-content > table th,
body.mku-signature-design-system-active .wp-block-post-content > table td,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table table th,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table table td {
  padding: .85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mku-signature-line);
  text-align: left;
}
body.mku-signature-design-system-active .entry-content > table tr:nth-child(even) td,
body.mku-signature-design-system-active .entry-content > .wp-block-table table tr:nth-child(even) td,
body.mku-signature-design-system-active .wp-block-post-content > table tr:nth-child(even) td,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table table tr:nth-child(even) td {
  background: #f8fafb;
}
body.mku-signature-design-system-active .entry-content > blockquote,
body.mku-signature-design-system-active .wp-block-post-content > blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-inline-start: 4px solid var(--mku-signature-orange);
  border-radius: 0 12px 12px 0;
  background: var(--mku-signature-soft);
  color: var(--mku-signature-navy);
}
body.mku-signature-design-system-active .entry-content > hr,
body.mku-signature-design-system-active .wp-block-post-content > hr {
  border: 0;
  border-top: 1px solid var(--mku-signature-line);
  margin: 2rem 0;
}

/* Accessible focus state without changing custom MKU navigation or button colors. */
body.mku-signature-design-system-active .entry-content a:focus-visible,
body.mku-signature-design-system-active .elementor-location-single .elementor-widget-button .elementor-button:focus-visible,
body.mku-signature-design-system-active .wp-block-post-content a:focus-visible {
  outline: 3px solid rgba(245, 130, 50, .72);
  outline-offset: 3px;
}

/* Ensure long tables/documents do not create page-width overflow. */
body.mku-signature-design-system-active .entry-content,
body.mku-signature-design-system-active .wp-block-post-content {
  min-width: 0;
}
body.mku-signature-design-system-active .entry-content > .wp-block-table,
body.mku-signature-design-system-active .wp-block-post-content > .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 767px) {
  body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  body.mku-signature-design-system-active :where(.entry-content, .wp-block-post-content) > h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    margin-top: 1.5em;
  }
  body.mku-signature-design-system-active .entry-content > table th,
  body.mku-signature-design-system-active .entry-content > table td,
  body.mku-signature-design-system-active .wp-block-post-content > table th,
  body.mku-signature-design-system-active .wp-block-post-content > table td {
    padding: .65rem .7rem;
    font-size: .92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mku-signature-design-system-active *,
  body.mku-signature-design-system-active *::before,
  body.mku-signature-design-system-active *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Higher-contrast secondary text pass (v1.0.1).
 * Keep brand orange as an accent, but darken small descriptive labels and muted text
 * on light surfaces. Rules are deliberately scoped to known MKU content roots. */
body.mku-signature-design-system-active .entry-content small,
body.mku-signature-design-system-active .wp-block-post-content small,
body.mku-signature-design-system-active .entry-content .wp-block-post-date,
body.mku-signature-design-system-active .wp-block-post-content .wp-block-post-date {
  color: #465563;
}

/* MKU Student Corner: improve contrast for subtitles, notice metadata, filter tabs,
 * card descriptions and helper text. Active tabs and positive status pills keep their
 * intended contrasting colours. */
body.mku-signature-design-system-active .mku-sc {
  --mku-muted: #465563;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-section-subtitle,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-subtitle,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-meta,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-body p,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-date,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-category,
body.mku-signature-design-system-active .mku-sc .mku-sc-notices-empty > p,
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-no-results,
body.mku-signature-design-system-active .mku-sc .mku-sc-empty-message,
body.mku-signature-design-system-active .mku-sc .mku-sc-service-count,
body.mku-signature-design-system-active .mku-sc .mku-sc-service-card p,
body.mku-signature-design-system-active .mku-sc .mku-sc-footer-note,
body.mku-signature-design-system-active .mku-sc .mku-sc-footer-note p,
body.mku-signature-design-system-active .mku-sc .mku-sc-service-link.is-unavailable,
body.mku-signature-design-system-active .mku-sc .mku-sc-search-hint {
  color: #465563 !important;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-filter:not(.is-active),
body.mku-signature-design-system-active .mku-sc .mku-sc-notice-filter {
  color: #36495b !important;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-service-category {
  color: #9b4a0b !important;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-featured-label,
body.mku-signature-design-system-active .mku-sc .mku-sc-pin {
  color: #7d4108 !important;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-priority-deadline {
  color: #914400 !important;
}
body.mku-signature-design-system-active .mku-sc .mku-sc-search::placeholder,
body.mku-signature-design-system-active .mku-sc input::placeholder {
  color: #5a6876 !important;
  opacity: 1;
}

/* MKU Signature Homepage: darker supporting copy on light sections. Dark navy panels
 * retain their light text colours so contrast is not reversed there. */
body.mku-signature-design-system-active .mku-sig-site .mku-sig-hero-lead,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-intro-right p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-heading-aside p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-tour-copy > p:not(.mku-sig-eyebrow):not(.mku-sig-tour-note),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-trust-top > div:nth-child(2) > p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-program-card p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-learning-copy > p:not(.mku-sig-eyebrow),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-campus-lead > p:not(.mku-sig-eyebrow),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-leadership-card > p:not(.mku-sig-people-role),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-people-content > p:not(.mku-sig-eyebrow),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-event-copy > p:not(.mku-sig-date),
body.mku-signature-design-system-active .mku-sig-site .mku-sig-event-empty p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-birthday-empty p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-birthday-wish,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-faq-list details > p {
  color: #465563 !important;
}
body.mku-signature-design-system-active .mku-sig-site .mku-sig-hero-footnote,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-brand-text small,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-stat-ribbon div > span,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-stat-note,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-program-card-top > span,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-search-hint,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-program-meta span,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-event-copy .mku-sig-date,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-birthday-role,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-birthday-card small,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-birthday-controls,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-support-links > a > span,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-testimonial-attribution,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-priority-empty {
  color: #53616d !important;
}
body.mku-signature-design-system-active .mku-sig-site .mku-sig-program-card-top i {
  color: #9b4a0b !important;
}

/* Preserve legible secondary text on the dark discipline/why sections. */
body.mku-signature-design-system-active .mku-sig-site .mku-sig-fields-section .mku-sig-heading-compact > p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-fields-section .mku-sig-field-sub,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-why-section .mku-sig-why-heading > p,
body.mku-signature-design-system-active .mku-sig-site .mku-sig-why-section .mku-sig-why-card p {
  color: #c5d0d6 !important;
}
