:root {
  --kk8-navy: #103466;
  --kk8-blue: #0058cb;
  --kk8-masthead: #efefef;
}

[hidden] { display: none !important; }
html { scroll-padding-top: 130px; }
#header { position: sticky; top: 0; z-index: 30; }
#header > .header-wrapper { position: relative; }
body.admin-bar #header { top: var(--wp-admin--admin-bar--height, 32px); }
.kk8-site #logo img { width: 192px; height: auto; max-height: 67px; object-fit: contain; }
.kk8-site #logo .header-logo-dark { display: none; }
.kk8-site #masthead { height: 72px; background-color: var(--kk8-masthead); }
.kk8-site #wide-nav { background-color: var(--kk8-masthead); }
.kk8-site #masthead .flex-right { gap: 18px; }
.kk8-site .kk8-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 24px;
  color: #fff;
  background: #cd0000;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  letter-spacing: 0;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.kk8-register:is(:hover, :focus-visible) {
  color: #fff;
  background: #ae0808;
  box-shadow: 0 4px 14px rgb(154 0 0 / 25%);
  transform: translateY(-2px);
}
.kk8-register:active { transform: translateY(0); }
.kk8-site .nav a.kk8-register { display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.kk8-site .kk8-hero-mobile { display: none; }
.kk8-site .kk8-hero .loading-spin { display: none; }
.kk8-site .kk8-hero .slider::before, .kk8-site .kk8-news-track::before { display: none; }
.kk8-site .kk8-hero-desktop .slider > .img { display: block; }
.kk8-site nav a.current, .kk8-site .nav a[aria-current="page"] { color: #082344; }
.kk8-site .nav .has-dropdown:is(:focus-within, :hover) > .nav-dropdown {
  left: auto;
  opacity: 1;
  visibility: visible;
  max-height: 70vh;
  overflow-y: auto;
}

.kk8-drawer {
  box-sizing: border-box;
  width: min(320px, 87vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 auto 0 0;
  padding: 43px 0 18px;
  border: 0;
  background: #fff;
  color: var(--kk8-navy);
  overflow-x: hidden;
  overflow-y: auto;
}
.kk8-drawer::backdrop { background: rgb(9 21 45 / 56%); }
.kk8-close-menu {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 40px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--kk8-navy);
  font-size: 26px;
  line-height: 1;
}
.kk8-drawer .nav-sidebar { width: 100%; }
.kk8-drawer .menu-item { position: relative; }
.kk8-drawer .menu-item:has(.kk8-submenu-toggle) > a { padding-right: 60px; }
.kk8-drawer .kk8-submenu-toggle {
  position: absolute;
  top: 4px;
  right: 12px;
  min-height: 35px;
  min-width: 38px;
  background: transparent;
  margin: 0;
  padding: 0;
  color: var(--kk8-navy);
  line-height: 1;
  font-size: 22px;
}
.kk8-drawer .kk8-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.kk8-drawer .menu-item > ul:not([hidden]) { display: block; }
.kk8-drawer .menu-item > ul { padding-left: 12px; }

.kk8-site .kk8-news-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 25%;
  width: 100%;
  overflow-x: auto;
  margin-inline: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #83a9d8 #edf3fb;
}
.kk8-site .kk8-news-track > .post-item {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.kk8-site .kk8-news-track .box-blog-post { display: flex; flex-direction: column; }
.kk8-site .kk8-news-track .box-image, .kk8-site .kk8-news-track .box-text { width: 100%; }
.kk8-site .box-blog-post .image-cover > a { display: block; position: absolute; inset: 0; }
.kk8-site .kk8-related-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; }
.kk8-site .kk8-related-buttons .button {
  min-width: 35px;
  min-height: 35px;
  margin: 8px 0;
  padding: 0 8px;
  border: 1px solid #c1cee1;
  border-radius: 50%;
  color: var(--kk8-navy);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}
.kk8-site .kk8-related-buttons .button:hover { background: #e7f2ff; }
.kk8-site .kk8-byline {
  margin: 1.75rem 0 .35rem;
  padding: .9rem 0;
  border-top: 1px solid #e0e9f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.kk8-byline a { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.kk8-author-avatar { margin: 10px auto; text-align: center; }
.kk8-author-avatar img { border-radius: 12%; }
.kk8-site img[data-site-brand="author-avatar"] { object-fit: contain; }
.kk8-site .badge-inner time { display: inline-block; }
.kk8-site .back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 849px) {
  .kk8-site #masthead { height: 70px; }
  .kk8-site #wide-nav .flex-row { display: flex; justify-content: center; height: 57px; }
  .kk8-site #wide-nav .mobile-nav { display: flex; justify-content: center; }
  .kk8-site .kk8-hero-desktop { display: none; }
  .kk8-site .kk8-hero-mobile, .kk8-site .kk8-hero-mobile .slider > .img { display: block; }
  .kk8-site #logo img { width: 184px; max-height: 65px; }
  .kk8-site .kk8-news-track { grid-auto-columns: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kk8-site .kk8-register { transition: none; }
}
