:root {
  --color-dark: #0F212E;
  --color-bright: #FFFFFF;
  --color-accent: #1475E1;
  --color-accent-hover: #298bff;
  --color-bg: #1a2e39;
  --color-panel: #1A2C38;
  --color-text: #FFFFFF;
  --color-muted: #B1BAD3;
  --color-input: #0F1923;
  --color-border: #2F4553;
  --color-live: #00E701;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.5rem;
  --header-height: 72px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header Chrome */
.stk-header {
  background-color: var(--color-panel);
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.stk-header__container {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stk-header__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stk-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stk-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Brand logo styling */
.stk-logo-container {
  display: inline-flex;
  align-items: center;
}

.stk-logo {
  display: inline-block;
  height: 36px;
  width: auto;
  color: var(--color-bright);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.stk-logo img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Responsive Burger - Permanent Drawer layout because collapse_menu_to_burger is true */
.stk-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.stk-nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stk-nav__toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  z-index: 1002;
  transition: var(--transition);
}

.stk-nav__toggle:hover {
  border-color: var(--color-accent);
  background-color: var(--color-input);
}

.stk-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-bright);
  border-radius: 1px;
  transition: var(--transition);
}

/* Slide-out Sidebar Drawer style */
.stk-nav__list {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-dark);
  border-right: 1px solid var(--color-border);
  padding: 88px 1.5rem 2rem;
  margin: 0;
  list-style: none;
  z-index: 1001;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.stk-nav__item {
  width: 100%;
  margin-bottom: 0.5rem;
}

.stk-nav__link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  background-color: transparent;
  transition: var(--transition);
}

.stk-nav__link:hover {
  color: var(--color-bright);
  background-color: var(--color-panel);
  border-left-color: var(--color-border);
}

.stk-nav__link--active {
  color: var(--color-bright);
  background-color: var(--color-panel);
  border-left-color: var(--color-accent);
}

/* Nested submenus inside vertical list */
.stk-nav__submenu {
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0 0.5rem 0.5rem;
  border-left: 1px solid var(--color-border);
}

.stk-nav__submenu .stk-nav__link {
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

/* Interactive Checkbox Control */
.stk-nav__checkbox:checked ~ .stk-nav__list {
  left: 0;
}

.stk-nav__checkbox:checked ~ .stk-nav__toggle .stk-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.stk-nav__checkbox:checked ~ .stk-nav__toggle .stk-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.stk-nav__checkbox:checked ~ .stk-nav__toggle .stk-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer Blur Overlay background */
.stk-nav__checkbox:checked ~ .stk-nav__list::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 33, 46, 0.75);
  backdrop-filter: blur(4px);
  z-index: -1;
  pointer-events: auto;
}

/* Language Switcher */
.stk-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0.25rem;
  margin: 0;
  background-color: var(--color-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stk-lang__item {
  display: inline-block;
}

.stk-lang__link {
  display: block;
  padding: 0.35rem 0.65rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: calc(var(--radius) - 2px);
  transition: var(--transition);
}

.stk-lang__link:hover {
  color: var(--color-bright);
}

.stk-lang__link--active {
  color: var(--color-bright);
  background-color: var(--color-accent);
}

/* Breadcrumbs */
.stk-breadcrumbs {
  background-color: var(--color-panel);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
}

.stk-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.stk-breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.stk-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--color-border);
}

.stk-breadcrumbs__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.stk-breadcrumbs__link:hover {
  color: var(--color-bright);
}

.stk-breadcrumbs__item[aria-current="page"] {
  color: var(--color-bright);
  font-weight: 600;
}

/* CTA Buttons */
.stk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.stk-cta--primary {
  background-color: var(--color-accent);
  color: var(--color-bright);
  border: 1px solid transparent;
}

.stk-cta--primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(20, 117, 225, 0.45);
}

.stk-cta--secondary {
  background-color: transparent;
  color: var(--color-bright);
  border: 1px solid var(--color-border);
}

.stk-cta--secondary:hover {
  border-color: var(--color-muted);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Main Canvas Shell */
.stk-main-canvas {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Footer layout */
.stk-footer {
  background-color: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding: 4rem 1.5rem 2.5rem;
}

.stk-footer__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stk-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .stk-footer__top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.stk-footer__brand {
  max-width: 600px;
}

.stk-footer__tagline {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 0 0;
}

.stk-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stk-footer__navigation {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

/* Footer Secondary Menu */
.stk-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stk-footer-nav__link {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.stk-footer-nav__link:hover {
  color: var(--color-bright);
}

.stk-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stk-footer__disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
  opacity: 0.85;
}

.stk-footer__copyright {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  opacity: 0.5;
}

/* Shared Live Indicators */
.stk-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-live);
  color: var(--color-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.stk-dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--color-live);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-live);
  display: inline-block;
  animation: stkPulseDot 1.6s infinite ease-in-out;
}

@keyframes stkPulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}