:root {
  --svdk-accent: #b21f2d;
  --svdk-green-950: #071611;
  --svdk-green-900: #0d211b;
  --svdk-green-800: #18372c;
  --svdk-green-700: #285344;
  --svdk-cream: #f5f2ea;
  --svdk-paper: #fff;
  --svdk-text: #1d2924;
  --svdk-muted: #5b6963;
  --svdk-line: #dce3df;
  --svdk-shadow: 0 1.25rem 3.5rem rgb(7 22 17 / 10%);
  --svdk-radius: 1.15rem;
  --svdk-shell: 76rem;
  color-scheme: light;
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--svdk-paper);
  color: var(--svdk-text);
  font-size: 1rem;
}

body.navigation-open { overflow: hidden; }

img,
svg,
video { max-width: 100%; height: auto; }

a {
  color: var(--svdk-green-700);
  text-underline-offset: .2em;
  text-decoration-thickness: .08em;
}

a:hover { color: var(--svdk-accent); }

:focus-visible {
  outline: .2rem solid var(--svdk-accent);
  outline-offset: .2rem;
}

h1,
h2,
h3,
h4 {
  margin-block: 0 .65em;
  color: var(--svdk-green-900);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.16;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin-block: 0 1.15rem; }

.shell {
  width: min(calc(100% - 2.25rem), var(--svdk-shell));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: .75rem;
  left: .75rem;
  translate: 0 -200%;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--svdk-accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus { translate: 0; }

.topbar {
  padding-block: .4rem;
  background: var(--svdk-green-950);
  color: #fff;
  font-size: .9rem;
}

.topbar p { margin: 0; }
.topbar a { color: #fff; }

.site-header {
  z-index: 1000;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(13 33 27 / 96%);
  color: #fff;
  box-shadow: 0 .35rem 1.5rem rgb(0 0 0 / 12%);
  backdrop-filter: blur(12px);
}

.site-header--sticky { position: sticky; top: 0; }

.site-header__inner {
  display: flex;
  min-height: 5.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .9rem;
  color: #fff;
  text-decoration: none;
}

.brand:hover { color: #fff; }

.brand__logo {
  width: 4.6rem;
  height: 4.6rem;
  padding: .2rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 .25rem .8rem rgb(0 0 0 / 18%);
}

.brand__mark {
  display: grid;
  width: 3.8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: var(--svdk-green-700);
  font-weight: 850;
}

.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { font-size: clamp(1rem, 2vw, 1.35rem); }
.brand__text small { margin-top: .28rem; color: rgb(255 255 255 / 72%); font-size: .78rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav ul,
.site-nav .mod-menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: .1rem;
  list-style: none;
}

.site-nav li { position: relative; }

.site-nav .mod-menu > li {
  display: flex;
  align-items: center;
}

.site-nav .mod-menu > li > a { flex: 0 1 auto; }

.site-nav .mod-menu__toggle-sub {
  flex: 0 0 auto;
  align-self: center;
  margin-inline-start: -.55rem;
  padding: .72rem .55rem .72rem .2rem;
  color: rgb(255 255 255 / 84%);
  cursor: pointer;
  line-height: 1;
}

.site-nav .mod-menu__toggle-sub:hover,
.site-nav .mod-menu__toggle-sub:focus-visible { color: #fff; }

.site-nav .mod-menu__toggle-sub .icon-chevron-down { display: none; }

.site-nav .mod-menu__toggle-sub::after {
  width: .48rem;
  height: .48rem;
  border-right: .12rem solid currentColor;
  border-bottom: .12rem solid currentColor;
  content: '';
  transform: translateY(-.12rem) rotate(45deg);
  transition: transform .18s ease;
}

.site-nav .mod-menu__toggle-sub[aria-expanded='true']::after {
  transform: translateY(.12rem) rotate(225deg);
}

.site-nav a {
  display: block;
  padding: .72rem .8rem;
  border-radius: .55rem;
  color: rgb(255 255 255 / 84%);
  font-size: .95rem;
  font-weight: 670;
  text-decoration: none;
}

.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading) {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-inline-start: 0;
  padding: .72rem .8rem;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 670;
  line-height: inherit;
  text-align: start;
}

.site-nav .mod-menu__toggle-sub > .mod-menu__heading { font: inherit; color: inherit; }
.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading)::after { flex-shrink: 0; }
.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading):hover,
.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading):focus-visible,
.site-nav .active > .mod-menu__toggle-sub:has(> .mod-menu__heading),
.site-nav .current > .mod-menu__toggle-sub:has(> .mod-menu__heading),
.site-nav a:hover,
.site-nav .active > a,
.site-nav .current > a {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.site-nav .nav-child,
.site-nav ul ul {
  position: absolute;
  z-index: 20;
  top: calc(100% + .2rem);
  left: 0;
  display: none;
  width: max-content;
  min-width: 13rem;
  padding: .45rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: .7rem;
  background: var(--svdk-green-900);
  box-shadow: var(--svdk-shadow);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav .mod-menu > li.deeper::after {
    position: absolute;
    z-index: 19;
    top: 100%;
    left: 0;
    width: 100%;
    height: .45rem;
    content: '';
  }
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul { display: block; }
.site-nav .nav-child[aria-hidden='false'],
.site-nav ul ul[aria-hidden='false'] { display: block; }
.site-nav ul ul a { padding: .65rem .75rem; }

/* Heading buttons are click controls, not links: honour an explicit close. */
.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading)[aria-expanded='false'] ~ ul {
  display: none;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: .7rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: .65rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin-block: .3rem;
  background: currentColor;
}

.site-search input {
  min-height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: .55rem;
  background: rgb(255 255 255 / 9%);
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(31rem, 70vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--svdk-green-900);
  background-image: var(--hero-image, url('../images/hero-placeholder.svg'));
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(to bottom, transparent, rgb(7 22 17 / 28%));
  content: '';
}

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(4 17 12 / 87%) 0%, rgb(4 17 12 / 50%) 47%, rgb(4 17 12 / 8%) 82%),
    linear-gradient(0deg, rgb(4 17 12 / 45%), transparent 48%);
}

.hero__inner { padding-block: clamp(4rem, 10vw, 8rem); }

.hero__copy { max-width: 47rem; }
.hero h1 { max-width: 13ch; color: #fff; text-wrap: balance; }
.hero p { max-width: 39rem; color: rgb(255 255 255 / 86%); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.button,
.btn {
  display: inline-flex;
  min-height: 2.9rem;
  padding: .72rem 1.1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .6rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--primary,
.btn-primary {
  background: var(--svdk-accent);
  color: #fff;
  box-shadow: 0 .65rem 1.5rem color-mix(in srgb, var(--svdk-accent) 30%, transparent);
}

.button--primary:hover,
.btn-primary:hover { background: color-mix(in srgb, var(--svdk-accent) 84%, #000); color: #fff; }

.quicklinks {
  position: relative;
  z-index: 3;
  margin-top: -2.1rem;
}

.quicklinks .moduletable,
.quicklinks .mod-custom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quicklinks a {
  display: grid;
  min-height: 8rem;
  padding: 1.25rem;
  align-content: end;
  border: 1px solid var(--svdk-line);
  border-top: .25rem solid var(--svdk-accent);
  border-radius: var(--svdk-radius);
  background: #fff;
  color: var(--svdk-green-900);
  box-shadow: var(--svdk-shadow);
  font-size: 1.08rem;
  font-weight: 760;
  text-decoration: none;
  transition: translate .2s ease, box-shadow .2s ease;
}

.quicklinks a:hover { translate: 0 -.25rem; box-shadow: 0 1.5rem 4rem rgb(7 22 17 / 15%); }

.page-shell { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 7vw, 6rem); }
.is-home .page-shell { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.breadcrumbs { margin-bottom: 1rem; color: var(--svdk-muted); font-size: .9rem; }
.breadcrumbs ol,
.breadcrumbs ul { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: .4rem; list-style: none; }

.content-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.content-grid--two { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); }
.content-grid--three { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(13rem, 17rem); }
.content-grid--three .main-content,
.content-grid--two .main-content { min-width: 0; }
.content-grid--two .sidebar--left { order: -1; }

.main-content > :first-child,
.main-content article > :first-child { margin-top: 0; }

.main-content article,
.blog-item {
  margin-bottom: 2rem;
}

.item-image { margin-bottom: 1.25rem; }
.item-image img { border-radius: var(--svdk-radius); }

.sidebar .moduletable,
.sidebar .card,
.main-top .moduletable,
.main-bottom .moduletable {
  margin-bottom: 1.2rem;
  padding: 1.25rem;
  border: 1px solid var(--svdk-line);
  border-radius: var(--svdk-radius);
  background: #fff;
  box-shadow: 0 .65rem 2rem rgb(7 22 17 / 6%);
}

.sidebar ul { margin: 0; padding-left: 1.15rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td { padding: .8rem; border-bottom: 1px solid var(--svdk-line); text-align: left; }
th { background: var(--svdk-cream); color: var(--svdk-green-900); }

input,
select,
textarea {
  max-width: 100%;
  min-height: 2.8rem;
  padding: .6rem .75rem;
  border: 1px solid #aebbb5;
  border-radius: .5rem;
  background: #fff;
  color: var(--svdk-text);
  font: inherit;
}

textarea { min-height: 8rem; }

.alert {
  margin-block: 1rem;
  padding: 1rem;
  border-left: .3rem solid var(--svdk-accent);
  border-radius: .5rem;
  background: #fff3f4;
}

.pagination ul,
ul.pagination { display: flex; padding: 0; gap: .35rem; list-style: none; }
.pagination a,
.pagination span { display: grid; min-width: 2.5rem; min-height: 2.5rem; padding: .45rem; place-items: center; border: 1px solid var(--svdk-line); border-radius: .4rem; }

.bottom-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--svdk-cream);
}

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--svdk-green-950);
  color: rgb(255 255 255 / 74%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.site-footer__title { display: block; margin-bottom: .45rem; color: #fff; font-size: 1.3rem; }
.site-footer a { color: #fff; }
.site-footer__menu { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 14%); }
.site-footer__menu ul { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; }
.site-footer__copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 62%);
  text-align: center;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--svdk-accent);
  color: #fff;
  box-shadow: var(--svdk-shadow);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.error-page,
.component-only { min-height: 100vh; padding: 2rem; background: var(--svdk-cream); }

.error-card {
  width: min(100%, 38rem);
  margin: 10vh auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--svdk-radius);
  background: #fff;
  box-shadow: var(--svdk-shadow);
  text-align: center;
}

.error-card__code { margin: 0; color: var(--svdk-accent); font-size: clamp(4rem, 15vw, 8rem); font-weight: 850; line-height: 1; }

@media (max-width: 60rem) {
  .brand__text small { display: none; }
  .nav-toggle { display: block; }

  .site-header { position: relative; }
  .site-header--sticky { position: sticky; }
  .brand { flex: 1 1 auto; }
  .brand__text { min-width: 0; }
  .brand__text strong { display: block; }
  .nav-toggle { flex: 0 0 auto; }

  .site-nav {
    position: absolute;
    z-index: 1001;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--header-height, 5.6rem));
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--svdk-green-900);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 24%);
    opacity: 0;
    pointer-events: none;
    translate: 0 -.75rem;
    visibility: hidden;
    transition: opacity .18s ease, translate .22s ease, visibility .22s;
  }

  .site-nav--open {
    opacity: 1;
    pointer-events: auto;
    translate: 0;
    visibility: visible;
  }
  .site-nav ul,
  .site-nav .mod-menu { display: grid; width: 100%; gap: .35rem; }
  .site-nav li { width: 100%; }
  .site-nav .mod-menu > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav .mod-menu > li > a { grid-column: 1; }
  .site-nav .mod-menu__toggle-sub {
    grid-column: 2;
    grid-row: 1;
    width: 3rem;
    min-height: 3rem;
    margin-inline-start: 0;
    padding: .85rem;
    justify-content: center;
  }
  .site-nav a { width: 100%; padding: .95rem 1rem; font-size: 1.05rem; }
  .site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading) {
    grid-column: 1 / -1;
    width: 100%;
    padding: .95rem 1rem;
    justify-content: space-between;
    font-size: 1.05rem;
  }
  .site-nav .nav-child,
  .site-nav ul ul { position: static; grid-column: 1 / -1; width: auto; margin-left: .75rem; padding: 0 0 0 .55rem; border: 0; border-left: 1px solid rgb(255 255 255 / 18%); border-radius: 0; box-shadow: none; }

  .quicklinks .moduletable,
  .quicklinks .mod-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .content-grid--two,
  .content-grid--three { grid-template-columns: 1fr; }
  .content-grid--three .sidebar--left,
  .content-grid--two .sidebar--left { order: 0; }
}

@media (max-width: 38rem) {
  .shell { width: min(calc(100% - 1.25rem), var(--svdk-shell)); }
  .site-header__inner { min-height: 4.8rem; }
  .brand__logo { width: 3.7rem; height: 3.7rem; }
  .brand__mark { width: 3.25rem; }
  .brand__text strong { font-size: .95rem; line-height: 1.15; }
  .hero { min-height: 34rem; }
  .hero__shade { background: linear-gradient(90deg, rgb(4 17 12 / 88%), rgb(4 17 12 / 35%)); }
  .quicklinks .moduletable,
  .quicklinks .mod-custom { grid-template-columns: 1fr; }
  .quicklinks a { min-height: 5.5rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}

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

@media print {
  .topbar,
  .site-header,
  .hero,
  .quicklinks,
  .sidebar,
  .site-footer,
  .back-to-top { display: none !important; }

  body { background: #fff; color: #000; }
  .page-shell { padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* 0.1.15: arrow-free hover navigation, controlled touch/keyboard fallback. */
.site-nav .mod-menu__toggle-sub::after { content: none; display: none; }
.site-nav .mod-menu__toggle-sub:not(:has(> .mod-menu__heading)) { display: none; }
.site-nav li.svdk-dropdown[data-open='false'] > ul { display: none !important; }
.site-nav li.svdk-dropdown[data-open='true'] > ul { display: block !important; }
.site-nav .mod-menu__toggle-sub:has(> .mod-menu__heading) { gap: 0; }
@media (max-width: 60rem) {
  .site-nav .mod-menu > li { grid-template-columns: minmax(0, 1fr); }
}
