/**
 * Reaktive Industrial — sito pubblico (allineato alla console Edge: navy, blu accento, vetro).
 * Font: Plus Jakarta Sans — collegare nel layout il link Google Fonts.
 */

:root {
  --rk-pub-deep: #0a1628;
  --rk-pub-mid: #0f2844;
  --rk-pub-card: rgba(18, 42, 74, 0.78);
  --rk-pub-stroke: rgba(120, 180, 255, 0.22);
  --rk-pub-accent: #4da3ff;
  --rk-pub-accent-soft: rgba(77, 163, 255, 0.18);
  --rk-pub-ok: #76b900;
  --rk-pub-text: #e8f1ff;
  --rk-pub-muted: #8aa4c4;
  --rk-pub-danger: #ff6b6b;
  --rk-pub-maxw: 1040px;
}

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

.rk-pub-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--rk-pub-text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(77, 163, 255, 0.28), transparent),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(118, 185, 0, 0.1), transparent),
    linear-gradient(168deg, var(--rk-pub-deep) 0%, #0d2844 45%, var(--rk-pub-mid) 100%);
  background-attachment: fixed;
}

/* Footer sempre in fondo al viewport quando il contenuto è basso (es. Contatti) */
.rk-pub-body--flex {
  display: flex;
  flex-direction: column;
}

.rk-pub-body--flex .rk-pub-topbar,
.rk-pub-body--flex .rk-pub-flash {
  flex-shrink: 0;
}

.rk-pub-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--rk-pub-maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.75rem) 1.5rem;
}

/* Pagina Contatti: allineata in alto come la home; contenitore più largo del default */
.rk-pub-body--flex .rk-pub-wrap:has(.rk-pub-contact-page) {
  justify-content: flex-start;
  max-width: min(1180px, 100%);
  width: 100%;
}

/* —— Topbar —— */
.rk-pub-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem);
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid var(--rk-pub-stroke);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}
.rk-pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--rk-pub-text);
}
.rk-pub-brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 16px rgba(77, 163, 255, 0.2));
}
.rk-pub-brand span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.rk-pub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.rk-pub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rk-pub-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.rk-pub-nav a:hover {
  color: var(--rk-pub-text);
  background: rgba(77, 163, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.15);
}
.rk-pub-nav a.rk-pub-nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--rk-pub-accent), #2d7fd1);
  border-color: rgba(77, 163, 255, 0.4);
}
.rk-pub-nav a.rk-pub-nav-cta:hover {
  filter: brightness(1.06);
  color: #fff;
}

/* —— Flash CakePHP —— */
.rk-pub-flash {
  max-width: var(--rk-pub-maxw);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem) 0;
}
.rk-pub-flash .message,
.rk-pub-flash .alert {
  border-radius: 12px;
  border: 1px solid var(--rk-pub-stroke);
  background: var(--rk-pub-card);
  color: var(--rk-pub-text);
}

/* —— Hero —— */
.rk-pub-hero {
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.rk-pub-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 840px) {
  .rk-pub-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
}
.rk-pub-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rk-pub-accent);
  margin-bottom: 0.65rem;
}
.rk-pub-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.rk-pub-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--rk-pub-text);
  opacity: 0.92;
  max-width: 38rem;
  text-wrap: balance;
}
.rk-pub-hero-sub {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--rk-pub-muted);
  max-width: 36rem;
}
.rk-pub-section-lead {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--rk-pub-muted);
  max-width: 48rem;
}
.rk-pub-section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.rk-pub-stack {
  margin-bottom: 1.25rem;
}
.rk-pub-card-cta {
  text-align: center;
  padding-bottom: 1.75rem;
}
.rk-pub-card-cta .rk-pub-btn {
  margin-top: 0.25rem;
}
.rk-pub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.rk-pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}
.rk-pub-btn:active { transform: scale(0.98); }
.rk-pub-btn-pri {
  color: #fff;
  background: linear-gradient(135deg, var(--rk-pub-accent), #2d7fd1);
  box-shadow: 0 8px 28px rgba(77, 163, 255, 0.25);
}
.rk-pub-btn-pri:hover { filter: brightness(1.07); color: #fff; }
.rk-pub-btn-sec {
  color: var(--rk-pub-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rk-pub-stroke);
}
.rk-pub-btn-sec:hover { background: rgba(77, 163, 255, 0.12); color: #fff; }

.rk-pub-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.rk-pub-hero-logo {
  width: min(220px, 72%);
  height: auto;
  opacity: 0.95;
  animation: rk-pub-float 5s ease-in-out infinite;
}
@keyframes rk-pub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— Cards (vetro) —— */
.rk-pub-card {
  background: var(--rk-pub-card);
  border: 1px solid var(--rk-pub-stroke);
  border-radius: 18px;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.rk-pub-card:hover {
  border-color: rgba(120, 180, 255, 0.38);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.rk-pub-card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--rk-pub-text);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(120, 180, 255, 0.2);
}
/* Titolo Contatti: fuori dalla regola generica “sezione piccola maiuscola” */
.rk-pub-contact-page .rk-pub-contact-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1.2;
  color: var(--rk-pub-text);
  border: none;
  padding: 0 0 0 0.85rem;
  border-left: 4px solid var(--rk-pub-accent);
}
.rk-pub-contact-page .rk-pub-contact-header {
  margin-bottom: 0.35rem;
}
.rk-pub-contact-page .rk-pub-contact-intro {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(196, 216, 238, 0.92) !important;
}
.rk-pub-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rk-pub-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rk-pub-muted);
}

/* —— Lista valore —— */
.rk-pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rk-pub-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(120, 180, 255, 0.12);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--rk-pub-muted);
}
.rk-pub-list li:last-child { border-bottom: none; }
.rk-pub-list strong {
  color: var(--rk-pub-text);
  font-weight: 600;
}
.rk-pub-check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.2);
  border: 1px solid rgba(118, 185, 0, 0.45);
  color: var(--rk-pub-ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.12rem;
}

/* —— Griglia moduli —— */
.rk-pub-grid3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rk-pub-grid3 { grid-template-columns: repeat(3, 1fr); }
}
.rk-pub-tile {
  background: rgba(10, 24, 44, 0.75);
  border: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  min-height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rk-pub-tile:hover {
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.rk-pub-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(145deg, rgba(77, 163, 255, 0.25), rgba(18, 42, 74, 0.5));
  border: 1px solid rgba(120, 180, 255, 0.3);
  color: var(--rk-pub-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.rk-pub-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--rk-pub-text);
}
.rk-pub-tile p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--rk-pub-muted);
}

/* —— Diagramma SVG —— */
.rk-pub-flow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.rk-pub-flow svg {
  width: 100%;
  height: auto;
  display: block;
}
.rk-pub-flow-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--rk-pub-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}

@keyframes rk-pub-dash {
  to { stroke-dashoffset: -42; }
}
.rk-pub-flow-line {
  stroke: rgba(77, 163, 255, 0.55);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  animation: rk-pub-dash 2.2s linear infinite;
}
.rk-pub-node {
  transition: transform 0.35s ease;
}
.rk-pub-node-pulse {
  animation: rk-pub-node-p 3.2s ease-in-out infinite;
}
/* I path delle linee precedono i <g>: lo stagger si applica ai gruppi nodo nell’ordine SVG. */
.rk-pub-flow svg > g.rk-pub-node-pulse:nth-of-type(1) { animation-delay: 0s; }
.rk-pub-flow svg > g.rk-pub-node-pulse:nth-of-type(2) { animation-delay: 0.4s; }
.rk-pub-flow svg > g.rk-pub-node-pulse:nth-of-type(3) { animation-delay: 0.8s; }
.rk-pub-flow svg > g.rk-pub-node-pulse:nth-of-type(4) { animation-delay: 1.2s; }
.rk-pub-flow svg > g.rk-pub-node-pulse:nth-of-type(5) { animation-delay: 1.6s; }
@keyframes rk-pub-node-p {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* —— Audience —— */
.rk-pub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rk-pub-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(77, 163, 255, 0.12);
  border: 1px solid var(--rk-pub-stroke);
  color: var(--rk-pub-muted);
}

/* —— Footer —— */
.rk-pub-body--flex .rk-pub-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.rk-pub-footer {
  padding: 1rem clamp(1rem, 4vw, 1.75rem) max(1rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(120, 180, 255, 0.28);
  text-align: center;
  font-size: 0.78rem;
  color: var(--rk-pub-muted);
  line-height: 1.5;
  background: linear-gradient(0deg, rgba(6, 14, 28, 0.55) 0%, transparent 100%);
}

/* —— Contatti / link —— */
.rk-pub-contact-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.rk-pub-contact-nav-sep {
  color: rgba(138, 164, 196, 0.45);
  user-select: none;
}
.rk-pub-contact-nav-here {
  color: var(--rk-pub-text);
  font-weight: 700;
}
.rk-pub-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--rk-pub-muted);
  text-decoration: none;
}
.rk-pub-back:hover {
  color: var(--rk-pub-accent);
}
.rk-pub-wrap > .rk-pub-back {
  margin-bottom: 1rem;
}
/* Link mail/tel: contrasto massimo su sfondo blu (evita blu su blu del browser) */
.rk-pub-contact a.rk-pub-contact-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #061020;
  background: linear-gradient(180deg, #f0f7ff 0%, #dbeafe 100%);
  border: 1px solid rgba(77, 163, 255, 0.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.rk-pub-contact a.rk-pub-contact-action:hover {
  color: #030a14;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 20px rgba(77, 163, 255, 0.35);
  transform: translateY(-1px);
}
.rk-pub-contact a.rk-pub-contact-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* —— Pagina contatti —— */
.rk-pub-contact-page.rk-pub-card {
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(1.35rem, 3.8vw, 2rem) clamp(1.15rem, 3.2vw, 1.85rem);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.rk-pub-contact-page .rk-pub-contact-lead {
  margin: 0.35rem 0 1.35rem;
  padding: 0.55rem 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--rk-pub-text);
  line-height: 1.45;
  border-bottom: 1px solid rgba(120, 180, 255, 0.18);
}
.rk-pub-contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rk-pub-contact-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}
@media (min-width: 960px) {
  .rk-pub-contact-grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.75rem;
  }
}
.rk-pub-contact-panel {
  background: rgba(6, 16, 32, 0.55);
  border: 1px solid rgba(120, 180, 255, 0.22);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rk-pub-contact-panel--legal {
  background: rgba(8, 22, 42, 0.42);
  border-style: dashed;
  border-color: rgba(120, 180, 255, 0.28);
}
.rk-pub-contact-block-title {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rk-pub-accent);
}
.rk-pub-contact-address {
  font-style: normal;
  margin: 0 0 1.15rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #b4c9e4;
}
.rk-pub-contact-address strong {
  color: var(--rk-pub-text);
  font-weight: 700;
  font-size: 1.02rem;
}
.rk-pub-contact-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.rk-pub-contact-line {
  margin: 0;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
@media (min-width: 420px) {
  .rk-pub-contact-line {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
  }
  .rk-pub-contact-label {
    min-width: 4.5rem;
  }
}
.rk-pub-contact-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(196, 216, 238, 0.88);
}
.rk-pub-contact-legal {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b4c9e4;
}

/* —— Rifiniture accessibilità / coerenza visiva —— */
.rk-pub-body :where(a, button):focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}
.rk-pub-nav a:focus-visible {
  outline-color: var(--rk-pub-accent);
}
.rk-pub-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.rk-pub-wrap > :first-child {
  padding-top: 0.25rem;
}

/* —— Mobile / touch: sito pubblico —— */
@media (max-width: 639.98px) {
  .rk-pub-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  .rk-pub-brand {
    justify-content: center;
  }
  .rk-pub-nav {
    justify-content: center;
    width: 100%;
  }
  .rk-pub-nav a {
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
    justify-content: center;
  }
  .rk-pub-hero {
    padding-top: clamp(1.25rem, 5vw, 2rem);
  }
  .rk-pub-hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
  }
  .rk-pub-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rk-pub-btn {
    min-height: 2.75rem;
    justify-content: center;
    width: 100%;
  }
  .rk-pub-grid3 {
    grid-template-columns: 1fr;
  }
}

/* === Enterprise public pages === */
.rk-pub-hero--enterprise {
  padding-top: clamp(2.4rem, 6vw, 4rem);
}
.rk-pub-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.rk-pub-kpi-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.24);
  background: rgba(6, 18, 36, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rk-pub-kpi-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f4f9ff;
}
.rk-pub-kpi-card p {
  margin: 0.25rem 0 0;
  color: var(--rk-pub-muted);
  font-size: 0.82rem;
}

.rk-pub-tech-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.rk-pub-tech-brand {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(6, 18, 36, 0.56);
  padding: 1rem;
  text-align: center;
}
.rk-pub-tech-brand img {
  max-width: min(180px, 82%);
  max-height: 68px;
  width: auto;
  height: auto;
  margin-bottom: 0.65rem;
}
.rk-pub-tech-brand figcaption {
  color: var(--rk-pub-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rk-pub-diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.rk-pub-diagram-card {
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.25);
  background: rgba(6, 18, 36, 0.62);
  padding: 0.9rem;
}
.rk-pub-diagram-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}
.rk-pub-diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.rk-pub-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.rk-pub-dash-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rk-pub-dash-card {
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(6, 18, 36, 0.62);
  padding: 0.85rem;
}
.rk-pub-dash-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #dbeaff;
}
.rk-pub-dash-bars {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  align-items: end;
}
.rk-pub-dash-bars span {
  height: var(--v, 50%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #5ba8ff, #2b5f98);
  animation: rk-pub-kpi-rise 1.4s ease;
}
.rk-pub-dash-line {
  height: 62px;
  border-radius: 8px;
  background: rgba(22, 48, 82, 0.55);
  position: relative;
  overflow: hidden;
}
.rk-pub-dash-line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.45), transparent);
  animation: rk-pub-scan 2.2s linear infinite;
}
.rk-pub-dash-donut {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#4da3ff 0 62%, rgba(77, 163, 255, 0.16) 62% 100%);
  position: relative;
}
.rk-pub-dash-donut::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(6, 18, 36, 0.9);
}
.rk-pub-dash-kpi {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f4f9ff;
  padding: 0.55rem 0;
}
@keyframes rk-pub-kpi-rise {
  from { transform: scaleY(0.35); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes rk-pub-scan {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

.rk-pub-alert-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.rk-pub-alert-level {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(120, 180, 255, 0.24);
  background: rgba(6, 18, 36, 0.62);
}
.rk-pub-alert-level h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.rk-pub-alert-level p {
  margin: 0;
}
.rk-pub-alert-level--edge {
  border-color: rgba(118, 185, 0, 0.45);
}
.rk-pub-alert-level--cloud {
  border-color: rgba(77, 163, 255, 0.5);
}

.rk-pub-security-anim {
  display: grid;
  grid-template-columns: 1fr 0.35fr 1fr 0.35fr 1fr;
  align-items: center;
  gap: 0.4rem;
}
.rk-pub-sec-node,
.rk-pub-sec-vpn,
.rk-pub-sec-cloud {
  text-align: center;
  padding: 0.75rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 255, 0.28);
  background: rgba(6, 18, 36, 0.66);
  font-weight: 700;
}
.rk-pub-sec-vpn {
  border-color: rgba(118, 185, 0, 0.45);
  animation: rk-pub-vpn-pulse 2.6s ease-in-out infinite;
}
.rk-pub-sec-link {
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(77, 163, 255, 0.9), rgba(77, 163, 255, 0.9) 8px, rgba(77, 163, 255, 0.2) 8px, rgba(77, 163, 255, 0.2) 14px);
  animation: rk-pub-link-flow 1.2s linear infinite;
}
@keyframes rk-pub-link-flow {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}
@keyframes rk-pub-vpn-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(118, 185, 0, 0); }
  50% { box-shadow: 0 0 26px rgba(118, 185, 0, 0.28); }
}

.rk-pub-inline-link {
  color: #bde0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.rk-pub-inline-link:hover {
  color: #ffffff;
}
.rk-pub-tile-link-wrap {
  margin-top: 0.65rem;
}

@media (max-width: 900px) {
  .rk-pub-dash-grid,
  .rk-pub-tech-strip,
  .rk-pub-diagram-grid,
  .rk-pub-alert-levels {
    grid-template-columns: 1fr;
  }
  .rk-pub-kpi-grid {
    margin-top: 0.5rem;
  }
}
@media (max-width: 760px) {
  .rk-pub-kpi-grid {
    grid-template-columns: 1fr;
  }
  .rk-pub-security-anim {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .rk-pub-sec-link {
    height: 22px;
    width: 3px;
    margin: 0 auto;
    background: repeating-linear-gradient(180deg, rgba(77, 163, 255, 0.9), rgba(77, 163, 255, 0.9) 8px, rgba(77, 163, 255, 0.2) 8px, rgba(77, 163, 255, 0.2) 14px);
    animation: rk-pub-link-flow-v 1.2s linear infinite;
  }
  @keyframes rk-pub-link-flow-v {
    from { background-position: 0 0; }
    to { background-position: 0 24px; }
  }
  .rk-pub-dash-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* === Light enterprise theme overrides === */
:root {
  --rk-pub-deep: #eef4fb;
  --rk-pub-mid: #dfeaf8;
  --rk-pub-card: rgba(255, 255, 255, 0.88);
  --rk-pub-stroke: rgba(98, 136, 183, 0.34);
  --rk-pub-accent: #2c6fbd;
  --rk-pub-accent-soft: rgba(44, 111, 189, 0.12);
  --rk-pub-ok: #20864f;
  --rk-pub-text: #1c2f46;
  --rk-pub-muted: #4f6782;
  --rk-pub-maxw: 1360px;
}

.rk-pub-body {
  background:
    radial-gradient(ellipse 110% 55% at 50% -15%, rgba(89, 144, 212, 0.24), transparent),
    radial-gradient(ellipse 65% 45% at 100% 100%, rgba(64, 168, 113, 0.08), transparent),
    linear-gradient(168deg, #f4f8fd 0%, #e7f0fb 45%, #dce8f6 100%);
}

.rk-pub-wrap {
  max-width: min(1420px, 100%);
  padding-bottom: 2rem;
}

.rk-pub-topbar {
  background: rgba(246, 250, 255, 0.95);
  border-bottom: 1px solid rgba(98, 136, 183, 0.28);
  box-shadow: 0 8px 24px rgba(43, 77, 117, 0.12);
}

.rk-pub-nav a {
  color: #395777;
}
.rk-pub-nav a:hover {
  color: #1d3854;
  background: rgba(44, 111, 189, 0.1);
  border-color: rgba(44, 111, 189, 0.22);
}

.rk-pub-nav a.rk-pub-nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #2c6fbd, #2f86d5);
}

.rk-pub-card {
  border-color: rgba(98, 136, 183, 0.24);
  box-shadow: 0 12px 30px rgba(43, 77, 117, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.rk-pub-card:hover {
  box-shadow: 0 16px 36px rgba(43, 77, 117, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rk-pub-tile,
.rk-pub-tech-brand,
.rk-pub-diagram-card,
.rk-pub-dash-card,
.rk-pub-alert-level,
.rk-pub-kpi-card,
.rk-pub-contact-panel,
.rk-pub-remote-panel {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(98, 136, 183, 0.26);
  color: #1c2f46;
}

.rk-pub-card h2,
.rk-pub-card h3,
.rk-pub-dash-card h3,
.rk-pub-kpi-card h3,
.rk-pub-alert-level h3 {
  color: #1c2f46;
}

.rk-pub-card p,
.rk-pub-tech-brand figcaption,
.rk-pub-flow-note,
.rk-pub-tile p,
.rk-pub-kpi-card p,
.rk-pub-list li {
  color: #4f6782;
}

.rk-pub-check {
  background: rgba(32, 134, 79, 0.14);
  border-color: rgba(32, 134, 79, 0.4);
  color: #20864f;
}

.rk-pub-flow-line {
  stroke: rgba(44, 111, 189, 0.58);
}

.rk-pub-btn-sec {
  color: #22496e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(98, 136, 183, 0.35);
}
.rk-pub-btn-sec:hover {
  background: rgba(44, 111, 189, 0.12);
  color: #163753;
}

.rk-pub-dash-bars span {
  background: linear-gradient(180deg, #54a2ec, #2f6ca7);
}
.rk-pub-dash-line {
  background: rgba(88, 136, 188, 0.16);
}
.rk-pub-dash-donut::after {
  background: rgba(255, 255, 255, 0.9);
}
.rk-pub-dash-kpi {
  color: #20456c;
}

.rk-pub-inline-link {
  color: #2c6fbd;
}
.rk-pub-inline-link:hover {
  color: #1f4f88;
}

/* Node-RED mini dashboard visuals */
.rk-pub-nr-mini-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}
.rk-nr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(44, 111, 189, 0.35);
  background: rgba(44, 111, 189, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: #23486d;
}
.rk-nr-link {
  height: 2px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(44, 111, 189, 0.9), rgba(44, 111, 189, 0.9) 8px, rgba(44, 111, 189, 0.25) 8px, rgba(44, 111, 189, 0.25) 14px);
  animation: rk-pub-link-flow 1.2s linear infinite;
}
.rk-pub-nr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rk-pub-nr-pills span {
  font-size: 0.72rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(44, 111, 189, 0.12);
  border: 1px solid rgba(44, 111, 189, 0.28);
  color: #1f466f;
  animation: rk-pub-node-p 2.8s ease-in-out infinite;
}

/* Remote control dashboard widgets */
.rk-pub-remote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.rk-pub-remote-panel {
  border-radius: 14px;
  border: 1px solid rgba(98, 136, 183, 0.26);
  padding: 0.95rem;
}
.rk-pub-remote-toggle-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}
.rk-pub-remote-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.rk-pub-remote-btn--on {
  color: #1f5a37;
  background: rgba(38, 158, 90, 0.2);
  border-color: rgba(38, 158, 90, 0.42);
}
.rk-pub-remote-btn--off {
  color: #8d2f34;
  background: rgba(225, 95, 103, 0.18);
  border-color: rgba(225, 95, 103, 0.35);
}
.rk-pub-remote-slider {
  margin-bottom: 0.65rem;
}
.rk-pub-remote-slider label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4d6480;
}
.rk-pub-slider-track {
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(88, 136, 188, 0.16);
  overflow: hidden;
}
.rk-pub-slider-track span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #4ea3f3, #2f79c2);
  animation: rk-pub-slider-breathe 2.2s ease-in-out infinite;
}
.rk-pub-slider-track--warm span {
  width: 82%;
  background: linear-gradient(90deg, #f4a24b, #ec7b3f);
}
.rk-pub-remote-slider p {
  margin-top: 0.3rem;
  font-size: 0.78rem;
}
.rk-pub-remote-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.rk-pub-remote-kpis div {
  border: 1px solid rgba(98, 136, 183, 0.26);
  border-radius: 10px;
  background: rgba(247, 251, 255, 0.76);
  padding: 0.45rem 0.55rem;
}
.rk-pub-remote-kpis small {
  display: block;
  font-size: 0.68rem;
  color: #57708d;
}
.rk-pub-remote-kpis strong {
  color: #20456c;
  font-size: 0.95rem;
}
.rk-pub-remote-linechart {
  height: 68px;
  border-radius: 10px;
  background: rgba(88, 136, 188, 0.16);
  overflow: hidden;
  position: relative;
}
.rk-pub-remote-linechart span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(44, 111, 189, 0.26) 35%, rgba(44, 111, 189, 0.45) 55%, transparent 100%);
  animation: rk-pub-scan 2.1s linear infinite;
}
@keyframes rk-pub-slider-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .rk-pub-remote-grid {
    grid-template-columns: 1fr;
  }
}

/* High fidelity chart visuals (Grafana style) */
.rk-pub-grafana-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rk-pub-grafana-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rk-pub-grafana-card {
  border: 1px solid rgba(83, 124, 174, 0.28);
  border-radius: 14px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 248, 255, 0.8));
  box-shadow: 0 8px 22px rgba(43, 77, 117, 0.1);
}
.rk-pub-grafana-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2c4f75;
}
.rk-pub-grafana-card p {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #57708d;
}
.rk-pub-grafana-svg {
  width: 100%;
  height: auto;
  display: block;
}
.rk-gra-bg {
  fill: rgba(235, 245, 255, 0.72);
  stroke: rgba(103, 141, 187, 0.26);
}
.rk-gra-grid line {
  stroke: rgba(95, 132, 176, 0.22);
  stroke-width: 1;
}
.rk-gra-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rk-gra-line--a {
  stroke: #2d79c2;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: rk-gra-draw 2.8s ease-in-out infinite;
}
.rk-gra-line--b {
  stroke: #36a07b;
  opacity: 0.75;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: rk-gra-draw 3.1s ease-in-out infinite;
  animation-delay: 0.2s;
}
@keyframes rk-gra-draw {
  0% { stroke-dashoffset: 320; opacity: 0.55; }
  45% { opacity: 0.95; }
  100% { stroke-dashoffset: 0; opacity: 0.95; }
}
.rk-gra-bars rect {
  fill: #5aa7ef;
  stroke: rgba(44, 111, 189, 0.36);
  stroke-width: 1;
  transform-origin: bottom;
  animation: rk-gra-bar-grow 1.4s ease-in-out infinite alternate;
}
.rk-gra-bars rect:nth-child(odd) {
  animation-delay: 0.25s;
}
@keyframes rk-gra-bar-grow {
  from { transform: scaleY(0.72); opacity: 0.85; }
  to { transform: scaleY(1); opacity: 1; }
}
.rk-gra-gauge-track {
  fill: none;
  stroke: rgba(96, 133, 178, 0.22);
  stroke-width: 9;
}
.rk-gra-gauge-val {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 251;
  animation: rk-gra-gauge-spin 2.4s ease-in-out infinite;
}
.rk-gra-gauge-val--1 {
  stroke: #2e7fcf;
  stroke-dashoffset: 30;
}
.rk-gra-gauge-val--2 {
  stroke: #2fa57f;
  stroke-dashoffset: 52;
  animation-delay: 0.3s;
}
.rk-gra-gauge text {
  fill: #23486d;
  font-size: 14px;
  font-weight: 700;
}
@keyframes rk-gra-gauge-spin {
  0%, 100% { stroke-dashoffset: 160; opacity: 0.65; }
  55% { opacity: 1; }
}

/* Node-RED Dashboard 2.0 visuals */
.rk-pub-nodered-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rk-pub-nodered-card {
  border: 1px solid rgba(83, 124, 174, 0.28);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 248, 255, 0.8));
}
.rk-pub-nodered-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2c4f75;
}
.rk-pub-nr2-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.rk-pub-nr2-tile {
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(44, 111, 189, 0.27);
  background: rgba(44, 111, 189, 0.08);
}
.rk-pub-nr2-tile small {
  display: block;
  font-size: 0.64rem;
  color: #587190;
  text-transform: uppercase;
}
.rk-pub-nr2-tile strong {
  font-size: 0.95rem;
  color: #1f466f;
}
.rk-pub-nr2-wave {
  height: 48px;
  border-radius: 10px;
  background: rgba(84, 162, 236, 0.14);
  overflow: hidden;
  position: relative;
}
.rk-pub-nr2-wave span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(44, 111, 189, 0.2) 22%, rgba(44, 111, 189, 0.42) 48%, rgba(44, 111, 189, 0.2) 74%, transparent 100%);
  animation: rk-pub-scan 1.8s linear infinite;
}

.rk-pub-nr-flow-svg {
  width: 100%;
  height: auto;
  display: block;
}
.rk-nr-node {
  stroke-width: 1.2;
}
.rk-nr-node--in { fill: rgba(80, 142, 208, 0.16); stroke: rgba(61, 121, 191, 0.45); }
.rk-nr-node--logic { fill: rgba(54, 160, 123, 0.12); stroke: rgba(54, 160, 123, 0.46); }
.rk-nr-node--db { fill: rgba(237, 167, 74, 0.12); stroke: rgba(214, 140, 45, 0.46); }
.rk-nr-node--out { fill: rgba(98, 124, 174, 0.13); stroke: rgba(83, 109, 159, 0.45); }
.rk-pub-nr-flow-svg text {
  fill: #23486d;
  font-size: 11px;
  font-weight: 700;
}
.rk-nr-wire {
  fill: none;
  stroke: #3d79bf;
  stroke-width: 2.2;
  stroke-dasharray: 10 6;
  animation: rk-pub-link-flow 1.4s linear infinite;
}

@media (max-width: 980px) {
  .rk-pub-grafana-grid,
  .rk-pub-grafana-grid--compact {
    grid-template-columns: 1fr;
  }
  .rk-pub-nodered-grid {
    grid-template-columns: 1fr;
  }
}

/* === Final contrast and slightly-dark enterprise theme === */
:root {
  --rk-pub-deep: #16273d;
  --rk-pub-mid: #20344e;
  --rk-pub-card: rgba(24, 40, 61, 0.88);
  --rk-pub-stroke: rgba(134, 174, 219, 0.28);
  --rk-pub-accent: #68abff;
  --rk-pub-accent-soft: rgba(104, 171, 255, 0.16);
  --rk-pub-ok: #56c38e;
  --rk-pub-text: #e8f2ff;
  --rk-pub-muted: #b3c8e2;
  --rk-pub-maxw: 1360px;
}

.rk-pub-body {
  background:
    radial-gradient(ellipse 110% 55% at 50% -15%, rgba(104, 171, 255, 0.22), transparent),
    radial-gradient(ellipse 65% 45% at 100% 100%, rgba(86, 195, 142, 0.08), transparent),
    linear-gradient(168deg, #122235 0%, #1b2f49 45%, #223752 100%);
}

.rk-pub-topbar {
  background: rgba(16, 29, 45, 0.9);
  border-bottom-color: rgba(134, 174, 219, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.rk-pub-brand,
.rk-pub-brand span {
  color: #e8f2ff;
}

.rk-pub-nav a {
  color: #bfd4eb;
}
.rk-pub-nav a:hover {
  color: #ffffff;
  background: rgba(104, 171, 255, 0.16);
  border-color: rgba(134, 174, 219, 0.34);
}

.rk-pub-card,
.rk-pub-tile,
.rk-pub-tech-brand,
.rk-pub-diagram-card,
.rk-pub-dash-card,
.rk-pub-alert-level,
.rk-pub-kpi-card,
.rk-pub-contact-panel,
.rk-pub-remote-panel,
.rk-pub-grafana-card,
.rk-pub-nodered-card {
  background: rgba(24, 40, 61, 0.86) !important;
  border-color: rgba(134, 174, 219, 0.28) !important;
  color: #e8f2ff !important;
}

.rk-pub-card h2,
.rk-pub-card h3,
.rk-pub-card p,
.rk-pub-section-lead,
.rk-pub-flow-note,
.rk-pub-list li,
.rk-pub-tech-brand figcaption,
.rk-pub-contact-nav-here,
.rk-pub-back,
.rk-pub-contact-label,
.rk-pub-contact-legal,
.rk-pub-contact-address {
  color: #d9e8fa !important;
}

.rk-pub-kicker,
.rk-pub-inline-link {
  color: #7fb9ff !important;
}
.rk-pub-inline-link:hover {
  color: #ffffff !important;
}

.rk-pub-btn-sec {
  color: #dcecff !important;
  background: rgba(28, 49, 74, 0.78) !important;
  border-color: rgba(134, 174, 219, 0.34) !important;
}
.rk-pub-btn-sec:hover {
  background: rgba(104, 171, 255, 0.2) !important;
  color: #ffffff !important;
}

.rk-pub-grafana-card {
  background: linear-gradient(180deg, rgba(20, 35, 53, 0.92), rgba(26, 46, 70, 0.92)) !important;
}
.rk-pub-grafana-card h3,
.rk-pub-grafana-card p {
  color: #d9e8fa !important;
}
.rk-gra-bg {
  fill: rgba(17, 31, 47, 0.9);
  stroke: rgba(118, 161, 210, 0.3);
}
.rk-gra-grid line {
  stroke: rgba(110, 152, 198, 0.24);
}
.rk-gra-bars rect {
  fill: #63b0ff;
  stroke: rgba(117, 177, 241, 0.54);
}
.rk-gra-gauge-track {
  stroke: rgba(118, 161, 210, 0.22);
}
.rk-gra-gauge text {
  fill: #e8f2ff;
}

.rk-pub-nodered-card {
  background: linear-gradient(180deg, rgba(20, 35, 53, 0.92), rgba(26, 46, 70, 0.92)) !important;
}
.rk-pub-nodered-card h3,
.rk-pub-nodered-card p {
  color: #d9e8fa !important;
}
.rk-pub-nr2-tile {
  background: rgba(104, 171, 255, 0.12);
  border-color: rgba(134, 174, 219, 0.3);
}
.rk-pub-nr2-tile small {
  color: #b5cde8;
}
.rk-pub-nr2-tile strong {
  color: #e8f2ff;
}
.rk-pub-nr2-wave {
  background: rgba(104, 171, 255, 0.14);
}
.rk-pub-nr-flow-svg text {
  fill: #e8f2ff;
}
.rk-nr-node--in { fill: rgba(80, 142, 208, 0.2); }
.rk-nr-node--logic { fill: rgba(54, 160, 123, 0.18); }
.rk-nr-node--db { fill: rgba(237, 167, 74, 0.2); }
.rk-nr-node--out { fill: rgba(98, 124, 174, 0.2); }

.rk-pub-remote-kpis div {
  background: rgba(20, 36, 55, 0.9);
  border-color: rgba(134, 174, 219, 0.28);
}
.rk-pub-remote-kpis small {
  color: #b9d0e8;
}
.rk-pub-remote-kpis strong,
.rk-pub-dash-kpi {
  color: #e8f2ff;
}
.rk-pub-slider-track,
.rk-pub-remote-linechart,
.rk-pub-dash-line {
  background: rgba(104, 171, 255, 0.14);
}

.rk-pub-check {
  background: rgba(86, 195, 142, 0.18);
  border-color: rgba(86, 195, 142, 0.42);
  color: #78d3a8;
}

/* Final readability and spacing guardrails */
.rk-pub-card {
  padding: clamp(1.45rem, 3.4vw, 2.2rem) !important;
  border-radius: 20px !important;
}

.rk-pub-card h2 {
  margin-bottom: 1rem !important;
  line-height: 1.32 !important;
}

.rk-pub-card h3 {
  margin-bottom: 0.72rem !important;
  line-height: 1.4 !important;
}

.rk-pub-card p,
.rk-pub-card li,
.rk-pub-card figcaption,
.rk-pub-card small,
.rk-pub-card label,
.rk-pub-card span,
.rk-pub-card strong,
.rk-pub-section-lead,
.rk-pub-hero-sub,
.rk-pub-lead {
  color: #dce9f8 !important;
  line-height: 1.64 !important;
}

.rk-pub-section-lead {
  margin-bottom: 1.1rem !important;
  max-width: 78ch !important;
}

.rk-pub-list li {
  padding: 0.9rem 0 !important;
}

.rk-pub-hero h1 {
  line-height: 1.18 !important;
}

.rk-pub-grafana-card,
.rk-pub-nodered-card,
.rk-pub-remote-panel,
.rk-pub-alert-level,
.rk-pub-kpi-card,
.rk-pub-tech-brand,
.rk-pub-diagram-card {
  padding: 1.1rem !important;
}

.rk-pub-ref-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rk-pub-ref-card {
  background: rgba(20, 35, 53, 0.92);
  border: 1px solid rgba(134, 174, 219, 0.28);
  border-radius: 14px;
  padding: 0.9rem;
}

.rk-pub-ref-card h3 {
  margin-bottom: 0.65rem;
}

.rk-pub-ref-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(134, 174, 219, 0.25);
  background: rgba(14, 25, 39, 0.85);
}

.rk-pub-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.1rem;
}

.rk-pub-service-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(104, 171, 255, 0.14);
  border: 1px solid rgba(134, 174, 219, 0.34);
  color: #dcecff !important;
}

.rk-pub-service-media,
.rk-pub-arch-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.rk-pub-service-media-item {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(134, 174, 219, 0.28);
  background: rgba(20, 35, 53, 0.92);
  padding: 0.75rem;
}

.rk-pub-service-media-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d6e7fb !important;
}

.rk-pub-tile-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.rk-pub-tile-code {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #dbeaff;
  background: rgba(104, 171, 255, 0.14);
  border: 1px solid rgba(134, 174, 219, 0.33);
}

.rk-pub-tile-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rk-pub-tile-icon--ops { color: #86c4ff; }
.rk-pub-tile-icon--sec { color: #6de3b1; }
.rk-pub-tile-icon--roi { color: #ffd07a; }

.rk-pub-arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas:
    "flow flow"
    "legend strip";
  gap: 1rem;
  align-items: start;
}

.rk-pub-arch-layout .rk-pub-flow {
  grid-area: flow;
  max-width: none;
  margin: 0;
}

.rk-pub-arch-strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0;
  align-content: start;
}

.rk-pub-arch-strip article {
  border-radius: 10px;
  border: 1px solid rgba(134, 174, 219, 0.28);
  background: rgba(20, 35, 53, 0.92);
  padding: 0.5rem 0.55rem;
}

.rk-pub-arch-strip small {
  display: block;
  font-size: 0.68rem;
  color: #b8d1eb !important;
}

.rk-pub-arch-strip strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  color: #eaf3ff !important;
}

.rk-pub-arch-legend {
  grid-area: legend;
  border-radius: 14px;
  border: 1px solid rgba(134, 174, 219, 0.3);
  background: rgba(20, 35, 53, 0.9);
  padding: 0.95rem;
}

.rk-pub-arch-legend h3 {
  font-size: 0.9rem;
  margin: 0 0 0.7rem;
}

.rk-pub-arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.rk-pub-arch-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 174, 219, 0.3);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rk-pub-arch-tag--ot { background: rgba(104, 171, 255, 0.18); color: #cae4ff; }
.rk-pub-arch-tag--edge { background: rgba(84, 191, 139, 0.18); color: #c7f4de; }
.rk-pub-arch-tag--vpn { background: rgba(255, 208, 122, 0.16); color: #ffe8b8; }
.rk-pub-arch-tag--cloud { background: rgba(178, 159, 255, 0.18); color: #e3dcff; }

.rk-pub-flow-line--l1 { stroke: rgba(93, 168, 255, 0.72) !important; }
.rk-pub-flow-line--l2 { stroke: rgba(105, 226, 171, 0.7) !important; }
.rk-pub-flow-line--l3 { stroke: rgba(255, 216, 131, 0.68) !important; }

.rk-pub-list--tight li {
  padding: 0.62rem 0 !important;
}

@media (max-width: 980px) {
  .rk-pub-arch-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "flow"
      "legend"
      "strip";
  }
  .rk-pub-arch-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rk-pub-service-media,
  .rk-pub-arch-media {
    grid-template-columns: 1fr;
  }
  .rk-pub-arch-strip {
    grid-template-columns: 1fr;
  }
}

.rk-pub-grid3--path {
  gap: 1rem;
  margin-bottom: 1.05rem;
}

.rk-pub-card-cta--path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.95rem;
  padding-bottom: 0.3rem;
}

.rk-pub-card-cta--path .rk-pub-btn {
  margin-top: 0 !important;
  min-width: min(260px, 100%);
}

@media (max-width: 760px) {
  .rk-pub-card-cta--path .rk-pub-btn {
    width: 100%;
    min-width: 0;
  }
}

/* KPI cards on homepage: enforce high contrast readability */
.rk-pub-kpi-card {
  background: rgba(14, 30, 50, 0.96) !important;
  border-color: rgba(138, 183, 234, 0.46) !important;
}

.rk-pub-kpi-card,
.rk-pub-kpi-card * {
  opacity: 1 !important;
}

.rk-pub-kpi-card h3 {
  color: #f4f9ff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.rk-pub-kpi-card p {
  color: #d8e8fb !important;
}

.rk-pub-security-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.rk-pub-security-feature {
  background: rgba(20, 35, 53, 0.92);
  border: 1px solid rgba(134, 174, 219, 0.28);
  border-radius: 14px;
  padding: 0.95rem;
}

.rk-pub-security-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 0.94rem;
  color: #eff6ff !important;
}

.rk-pub-security-feature p {
  margin: 0;
}

.rk-pub-security-graphs {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rk-pub-security-graph-card {
  background: rgba(20, 35, 53, 0.92);
  border: 1px solid rgba(134, 174, 219, 0.28);
  border-radius: 14px;
  padding: 0.85rem;
}

.rk-pub-security-graph-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.rk-pub-security-graph-card p {
  margin: 0.6rem 0 0;
  font-size: 0.83rem;
}

.rk-pub-sec-bg {
  fill: rgba(12, 25, 40, 0.88);
  stroke: rgba(126, 170, 219, 0.3);
  stroke-width: 1;
}

.rk-pub-sec-label {
  fill: #e9f3ff;
  font-size: 12px;
  font-weight: 700;
}

.rk-pub-sec-value {
  fill: #d8ebff;
  font-size: 12px;
  font-weight: 700;
}

.rk-pub-sec-bar {
  opacity: 0.95;
}

.rk-pub-sec-bar--before {
  fill: rgba(236, 102, 102, 0.82);
}

.rk-pub-sec-bar--after {
  fill: rgba(102, 224, 170, 0.88);
}

.rk-pub-sec-grid line {
  stroke: rgba(136, 179, 226, 0.22);
  stroke-width: 1;
}

.rk-pub-sec-line {
  fill: none;
  stroke: rgba(113, 201, 255, 0.94);
  stroke-width: 3;
  stroke-linecap: round;
}

.rk-pub-sec-dot {
  fill: rgba(99, 235, 182, 0.95);
  stroke: rgba(12, 25, 40, 0.9);
  stroke-width: 1;
}

.rk-pub-sec-note {
  fill: #bdd6f2;
  font-size: 11px;
}

.rk-pub-sec-note--accent {
  fill: #81f0bb;
  font-weight: 700;
}

@media (max-width: 900px) {
  .rk-pub-security-feature-grid,
  .rk-pub-security-graphs {
    grid-template-columns: 1fr;
  }
}
