/* ==========================================================================
   IVEACER Landing Accessibility, Theme & Contrast Stylesheet
   Scoped to html.landing-root; harmonizes with css/site-theme.css,
   css/accessibility.css, and css/landing-kinetic.css without Bootstrap.
   ========================================================================== */

/* ==========================================================================
   0. Header .nav-link Subtle Hover Underline & Active Indicator
   ========================================================================== */

html.landing-root #siteHeader nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"]) {
  position: relative;
  padding-block: 0.35rem;
}

html.landing-root #siteHeader nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"])::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08rem;
  height: 2px;
  border-radius: 9999px;
  background-color: #059669;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              background-color 160ms ease-out;
}

html.landing-root #siteHeader nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"]):is(:hover, :focus-visible, .is-active, [aria-current="page"], [aria-current="true"])::after {
  transform: scaleX(1);
}

html.landing-root #siteHeader.is-dark-zone nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"])::after {
  background-color: #A3E635;
}

html.landing-root #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"] {
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:focus-visible {
  box-shadow: 0 8px 18px -8px rgba(6, 95, 70, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:hover {
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 8px 18px -8px rgba(6, 95, 70, 0.28);
  }
}

html.landing-root #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:active {
  transform: scale(0.96);
}

html.landing-root #siteHeader.is-dark-zone nav a[href="https://www.iveacer.ac.th/index.php"] {
  border-color: rgba(163, 230, 53, 0.42);
  background-color: rgba(6, 78, 59, 0.72);
  color: #bef264;
}

html.landing-root #siteHeader.is-dark-zone nav a[href="https://www.iveacer.ac.th/index.php"]:is(:hover, :focus-visible) {
  border-color: #A3E635;
  background-color: #065F46;
  color: #ffffff;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #siteHeader nav .nav-link::after {
  transition: opacity 150ms ease-out, background-color 150ms ease-out !important;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"] {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:is(:hover, :focus-visible, :active) {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.landing-root:not([data-reduced-motion="false"]) #siteHeader nav .nav-link::after {
    transition: opacity 150ms ease-out, background-color 150ms ease-out !important;
  }

  html.landing-root:not([data-reduced-motion="false"]) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"] {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
  }

  html.landing-root:not([data-reduced-motion="false"]) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:is(:hover, :focus-visible, :active) {
    transform: none !important;
  }
}

/* ==========================================================================
   1. Shared Accessibility Utility Bar (.a11y-utility-bar)
   ========================================================================== */

html.landing-root .top-fixed-shell .a11y-utility-bar {
  pointer-events: auto;
  position: relative;
  width: 100%;
  min-height: 36px;
  background: #041d15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.3;
  z-index: 2;
}

html.landing-root .a11y-utility-bar-inner,
html.landing-root .a11y-utility-bar > div {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.3125rem 0.75rem;
  min-height: 36px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.landing-root .a11y-utility-bar-inner::-webkit-scrollbar,
html.landing-root .a11y-utility-bar > div::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  html.landing-root .a11y-utility-bar-inner,
  html.landing-root .a11y-utility-bar > div {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  html.landing-root .a11y-utility-bar-inner,
  html.landing-root .a11y-utility-bar > div {
    padding-inline: 2rem;
  }
}

html.landing-root .a11y-utility-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

html.landing-root .a11y-font-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem;
  padding: 2px 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

@media (max-width: 639px) {
  html.landing-root .a11y-utility-divider {
    display: none;
  }
}

html.landing-root .a11y-utility-divider {
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 140ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

html.landing-root .a11y-utility-bar :is(#fontDecBtn, #fontResetBtn, #fontIncBtn) {
  min-width: 36px;
  min-height: 30px;
  padding: 0.1875rem 0.55rem;
  border-color: transparent;
  background: transparent;
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
):active:not(:disabled) {
  transform: scale(0.96);
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
):hover {
  background: rgba(163, 230, 53, 0.14);
  border-color: rgba(163, 230, 53, 0.45);
  color: #bef264;
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
):focus-visible {
  outline: 2.5px solid #A3E635 !important;
  outline-offset: 2px;
}

html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
)[aria-pressed="true"] {
  background: #022C22;
  color: #A3E635;
  border-color: #A3E635;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.25);
}

html.landing-root .a11y-utility-bar #langToggleBtn #currentLangLabel {
  font-weight: 700;
  color: #A3E635;
}

/* Offset Hero top padding for the added utility bar inside .top-fixed-shell */
html.landing-root .hero-sticky-stage,
html.landing-root #hero.hero-sticky-stage {
  padding-top: 9.5rem;
  padding-bottom: 2.5rem;
}

html.landing-root body.announcement-closed .hero-sticky-stage,
html.landing-root body.announcement-closed #hero.hero-sticky-stage {
  padding-top: 7rem;
}

@media (min-width: 1024px) {
  html.landing-root .hero-sticky-stage,
  html.landing-root #hero.hero-sticky-stage {
    padding-top: 9rem;
    padding-bottom: 2rem;
  }

  html.landing-root body.announcement-closed .hero-sticky-stage,
  html.landing-root body.announcement-closed #hero.hero-sticky-stage {
    padding-top: 6.75rem;
  }
}

/* Hide redundant floating bottom-right button so it never collides with #floatingNewsToast */
html.landing-root .iveacer-a11y-open {
  display: none !important;
}

html.landing-root #iveacer-a11y-panel {
  z-index: 2000;
}

/* ==========================================================================
   2. Dark Mode (harmonized with css/site-theme.css tokens)
   ========================================================================== */

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) {
  --iveacer-canvas-color: #0B110E;
  --iveacer-canvas: #0B110E;
  --iveacer-surface: #112217;
  --iveacer-surface-soft: #142a1d;
  --iveacer-surface-subtle: #193823;
  --iveacer-border: #2e4936;
  --iveacer-text-main: #f8fafc;
  --iveacer-text-muted: #adc1b2;
  --bg-page: #0B110E;
  --bg-subtle: #112217;
  --text-primary: #f8fafc;
  --text-muted: #adc1b2;
  --border-hairline: rgba(173, 193, 178, 0.2);
  --hero-dynamic-bg: #07130E;
  --emerald-glow: 0 18px 36px -12px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(163, 230, 53, 0.34);
  color-scheme: dark;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) body {
  background-color: var(--iveacer-canvas-color);
  color: var(--iveacer-text-main);
}

/* Header & Mobile Nav in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader {
  background-color: rgba(7, 19, 14, 0.72);
  border-bottom-color: rgba(46, 73, 54, 0.55);
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader.is-scrolled {
  background-color: rgba(11, 17, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--iveacer-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.48);
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader.is-dark-zone {
  background-color: rgba(2, 44, 34, 0.94);
  border-bottom-color: rgba(163, 230, 53, 0.22);
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader a:not(.nav-link),
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader a:not(.nav-link) span,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader .nav-link {
  color: #f8fafc !important;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader .nav-link:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader .nav-link:focus-visible {
  color: #A3E635 !important;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"])::after {
  background-color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader nav a:is([href="https://www.iveacer.ac.th/index.php"], [href="portal.html"], [href="index.html"]) {
  border-color: rgba(163, 230, 53, 0.36);
  background-color: rgba(17, 34, 23, 0.85);
  color: #bef264 !important;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader nav a:is([href="https://www.iveacer.ac.th/index.php"], [href="portal.html"], [href="index.html"]):hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #siteHeader nav a:is([href="https://www.iveacer.ac.th/index.php"], [href="portal.html"], [href="index.html"]):focus-visible {
  border-color: #A3E635;
  background-color: #193823;
  color: #f8fafc !important;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileMenuBtn {
  border-color: var(--iveacer-border);
  background-color: var(--iveacer-surface);
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileMenuBtn:hover {
  background-color: var(--iveacer-surface-subtle);
  border-color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav {
  background-color: rgba(11, 17, 14, 0.97);
  border-bottom-color: var(--iveacer-border);
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav a {
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav a:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav a:focus-visible {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav a:is([href="https://www.iveacer.ac.th/index.php"], [href="portal.html"], [href="index.html"]) {
  color: #A3E635;
}

/* Hero Section in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .hero-surface,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .hero-sticky-stage,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero.hero-sticky-stage,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .hero-surface.hero-sticky-stage {
  background-color: var(--hero-dynamic-bg, #07130E);
  background-image: radial-gradient(
    circle at 50% 42%,
    rgba(16, 185, 129, 0.14) 0%,
    rgba(6, 78, 59, 0.08) 46%,
    rgba(2, 44, 34, 0.28) 100%
  );
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-guide-outer {
  border-color: rgba(163, 230, 53, 0.22);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-guide-inner {
  border-color: rgba(173, 193, 178, 0.16);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .emblem-core {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(17, 34, 23, 0.88);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .emblem-core:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .emblem-core:focus-visible {
  border-color: #BEF264;
  box-shadow: 0 22px 52px -12px rgba(163, 230, 53, 0.28), 0 0 0 8px rgba(17, 34, 23, 0.92);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-photo-wrap {
  background-color: var(--iveacer-surface);
  border-color: rgba(173, 193, 178, 0.34);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.65);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-photo-wrap.is-bachelor {
  border-color: #A3E635;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.28), 0 12px 28px -8px rgba(0, 0, 0, 0.72);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-photo-wrap:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .orbit-photo-wrap:focus-visible {
  border-color: #BEF264;
  box-shadow: 0 18px 34px -8px rgba(163, 230, 53, 0.3);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #orbitCaption {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero h1 {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .body-copy {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-primary-cta {
  background-color: #065F46;
  color: #f8fafc;
  border: 1px solid rgba(163, 230, 53, 0.32);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-primary-cta:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-primary-cta:focus-visible {
  background-color: #047857;
  border-color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-secondary-cta {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-secondary-cta svg {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-secondary-cta:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #hero .btn-secondary-cta:focus-visible {
  background-color: var(--iveacer-surface-soft);
  border-color: #A3E635;
  color: #bef264;
}

/* Showcase Section in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #showcase {
  background-color: var(--iveacer-canvas-color);
  border-bottom-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #showcase h2 {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #showcase .body-copy {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #showcase [role="group"] {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .view-toggle-btn {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .view-toggle-btn:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .view-toggle-btn:focus-visible {
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .view-toggle-btn[aria-pressed="true"] {
  background-color: #065F46;
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.35);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger .meta-copy {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger .category-count {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger:not(.is-selected):hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger:not(.is-selected):focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger.reveal-3d.is-revealed:not(.is-selected):hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger.reveal-3d.is-revealed:not(.is-selected):focus-visible {
  background-color: var(--iveacer-surface-soft);
  border-color: #34d399;
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger.is-selected {
  background-color: #064E3B;
  border-color: #A3E635;
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger.is-selected .meta-copy {
  color: #d4e9da;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .category-trigger.is-selected .category-count {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-main > .meta-copy:first-child {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card h3 {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-desc {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-actions {
  border-top-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-actions > span {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-actions a {
  color: #9ce5ad;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-actions a:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card .card-actions a:focus-visible {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card:focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d:focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed:focus-visible {
  background-color: var(--iveacer-surface-soft);
  border-color: #34d399;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.is-highlighted,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-highlighted,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed.is-highlighted {
  opacity: 1;
  background-color: var(--iveacer-surface-soft);
  border-color: #A3E635;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(163, 230, 53, 0.42);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.is-dimmed,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-dimmed,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed.is-dimmed {
  opacity: 0.42;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.is-dimmed:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.is-dimmed:focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-dimmed:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-dimmed:focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed.is-dimmed:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .showcase-card.reveal-3d.is-revealed.is-dimmed:focus-visible {
  opacity: 0.88;
}

/* Footer in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer {
  background-color: #07110D;
  border-top: 1px solid #1f3b2d;
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer .border-slate-200 {
  border-color: #1f3b2d;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer .text-slate-900,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer h3 {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer .text-slate-600,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer .text-slate-500 {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer .text-slate-300 {
  color: #2e4936;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer a {
  color: #d4e5d8;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer a:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #footer a:focus-visible {
  color: #A3E635;
}

/* Floating News Toast in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast {
  background-color: var(--iveacer-surface) !important;
  color: var(--iveacer-text-main) !important;
  border-color: var(--iveacer-border) !important;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(163, 230, 53, 0.22);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-layout {
  opacity: 1 !important;
  visibility: visible !important;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-thumb {
  outline-color: oklch(1 0 0 / 0.1);
  background-color: var(--iveacer-surface-soft);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-badge {
  background-color: var(--iveacer-surface-subtle);
  color: #A3E635;
  border-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-title {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-cta {
  background-color: #065F46;
  color: #f8fafc;
  border: 1px solid rgba(163, 230, 53, 0.32);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-cta:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingNewsToast .news-toast-cta:focus-visible {
  background-color: #047857;
  border-color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #closeNewsToastBtn {
  background-color: var(--iveacer-surface-soft);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #closeNewsToastBtn:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #closeNewsToastBtn:focus-visible {
  background-color: var(--iveacer-surface-subtle);
  border-color: #A3E635;
  color: #A3E635;
}

/* College Spotlight Modal in Dark Mode */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalBackdrop {
  background-color: rgba(2, 10, 7, 0.78);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .college-modal-panel {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .border-slate-200,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .border-slate-100 {
  border-color: var(--iveacer-border);
}

html.landing-root #collegeModalImg {
  border: 0;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalImg {
  border: 0;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalStatus {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalTitle,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .text-slate-900 {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalNameEn,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .text-slate-500,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .text-slate-600 {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalClose {
  background-color: var(--iveacer-surface-soft);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalClose:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalClose:focus-visible {
  background-color: var(--iveacer-surface-subtle);
  border-color: #A3E635;
  color: #f8fafc;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModal .college-modal-panel > div:last-child {
  background-color: var(--iveacer-surface-soft);
  border-top-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalPhone,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalSpecLink,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalOcscLink {
  color: #9ce5ad;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalPhone:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalSpecLink:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalOcscLink:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalSpecLink:focus-visible,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalOcscLink:focus-visible {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalWebsite {
  background-color: #065F46;
  color: #f8fafc;
  border: 1px solid rgba(163, 230, 53, 0.32);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalWebsite:hover,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #collegeModalWebsite:focus-visible {
  background-color: #047857;
  border-color: #A3E635;
}

/* ==========================================================================
   3. Grey Mode Fixed / Sticky Safeguard
   Moves filter off <html> onto direct body children so Chromium keeps
   position: fixed (.top-fixed-shell, #floatingNewsToast) and position: sticky
   (.hero-sticky-stage) pinned to the viewport.
   ========================================================================== */

html.landing-root[data-grayscale="true"],
html.landing-root.grayscale-mode {
  filter: none !important;
}

html.landing-root[data-grayscale="true"] body > :not(script),
html.landing-root.grayscale-mode body > :not(script) {
  filter: grayscale(1) !important;
}

@media print {
  html.landing-root[data-grayscale="true"] body > :not(script),
  html.landing-root.grayscale-mode body > :not(script) {
    filter: none !important;
  }
}

/* ==========================================================================
   4. High Contrast Mode (wins over Light & Dark modes)
   ========================================================================== */

html.landing-root:is([data-contrast="high"], .high-contrast) {
  --bg-page: #000000;
  --bg-subtle: #000000;
  --text-primary: #FFFFFF;
  --text-muted: #FFFFFF;
  --hero-dynamic-bg: #000000;
  --iveacer-canvas-color: #000000;
  --iveacer-surface: #000000;
  --iveacer-surface-soft: #000000;
  --iveacer-border: #FFFFFF;
  --iveacer-text-main: #FFFFFF;
  --iveacer-text-muted: #FFFFFF;
  color-scheme: dark;
}

html.landing-root:is([data-contrast="high"], .high-contrast) body,
html.landing-root:is([data-contrast="high"], .high-contrast) #hero-track,
html.landing-root:is([data-contrast="high"], .high-contrast) .hero-surface,
html.landing-root:is([data-contrast="high"], .high-contrast) .hero-sticky-stage,
html.landing-root:is([data-contrast="high"], .high-contrast) #hero.hero-sticky-stage,
html.landing-root:is([data-contrast="high"], .high-contrast) #stats,
html.landing-root:is([data-contrast="high"], .high-contrast) .stats-contrast-section,
html.landing-root:is([data-contrast="high"], .high-contrast) #showcase,
html.landing-root:is([data-contrast="high"], .high-contrast) #footer,
html.landing-root:is([data-contrast="high"], .high-contrast) .a11y-utility-bar,
html.landing-root:is([data-contrast="high"], .high-contrast) #topAnnouncementBar,
html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader,
html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader.is-scrolled,
html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader.is-dark-zone,
html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav,
html.landing-root:is([data-contrast="high"], .high-contrast) #floatingNewsToast,
html.landing-root:is([data-contrast="high"], .high-contrast) #collegeModal .college-modal-panel,
html.landing-root:is([data-contrast="high"], .high-contrast) #collegeModal .college-modal-panel > div:last-child {
  background: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #hero-track::after,
html.landing-root:is([data-contrast="high"], .high-contrast) .hero-sticky-stage::after {
  display: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .a11y-utility-bar,
  #topAnnouncementBar,
  #siteHeader,
  #mobileNav,
  #stats,
  #showcase,
  #footer
) {
  border-color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #scrollProgress {
  background: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  h1,
  h2,
  h3,
  .section-heading,
  .news-toast-title,
  #collegeModalTitle,
  #stats .stat-counter
) {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  p,
  address,
  #orbitCaption,
  #collegeModalStatus,
  #collegeModalNameEn,
  .meta-copy,
  .body-copy,
  #footer .text-slate-900,
  #footer .text-slate-600,
  #footer .text-slate-500,
  #collegeModal .text-slate-900,
  #collegeModal .text-slate-600,
  #collegeModal .text-slate-500
) {
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) a:not(.btn-primary-cta):not(.btn-secondary-cta):not(.news-toast-cta):not(.landing-news-all-link):not(#collegeModalWebsite):not(.ocsc-cta-btn):not(.ocsc-search-cta) {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .emblem-core,
  .orbit-photo-wrap,
  .orbit-guide-outer,
  .orbit-guide-inner
) {
  background-color: #000000 !important;
  border-color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) .emblem-core:hover,
html.landing-root:is([data-contrast="high"], .high-contrast) .emblem-core:focus-visible,
html.landing-root:is([data-contrast="high"], .high-contrast) .orbit-photo-wrap.is-bachelor,
html.landing-root:is([data-contrast="high"], .high-contrast) .orbit-photo-wrap:hover,
html.landing-root:is([data-contrast="high"], .high-contrast) .orbit-photo-wrap:focus-visible {
  border: 2.5px solid #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #stats :is(.border-l-2, .rounded-2xl) {
  background: #000000 !important;
  border-color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #stats .text-limeAccent {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .showcase-card,
  .category-trigger,
  #showcase [role="group"],
  #floatingNewsToast,
  #collegeModal .college-modal-panel,
  #collegeModal .border-slate-200,
  #collegeModal .border-slate-100,
  #footer .border-slate-200
) {
  background: #000000 !important;
  border-color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) .showcase-card {
  border-width: 1.5px !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) .showcase-card:hover,
html.landing-root:is([data-contrast="high"], .high-contrast) .showcase-card:focus-visible,
html.landing-root:is([data-contrast="high"], .high-contrast) .showcase-card.is-highlighted {
  border: 2px solid #FFFF00 !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) .showcase-card.is-dimmed {
  opacity: 0.45 !important;
}

/* Normal controls in High Contrast Mode */
html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .a11y-utility-bar #themeToggleBtn,
  .a11y-utility-bar #grayscaleToggleBtn,
  .a11y-utility-bar #fontDecBtn,
  .a11y-utility-bar #fontResetBtn,
  .a11y-utility-bar #fontIncBtn,
  .a11y-utility-bar #langToggleBtn,
  .a11y-utility-bar #openA11yPanelBtn,
  .a11y-font-group,
  #closeAnnouncementBtn,
  #mobileMenuBtn,
  #hero .btn-secondary-cta,
  .view-toggle-btn,
  .category-trigger:not(.is-selected),
  #closeNewsToastBtn,
  #collegeModalClose
) {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) .a11y-utility-bar #langToggleBtn #currentLangLabel,
html.landing-root:is([data-contrast="high"], .high-contrast) .category-trigger:not(.is-selected) .category-count,
html.landing-root:is([data-contrast="high"], .high-contrast) .news-toast-badge {
  background: #000000 !important;
  color: #FFFF00 !important;
  border-color: #FFFFFF !important;
}

/* Active / Pressed & Primary CTA controls in High Contrast Mode */
html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .a11y-utility-bar button[aria-pressed="true"],
  .view-toggle-btn[aria-pressed="true"],
  .category-trigger.is-selected,
  .announcement-badge,
  .btn-primary-cta,
  #stats .btn-secondary-cta,
  .news-toast-cta,
  #collegeModalWebsite
) {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :is(
  .category-trigger.is-selected *,
  .btn-primary-cta *,
  #stats .btn-secondary-cta *,
  .news-toast-cta *,
  #collegeModalWebsite *,
  .a11y-utility-bar button[aria-pressed="true"] *
) {
  color: #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #FFFF00 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader nav .nav-link:not([href="https://www.iveacer.ac.th/index.php"])::after {
  background-color: #FFFF00 !important;
  transition: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"] {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #siteHeader nav a[href="https://www.iveacer.ac.th/index.php"]:is(:hover, :focus-visible) {
  background: #FFFF00 !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   5. Text Scaling Safeguards (--iveacer-text-scale up to 1.3x)
   ========================================================================== */

html.landing-root,
html.landing-root body {
  overflow-x: clip;
  max-width: 100%;
}

html.landing-root .top-fixed-shell {
  max-width: 100vw;
  overflow-x: clip;
}

/* Keep the 10-college orbit geometry locked regardless of text scale */
html.landing-root .orbit-stage,
html.landing-root .orbit-guide-outer,
html.landing-root .orbit-guide-inner,
html.landing-root .orbit-node,
html.landing-root .orbit-photo-wrap,
html.landing-root .emblem-core {
  font-size: 16px;
  line-height: 1;
}

html.landing-root .orbit-stage {
  flex-shrink: 0;
}

/* Scale utility bar controls comfortably while wrapping cleanly at 1.3x */
html.landing-root .a11y-utility-bar :is(
  #themeToggleBtn,
  #grayscaleToggleBtn,
  #fontDecBtn,
  #fontResetBtn,
  #fontIncBtn,
  #langToggleBtn,
  #motionToggleBtn,
  #openA11yPanelBtn
) {
  font-size: calc(0.78rem * var(--iveacer-text-scale, 1));
  max-width: 100%;
}

/* Keep announcement bar compact and prevent horizontal overflow at 1.3x */
html.landing-root #topAnnouncementBar,
html.landing-root .announcement-bar-inner {
  height: auto;
  min-height: 38px;
}

html.landing-root .announcement-bar-inner {
  flex-wrap: nowrap;
  min-width: 0;
}

html.landing-root #announcementTicker {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

html.landing-root #siteHeader > div {
  min-height: 4rem;
  height: auto;
  padding-block: 0.45rem;
  flex-wrap: wrap;
}

html.landing-root #siteHeader nav {
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  white-space: normal;
}

html.landing-root:is([data-font-size="large"], [data-font-size="xlarge"], .text-large, .text-xlarge) #siteHeader .leading-tight span {
  white-space: normal;
}

html.landing-root:is([data-font-size="large"], [data-font-size="xlarge"], .text-large, .text-xlarge) .hero-sticky-stage,
html.landing-root:is([data-font-size="large"], [data-font-size="xlarge"], .text-large, .text-xlarge) #hero.hero-sticky-stage {
  padding-top: clamp(9rem, 17vh, 11rem);
}

html.landing-root:is([data-font-size="large"], [data-font-size="xlarge"], .text-large, .text-xlarge) body.announcement-closed .hero-sticky-stage,
html.landing-root:is([data-font-size="large"], [data-font-size="xlarge"], .text-large, .text-xlarge) body.announcement-closed #hero.hero-sticky-stage {
  padding-top: clamp(7rem, 13vh, 8.75rem);
}

/* ==========================================================================
   6. Latest News & Activities Section (#latestNewsSection)
   ========================================================================== */

html.landing-root :is(#stats, #latestNewsSection, #showcase, #ocsc-accreditation, #footer) {
  scroll-margin-top: clamp(10.5rem, 18vh, 13rem);
}

html.landing-root .landing-news-section {
  background-color: #F4FAF6;
}

html.landing-root .landing-news-viewport {
  outline: none;
}

html.landing-root .landing-news-viewport:focus-visible {
  outline: 2px solid #065F46;
  outline-offset: 4px;
}

html.landing-root .landing-news-track {
  --news-per-view: 1;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  transform: translate3d(var(--news-track-x, 0px), 0, 0);
  transition: transform 300ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

@media (min-width: 768px) {
  html.landing-root .landing-news-track {
    --news-per-view: 2;
  }
}

html.landing-root .landing-news-slide {
  flex: 0 0 calc((100% - (var(--news-per-view, 1) - 1) * 1.25rem) / var(--news-per-view, 1));
  min-width: 0;
  display: flex;
}

html.landing-root .landing-news-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 200ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              border-color 180ms ease-out,
              box-shadow 200ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root .landing-news-card:focus-visible {
  border-color: rgba(6, 95, 70, 0.45);
  box-shadow: 0 16px 32px -12px rgba(2, 44, 34, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root .landing-news-card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(6, 95, 70, 0.45);
    box-shadow: 0 16px 32px -12px rgba(2, 44, 34, 0.16);
  }
}

html.landing-root .landing-news-card:active {
  transform: scale(0.985);
}

html.landing-root .landing-news-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #EAF3ED 0%, #F7FAF8 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

html.landing-root .landing-news-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

html.landing-root .landing-news-caption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

html.landing-root .landing-news-ctrl-btn,
html.landing-root .landing-ticker-btn,
html.landing-root .pinned-notice-card {
  position: relative;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root .landing-ticker-btn {
  min-width: 40px;
  min-height: 40px;
}

html.landing-root .landing-news-ctrl-btn::after,
html.landing-root .landing-ticker-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root .landing-news-ctrl-btn:hover:not(:disabled),
  html.landing-root .landing-ticker-btn:hover,
  html.landing-root .pinned-notice-card:hover {
    transform: translate3d(0, -2px, 0);
  }
}

html.landing-root .landing-news-ctrl-btn:active:not(:disabled),
html.landing-root .landing-ticker-btn:active:not(:disabled) {
  transform: scale(0.96);
}

html.landing-root .pinned-notice-card {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
}

html.landing-root .pinned-notice-icon {
  border-radius: 0.375rem;
}

html.landing-root .pinned-notice-card:active {
  transform: scale(0.985);
}

html.landing-root .landing-news-ctrl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

html.landing-root .landing-news-progress-track {
  height: 3px;
  width: 100%;
  border-radius: 9999px;
  background-color: rgba(6, 95, 70, 0.14);
  overflow: hidden;
}

html.landing-root .landing-news-progress-fill {
  height: 100%;
  width: 100%;
  background-color: #065F46;
  transform-origin: left center;
  transform: scaleX(0.25);
  transition: transform 260ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root .landing-news-skeleton-line {
  height: 3.25rem;
  border-radius: 0.75rem;
  background: rgba(6, 95, 70, 0.08);
}

html.landing-root .landing-notice-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  color: #0F172A;
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.5;
}

html.landing-root .landing-notice-link[hidden] {
  display: none !important;
}

html.landing-root .landing-notice-link:is(:hover, :focus-visible) .news-item-text {
  color: #065F46;
  text-decoration: underline;
  text-underline-offset: 4px;
}

html.landing-root .landing-notice-link .news-item-text {
  min-width: 0;
  flex: 1 1 14rem;
  overflow-wrap: anywhere;
}

html.landing-root #latestNewsSection .news-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid rgba(6, 95, 70, 0.22);
  white-space: nowrap;
}

html.landing-root #latestNewsSection .news-cat-badge.cat-royal {
  background-color: #FEF9C3;
  color: #713F12;
  border-color: rgba(161, 98, 7, 0.28);
}

html.landing-root #latestNewsSection .news-cat-badge.cat-ceremony,
html.landing-root #latestNewsSection .news-cat-badge.cat-council {
  background-color: #F0FDF4;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.24);
}

html.landing-root #latestNewsSection .news-cat-badge.cat-rss {
  background-color: #064E3B;
  color: #FFFFFF;
  border-color: #064E3B;
}

html.landing-root .pinned-notice-card:is(:hover, :focus-visible) {
  border-color: #059669;
  box-shadow: 0 12px 24px -10px rgba(6, 78, 59, 0.18);
}

/* Dark Mode for #latestNewsSection */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection {
  background-color: #0D1B14;
  border-bottom-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-eyebrow {
  background-color: rgba(163, 230, 53, 0.14);
  color: #BEF264;
  border: 1px solid rgba(163, 230, 53, 0.26);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection h2,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection h3,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .pinned-notices-summary {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .body-copy,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection #announcementPosition {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-card,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-ticker,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .pinned-notice-card {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-card:is(:hover, :focus-visible),
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .pinned-notice-card:is(:hover, :focus-visible) {
  background-color: var(--iveacer-surface-soft);
  border-color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-media {
  background: #08130D;
  border-bottom-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-media img {
  outline-color: oklch(1 0 0 / 0.1);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-caption .meta-copy {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-ctrl-btn,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-ticker-btn {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-ctrl-btn:is(:hover, :focus-visible):not(:disabled),
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-ticker-btn:is(:hover, :focus-visible) {
  background-color: var(--iveacer-surface-soft);
  border-color: #A3E635;
  color: #BEF264;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-all-link {
  background-color: #065F46;
  color: #f8fafc;
  border: 1px solid rgba(163, 230, 53, 0.34);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-progress-track {
  background-color: rgba(163, 230, 53, 0.16);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-news-progress-fill,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .news-ticker-label {
  background-color: #A3E635;
  color: #022C22;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-notice-link {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .landing-notice-link:is(:hover, :focus-visible) .news-item-text {
  color: #BEF264;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .news-cat-badge {
  background-color: rgba(6, 95, 70, 0.45);
  color: #d4e9da;
  border-color: rgba(163, 230, 53, 0.3);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .pinned-notice-icon {
  background-color: rgba(163, 230, 53, 0.14);
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #latestNewsSection .pinned-notice-card .meta-copy {
  color: var(--iveacer-text-main);
}

/* High Contrast Mode for #latestNewsSection */
html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection {
  background: #000000 !important;
  border-bottom-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection :is(
  .landing-news-card,
  .landing-news-media,
  .landing-news-ticker,
  .landing-news-ctrl-btn,
  .landing-ticker-btn,
  .pinned-notice-card,
  .landing-news-eyebrow,
  .news-cat-badge,
  .pinned-notice-icon
) {
  background: #000000 !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection :is(
  .landing-news-card:hover,
  .landing-news-card:focus-visible,
  .pinned-notice-card:hover,
  .pinned-notice-card:focus-visible,
  .landing-news-ctrl-btn:hover:not(:disabled),
  .landing-ticker-btn:hover
) {
  border: 2px solid #FFFF00 !important;
  color: #FFFF00 !important;
  transform: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection :is(
  .landing-news-all-link,
  .news-ticker-label,
  .landing-news-progress-fill
) {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection .landing-news-all-link,
html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection .landing-news-all-link * {
  color: #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #latestNewsSection .pinned-notice-card span {
  color: inherit !important;
}

/* Reduced Motion for #latestNewsSection & Utility Bar (keeps color/opacity feedback) */
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #latestNewsSection :is(
  .landing-news-track,
  .landing-news-progress-fill
) {
  transition: none !important;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #latestNewsSection :is(
  .landing-news-card,
  .landing-news-ctrl-btn,
  .landing-ticker-btn,
  .pinned-notice-card
),
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) :is(.emblem-core, .emblem-core img) {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #latestNewsSection :is(
  .landing-news-card:is(:hover, :focus-visible, :active),
  .landing-news-ctrl-btn:is(:hover, :focus-visible, :active),
  .landing-ticker-btn:is(:hover, :focus-visible, :active),
  .pinned-notice-card:is(:hover, :focus-visible, :active)
),
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) .a11y-utility-bar button:active,
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) .emblem-core:is(:hover, :focus-visible) img {
  transform: none !important;
  scale: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  html.landing-root:not([data-reduced-motion="false"]) #latestNewsSection :is(
    .landing-news-track,
    .landing-news-progress-fill
  ) {
    transition: none !important;
  }

  html.landing-root:not([data-reduced-motion="false"]) #latestNewsSection :is(
    .landing-news-card,
    .landing-news-ctrl-btn,
    .landing-ticker-btn,
    .pinned-notice-card
  ),
  html.landing-root:not([data-reduced-motion="false"]) :is(.emblem-core, .emblem-core img) {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
  }

  html.landing-root:not([data-reduced-motion="false"]) #latestNewsSection :is(
    .landing-news-card:is(:hover, :focus-visible, :active),
    .landing-news-ctrl-btn:is(:hover, :focus-visible, :active),
    .landing-ticker-btn:is(:hover, :focus-visible, :active),
    .pinned-notice-card:is(:hover, :focus-visible, :active)
  ),
  html.landing-root:not([data-reduced-motion="false"]) .a11y-utility-bar button:active,
  html.landing-root:not([data-reduced-motion="false"]) .emblem-core:is(:hover, :focus-visible) img {
    transform: none !important;
    scale: 1 !important;
  }
}

/* ==========================================================================
   7. OCSC Civil Service Degree Accreditation Section (#ocsc-accreditation)
   ========================================================================== */

html.landing-root .ocsc-accreditation-section,
html.landing-root #ocsc-accreditation {
  background-color: #F4FAF6;
}

html.landing-root #ocsc-accreditation .ocsc-eyebrow {
  background-color: rgba(6, 95, 70, 0.1);
  color: #064E3B;
  border: 1px solid rgba(6, 95, 70, 0.16);
}

html.landing-root #ocsc-accreditation .ocsc-card {
  background-color: #ffffff;
  border: 1px solid #dce6df;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background-color 180ms ease-out,
              border-color 180ms ease-out,
              box-shadow 200ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              transform 200ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root #ocsc-accreditation .ocsc-card:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(6, 95, 70, 0.42);
    box-shadow: var(--emerald-glow, 0 18px 36px -12px rgba(6, 95, 70, 0.24), 0 0 0 1px rgba(16, 185, 129, 0.24));
  }
}

html.landing-root #ocsc-accreditation .ocsc-campus-pill {
  background-color: #ECFDF5;
  color: #064E3B;
  border: 1px solid rgba(6, 95, 70, 0.2);
}

html.landing-root #ocsc-accreditation .ocsc-cert-badge {
  background-color: #FFFBEB;
  color: #7c5e08;
  border: 1px solid rgba(124, 94, 8, 0.28);
  font-variant-numeric: tabular-nums;
}

html.landing-root #ocsc-accreditation .ocsc-branch-box {
  background-color: #f1f8f4;
  border: 1px solid #dce6df;
}

html.landing-root #ocsc-accreditation .ocsc-branch-label {
  color: #065F46;
}

html.landing-root #ocsc-accreditation .ocsc-branch-value {
  color: #0F172A;
}

html.landing-root #ocsc-accreditation .ocsc-card-actions {
  border-top-color: #dce6df;
}

html.landing-root #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta) {
  min-height: 44px;
  background-color: #065F46;
  color: #ffffff;
  border: 1px solid #065F46;
  text-decoration: none;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta):focus-visible {
  background-color: #064E3B;
  border-color: #064E3B;
  box-shadow: 0 12px 24px -10px rgba(6, 78, 59, 0.32);
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta):hover {
    background-color: #064E3B;
    border-color: #064E3B;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 24px -10px rgba(6, 78, 59, 0.32);
  }
}

html.landing-root #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta):active:not(:disabled) {
  transform: scale(0.96);
}

html.landing-root #ocsc-accreditation .ocsc-spec-link {
  min-height: 44px;
  background-color: #ffffff;
  color: #065F46;
  border: 1px solid rgba(6, 95, 70, 0.22);
  text-decoration: none;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root #ocsc-accreditation .ocsc-spec-link:is(:hover, :focus-visible) {
  background-color: #e8f5e9;
  border-color: #065F46;
  color: #022C22;
}

html.landing-root #ocsc-accreditation .ocsc-spec-link:active:not(:disabled) {
  transform: scale(0.96);
}

html.landing-root :is(#collegeModalSpecLink, #collegeModalOcscLink, #collegeModalWebsite) {
  min-height: 44px;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.landing-root :is(#collegeModalSpecLink, #collegeModalOcscLink).hidden {
  display: none;
}

html.landing-root :is(#collegeModalSpecLink, #collegeModalOcscLink, #collegeModalWebsite):active:not(:disabled) {
  transform: scale(0.96);
}

html.landing-root #ocsc-accreditation .ocsc-search-banner {
  background-color: #ffffff;
  border: 1px solid #dce6df;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

html.landing-root #ocsc-accreditation .ocsc-legal-note {
  background-color: #f1f8f4;
  border: 1px solid #dce6df;
  color: #334155;
}

html.landing-root #ocsc-accreditation .ocsc-inst-highlight {
  color: #064E3B;
}

/* Dark Mode for #ocsc-accreditation */
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation {
  background-color: #0D1B14;
  border-bottom-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-eyebrow {
  background-color: rgba(163, 230, 53, 0.14);
  color: #BEF264;
  border-color: rgba(163, 230, 53, 0.26);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation :is(h2, h3, .ocsc-branch-value) {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation :is(.body-copy, .meta-copy, .text-slate-700, .text-slate-600) {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-card,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-search-banner {
  background-color: var(--iveacer-surface);
  border-color: var(--iveacer-border);
  color: var(--iveacer-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-card:hover {
    background-color: var(--iveacer-surface-soft);
    border-color: #34d399;
    box-shadow: var(--emerald-glow);
  }
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-campus-pill {
  background-color: rgba(6, 95, 70, 0.45);
  color: #d4e9da;
  border-color: rgba(163, 230, 53, 0.3);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-cert-badge {
  background-color: rgba(163, 230, 53, 0.14);
  color: #BEF264;
  border-color: rgba(163, 230, 53, 0.36);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-branch-box,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-legal-note {
  background-color: var(--iveacer-surface-soft);
  border-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-branch-label,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-inst-highlight {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-legal-note {
  color: var(--iveacer-text-muted);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-legal-note strong {
  color: var(--iveacer-text-main);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-card-actions {
  border-top-color: var(--iveacer-border);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta) {
  background-color: #065F46;
  color: #f8fafc;
  border-color: rgba(163, 230, 53, 0.32);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta):is(:hover, :focus-visible) {
  background-color: #047857;
  border-color: #A3E635;
  color: #ffffff;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-spec-link {
  background-color: var(--iveacer-surface-soft);
  border-color: var(--iveacer-border);
  color: #9ce5ad;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #ocsc-accreditation .ocsc-spec-link:is(:hover, :focus-visible) {
  background-color: var(--iveacer-surface-subtle);
  border-color: #A3E635;
  color: #BEF264;
}

/* High Contrast Mode for #ocsc-accreditation */
html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation {
  background: #000000 !important;
  border-bottom-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation :is(
  .ocsc-card,
  .ocsc-branch-box,
  .ocsc-search-banner,
  .ocsc-legal-note,
  .ocsc-eyebrow,
  .ocsc-campus-pill,
  .ocsc-cert-badge,
  .ocsc-spec-link
) {
  background: #000000 !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation :is(
  h2,
  h3,
  .ocsc-cert-badge,
  .ocsc-branch-label,
  .ocsc-inst-highlight,
  .ocsc-spec-link
) {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-branch-value,
html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-legal-note,
html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-legal-note strong {
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-card-actions {
  border-top-color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-card:is(:hover, :focus-within) {
  border: 2px solid #FFFF00 !important;
  transform: none !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation .ocsc-spec-link:is(:hover, :focus-visible) {
  border: 2px solid #FFFF00 !important;
  background: #000000 !important;
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta) {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #ocsc-accreditation :is(.ocsc-cta-btn, .ocsc-search-cta) * {
  color: #000000 !important;
}

/* Reduced Motion for #ocsc-accreditation & Modal Action Links */
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #ocsc-accreditation :is(
  .ocsc-card,
  .ocsc-cta-btn,
  .ocsc-spec-link,
  .ocsc-search-cta
),
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) :is(
  #collegeModalSpecLink,
  #collegeModalOcscLink,
  #collegeModalWebsite
) {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
}

html.landing-root:is([data-reduced-motion="true"], .reduce-motion) #ocsc-accreditation :is(
  .ocsc-card,
  .ocsc-cta-btn,
  .ocsc-spec-link,
  .ocsc-search-cta
):is(:hover, :focus-visible, :active),
html.landing-root:is([data-reduced-motion="true"], .reduce-motion) :is(
  #collegeModalSpecLink,
  #collegeModalOcscLink,
  #collegeModalWebsite
):is(:hover, :focus-visible, :active) {
  transform: none !important;
  scale: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  html.landing-root:not([data-reduced-motion="false"]) #ocsc-accreditation :is(
    .ocsc-card,
    .ocsc-cta-btn,
    .ocsc-spec-link,
    .ocsc-search-cta
  ),
  html.landing-root:not([data-reduced-motion="false"]) :is(
    #collegeModalSpecLink,
    #collegeModalOcscLink,
    #collegeModalWebsite
  ) {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out !important;
  }

  html.landing-root:not([data-reduced-motion="false"]) #ocsc-accreditation :is(
    .ocsc-card,
    .ocsc-cta-btn,
    .ocsc-spec-link,
    .ocsc-search-cta
  ):is(:hover, :focus-visible, :active),
  html.landing-root:not([data-reduced-motion="false"]) :is(
    #collegeModalSpecLink,
    #collegeModalOcscLink,
    #collegeModalWebsite
  ):is(:hover, :focus-visible, :active) {
    transform: none !important;
    scale: 1 !important;
  }
}
