:root {
  --rkdt-red: #c90c13;
  --rkdt-red-dark: #a9090f;
  --rkdt-red-soft: #fff0f1;
  --rkdt-graphite: #2f302d;
  --rkdt-text: #292929;
  --rkdt-muted: #656565;
  --rkdt-border: #dfe3e6;
  --rkdt-surface: #ffffff;
  --rkdt-background: #f4f5f6;
  --rkdt-success: #198754;
  --rkdt-shadow: 0 12px 30px rgba(31, 37, 42, 0.08);
  --rkdt-radius: 8px;
  --rkdt-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rkdt-background);
  color: var(--rkdt-text);
  font-family: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body.admin-bar .rkdt-site-header {
  top: 32px;
}

a {
  color: var(--rkdt-red-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(201, 12, 19, 0.38);
  outline-offset: 3px;
}

::selection {
  background: rgba(201, 12, 19, 0.2);
}

.rkdt-container {
  width: min(calc(100% - 2rem), var(--rkdt-container));
  margin-inline: auto;
}

.rkdt-skip-link {
  position: fixed;
  z-index: 99999;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-weight: 800;
}

.rkdt-skip-link:focus {
  transform: translateY(0);
}

.rkdt-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  box-shadow: 0 5px 18px rgba(22, 27, 31, 0.06);
}

.rkdt-servicebar {
  background: var(--rkdt-red);
  color: #fff;
}

.rkdt-servicebar__inner {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.rkdt-servicebar p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.4rem;
}

.rkdt-servicebar i {
  margin-inline: 0.25rem;
  color: rgba(255, 255, 255, 0.52);
  font-style: normal;
}

.rkdt-servicebar a {
  color: inherit;
  text-decoration: none;
}

.rkdt-servicebar a:hover {
  text-decoration: underline;
}

.rkdt-servicebar__login {
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rkdt-brandbar {
  border-bottom: 1px solid var(--rkdt-border);
  background: var(--rkdt-surface);
}

.rkdt-brandbar__inner {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rkdt-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.rkdt-brand .custom-logo-link {
  flex: 0 0 auto;
}

.rkdt-brand .custom-logo {
  width: auto;
  max-width: 210px;
  height: 44px;
  object-fit: contain;
}

.rkdt-brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 3px;
  background: var(--rkdt-red);
  box-shadow: 0 7px 18px rgba(201, 12, 19, 0.2);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.rkdt-brand__text {
  display: block;
  min-width: 0;
  color: var(--rkdt-text);
  line-height: 1.15;
  text-decoration: none;
}

.rkdt-brand__text span,
.rkdt-brand__text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rkdt-brand__text span {
  color: var(--rkdt-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.rkdt-brand__text strong {
  margin-top: 0.22rem;
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rkdt-primary-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
}

.rkdt-menu--account {
  margin-left: 0.2rem;
  padding-left: 0.2rem;
  border-left: 1px solid var(--rkdt-border);
}

.rkdt-menu--guest > li > a,
.rkdt-menu--account > li > a {
  color: var(--rkdt-red-dark);
}

.rkdt-menu,
.rkdt-footer-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rkdt-menu {
  height: 100%;
  align-items: stretch;
  gap: 0.1rem;
}

.rkdt-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.rkdt-menu > li > a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  color: #4c4c4c;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.rkdt-menu > li > a:hover,
.rkdt-menu > li.current-menu-item > a,
.rkdt-menu > li.current_page_item > a {
  background: #eff1f2;
  color: var(--rkdt-red-dark);
}

.rkdt-menu .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% - 0.35rem);
  left: 0;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--rkdt-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--rkdt-shadow);
  list-style: none;
}

.rkdt-menu li:hover > .sub-menu,
.rkdt-menu li:focus-within > .sub-menu {
  display: block;
}

.rkdt-menu .sub-menu a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 3px;
  color: var(--rkdt-text);
  font-weight: 700;
  text-decoration: none;
}

.rkdt-menu .sub-menu a:hover {
  background: var(--rkdt-red-soft);
  color: var(--rkdt-red-dark);
}

.rkdt-nav-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rkdt-border);
  border-radius: 4px;
  background: #fff;
  color: var(--rkdt-text);
  font-weight: 800;
  cursor: pointer;
}

.rkdt-nav-toggle__icon {
  display: grid;
  width: 19px;
  gap: 3px;
}

.rkdt-nav-toggle__icon i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.rkdt-main {
  min-height: 52vh;
}

.rkdt-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  margin-top: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--rkdt-border);
  border-radius: var(--rkdt-radius);
  background: var(--rkdt-surface);
  box-shadow: var(--rkdt-shadow);
}

.rkdt-hero__content {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background-image:
    linear-gradient(to right, rgba(223, 227, 230, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(223, 227, 230, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
}

.rkdt-eyebrow {
  margin: 0;
  color: var(--rkdt-red-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.rkdt-hero h1,
.rkdt-page-header h1,
.rkdt-module h2,
.rkdt-error-page h1 {
  color: var(--rkdt-text);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.rkdt-hero h1 {
  max-width: 650px;
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 3.7vw, 2.5rem);
}

.rkdt-hero__intro {
  max-width: 650px;
  margin: 0.55rem 0 0;
  color: var(--rkdt-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rkdt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.rkdt-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.rkdt-button--primary {
  background: var(--rkdt-red);
  color: #fff;
}

.rkdt-button--primary:hover {
  background: var(--rkdt-red-dark);
  color: #fff;
}

.rkdt-button--secondary {
  border-color: var(--rkdt-border);
  background: #fff;
  color: var(--rkdt-text);
}

.rkdt-button--secondary:hover {
  border-color: var(--rkdt-red);
  color: var(--rkdt-red-dark);
}

.rkdt-hero__visual {
  position: relative;
  min-height: 270px;
  background: #dfe3e6;
}

.rkdt-hero__visual > img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
}

.rkdt-hero__visual::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(24, 29, 33, 0.52));
  content: "";
  pointer-events: none;
}

.rkdt-hero__stats {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.rkdt-hero__stats span {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: var(--rkdt-text);
  font-size: 0.86rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.rkdt-hero__stats span:last-child {
  background: rgba(47, 48, 45, 0.9);
  color: #fff;
}

.rkdt-hero__stats strong {
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1;
}

.rkdt-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}


.rkdt-entry-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rkdt-main--guest {
  padding-bottom: 1rem;
}

.rkdt-guest-fallback {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rkdt-border);
  border-radius: var(--rkdt-radius);
  background: #fff;
  box-shadow: var(--rkdt-shadow);
}

.rkdt-guest-fallback h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.rkdt-guest-fallback p:not(.rkdt-eyebrow) {
  max-width: 720px;
  margin: 0.55rem 0 1rem;
  color: var(--rkdt-muted);
}

.rkdt-entry-tile {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1.25rem 3.1rem 1.25rem 1.35rem;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(40, 20, 20, 0.13);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.rkdt-entry-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(40, 20, 20, 0.2);
  color: #fff;
}

.rkdt-entry-tile--red {
  background: var(--rkdt-red);
}

.rkdt-entry-tile--darkred {
  background: var(--rkdt-red-dark);
}

.rkdt-entry-tile--charcoal {
  background: var(--rkdt-graphite);
}

.rkdt-entry-tile__tag {
  margin-bottom: auto;
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.rkdt-entry-tile strong {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.rkdt-entry-tile small {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rkdt-entry-tile i {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(0, 0, 0, 0.16);
  font-size: 1.2rem;
  font-style: normal;
}

.rkdt-module {
  padding-top: 3rem;
  scroll-margin-top: 160px;
}

.rkdt-module__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.rkdt-module h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.rkdt-module__header p:last-child {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--rkdt-muted);
}

.rkdt-status-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(201, 12, 19, 0.22);
  border-radius: 3px;
  background: var(--rkdt-red-soft);
  color: var(--rkdt-red-dark);
  font-size: 0.875rem;
  font-weight: 850;
}

.rkdt-setup-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201, 12, 19, 0.22);
  border-left: 4px solid var(--rkdt-red);
  border-radius: 4px;
  background: var(--rkdt-red-soft);
}

.rkdt-setup-note p {
  margin: 0.25rem 0 0;
}

.rkdt-page-content,
.rkdt-archive,
.rkdt-error-page {
  max-width: 980px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.rkdt-page-header {
  margin-bottom: 1.7rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid var(--rkdt-red);
}

.rkdt-page-header h1,
.rkdt-error-page h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.rkdt-page-content h2,
.rkdt-page-content h3 {
  color: var(--rkdt-text);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.rkdt-page-content > article > *:not(.alignwide):not(.alignfull),
.rkdt-page-content > *:not(.alignwide):not(.alignfull) {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.rkdt-page-content .rkdt-page-header {
  max-width: none;
}

.rkdt-featured-image {
  overflow: hidden;
  border-radius: var(--rkdt-radius);
}

.rkdt-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rkdt-post-card {
  padding: 1.25rem;
  border: 1px solid var(--rkdt-border);
  border-radius: var(--rkdt-radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 37, 42, 0.05);
}

.rkdt-post-card__meta {
  margin: 0;
  color: var(--rkdt-muted);
  font-size: 0.875rem;
}

.rkdt-post-card h2 {
  margin: 0.35rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.rkdt-post-card h2 a {
  color: var(--rkdt-text);
  text-decoration: none;
}

.rkdt-post-card h2 a:hover {
  color: var(--rkdt-red-dark);
}

.rkdt-text-link {
  font-weight: 850;
}

.rkdt-error-page {
  min-height: 52vh;
}

.rkdt-error-page > p:not(.rkdt-eyebrow) {
  max-width: 620px;
  margin-bottom: 1.4rem;
  color: var(--rkdt-muted);
}

.rkdt-site-footer {
  margin-top: 3rem;
  border-top: 4px solid var(--rkdt-red);
  background: var(--rkdt-graphite);
  color: #fff;
}

.rkdt-site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 2rem;
  padding-top: 1.7rem;
  padding-bottom: 1.2rem;
}

.rkdt-site-footer__inner--guest {
  grid-template-columns: 1fr;
}

.rkdt-site-footer__title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rkdt-site-footer p {
  max-width: 660px;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.rkdt-footer-menu {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
}

.rkdt-footer-menu a,
.rkdt-site-footer__meta a {
  color: #fff;
  font-weight: 750;
}

.rkdt-site-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.alignwide {
  width: min(var(--rkdt-container), calc(100vw - 2rem));
  max-width: none !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .rkdt-nav-toggle {
    display: inline-flex;
  }

  .rkdt-primary-nav {
    position: absolute;
    z-index: 20;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.55rem 1rem 0.8rem;
    border-top: 1px solid var(--rkdt-border);
    background: #fff;
    box-shadow: 0 14px 24px rgba(31, 37, 42, 0.12);
  }

  .rkdt-primary-nav.is-open {
    display: block;
  }

  .rkdt-menu {
    display: grid;
    gap: 0.25rem;
  }

  .rkdt-menu--account {
    margin: 0.35rem 0 0;
    padding: 0.35rem 0 0;
    border-top: 1px solid var(--rkdt-border);
    border-left: 0;
  }

  .rkdt-menu > li,
  .rkdt-menu > li > a {
    display: block;
  }

  .rkdt-menu > li > a {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
  }

  .rkdt-menu .sub-menu {
    position: static;
    display: block;
    margin: 0 0 0.4rem 0.75rem;
    border: 0;
    box-shadow: none;
  }

  .rkdt-hero {
    grid-template-columns: 1fr;
  }

  .rkdt-hero__content,
  .rkdt-hero__visual,
  .rkdt-hero__visual > img {
    min-height: 255px;
  }

  .rkdt-entry-grid,
  .rkdt-entry-grid--two {
    grid-template-columns: 1fr;
  }

  .rkdt-entry-tile {
    min-height: 145px;
  }
}

@media (max-width: 680px) {
  body.admin-bar .rkdt-site-header {
    top: 46px;
  }

  .rkdt-container {
    width: min(calc(100% - 1.25rem), var(--rkdt-container));
  }

  .rkdt-servicebar__inner {
    font-size: 0.8rem;
  }

  .rkdt-servicebar p > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rkdt-brand__text span {
    font-size: 0.7rem;
  }

  .rkdt-brand__text strong {
    font-size: 0.95rem;
  }

  .rkdt-nav-toggle > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rkdt-hero {
    margin-top: 0.65rem;
  }

  .rkdt-hero__content {
    min-height: auto;
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .rkdt-hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .rkdt-hero__intro {
    font-size: 0.93rem;
  }

  .rkdt-actions {
    display: grid;
  }

  .rkdt-hero__visual,
  .rkdt-hero__visual > img {
    min-height: 220px;
  }

  .rkdt-hero__stats {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
  }

  .rkdt-hero__stats span {
    min-height: 48px;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }

  .rkdt-entry-grid {
    gap: 0.45rem;
    margin-top: 0.45rem;
  }

  .rkdt-module {
    padding-top: 2.2rem;
    scroll-margin-top: 145px;
  }

  .rkdt-module__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .rkdt-post-grid,
  .rkdt-site-footer__inner {
    grid-template-columns: 1fr;
  }

  .rkdt-footer-menu {
    justify-content: flex-start;
  }

  .rkdt-site-footer__meta {
    flex-direction: column;
  }
}

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