/* Custom Cassiopeia theme optimized for long-form reading and mobile. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4.5rem, 15vh, 8rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root {
  --brand-900: #0f172a;
  --brand-800: #132238;
  --brand-700: #18395b;
  --brand-600: #1f4d7d;
  --brand-500: #2a5aa8;
  --accent-500: #2aa2d4;
  --accent-400: #5cc1e8;
  --accent-300: #94d9f8;

  --surface-0: #f8fafc;
  --surface-1: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e2e9f2;

  --text-900: #132033;
  --text-700: #3b4a5f;
  --text-600: #53647b;

  --success: #0f8f5e;
  --warning: #bc7b1b;

  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 10px 24px -20px rgba(15, 23, 42, 0.26);
  --shadow-card: 0 16px 34px -26px rgba(19, 34, 56, 0.3);

  --measure: 70ch;
}

body.site {
  color: var(--text-900);
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.84), rgba(242, 246, 251, 0.86) 52%, rgba(237, 243, 248, 0.9) 100%),
    url("/templates/cassiopeia_extended/images/background.webp"),
    radial-gradient(circle at 8% -6%, rgba(92, 193, 232, 0.16), transparent 30%),
    radial-gradient(circle at 94% 0%, rgba(42, 162, 212, 0.12), transparent 38%),
    linear-gradient(180deg, #f9fbfd 0%, #f2f6fb 52%, #edf3f8 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, center, 8% -6%, 94% 0%, center;
  background-size: auto, cover, auto, auto, auto;
  background-attachment: scroll, scroll, scroll, scroll, scroll;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-600);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
  transition: color 0.24s ease, text-decoration-color 0.24s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-500);
  text-decoration-color: var(--accent-400);
}

.header {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(19, 57, 91, 0.95) 60%, rgba(42, 162, 212, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 40px -24px rgba(0, 14, 33, 0.75);
}

.container-topbar,
.container-below-top,
.container-nav,
.navbar-brand {
  color: #f3f7fc;
}

.navbar-brand a,
.container-nav a,
.container-topbar a,
.container-below-top a {
  color: #f3f7fc;
}

.navbar-brand a:hover,
.container-nav a:hover,
.container-topbar a:hover,
.container-below-top a:hover,
.navbar-brand a:focus-visible,
.container-nav a:focus-visible,
.container-topbar a:focus-visible,
.container-below-top a:focus-visible {
  color: #bce8fb;
}

.site-description {
  color: rgba(243, 247, 252, 0.78);
}

/* Ensure readable text colors in explicit light mode (mod_color_scheme_toggle) */
html[data-color-scheme="light"] .container-header .site-description,
html[data-bs-theme="light"] .container-header .site-description,
html.color-scheme-light .container-header .site-description {
  color: var(--text-700) !important;
}

html[data-color-scheme="light"] .container-header,
html[data-bs-theme="light"] .container-header,
html.color-scheme-light .container-header {
  background: linear-gradient(180deg, #f8fbfd, #eef4fa);
  border-bottom: 1px solid rgba(19, 34, 56, 0.12);
  box-shadow: 0 12px 30px -24px rgba(19, 34, 56, 0.28);
}

html[data-color-scheme="light"] .container-header .navbar-brand,
html[data-color-scheme="light"] .container-header .container-nav,
html[data-color-scheme="light"] .container-header .container-topbar,
html[data-color-scheme="light"] .container-header .container-below-top,
html[data-bs-theme="light"] .container-header .navbar-brand,
html[data-bs-theme="light"] .container-header .container-nav,
html[data-bs-theme="light"] .container-header .container-topbar,
html[data-bs-theme="light"] .container-header .container-below-top,
html.color-scheme-light .container-header .navbar-brand,
html.color-scheme-light .container-header .container-nav,
html.color-scheme-light .container-header .container-topbar,
html.color-scheme-light .container-header .container-below-top {
  color: var(--text-900);
}

html[data-color-scheme="light"] .container-header .navbar-brand a,
html[data-color-scheme="light"] .container-header .container-nav a,
html[data-color-scheme="light"] .container-header .container-topbar a,
html[data-color-scheme="light"] .container-header .container-below-top a,
html[data-bs-theme="light"] .container-header .navbar-brand a,
html[data-bs-theme="light"] .container-header .container-nav a,
html[data-bs-theme="light"] .container-header .container-topbar a,
html[data-bs-theme="light"] .container-header .container-below-top a,
html.color-scheme-light .container-header .navbar-brand a,
html.color-scheme-light .container-header .container-nav a,
html.color-scheme-light .container-header .container-topbar a,
html.color-scheme-light .container-header .container-below-top a {
  color: var(--brand-800);
}

html[data-color-scheme="light"] .container-header .navbar-toggler,
html[data-bs-theme="light"] .container-header .navbar-toggler,
html.color-scheme-light .container-header .navbar-toggler {
  color: var(--brand-700);
  border-color: rgba(42, 162, 212, 0.2);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px -22px rgba(19, 34, 56, 0.35);
}

html[data-color-scheme="light"] .container-header .navbar-toggler-icon,
html[data-bs-theme="light"] .container-header .navbar-toggler-icon,
html.color-scheme-light .container-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2819, 57, 91, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-color-scheme="light"] .container-header .metismenu.mod-menu,
html[data-bs-theme="light"] .container-header .metismenu.mod-menu,
html.color-scheme-light .container-header .metismenu.mod-menu {
  color: var(--text-900);
}

html[data-color-scheme="light"] .container-header .metismenu.mod-menu > li > a,
html[data-color-scheme="light"] .container-header .metismenu.mod-menu .metismenu-item > a,
html[data-bs-theme="light"] .container-header .metismenu.mod-menu > li > a,
html[data-bs-theme="light"] .container-header .metismenu.mod-menu .metismenu-item > a,
html.color-scheme-light .container-header .metismenu.mod-menu > li > a,
html.color-scheme-light .container-header .metismenu.mod-menu .metismenu-item > a {
  color: var(--brand-800);
}

.site-grid {
  column-gap: 1.1rem;
  row-gap: 0.72rem;
  padding: clamp(1rem, 2.5vw, 2rem);
}

/* Tighten spacing between hero/banner and first content row */
.container-banner + .site-grid {
  padding-top: clamp(0.3rem, 1vw, 0.75rem);
}

.grid-child {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 162, 212, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-child:hover {
  border-color: rgba(42, 162, 212, 0.2);
  box-shadow: 0 12px 32px -22px rgba(42, 162, 212, 0.35);
}

.container-component {
  padding: clamp(0.75rem, 2vw, 1.3rem) clamp(1.4rem, 4vw, 2.8rem) clamp(1.4rem, 3vw, 2.2rem);
}

.container-banner + .site-grid .container-component {
  padding-top: clamp(0.5rem, 1.4vw, 0.95rem);
}

.container-component main {
  max-width: 60rem;
  margin-inline: auto;
}

/* Long-form reading rhythm for article-heavy pages */
.com-content-article,
.item-content,
main .item-page,
main article {
  line-height: 1.64;
  font-size: clamp(0.98rem, 0.95rem + 0.18vw, 1.08rem);
  color: var(--text-900);
}

.com-content-article p,
.item-content p,
main .item-page p,
main article p {
  margin-bottom: 0.82em;
}

.com-content-article h1,
.com-content-article h2,
.com-content-article h3,
.item-page h1,
.item-page h2,
.item-page h3,
.page-header h1,
.page-header h2 {
  color: var(--brand-900);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 1.02em 0 0.42em;
}

.com-content-article h1,
.item-page h1,
.page-header h1 {
  font-size: clamp(1.7rem, 1.35rem + 1.15vw, 2.5rem);
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.com-content-article h2,
.item-page h2,
.page-header h2 {
  font-size: clamp(1.36rem, 1.2rem + 0.72vw, 1.85rem);
  color: var(--brand-800);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(42, 162, 212, 0.3);
}

.com-content-article h3,
.item-page h3 {
  font-size: clamp(1.2rem, 1.09rem + 0.45vw, 1.48rem);
  color: var(--brand-700);
}

.article-info,
.com-content-article .article-info {
  font-size: 0.89rem;
  color: var(--text-600);
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  padding: 0.65rem 0 0;
  margin-bottom: 0.8rem;
  border-top: 1px solid rgba(42, 162, 212, 0.18);
}

.article-info li,
.article-info dd,
.com-content-article .article-info li,
.com-content-article .article-info dd {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
}

.article-info .article-info-term,
.com-content-article .article-info .article-info-term {
  color: var(--text-700);
  font-weight: 600;
}

.article-info [class^="icon-"],
.article-info [class*=" icon-"],
.com-content-article .article-info [class^="icon-"],
.com-content-article .article-info [class*=" icon-"] {
  display: none;
}

.article-info .createdby::before,
.com-content-article .article-info .createdby::before {
  content: "✍️";
  opacity: 0.72;
}

.article-info .category-name::before,
.com-content-article .article-info .category-name::before {
  content: "🏷️";
  opacity: 0.68;
}

.article-info .published::before,
.com-content-article .article-info .published::before {
  content: "🗓️";
  opacity: 0.68;
}

.article-info .hits::before,
.com-content-article .article-info .hits::before {
  content: "👁️";
  opacity: 0.66;
}

.com-content-article blockquote,
.item-page blockquote,
main article blockquote {
  border-left: 3px solid var(--accent-500);
  margin: 1.2rem 0;
  padding: 0.7rem 0.9rem 0.7rem 1.1rem;
  color: var(--text-700);
  background: linear-gradient(90deg, rgba(42, 162, 212, 0.08), rgba(92, 193, 232, 0.02));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 0.98em;
}

.com-content-article ul,
.com-content-article ol,
.item-page ul,
.item-page ol,
main article ul,
main article ol {
  margin: 0 0 1.1em 1.35em;
}

.com-content-article li,
.item-page li,
main article li {
  margin-bottom: 0.48em;
}

.com-content-article table,
.item-page table,
main article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.96em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(42, 162, 212, 0.1);
}

.com-content-article th,
.com-content-article td,
.item-page th,
.item-page td,
 main article th,
 main article td {
  border: 1px solid rgba(42, 162, 212, 0.08);
  padding: 0.62rem 0.72rem;
  text-align: left;
}

.com-content-article th,
.item-page th,
main article th {
  background: linear-gradient(135deg, rgba(42, 162, 212, 0.08), rgba(26, 97, 165, 0.06));
  color: var(--brand-700);
  font-weight: 600;
}

.com-content-article img,
.item-page img,
main article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 1.2rem auto;
  border: 1px solid rgba(42, 162, 212, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.com-content-article img:hover,
.item-page img:hover,
main article img:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(42, 162, 212, 0.5);
}

.com-content-article figure,
.item-page figure,
main article figure {
  margin: 1.2rem 0;
}

.com-content-article figcaption,
main article figcaption {
  margin-top: 0.5rem;
  color: var(--text-600);
  font-size: 0.92rem;
  text-align: center;
}

/* Inline quote styling — set by plg_content_quotestyle */
.com-content-article .inline-quote,
.item-page .inline-quote,
main article .inline-quote {
  font-style: italic;
  color: var(--text-700);
}

.com-content-article .inline-quote::before,
.item-page .inline-quote::before,
main article .inline-quote::before {
  content: "\201C";
  font-style: normal;
  color: var(--accent-500);
  opacity: 0.72;
  font-size: 1.05em;
  margin-right: 0.05em;
}

.com-content-article .inline-quote::after,
.item-page .inline-quote::after,
main article .inline-quote::after {
  content: "\201D";
  font-style: normal;
  color: var(--accent-500);
  opacity: 0.72;
  font-size: 1.05em;
  margin-left: 0.05em;
}

/* Reusable module skin for manually assigned module classes */
.theme-module,
.theme-module.moduletable,
.theme-module .moduletable {
  color: var(--text-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(42, 162, 212, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px -18px rgba(42, 162, 212, 0.3);
}

.theme-module {
  padding: 1rem 1.05rem;
}

.theme-module,
.theme-module p,
.theme-module li,
.theme-module dd,
.theme-module dt,
.theme-module span,
.theme-module div {
  color: inherit;
}

.theme-module h1,
.theme-module h2,
.theme-module h3,
.theme-module h4,
.theme-module h5,
.theme-module h6,
.theme-module .module-title,
.theme-module .moduletitle,
.theme-module > h3 {
  color: var(--brand-900);
}

.theme-module a {
  color: var(--brand-600);
}

.theme-module a:hover,
.theme-module a:focus-visible {
  color: var(--accent-500);
}

.theme-module img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.theme-module input,
.theme-module select,
.theme-module textarea,
.theme-module .form-control {
  color: var(--text-900);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 162, 212, 0.18);
}

.theme-module .btn,
.theme-module button {
  border-radius: 8px;
}

.theme-module--content {
  line-height: 1.64;
  font-size: clamp(0.98rem, 0.95rem + 0.18vw, 1.08rem);
}

.theme-module--content p,
.theme-module--content ul,
.theme-module--content ol {
  max-width: var(--measure);
}

/* Cards and module boxes */
.card,
.moduletable,
.container-top-a .grid-child,
.container-top-b .grid-child,
.container-bottom-a .grid-child,
.container-bottom-b .grid-child,
.container-sidebar-left .grid-child,
.container-sidebar-right .grid-child {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(42, 162, 212, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.moduletable,
.card {
  box-shadow: 0 8px 20px -18px rgba(42, 162, 212, 0.3);
}

.card:hover,
.moduletable:hover {
  border-color: rgba(42, 162, 212, 0.18);
  box-shadow: 0 10px 28px -16px rgba(42, 162, 212, 0.4);
}

.moduletable > :last-child,
.card > :last-child {
  margin-bottom: 0;
}

.login .mod-login,
.login .mod-login-joomla,
.mod-login {
  font-size: 0.95rem;
}

.login .form-control,
.mod-login .form-control {
  min-height: 2.3rem;
  padding-block: 0.38rem;
}

.login .btn,
.mod-login .btn {
  min-height: 2.3rem;
  border-radius: 8px;
}

/* Menu and search readability on desktop and touch */
.metismenu.mod-menu > li > a,
.metismenu.mod-menu .metismenu-item > a,
.container-search input,
.container-search .form-control {
  border-radius: 10px;
}

.metismenu.mod-menu .mm-collapse,
.metismenu.mod-menu .metismenu-item > ul {
  margin-top: 0.22rem;
  padding: 0.28rem;
  max-height: min(24rem, calc(100vh - 9rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(245, 249, 253, 0.94));
  border: 1px solid rgba(42, 162, 212, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 24px -22px rgba(19, 34, 56, 0.2);
}

.metismenu.mod-menu .mm-collapse::-webkit-scrollbar,
.metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar {
  width: 0.55rem;
}

.metismenu.mod-menu .mm-collapse::-webkit-scrollbar-thumb,
.metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar-thumb {
  background: rgba(42, 162, 212, 0.22);
  border-radius: 999px;
}

.metismenu.mod-menu .mm-collapse::-webkit-scrollbar-track,
.metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar-track {
  background: transparent;
}

.metismenu.mod-menu .mm-collapse > li > a,
.metismenu.mod-menu .metismenu-item > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  color: var(--brand-700);
}

.metismenu.mod-menu .mm-collapse > li > a:hover,
.metismenu.mod-menu .mm-collapse > li.active > a,
.metismenu.mod-menu .metismenu-item > ul > li > a:hover,
.metismenu.mod-menu .metismenu-item > ul > li.active > a {
  background: rgba(92, 193, 232, 0.1);
  color: var(--brand-900);
}

.metismenu.mod-menu > li > a {
  padding: 0.46rem 0.62rem;
  border-radius: 8px;
  transition: all 0.24s ease;
}

.metismenu.mod-menu > li > a:hover,
.metismenu.mod-menu > li.active > a {
  background: rgba(92, 193, 232, 0.12);
  border-left: 2px solid rgba(92, 193, 232, 0.35);
}

.container-search input,
.container-search .form-control {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.container-search input::placeholder,
.container-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

/* Keep fancy menu and search on one row in desktop header */
@media (min-width: 992px) {
  .container-header,
  .container-header .container-nav,
  .container-header .container-nav > .moduletable,
  .container-header .container-nav .mod-fancy-menu,
  .container-header .container-nav .fancy-menu__nav,
  .container-header .container-nav .fancy-menu__list,
  .container-header .container-nav .fancy-menu__item {
    overflow: visible;
  }

  .container-header .container-nav {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .container-header .container-nav > .moduletable,
  .container-header .container-nav > .mod-custom,
  .container-header .container-nav > .mod-fancy-menu {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-bottom: 0;
  }

  .container-header .container-nav .mod-fancy-menu {
    --fmenu-width: auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .container-header .container-nav .fancy-menu__list {
    flex-wrap: wrap;
  }

  .container-header .container-nav .fancy-menu__sublist {
    min-width: min(92vw, 24rem);
    max-width: min(92vw, 32rem);
    overflow-x: hidden;
    z-index: 250;
  }

  .container-header .container-nav .fancy-menu__sublist .fancy-menu__link-wrap {
    align-items: flex-start;
  }

  .container-header .container-nav .fancy-menu__sublist .fancy-menu__link {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .container-header .container-nav .fancy-menu__sublist .fancy-menu__submenu-toggle {
    align-self: stretch;
  }

  .container-header .container-search {
    flex: 0 1 13rem;
    width: min(100%, 13rem);
    max-width: 13rem;
    margin-left: auto;
    min-width: 10rem;
  }

  .container-header .container-search .mod-search,
  .container-header .container-search form,
  .container-header .container-search .mod-finder {
    width: 100%;
  }
}

footer.footer {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(24, 57, 91, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d9e6f5;
}

footer.footer a {
  color: #d9e6f5;
}

html[data-color-scheme="light"] footer.footer,
html[data-color-scheme="light"] .container-footer,
html[data-bs-theme="light"] footer.footer,
html[data-bs-theme="light"] .container-footer,
html.color-scheme-light footer.footer,
html.color-scheme-light .container-footer {
  background: linear-gradient(180deg, #f7fafd, #eef4fa);
  border-top: 1px solid rgba(19, 34, 56, 0.1);
  color: var(--text-700);
}

html[data-color-scheme="light"] footer.footer a,
html[data-color-scheme="light"] .container-footer a,
html[data-bs-theme="light"] footer.footer a,
html[data-bs-theme="light"] .container-footer a,
html.color-scheme-light footer.footer a,
html.color-scheme-light .container-footer a {
  color: var(--brand-600);
}

#back-top.back-to-top-link {
  background: linear-gradient(160deg, var(--brand-600), var(--accent-500));
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 30px -16px rgba(24, 57, 91, 0.9);
}

#back-top.back-to-top-link:hover,
#back-top.back-to-top-link:focus-visible {
  filter: brightness(1.1);
}

/* Breadcrumb Text - Replace "You are here" with German text */
.breadcrumbs::before,
.breadcrumb::before {
  content: "Du befindest dich hier: ";
  font-weight: 600;
  color: var(--text-700);
}

/* Tablet and mobile optimization */
@media (max-width: 991.98px) {
  .site-grid {
    padding: 0.65rem;
    column-gap: 0.85rem;
    row-gap: 0.62rem;
  }

  .container-component {
    padding: 0.4rem 0.82rem 0.82rem;
  }

  .com-content-article,
  .item-content,
  main .item-page,
  main article {
    font-size: clamp(0.97rem, 0.94rem + 0.32vw, 1.03rem);
    line-height: 1.58;
  }

  .com-content-article h1,
  .item-page h1,
  .page-header h1 {
    line-height: 1.22;
  }

  .article-info,
  .com-content-article .article-info {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .header {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  html[data-color-scheme="light"] .container-header .container-nav,
  html[data-bs-theme="light"] .container-header .container-nav,
  html.color-scheme-light .container-header .container-nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 252, 0.94));
    border: 1px solid rgba(42, 162, 212, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 28px -24px rgba(19, 34, 56, 0.28);
  }

  html[data-color-scheme="light"] .container-header .container-nav .mod-menu,
  html[data-bs-theme="light"] .container-header .container-nav .mod-menu,
  html.color-scheme-light .container-header .container-nav .mod-menu {
    padding: 0.45rem;
  }

  html[data-color-scheme="light"] .container-header .container-nav .mod-menu > li > a,
  html[data-bs-theme="light"] .container-header .container-nav .mod-menu > li > a,
  html.color-scheme-light .container-header .container-nav .mod-menu > li > a {
    color: var(--brand-800);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(42, 162, 212, 0.08);
  }

  html[data-color-scheme="light"] .container-header .container-nav .mod-menu > li > a:hover,
  html[data-color-scheme="light"] .container-header .container-nav .mod-menu > li.active > a,
  html[data-bs-theme="light"] .container-header .container-nav .mod-menu > li > a:hover,
  html[data-bs-theme="light"] .container-header .container-nav .mod-menu > li.active > a,
  html.color-scheme-light .container-header .container-nav .mod-menu > li > a:hover,
  html.color-scheme-light .container-header .container-nav .mod-menu > li.active > a {
    background: rgba(92, 193, 232, 0.12);
    color: var(--brand-900);
  }

  .navbar-brand,
  .container-nav,
  .container-topbar,
  .container-below-top {
    padding-inline: 0.2rem;
  }

  .container-component main {
    max-width: 100%;
  }

  .com-content-article p,
  .item-content p,
  main .item-page p,
  main article p,
  .com-content-article ul,
  .com-content-article ol,
  .item-page ul,
  .item-page ol,
  main article ul,
  main article ol {
    max-width: none;
  }

  .com-content-article table,
  .item-page table,
  main article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .com-content-article img,
  .item-page img,
  main article img {
    border-radius: 10px;
    margin: 0.95rem auto;
  }

  #back-top.back-to-top-link {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  body.site {
    background:
      linear-gradient(180deg, rgba(248, 251, 253, 0.88), rgba(241, 246, 251, 0.9) 52%, rgba(235, 242, 248, 0.92) 100%),
      url("/templates/cassiopeia_extended/images/background.webp"),
      radial-gradient(circle at 8% -8%, rgba(92, 193, 232, 0.14), transparent 26%),
      radial-gradient(circle at 94% 0%, rgba(42, 162, 212, 0.1), transparent 34%),
      linear-gradient(180deg, #f8fbfd 0%, #f1f6fb 52%, #ebf2f8 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: center, center, 8% -8%, 94% 0%, center;
    background-size: auto, cover, auto, auto, auto;
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }

  .grid-child {
    border-radius: 14px;
  }

  .container-component {
    padding: 0.55rem 0.8rem 0.8rem;
  }

  .article-info,
  .com-content-article .article-info {
    font-size: 0.84rem;
    gap: 0.35rem 0.58rem;
  }
}

/* Navigation Symbols: Replace Prev/Next text with icons */
a[rel="prev"],
a[rel="previous"],
.prev-item,
.item-page a.prev,
.item-page a.previous,
.pagination-prev {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a[rel="prev"]::before,
a[rel="previous"]::before,
.prev-item::before,
.item-page a.prev::before,
.item-page a.previous::before,
.pagination-prev::before {
  content: "←";
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.75;
}

a[rel="next"],
.next-item,
.item-page a.next,
.pagination-next,
a[href*="?limitstart"][rel="next"] {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a[rel="next"]::after,
.next-item::after,
.item-page a.next::after,
.pagination-next::after {
  content: "→";
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.75;
}

/* Fancy Tag Styling */
.list-inline,
.tags,
.tag-list,
.com-content-article .list-inline,
main article .list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: 0.85rem 0;
  padding: 0;
  list-style: none;
}

.list-inline-item,
.list-inline > li,
.tag-item,
.com-content-article .list-inline-item,
.com-content-article .list-inline > li,
main article .list-inline-item,
main article .list-inline > li {
  display: inline-block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-weight: 400;
}

.list-inline-item a,
.list-inline > li a,
.tag-item a,
.tags a,
.tag-list a,
.com-content-article .list-inline-item a,
.com-content-article .list-inline > li a,
main article .list-inline-item a,
main article .list-inline > li a {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.1rem 0.36rem;
  background: rgba(42, 162, 212, 0.07) !important;
  border: 0 !important;
  border-radius: 3px;
  box-shadow: none !important;
  color: var(--text-700) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 400 !important;
  line-height: 1.25;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.list-inline-item:hover,
.list-inline > li:hover,
.tag-item:hover,
.tags a:hover,
.tag-list a:hover,
.com-content-article .list-inline-item:hover,
.com-content-article .list-inline > li:hover,
main article .list-inline-item:hover,
main article .list-inline > li:hover {
  background: transparent;
  color: inherit;
}

.list-inline-item:hover a,
.list-inline > li:hover a,
.tag-item:hover a,
.tags a:hover,
.tag-list a:hover,
.com-content-article .list-inline-item:hover a,
.com-content-article .list-inline > li:hover a,
main article .list-inline-item:hover a,
main article .list-inline > li:hover a {
  background: rgba(42, 162, 212, 0.12) !important;
  color: var(--brand-700) !important;
}

.list-inline-item a::before,
.list-inline > li a::before,
.tag-item a::before,
.tags a::before,
.tag-list a::before,
.com-content-article .list-inline-item a::before,
.com-content-article .list-inline > li a::before,
main article .list-inline-item a::before,
main article .list-inline > li a::before {
  content: "🏷";
  margin-right: 0.1rem;
  opacity: 0.5;
  font-size: 0.72rem;
}

/* Neutralize framework badge/button defaults on tags */
.tags .badge,
.tag-list .badge,
.list-inline .badge,
.tags .btn,
.tag-list .btn,
.list-inline .btn {
  background: rgba(42, 162, 212, 0.07) !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: var(--text-700) !important;
  box-shadow: none !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  padding: 0.1rem 0.36rem !important;
}

/* Native dark mode support for the module toggle bridge */
html[data-color-scheme="dark"],
html[data-bs-theme="dark"],
html.color-scheme-dark {
  color-scheme: dark;

  --brand-900: #e8eef8;
  --brand-800: #cbd9ef;
  --brand-700: #aac3e6;
  --brand-600: #8fb1df;
  --brand-500: #739fd6;
  --accent-500: #5db7de;
  --accent-400: #86cae9;
  --accent-300: #addcf2;

  --surface-0: #0b1320;
  --surface-1: #111d2e;
  --surface-2: #17263a;
  --surface-3: #203148;

  --text-900: #e4edf9;
  --text-700: #b8c8dd;
  --text-600: #9fb3cd;

  --success: #2ac087;
  --warning: #d8a246;

  --shadow-soft: 0 10px 24px -20px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 16px 34px -26px rgba(0, 0, 0, 0.85);
}

html[data-color-scheme="dark"] body.site,
html[data-bs-theme="dark"] body.site,
html.color-scheme-dark body.site {
  color: var(--text-900);
  background:
    linear-gradient(180deg, rgba(10, 18, 29, 0.78), rgba(12, 21, 34, 0.8) 52%, rgba(15, 26, 41, 0.84) 100%),
    url("/templates/cassiopeia_extended/images/background.webp"),
    radial-gradient(circle at 8% -6%, rgba(60, 143, 178, 0.14), transparent 32%),
    radial-gradient(circle at 94% 0%, rgba(42, 124, 167, 0.12), transparent 38%),
    linear-gradient(180deg, #0a121d 0%, #0c1522 52%, #0f1a29 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, center, 8% -6%, 94% 0%, center;
  background-size: auto, cover, auto, auto, auto;
  background-attachment: scroll, scroll, scroll, scroll, scroll;
}

html[data-color-scheme="dark"] a,
html[data-bs-theme="dark"] a,
html.color-scheme-dark a {
  color: var(--accent-400);
}

html[data-color-scheme="dark"] a:hover,
html[data-color-scheme="dark"] a:focus-visible,
html[data-bs-theme="dark"] a:hover,
html[data-bs-theme="dark"] a:focus-visible,
html.color-scheme-dark a:hover,
html.color-scheme-dark a:focus-visible {
  color: var(--accent-300);
  text-decoration-color: var(--accent-400);
}

html[data-color-scheme="dark"] .header,
html[data-bs-theme="dark"] .header,
html.color-scheme-dark .header,
html[data-color-scheme="dark"] .container-header,
html[data-bs-theme="dark"] .container-header,
html.color-scheme-dark .container-header {
  background:
    linear-gradient(135deg, rgba(7, 12, 19, 0.97), rgba(13, 25, 41, 0.95) 60%, rgba(27, 89, 124, 0.9));
  border-bottom: 1px solid rgba(173, 220, 242, 0.18);
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.9);
}

html[data-color-scheme="dark"] .container-topbar,
html[data-color-scheme="dark"] .container-below-top,
html[data-color-scheme="dark"] .container-nav,
html[data-color-scheme="dark"] .navbar-brand,
html[data-bs-theme="dark"] .container-topbar,
html[data-bs-theme="dark"] .container-below-top,
html[data-bs-theme="dark"] .container-nav,
html[data-bs-theme="dark"] .navbar-brand,
html.color-scheme-dark .container-topbar,
html.color-scheme-dark .container-below-top,
html.color-scheme-dark .container-nav,
html.color-scheme-dark .navbar-brand {
  color: #e4edf9;
}

html[data-color-scheme="dark"] .navbar-brand a,
html[data-color-scheme="dark"] .container-nav a,
html[data-color-scheme="dark"] .container-topbar a,
html[data-color-scheme="dark"] .container-below-top a,
html[data-bs-theme="dark"] .navbar-brand a,
html[data-bs-theme="dark"] .container-nav a,
html[data-bs-theme="dark"] .container-topbar a,
html[data-bs-theme="dark"] .container-below-top a,
html.color-scheme-dark .navbar-brand a,
html.color-scheme-dark .container-nav a,
html.color-scheme-dark .container-topbar a,
html.color-scheme-dark .container-below-top a {
  color: #e4edf9;
}

html[data-color-scheme="dark"] .site-description,
html[data-bs-theme="dark"] .site-description,
html.color-scheme-dark .site-description {
  color: rgba(228, 237, 249, 0.76);
}

html[data-color-scheme="dark"] .grid-child,
html[data-color-scheme="dark"] .card,
html[data-color-scheme="dark"] .moduletable,
html[data-color-scheme="dark"] .container-top-a .grid-child,
html[data-color-scheme="dark"] .container-top-b .grid-child,
html[data-color-scheme="dark"] .container-bottom-a .grid-child,
html[data-color-scheme="dark"] .container-bottom-b .grid-child,
html[data-color-scheme="dark"] .container-sidebar-left .grid-child,
html[data-color-scheme="dark"] .container-sidebar-right .grid-child,
html[data-bs-theme="dark"] .grid-child,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .moduletable,
html[data-bs-theme="dark"] .container-top-a .grid-child,
html[data-bs-theme="dark"] .container-top-b .grid-child,
html[data-bs-theme="dark"] .container-bottom-a .grid-child,
html[data-bs-theme="dark"] .container-bottom-b .grid-child,
html[data-bs-theme="dark"] .container-sidebar-left .grid-child,
html[data-bs-theme="dark"] .container-sidebar-right .grid-child,
html.color-scheme-dark .grid-child,
html.color-scheme-dark .card,
html.color-scheme-dark .moduletable,
html.color-scheme-dark .container-top-a .grid-child,
html.color-scheme-dark .container-top-b .grid-child,
html.color-scheme-dark .container-bottom-a .grid-child,
html.color-scheme-dark .container-bottom-b .grid-child,
html.color-scheme-dark .container-sidebar-left .grid-child,
html.color-scheme-dark .container-sidebar-right .grid-child {
  background: linear-gradient(135deg, rgba(17, 29, 46, 0.94), rgba(23, 38, 58, 0.92));
  border: 1px solid rgba(93, 183, 222, 0.18);
  box-shadow: var(--shadow-soft);
}

html[data-color-scheme="dark"] .grid-child:hover,
html[data-color-scheme="dark"] .card:hover,
html[data-color-scheme="dark"] .moduletable:hover,
html[data-bs-theme="dark"] .grid-child:hover,
html[data-bs-theme="dark"] .card:hover,
html[data-bs-theme="dark"] .moduletable:hover,
html.color-scheme-dark .grid-child:hover,
html.color-scheme-dark .card:hover,
html.color-scheme-dark .moduletable:hover {
  border-color: rgba(134, 202, 233, 0.35);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.8);
}

html[data-color-scheme="dark"] .com-content-article,
html[data-color-scheme="dark"] .item-content,
html[data-color-scheme="dark"] main .item-page,
html[data-color-scheme="dark"] main article,
html[data-bs-theme="dark"] .com-content-article,
html[data-bs-theme="dark"] .item-content,
html[data-bs-theme="dark"] main .item-page,
html[data-bs-theme="dark"] main article,
html.color-scheme-dark .com-content-article,
html.color-scheme-dark .item-content,
html.color-scheme-dark main .item-page,
html.color-scheme-dark main article {
  color: var(--text-900);
}

html[data-color-scheme="dark"] .com-content-article h1,
html[data-color-scheme="dark"] .item-page h1,
html[data-color-scheme="dark"] .page-header h1,
html[data-bs-theme="dark"] .com-content-article h1,
html[data-bs-theme="dark"] .item-page h1,
html[data-bs-theme="dark"] .page-header h1,
html.color-scheme-dark .com-content-article h1,
html.color-scheme-dark .item-page h1,
html.color-scheme-dark .page-header h1 {
  background: linear-gradient(135deg, #f0f5fd, #b6cbec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-color-scheme="dark"] .com-content-article h2,
html[data-color-scheme="dark"] .item-page h2,
html[data-color-scheme="dark"] .page-header h2,
html[data-bs-theme="dark"] .com-content-article h2,
html[data-bs-theme="dark"] .item-page h2,
html[data-bs-theme="dark"] .page-header h2,
html.color-scheme-dark .com-content-article h2,
html.color-scheme-dark .item-page h2,
html.color-scheme-dark .page-header h2 {
  color: var(--brand-800);
  border-bottom: 2px solid rgba(93, 183, 222, 0.35);
}

html[data-color-scheme="dark"] .com-content-article h3,
html[data-color-scheme="dark"] .item-page h3,
html[data-bs-theme="dark"] .com-content-article h3,
html[data-bs-theme="dark"] .item-page h3,
html.color-scheme-dark .com-content-article h3,
html.color-scheme-dark .item-page h3 {
  color: var(--brand-700);
}

html[data-color-scheme="dark"] .article-info,
html[data-color-scheme="dark"] .com-content-article .article-info,
html[data-color-scheme="dark"] .article-info li,
html[data-color-scheme="dark"] .article-info dd,
html[data-color-scheme="dark"] .article-info span,
html[data-color-scheme="dark"] .article-info a,
html[data-bs-theme="dark"] .article-info,
html[data-bs-theme="dark"] .com-content-article .article-info,
html[data-bs-theme="dark"] .article-info li,
html[data-bs-theme="dark"] .article-info dd,
html[data-bs-theme="dark"] .article-info span,
html[data-bs-theme="dark"] .article-info a,
html.color-scheme-dark .article-info,
html.color-scheme-dark .com-content-article .article-info,
html.color-scheme-dark .article-info li,
html.color-scheme-dark .article-info dd,
html.color-scheme-dark .article-info span,
html.color-scheme-dark .article-info a {
  color: var(--text-600);
  border-top-color: rgba(93, 183, 222, 0.3);
}

html[data-color-scheme="dark"] .article-info .article-info-term,
html[data-color-scheme="dark"] .com-content-article .article-info .article-info-term,
html[data-bs-theme="dark"] .article-info .article-info-term,
html[data-bs-theme="dark"] .com-content-article .article-info .article-info-term,
html.color-scheme-dark .article-info .article-info-term,
html.color-scheme-dark .com-content-article .article-info .article-info-term {
  color: var(--text-700);
}

html[data-color-scheme="dark"] .com-content-article blockquote,
html[data-color-scheme="dark"] .item-page blockquote,
html[data-color-scheme="dark"] main article blockquote,
html[data-bs-theme="dark"] .com-content-article blockquote,
html[data-bs-theme="dark"] .item-page blockquote,
html[data-bs-theme="dark"] main article blockquote,
html.color-scheme-dark .com-content-article blockquote,
html.color-scheme-dark .item-page blockquote,
html.color-scheme-dark main article blockquote {
  border-left: 3px solid var(--accent-500);
  color: var(--text-700);
  background: linear-gradient(90deg, rgba(93, 183, 222, 0.15), rgba(93, 183, 222, 0.04));
}

html[data-color-scheme="dark"] .com-content-article table,
html[data-color-scheme="dark"] .item-page table,
html[data-color-scheme="dark"] main article table,
html[data-bs-theme="dark"] .com-content-article table,
html[data-bs-theme="dark"] .item-page table,
html[data-bs-theme="dark"] main article table,
html.color-scheme-dark .com-content-article table,
html.color-scheme-dark .item-page table,
html.color-scheme-dark main article table {
  background: linear-gradient(180deg, rgba(17, 29, 46, 0.98), rgba(11, 19, 32, 0.96));
  border: 1px solid rgba(93, 183, 222, 0.2);
}

html[data-color-scheme="dark"] .com-content-article th,
html[data-color-scheme="dark"] .com-content-article td,
html[data-color-scheme="dark"] .item-page th,
html[data-color-scheme="dark"] .item-page td,
html[data-color-scheme="dark"] main article th,
html[data-color-scheme="dark"] main article td,
html[data-bs-theme="dark"] .com-content-article th,
html[data-bs-theme="dark"] .com-content-article td,
html[data-bs-theme="dark"] .item-page th,
html[data-bs-theme="dark"] .item-page td,
html[data-bs-theme="dark"] main article th,
html[data-bs-theme="dark"] main article td,
html.color-scheme-dark .com-content-article th,
html.color-scheme-dark .com-content-article td,
html.color-scheme-dark .item-page th,
html.color-scheme-dark .item-page td,
html.color-scheme-dark main article th,
html.color-scheme-dark main article td {
  border: 1px solid rgba(93, 183, 222, 0.17);
}

html[data-color-scheme="dark"] .com-content-article th,
html[data-color-scheme="dark"] .item-page th,
html[data-color-scheme="dark"] main article th,
html[data-bs-theme="dark"] .com-content-article th,
html[data-bs-theme="dark"] .item-page th,
html[data-bs-theme="dark"] main article th,
html.color-scheme-dark .com-content-article th,
html.color-scheme-dark .item-page th,
html.color-scheme-dark main article th {
  background: linear-gradient(135deg, rgba(93, 183, 222, 0.18), rgba(42, 90, 135, 0.14));
  color: var(--text-900);
}

html[data-color-scheme="dark"] .com-content-article img,
html[data-color-scheme="dark"] .item-page img,
html[data-color-scheme="dark"] main article img,
html[data-bs-theme="dark"] .com-content-article img,
html[data-bs-theme="dark"] .item-page img,
html[data-bs-theme="dark"] main article img,
html.color-scheme-dark .com-content-article img,
html.color-scheme-dark .item-page img,
html.color-scheme-dark main article img {
  border: 1px solid rgba(93, 183, 222, 0.24);
}

html[data-color-scheme="dark"] .com-content-article figcaption,
html[data-color-scheme="dark"] main article figcaption,
html[data-bs-theme="dark"] .com-content-article figcaption,
html[data-bs-theme="dark"] main article figcaption,
html.color-scheme-dark .com-content-article figcaption,
html.color-scheme-dark main article figcaption {
  color: var(--text-600);
}

html[data-color-scheme="dark"] .com-content-article .inline-quote,
html[data-color-scheme="dark"] .item-page .inline-quote,
html[data-color-scheme="dark"] main article .inline-quote,
html[data-bs-theme="dark"] .com-content-article .inline-quote,
html[data-bs-theme="dark"] .item-page .inline-quote,
html[data-bs-theme="dark"] main article .inline-quote,
html.color-scheme-dark .com-content-article .inline-quote,
html.color-scheme-dark .item-page .inline-quote,
html.color-scheme-dark main article .inline-quote {
  color: var(--text-700);
}

html[data-color-scheme="dark"] .com-content-article .inline-quote::before,
html[data-color-scheme="dark"] .com-content-article .inline-quote::after,
html[data-color-scheme="dark"] .item-page .inline-quote::before,
html[data-color-scheme="dark"] .item-page .inline-quote::after,
html[data-color-scheme="dark"] main article .inline-quote::before,
html[data-color-scheme="dark"] main article .inline-quote::after,
html[data-bs-theme="dark"] .com-content-article .inline-quote::before,
html[data-bs-theme="dark"] .com-content-article .inline-quote::after,
html[data-bs-theme="dark"] .item-page .inline-quote::before,
html[data-bs-theme="dark"] .item-page .inline-quote::after,
html[data-bs-theme="dark"] main article .inline-quote::before,
html[data-bs-theme="dark"] main article .inline-quote::after,
html.color-scheme-dark .com-content-article .inline-quote::before,
html.color-scheme-dark .com-content-article .inline-quote::after,
html.color-scheme-dark .item-page .inline-quote::before,
html.color-scheme-dark .item-page .inline-quote::after,
html.color-scheme-dark main article .inline-quote::before,
html.color-scheme-dark main article .inline-quote::after {
  color: var(--accent-400);
}

html[data-color-scheme="dark"] .theme-module,
html[data-color-scheme="dark"] .theme-module.moduletable,
html[data-color-scheme="dark"] .theme-module .moduletable,
html[data-bs-theme="dark"] .theme-module,
html[data-bs-theme="dark"] .theme-module.moduletable,
html[data-bs-theme="dark"] .theme-module .moduletable,
html.color-scheme-dark .theme-module,
html.color-scheme-dark .theme-module.moduletable,
html.color-scheme-dark .theme-module .moduletable {
  color: var(--text-900);
  background: linear-gradient(135deg, rgba(17, 29, 46, 0.94), rgba(23, 38, 58, 0.92));
  border-color: rgba(93, 183, 222, 0.18);
  box-shadow: var(--shadow-soft);
}

html[data-color-scheme="dark"] .theme-module h1,
html[data-color-scheme="dark"] .theme-module h2,
html[data-color-scheme="dark"] .theme-module h3,
html[data-color-scheme="dark"] .theme-module h4,
html[data-color-scheme="dark"] .theme-module h5,
html[data-color-scheme="dark"] .theme-module h6,
html[data-color-scheme="dark"] .theme-module .module-title,
html[data-color-scheme="dark"] .theme-module .moduletitle,
html[data-color-scheme="dark"] .theme-module > h3,
html[data-bs-theme="dark"] .theme-module h1,
html[data-bs-theme="dark"] .theme-module h2,
html[data-bs-theme="dark"] .theme-module h3,
html[data-bs-theme="dark"] .theme-module h4,
html[data-bs-theme="dark"] .theme-module h5,
html[data-bs-theme="dark"] .theme-module h6,
html[data-bs-theme="dark"] .theme-module .module-title,
html[data-bs-theme="dark"] .theme-module .moduletitle,
html[data-bs-theme="dark"] .theme-module > h3,
html.color-scheme-dark .theme-module h1,
html.color-scheme-dark .theme-module h2,
html.color-scheme-dark .theme-module h3,
html.color-scheme-dark .theme-module h4,
html.color-scheme-dark .theme-module h5,
html.color-scheme-dark .theme-module h6,
html.color-scheme-dark .theme-module .module-title,
html.color-scheme-dark .theme-module .moduletitle,
html.color-scheme-dark .theme-module > h3 {
  color: var(--brand-900);
}

html[data-color-scheme="dark"] .theme-module a,
html[data-bs-theme="dark"] .theme-module a,
html.color-scheme-dark .theme-module a {
  color: var(--accent-400);
}

html[data-color-scheme="dark"] .theme-module a:hover,
html[data-color-scheme="dark"] .theme-module a:focus-visible,
html[data-bs-theme="dark"] .theme-module a:hover,
html[data-bs-theme="dark"] .theme-module a:focus-visible,
html.color-scheme-dark .theme-module a:hover,
html.color-scheme-dark .theme-module a:focus-visible {
  color: var(--accent-300);
}

html[data-color-scheme="dark"] .theme-module input,
html[data-color-scheme="dark"] .theme-module select,
html[data-color-scheme="dark"] .theme-module textarea,
html[data-color-scheme="dark"] .theme-module .form-control,
html[data-bs-theme="dark"] .theme-module input,
html[data-bs-theme="dark"] .theme-module select,
html[data-bs-theme="dark"] .theme-module textarea,
html[data-bs-theme="dark"] .theme-module .form-control,
html.color-scheme-dark .theme-module input,
html.color-scheme-dark .theme-module select,
html.color-scheme-dark .theme-module textarea,
html.color-scheme-dark .theme-module .form-control {
  color: var(--text-900);
  background: rgba(10, 18, 29, 0.5);
  border-color: rgba(173, 220, 242, 0.35);
}

html[data-color-scheme="dark"] .metismenu.mod-menu > li > a:hover,
html[data-color-scheme="dark"] .metismenu.mod-menu > li.active > a,
html[data-bs-theme="dark"] .metismenu.mod-menu > li > a:hover,
html[data-bs-theme="dark"] .metismenu.mod-menu > li.active > a,
html.color-scheme-dark .metismenu.mod-menu > li > a:hover,
html.color-scheme-dark .metismenu.mod-menu > li.active > a {
  background: rgba(93, 183, 222, 0.12);
  border-left: 2px solid rgba(134, 202, 233, 0.38);
}

html[data-color-scheme="dark"] .metismenu.mod-menu .mm-collapse,
html[data-color-scheme="dark"] .metismenu.mod-menu .metismenu-item > ul,
html[data-bs-theme="dark"] .metismenu.mod-menu .mm-collapse,
html[data-bs-theme="dark"] .metismenu.mod-menu .metismenu-item > ul,
html.color-scheme-dark .metismenu.mod-menu .mm-collapse,
html.color-scheme-dark .metismenu.mod-menu .metismenu-item > ul {
  background: linear-gradient(180deg, rgba(17, 29, 46, 0.98), rgba(11, 19, 32, 0.96));
  border-color: rgba(93, 183, 222, 0.14);
  box-shadow: 0 12px 26px -24px rgba(0, 0, 0, 0.68);
}

html[data-color-scheme="dark"] .metismenu.mod-menu .mm-collapse::-webkit-scrollbar-thumb,
html[data-color-scheme="dark"] .metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] .metismenu.mod-menu .mm-collapse::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] .metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar-thumb,
html.color-scheme-dark .metismenu.mod-menu .mm-collapse::-webkit-scrollbar-thumb,
html.color-scheme-dark .metismenu.mod-menu .metismenu-item > ul::-webkit-scrollbar-thumb {
  background: rgba(134, 202, 233, 0.26);
}

html[data-color-scheme="dark"] .metismenu.mod-menu .mm-collapse > li > a,
html[data-color-scheme="dark"] .metismenu.mod-menu .metismenu-item > ul > li > a,
html[data-bs-theme="dark"] .metismenu.mod-menu .mm-collapse > li > a,
html[data-bs-theme="dark"] .metismenu.mod-menu .metismenu-item > ul > li > a,
html.color-scheme-dark .metismenu.mod-menu .mm-collapse > li > a,
html.color-scheme-dark .metismenu.mod-menu .metismenu-item > ul > li > a {
  color: var(--text-700);
}

html[data-color-scheme="dark"] .metismenu.mod-menu .mm-collapse > li > a:hover,
html[data-color-scheme="dark"] .metismenu.mod-menu .mm-collapse > li.active > a,
html[data-color-scheme="dark"] .metismenu.mod-menu .metismenu-item > ul > li > a:hover,
html[data-color-scheme="dark"] .metismenu.mod-menu .metismenu-item > ul > li.active > a,
html[data-bs-theme="dark"] .metismenu.mod-menu .mm-collapse > li > a:hover,
html[data-bs-theme="dark"] .metismenu.mod-menu .mm-collapse > li.active > a,
html[data-bs-theme="dark"] .metismenu.mod-menu .metismenu-item > ul > li > a:hover,
html[data-bs-theme="dark"] .metismenu.mod-menu .metismenu-item > ul > li.active > a,
html.color-scheme-dark .metismenu.mod-menu .mm-collapse > li > a:hover,
html.color-scheme-dark .metismenu.mod-menu .mm-collapse > li.active > a,
html.color-scheme-dark .metismenu.mod-menu .metismenu-item > ul > li > a:hover,
html.color-scheme-dark .metismenu.mod-menu .metismenu-item > ul > li.active > a {
  background: rgba(93, 183, 222, 0.1);
  color: var(--text-900);
}

html[data-color-scheme="dark"] .container-search input,
html[data-color-scheme="dark"] .container-search .form-control,
html[data-bs-theme="dark"] .container-search input,
html[data-bs-theme="dark"] .container-search .form-control,
html.color-scheme-dark .container-search input,
html.color-scheme-dark .container-search .form-control {
  border: 1px solid rgba(173, 220, 242, 0.35);
  background: rgba(10, 18, 29, 0.5);
  color: #e4edf9;
}

html[data-color-scheme="dark"] .container-search input::placeholder,
html[data-color-scheme="dark"] .container-search .form-control::placeholder,
html[data-bs-theme="dark"] .container-search input::placeholder,
html[data-bs-theme="dark"] .container-search .form-control::placeholder,
html.color-scheme-dark .container-search input::placeholder,
html.color-scheme-dark .container-search .form-control::placeholder {
  color: rgba(228, 237, 249, 0.72);
}

html[data-color-scheme="dark"] footer.footer,
html[data-bs-theme="dark"] footer.footer,
html.color-scheme-dark footer.footer,
html[data-color-scheme="dark"] .container-footer,
html[data-bs-theme="dark"] .container-footer,
html.color-scheme-dark .container-footer {
  background: linear-gradient(120deg, rgba(7, 12, 19, 0.98), rgba(13, 25, 41, 0.96));
  border-top: 1px solid rgba(173, 220, 242, 0.18);
  color: #c9d9ee;
}

html[data-color-scheme="dark"] footer.footer a,
html[data-color-scheme="dark"] .container-footer a,
html[data-bs-theme="dark"] footer.footer a,
html[data-bs-theme="dark"] .container-footer a,
html.color-scheme-dark footer.footer a,
html.color-scheme-dark .container-footer a {
  color: #d8e6f7;
}

html[data-color-scheme="dark"] #back-top.back-to-top-link,
html[data-bs-theme="dark"] #back-top.back-to-top-link,
html.color-scheme-dark #back-top.back-to-top-link {
  background: linear-gradient(160deg, #3d7db0, #4fa6cc);
}

html[data-color-scheme="dark"] .breadcrumbs::before,
html[data-color-scheme="dark"] .breadcrumb::before,
html[data-bs-theme="dark"] .breadcrumbs::before,
html[data-bs-theme="dark"] .breadcrumb::before,
html.color-scheme-dark .breadcrumbs::before,
html.color-scheme-dark .breadcrumb::before {
  color: var(--text-700);
}

html[data-color-scheme="dark"] .list-inline-item a,
html[data-color-scheme="dark"] .list-inline > li a,
html[data-color-scheme="dark"] .tag-item a,
html[data-color-scheme="dark"] .tags a,
html[data-color-scheme="dark"] .tag-list a,
html[data-color-scheme="dark"] .com-content-article .list-inline-item a,
html[data-color-scheme="dark"] .com-content-article .list-inline > li a,
html[data-color-scheme="dark"] main article .list-inline-item a,
html[data-color-scheme="dark"] main article .list-inline > li a,
html[data-bs-theme="dark"] .list-inline-item a,
html[data-bs-theme="dark"] .list-inline > li a,
html[data-bs-theme="dark"] .tag-item a,
html[data-bs-theme="dark"] .tags a,
html[data-bs-theme="dark"] .tag-list a,
html[data-bs-theme="dark"] .com-content-article .list-inline-item a,
html[data-bs-theme="dark"] .com-content-article .list-inline > li a,
html[data-bs-theme="dark"] main article .list-inline-item a,
html[data-bs-theme="dark"] main article .list-inline > li a,
html.color-scheme-dark .list-inline-item a,
html.color-scheme-dark .list-inline > li a,
html.color-scheme-dark .tag-item a,
html.color-scheme-dark .tags a,
html.color-scheme-dark .tag-list a,
html.color-scheme-dark .com-content-article .list-inline-item a,
html.color-scheme-dark .com-content-article .list-inline > li a,
html.color-scheme-dark main article .list-inline-item a,
html.color-scheme-dark main article .list-inline > li a {
  background: rgba(93, 183, 222, 0.14) !important;
  color: var(--text-700) !important;
}

html[data-color-scheme="dark"] .list-inline-item:hover a,
html[data-color-scheme="dark"] .list-inline > li:hover a,
html[data-color-scheme="dark"] .tag-item:hover a,
html[data-color-scheme="dark"] .tags a:hover,
html[data-color-scheme="dark"] .tag-list a:hover,
html[data-color-scheme="dark"] .com-content-article .list-inline-item:hover a,
html[data-color-scheme="dark"] .com-content-article .list-inline > li:hover a,
html[data-color-scheme="dark"] main article .list-inline-item:hover a,
html[data-color-scheme="dark"] main article .list-inline > li:hover a,
html[data-bs-theme="dark"] .list-inline-item:hover a,
html[data-bs-theme="dark"] .list-inline > li:hover a,
html[data-bs-theme="dark"] .tag-item:hover a,
html[data-bs-theme="dark"] .tags a:hover,
html[data-bs-theme="dark"] .tag-list a:hover,
html[data-bs-theme="dark"] .com-content-article .list-inline-item:hover a,
html[data-bs-theme="dark"] .com-content-article .list-inline > li:hover a,
html[data-bs-theme="dark"] main article .list-inline-item:hover a,
html[data-bs-theme="dark"] main article .list-inline > li:hover a,
html.color-scheme-dark .list-inline-item:hover a,
html.color-scheme-dark .list-inline > li:hover a,
html.color-scheme-dark .tag-item:hover a,
html.color-scheme-dark .tags a:hover,
html.color-scheme-dark .tag-list a:hover,
html.color-scheme-dark .com-content-article .list-inline-item:hover a,
html.color-scheme-dark .com-content-article .list-inline > li:hover a,
html.color-scheme-dark main article .list-inline-item:hover a,
html.color-scheme-dark main article .list-inline > li:hover a {
  background: rgba(134, 202, 233, 0.2) !important;
  color: var(--text-900) !important;
}

html[data-color-scheme="dark"] .card-header,
html[data-color-scheme="dark"] .moduletable > h3,
html[data-color-scheme="dark"] .moduletable .module-title,
html[data-color-scheme="dark"] .module-title,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .moduletable > h3,
html[data-bs-theme="dark"] .moduletable .module-title,
html[data-bs-theme="dark"] .module-title,
html.color-scheme-dark .card-header,
html.color-scheme-dark .moduletable > h3,
html.color-scheme-dark .moduletable .module-title,
html.color-scheme-dark .module-title {
  color: #e4edf9 !important;
  border-color: rgba(134, 202, 233, 0.24) !important;
  background: linear-gradient(135deg, rgba(24, 44, 68, 0.52), rgba(17, 29, 46, 0.36)) !important;
}
