.kb-section-graphic {
  --visual-accent: #19b88f;
  --visual-accent-2: #0a84ff;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.kb-section-graphic::before,
.kb-section-graphic::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.kb-section-graphic::before {
  inset: 22px;
  border: 1px solid color-mix(in srgb, var(--visual-accent) 24%, transparent);
  border-radius: 50%;
}

.kb-section-graphic::after {
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(16, 32, 45, 0.06) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(16, 32, 45, 0.06) 50%, transparent calc(50% + 1px));
  opacity: 0.76;
}

.kb-section-graphic__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  display: grid;
  place-items: center;
}

.kb-section-graphic__image {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: drop-shadow(0 20px 30px rgba(16, 32, 45, 0.12));
}

.kb-section-graphic__svg {
  display: none;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.kb-section-graphic__svg--default {
  display: block;
}

.kb-section-graphic .sg-panel {
  fill: rgba(255, 255, 255, 0.82);
  stroke: color-mix(in srgb, var(--visual-accent) 30%, rgba(16, 32, 45, 0.16));
  stroke-width: 2;
  filter: drop-shadow(0 18px 24px rgba(16, 32, 45, 0.12));
}

.kb-section-graphic .sg-node {
  fill: rgba(255, 255, 255, 0.9);
  stroke: color-mix(in srgb, var(--visual-accent) 34%, rgba(16, 32, 45, 0.18));
  stroke-width: 2;
  filter: drop-shadow(0 10px 16px rgba(16, 32, 45, 0.1));
}

.kb-section-graphic .sg-line,
.kb-section-graphic .sg-muted-line,
.kb-section-graphic .sg-line-light {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-section-graphic .sg-line {
  stroke: color-mix(in srgb, var(--visual-accent) 76%, #10202d);
  stroke-width: 5;
}

.kb-section-graphic .sg-muted-line {
  stroke: color-mix(in srgb, var(--visual-accent-2) 36%, rgba(16, 32, 45, 0.18));
  stroke-width: 3;
}

.kb-section-graphic .sg-line-light {
  stroke: #ffffff;
  stroke-width: 5;
}

.kb-section-graphic .sg-accent {
  fill: var(--visual-accent);
}

.kb-section-graphic .sg-accent-2 {
  fill: var(--visual-accent-2);
}

.kb-section-graphic--feature {
  min-height: 340px;
  padding: clamp(22px, 3vw, 34px);
  align-content: center;
  border: 1px solid rgba(28, 91, 127, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--visual-accent) 14%, transparent) 0%, transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: 0 20px 46px rgba(19, 62, 98, 0.12);
  backdrop-filter: blur(10px);
}

.kb-section-graphic--feature .kb-section-graphic__frame {
  width: min(100%, 420px);
}

.kb-section-graphic--feature .kb-section-graphic__image {
  max-width: 420px;
}

.kb-section-graphic--card {
  min-height: 176px;
  margin: -4px -4px 16px;
  border: 1px solid color-mix(in srgb, var(--visual-accent) 18%, rgba(217, 222, 216, 0.9));
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--visual-accent) 12%, transparent), transparent 54%),
    rgba(255, 255, 255, 0.68);
}

.kb-section-graphic--card::before {
  inset: 18px;
  opacity: 0.7;
}

.kb-section-graphic--card .kb-section-graphic__frame {
  width: min(100%, 320px);
}

.kb-section-graphic--card .kb-section-graphic__image {
  max-width: 320px;
  border-radius: 7px;
  filter: drop-shadow(0 12px 18px rgba(16, 32, 45, 0.08));
}

.kb-section-graphic--card .kb-section-graphic__svg {
  max-width: 190px;
}

.kb-section-graphic--card .sg-panel,
.kb-section-graphic--card .sg-node {
  filter: drop-shadow(0 10px 16px rgba(16, 32, 45, 0.08));
}

.kb-section-graphic--card .sg-line {
  stroke-width: 6;
}

.template-knowledge-section .hero__visual {
  width: 100%;
  align-self: center;
}

.template-knowledge-section .kb-section-graphic--hero {
  min-height: clamp(250px, 24vw, 340px);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid color-mix(in srgb, var(--visual-accent) 24%, rgba(19, 62, 98, 0.13));
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--visual-accent) 12%, transparent), transparent 56%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(15, 38, 68, 0.08);
}

.template-knowledge-section .kb-section-graphic--hero::before {
  inset: 24px;
  opacity: 0.72;
}

.template-knowledge-section .kb-section-graphic--hero .kb-section-graphic__frame {
  width: min(100%, 520px);
}

.template-knowledge-section .kb-section-graphic--hero .kb-section-graphic__image {
  max-width: 520px;
  border-radius: 7px;
  filter: drop-shadow(0 16px 24px rgba(16, 32, 45, 0.1));
}

.template-knowledge-index .kb-card {
  --kb-card-accent: #0a84ff;
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--kb-card-accent) 26%, rgba(19, 62, 98, 0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-card-accent) 10%, transparent), rgba(255, 255, 255, 0.96) 34%),
    #fff;
  box-shadow: 0 12px 30px rgba(15, 38, 68, 0.06);
}

.template-knowledge-index .kb-card::before,
.template-knowledge-index .kb-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.template-knowledge-index .kb-card::before {
  inset: 0 0 auto;
  height: 5px;
  background: var(--kb-card-accent);
}

.template-knowledge-index .kb-card::after {
  right: -42px;
  bottom: -54px;
  width: 136px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--kb-card-accent) 30%, transparent);
  border-radius: 50%;
  opacity: 0.58;
}

.template-knowledge-index .kb-card > * {
  position: relative;
  z-index: 1;
}

.template-knowledge-index .kb-card .eyebrow,
.template-knowledge-index .kb-card .link-arrow {
  color: color-mix(in srgb, var(--kb-card-accent) 74%, #10202d);
}

.template-knowledge-index .kb-card .kb-section-graphic--card {
  border-color: color-mix(in srgb, var(--kb-card-accent) 32%, rgba(217, 222, 216, 0.9));
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--kb-card-accent) 14%, transparent), transparent 56%),
    rgba(255, 255, 255, 0.72);
}

.template-knowledge-index .kb-card .kb-section-graphic__image {
  border: 1px solid color-mix(in srgb, var(--kb-card-accent) 20%, rgba(16, 32, 45, 0.12));
}

.template-knowledge-index .featured-kb {
  --kb-section-accent: var(--color-accent);
  padding-top: 48px;
}

.template-knowledge-index .featured-kb__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.template-knowledge-index .featured-kb__stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.template-knowledge-index .featured-kb-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--kb-section-accent) 24%, rgba(19, 62, 98, 0.13));
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--kb-section-accent) 13%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 8%, transparent), rgba(255, 255, 255, 0.96) 42%),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 38, 68, 0.07);
}

.template-knowledge-index .featured-kb-card::before,
.template-knowledge-index .featured-kb-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.template-knowledge-index .featured-kb-card::before {
  inset: 0 0 auto;
  height: 5px;
  background: var(--kb-section-accent);
}

.template-knowledge-index .featured-kb-card::after {
  right: -46px;
  bottom: -62px;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--kb-section-accent) 26%, transparent);
  border-radius: 50%;
  opacity: 0.5;
}

.template-knowledge-index .featured-kb-card > * {
  position: relative;
  z-index: 1;
}

.template-knowledge-index .featured-kb-card--lead {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: end;
  padding: clamp(26px, 4vw, 42px);
}

.template-knowledge-index .featured-kb-card--lead::after {
  right: 24px;
  bottom: 22px;
  width: min(330px, 38%);
  opacity: 0.42;
}

.template-knowledge-index .featured-kb-card__body {
  min-width: 0;
}

.template-knowledge-index .featured-kb-card .eyebrow,
.template-knowledge-index .featured-kb-card .link-arrow {
  color: color-mix(in srgb, var(--kb-section-accent) 76%, #10202d);
}

.template-knowledge-index .featured-kb-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: 0;
}

.template-knowledge-index .featured-kb-card:not(.featured-kb-card--lead) h3 {
  font-size: 22px;
  line-height: 1.16;
}

.template-knowledge-index .featured-kb-card h3 a {
  color: inherit;
  text-decoration: none;
}

.template-knowledge-index .featured-kb-card h3 a:hover {
  color: color-mix(in srgb, var(--kb-section-accent) 78%, #10202d);
}

.template-knowledge-index .featured-kb-card__summary {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.55;
}

.template-knowledge-index .featured-kb-card:not(.featured-kb-card--lead) .featured-kb-card__summary {
  margin-top: 12px;
  font-size: 15px;
}

.template-knowledge-index .featured-kb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--color-ink-soft);
  font-size: 14px;
  line-height: 1.3;
}

.template-knowledge-index .featured-kb-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--kb-section-accent) 16%, rgba(19, 62, 98, 0.12));
  border-radius: 999px;
  background: color-mix(in srgb, var(--kb-section-accent) 7%, #fff);
}

.template-knowledge-index .featured-kb-card .button {
  width: fit-content;
  margin-top: 24px;
}

.template-knowledge-index .featured-kb-card .button--primary {
  border-color: color-mix(in srgb, var(--kb-section-accent) 82%, #10202d);
  background: color-mix(in srgb, var(--kb-section-accent) 82%, #10202d);
  color: #fff;
}

.template-knowledge-index .featured-kb-card .button--primary:hover {
  border-color: #10202d;
  background: #10202d;
}

.template-knowledge-index .featured-kb-card__detail {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.template-knowledge-index .featured-kb-card__detail div {
  border-left: 4px solid var(--kb-section-accent);
  border-radius: 8px;
  padding: 16px 16px 16px 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(16, 32, 45, 0.08);
}

.template-knowledge-index .featured-kb-card__detail span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-knowledge-index .featured-kb-card__detail strong {
  display: block;
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.22;
}

.kb-section-graphic--connectivity {
  --visual-accent: #0a84ff;
  --visual-accent-2: #19b88f;
}

.kb-section-graphic--cyber-security-it-ot {
  --visual-accent: #19b88f;
  --visual-accent-2: #0a84ff;
}

.kb-section-graphic--it-networks {
  --visual-accent: #255fb8;
  --visual-accent-2: #7f56d9;
}

.kb-section-graphic--av {
  --visual-accent: #7c5cff;
  --visual-accent-2: #0a84ff;
}

.kb-section-graphic--electrical-power-systems {
  --visual-accent: #f4a62a;
  --visual-accent-2: #0a84ff;
}

.kb-section-graphic--nav-bridge {
  --visual-accent: #0e9fb4;
  --visual-accent-2: #19b88f;
}

.kb-section-graphic--ot {
  --visual-accent: #d05a2a;
  --visual-accent-2: #0a84ff;
}

.kb-section-graphic--safety-compliance-procedures {
  --visual-accent: #3f8b3f;
  --visual-accent-2: #ffb545;
}

.kb-section-graphic--incident-investigations {
  --visual-accent: #10202d;
  --visual-accent-2: #ffb545;
}

.kb-section-graphic--training-professional-development {
  --visual-accent: #b34d8a;
  --visual-accent-2: #19b88f;
}

.template-knowledge-index .kb-card--connectivity {
  --kb-card-accent: #0a84ff;
}

.template-knowledge-index .kb-card--cyber-security-it-ot {
  --kb-card-accent: #19b88f;
}

.template-knowledge-index .kb-card--it-networks {
  --kb-card-accent: #255fb8;
}

.template-knowledge-index .kb-card--av {
  --kb-card-accent: #7c5cff;
}

.template-knowledge-index .kb-card--electrical-power-systems {
  --kb-card-accent: #ffb545;
}

.template-knowledge-index .kb-card--nav-bridge {
  --kb-card-accent: #0e9fb4;
}

.template-knowledge-index .kb-card--ot {
  --kb-card-accent: #d05a2a;
}

.template-knowledge-index .kb-card--safety-compliance-procedures {
  --kb-card-accent: #3b7d2f;
}

.template-knowledge-index .kb-card--incident-investigations {
  --kb-card-accent: #10202d;
}

.template-knowledge-index .kb-card--training-professional-development {
  --kb-card-accent: #b34d8a;
}

@media (max-width: 520px) {
  .kb-section-graphic--feature {
    min-height: 290px;
    padding: 18px;
  }

  .kb-section-graphic--feature::before {
    inset: 16px;
  }

  .kb-section-graphic--feature .kb-section-graphic__frame {
    width: min(100%, 260px);
  }

  .kb-section-graphic--card {
    min-height: 154px;
    margin-bottom: 14px;
  }

  .kb-section-graphic--card .kb-section-graphic__frame,
  .kb-section-graphic--card .kb-section-graphic__image {
    width: min(100%, 260px);
    max-width: 260px;
  }

  .template-knowledge-section .kb-section-graphic--hero {
    min-height: 190px;
    padding: 12px;
  }

  .template-knowledge-section .kb-section-graphic--hero::before {
    inset: 16px;
  }
}

@media (max-width: 900px) {
  .template-knowledge-index .featured-kb__stack,
  .template-knowledge-index .featured-kb-card--lead {
    grid-template-columns: 1fr;
  }

  .template-knowledge-index .featured-kb-card--lead {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .template-knowledge-index .featured-kb {
    padding-top: 34px;
  }

  .template-knowledge-index .featured-kb-card,
  .template-knowledge-index .featured-kb-card--lead {
    padding: 20px;
  }

  .template-knowledge-index .featured-kb-card h3,
  .template-knowledge-index .featured-kb-card:not(.featured-kb-card--lead) h3 {
    font-size: 24px;
    line-height: 1.08;
  }

  .template-knowledge-index .featured-kb-card__summary {
    font-size: 15px;
  }

  .template-knowledge-index .featured-kb-card__meta {
    gap: 6px;
  }

  .template-knowledge-index .featured-kb-card__meta span {
    min-height: 28px;
    padding: 5px 9px;
  }
}
