/* Shared long-form knowledge article system. */
.knowledge-page {
  --article-ink: var(--color-text-heading);
  --article-body: var(--color-text-body);
  --article-muted: var(--color-text-muted);
  --article-border: rgba(174, 188, 225, 0.46);
  --article-link: #3304c8;
}

.knowledge-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.knowledge-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4c35de, #6063ee 62%, #16a34a);
  transform: scaleX(0);
  transform-origin: left center;
}

.knowledge-hero {
  padding: clamp(34px, 5vw, 70px) 0 clamp(34px, 4vw, 58px);
}

.knowledge-hero__shell {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 72px);
  border: 1px solid var(--article-border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(84, 64, 230, 0.11), transparent 28%),
    radial-gradient(circle at 94% 14%, rgba(22, 163, 74, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 68px rgba(64, 57, 137, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.knowledge-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  padding: 0;
  color: var(--article-muted);
  font-size: 0.84rem;
  list-style: none;
}

.knowledge-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(106, 118, 151, 0.55);
}

.knowledge-breadcrumbs a:hover { color: var(--article-link); }

.knowledge-hero__content { max-width: 990px; }

.knowledge-hero h1 {
  margin: 22px 0 22px;
  max-width: 19ch;
  color: var(--article-ink);
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.4vw, 5rem);
  font-weight: 750;
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.knowledge-hero__answer {
  max-width: 76ch;
  margin: 0;
  color: var(--color-text-strong);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.72;
  letter-spacing: -0.012em;
}

.knowledge-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin-top: 26px;
  color: var(--article-muted);
  font-size: 0.88rem;
}

.knowledge-byline strong { color: var(--article-ink); }

.knowledge-byline__author {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.knowledge-byline__avatar {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #eef0ff;
  box-shadow: 0 3px 10px rgba(51, 4, 200, 0.14);
  object-fit: cover;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(190px, 236px) minmax(0, 820px);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  justify-content: center;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.knowledge-toc {
  position: sticky;
  top: 128px;
  padding: 20px;
  border: 1px solid rgba(216, 226, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(84, 64, 230, 0.06);
  backdrop-filter: blur(12px);
}

.knowledge-toc__title {
  display: block;
  margin-bottom: 12px;
  color: var(--article-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.knowledge-toc ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-toc a {
  display: block;
  padding: 7px 9px;
  border-left: 2px solid transparent;
  color: var(--article-muted);
  font-size: 0.86rem;
  line-height: 1.42;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.knowledge-toc a:hover,
.knowledge-toc a[aria-current="true"] {
  border-left-color: var(--color-primary-container);
  border-radius: 0 8px 8px 0;
  color: var(--article-link);
  background: rgba(228, 223, 255, 0.42);
}

.knowledge-article {
  min-width: 0;
  color: var(--article-body);
  font-size: 1.03rem;
  line-height: 1.82;
}

.knowledge-article > :first-child { margin-top: 0; }

.knowledge-article h2 {
  scroll-margin-top: 138px;
  margin: clamp(54px, 7vw, 78px) 0 18px;
  color: var(--article-ink);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.knowledge-article h3 {
  scroll-margin-top: 138px;
  margin: 34px 0 10px;
  color: var(--article-ink);
  font-size: clamp(1.25rem, 2vw, 1.52rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.knowledge-article p { margin: 0 0 20px; }

.knowledge-article a:not(.button):not(.knowledge-card) {
  color: var(--article-link);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(51, 4, 200, 0.28);
  text-underline-offset: 3px;
}

.knowledge-article ul,
.knowledge-article ol { margin: 0 0 24px; padding-left: 24px; }
.knowledge-article li { margin-bottom: 9px; padding-left: 4px; }
.knowledge-article strong { color: var(--color-text-strong); }

.knowledge-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(196, 202, 235, 0.78);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(242, 243, 255, 0.94), rgba(255, 255, 255, 0.94));
  box-shadow: 0 14px 34px rgba(84, 64, 230, 0.06);
}

.knowledge-summary h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.knowledge-summary ul { margin: 0; }

.knowledge-definition {
  margin: 24px 0 32px;
  padding: 24px 26px;
  border-left: 4px solid var(--color-primary-container);
  border-radius: 0 20px 20px 0;
  background: rgba(242, 243, 255, 0.78);
}

.knowledge-definition p:last-child { margin-bottom: 0; }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 32px;
}

.knowledge-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(227, 232, 244, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(84, 64, 230, 0.06);
}

.knowledge-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.knowledge-card p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.knowledge-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary-container);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.knowledge-card--visual {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px calc(40% + 18px) 24px 24px;
}

.knowledge-card--visual > :not(.knowledge-card__visual) {
  position: relative;
  z-index: 1;
}

.knowledge-card__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 40%;
  place-items: center;
  border-left: 1px solid rgba(194, 204, 235, 0.52);
  color: #5440e6;
  background:
    radial-gradient(circle at 72% 22%, rgba(96, 99, 238, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(241, 242, 255, 0.92), rgba(232, 244, 255, 0.8));
}

.knowledge-card__visual::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(84, 64, 230, 0.14);
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.46);
  transform: rotate(12deg);
}

.knowledge-card__visual svg {
  position: relative;
  z-index: 1;
  width: clamp(58px, 7vw, 78px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  filter: drop-shadow(0 8px 16px rgba(51, 4, 200, 0.12));
}

.knowledge-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 34px !important;
  padding: 0 !important;
  list-style: none;
}

.knowledge-checklist > li {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  margin: 0;
  padding: 24px calc(40% + 18px) 24px 24px;
  border: 1px solid rgba(227, 232, 244, 0.96);
  border-radius: 20px;
  color: var(--color-text-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(84, 64, 230, 0.06);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.knowledge-checklist > li > strong {
  font-weight: 750;
}

.knowledge-checklist > li > :not(.knowledge-card__visual) {
  position: relative;
  z-index: 1;
}

.knowledge-table-wrap {
  overflow-x: auto;
  margin: 26px 0 34px;
  border: 1px solid rgba(216, 226, 255, 0.9);
  border-radius: 20px;
  background: #fff;
}

.knowledge-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.55;
}

.knowledge-table th,
.knowledge-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(227, 232, 244, 0.9);
  text-align: left;
  vertical-align: top;
}

.knowledge-table th {
  color: var(--article-ink);
  background: rgba(242, 243, 255, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.knowledge-table tr:last-child td { border-bottom: 0; }

.knowledge-steps {
  display: grid;
  gap: 14px;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: knowledge-step;
}

.knowledge-steps li {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 5px 0 6px 72px;
  counter-increment: knowledge-step;
}

.knowledge-steps li::before {
  content: counter(knowledge-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6063ee, #3304c8);
  font-size: 0.78rem;
  font-weight: 800;
}

.knowledge-steps strong { display: block; margin-bottom: 4px; }

.knowledge-video {
  margin: 38px 0;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(96, 99, 238, 0.3), transparent 34%),
    linear-gradient(135deg, #24235e, #132746 58%, #103646);
}

.knowledge-video h2,
.knowledge-video h3 { margin: 0 0 12px; color: #fff; }
.knowledge-video p { color: rgba(238, 243, 255, 0.84); }

.knowledge-video__placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(9, 17, 38, 0.25);
  text-align: center;
}

.knowledge-video__placeholder span {
  max-width: 36ch;
  color: rgba(238, 243, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.knowledge-video__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: #091126;
  box-shadow: 0 24px 54px rgba(3, 10, 27, 0.28);
}

.knowledge-video__facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: #091126;
  cursor: pointer;
}

.knowledge-video__poster,
.knowledge-video__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.knowledge-video__poster { object-fit: contain; }

.knowledge-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(62px, 8vw, 84px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: linear-gradient(135deg, #5b35f2, #2ba978);
  box-shadow: 0 16px 36px rgba(3, 10, 27, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.knowledge-video__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid currentColor;
}

.knowledge-video__facade:hover .knowledge-video__play { transform: translate(-50%, -50%) scale(1.06); }
.knowledge-video__facade:focus-visible { outline: 4px solid #a8ffd9; outline-offset: -5px; }
.knowledge-video__facade:focus-visible .knowledge-video__play { box-shadow: 0 0 0 5px rgba(168, 255, 217, 0.28), 0 16px 36px rgba(3, 10, 27, 0.42); }

.knowledge-video__meta {
  display: flex;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 14px;
}

.knowledge-video__meta p { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 0.84rem; line-height: 1.55; }
.knowledge-article .knowledge-video .knowledge-video__meta a:not(.button):not(.knowledge-card) {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.knowledge-article .knowledge-video .knowledge-video__meta a:not(.button):not(.knowledge-card):hover {
  color: #c9ffe8;
  text-decoration-thickness: 2px;
}

.knowledge-article .knowledge-video .knowledge-video__meta a:not(.button):not(.knowledge-card):focus-visible {
  color: #fff;
  outline: 2px solid #a8ffd9;
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration-thickness: 2px;
}
.knowledge-video__fallback { flex: none; font-size: 0.84rem; font-weight: 700; }

@media (max-width: 640px) {
  .knowledge-video__meta { display: block; }
  .knowledge-video__fallback { display: inline-block; margin-top: 10px; }
}

.knowledge-inline-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid rgba(177, 192, 231, 0.55);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(228, 223, 255, 0.7), rgba(255, 255, 255, 0.94));
}

.knowledge-inline-cta h2,
.knowledge-inline-cta h3 { margin: 0 0 8px; font-size: 1.45rem; }
.knowledge-inline-cta p { margin: 0; font-size: 0.95rem; }

.knowledge-author {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 54px;
  padding: 26px;
  border-top: 1px solid rgba(216, 226, 255, 0.9);
  border-bottom: 1px solid rgba(216, 226, 255, 0.9);
}

.knowledge-author__mark {
  display: block;
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eef0ff;
  box-shadow: 0 8px 20px rgba(51, 4, 200, 0.14);
  object-fit: cover;
}

.knowledge-author h2 { margin: 0 0 5px; font-size: 1.25rem; }
.knowledge-author p { margin-bottom: 8px; font-size: 0.92rem; line-height: 1.62; }

.knowledge-related { padding: 0 0 clamp(72px, 9vw, 112px); }
.knowledge-related__head { max-width: 760px; margin-bottom: 24px; }
.knowledge-related__head h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.knowledge-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.knowledge-related .knowledge-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.knowledge-related .knowledge-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(84, 64, 230, 0.1); }
.knowledge-related .knowledge-card strong { display: block; margin-top: 16px; color: var(--article-link); font-size: 0.9rem; }

.knowledge-page .faq-section { padding-top: 0; }
.knowledge-page .site-cta-section { padding-bottom: clamp(72px, 9vw, 112px); }

@media (max-width: 960px) {
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-toc { position: static; }
  .knowledge-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .knowledge-hero { padding-top: 22px; }
  .knowledge-hero__shell { padding: 26px 22px; border-radius: 25px; }
  .knowledge-hero h1 { font-size: 2.45rem; }
  .knowledge-breadcrumbs { margin-bottom: 22px; }
  .knowledge-layout { gap: 30px; }
  .knowledge-toc ol,
  .knowledge-grid,
  .knowledge-checklist,
  .knowledge-related__grid { grid-template-columns: 1fr; }
  .knowledge-card--visual,
  .knowledge-checklist > li {
    min-height: 180px;
    padding-right: calc(38% + 16px);
  }
  .knowledge-card__visual { width: 38%; }
  .knowledge-inline-cta { grid-template-columns: 1fr; }
  .knowledge-inline-cta .button { width: 100%; }
  .knowledge-author { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-page *,
  .knowledge-page *::before,
  .knowledge-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
