/**
 * The knowledge layer: product knowledge pages, the answer pages under
 * /resources/ and the methodology library.
 *
 * These pages have one job the rest of the site does not: to be read. By a
 * person scanning for the paragraph that answers their question, and by a
 * retrieval system that executes no JavaScript and sees only the document. So
 * the styling is deliberately quiet — a single measured column, generous
 * leading, real headings in document order, and no reveal-on-scroll animation
 * that would leave the text invisible to anything that does not run scripts.
 *
 * It borrows `tokens.css` and nothing else, so a page here loads three
 * stylesheets rather than nine and paints on the first response.
 */

.kn-body {
  background: var(--bg-main);
  color: var(--text-main);
}

.kn-main {
  padding: 0 24px 96px;
}

.kn-article {
  max-width: 760px;
  margin: 0 auto;
  /* Clear of the fixed primary menu. */
  padding-top: 112px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */

.kn-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.kn-crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--text-dim);
}

.kn-crumbs a:hover { color: var(--brand-blue); }
.kn-crumbs [aria-current='page'] { color: var(--text-main); font-weight: 600; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.kn-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

/* `.kn-article p` would otherwise win and paint the eyebrow navy. */
.kn-article .kn-eyebrow { color: var(--brand-blue); }

.kn-header h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kn-lede {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── The answer ──────────────────────────────────────────────────────────── */

/*
 * The first block on the page, and the one an answer engine is most likely to
 * quote. It is set apart visually for the same reason it is first in the
 * document: it is the complete answer, and everything below it is elaboration.
 */
.kn-answer {
  margin: 36px 0 8px;
  padding: 24px 26px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-blue);
  border-radius: 14px;
  background: var(--bg-subtle);
}

.kn-answer h2 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.kn-definition {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-main);
}

.kn-answer p:last-child { margin-bottom: 0; }

/* ── Sections ────────────────────────────────────────────────────────────── */

.kn-article section { margin-top: 48px; }

.kn-article h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kn-article h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kn-article p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
}

.kn-article a { color: var(--brand-blue); }
.kn-article a:hover { text-decoration: underline; }

/* ── Definition lists: capabilities, inputs, what it analyses ────────────── */

.kn-list {
  margin: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border-light);
}

.kn-list > div {
  background: var(--bg-card);
  padding: 18px 22px;
}

.kn-list dt {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.kn-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Ordered methodology ─────────────────────────────────────────────────── */

.kn-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
}

.kn-steps li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.kn-steps strong { color: var(--text-main); }

/* ── Questions ───────────────────────────────────────────────────────────── */

/*
 * `<details>` collapses ten answers into a scannable list without hiding any of
 * them from the document — the text is present whether or not the element is
 * open, which is what matters for anything reading the HTML rather than the
 * rendered page.
 */
.kn-qa {
  border-bottom: 1px solid var(--border-light);
  padding: 4px 0;
}

.kn-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.kn-qa summary::-webkit-details-marker { display: none; }

.kn-qa summary::after {
  content: '+';
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-dim);
}

.kn-qa[open] summary::after { content: '–'; }
.kn-qa[open] summary h3 { color: var(--brand-blue); }

.kn-qa p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ── Lists and related rails ─────────────────────────────────────────────── */

.kn-plain,
.kn-related {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kn-plain li,
.kn-related li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.kn-related li a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}

.kn-related li a:hover {
  border-color: var(--brand-blue);
  text-decoration: none;
  transform: translateX(2px);
}

/* ── Call to action ──────────────────────────────────────────────────────── */

/*
 * The one deep navy anchor panel a page gets (Brand Identity System v3.1,
 * section 08), with a gold rule as its signature — not a black slab.
 */
.kn-cta {
  position: relative;
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(117, 199, 244, .18) 0%, rgba(117, 199, 244, 0) 60%),
    var(--vest-navy, #071B3A);
  color: var(--text-dark-main);
  overflow: hidden;
}

.kn-cta::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--vest-gold, #D69A2D);
}

.kn-cta h2 { color: var(--text-dark-main); }
.kn-cta p { color: var(--text-dark-muted); }

.kn-button {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.kn-button:hover { text-decoration: none; opacity: 0.9; }

.kn-button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.kn-cta-inline .kn-button { margin-top: 8px; }
.kn-cta-inline { margin-bottom: 0; }

/* ── Provenance ──────────────────────────────────────────────────────────── */

/*
 * Author, dates and the disclosure that separates an external fact from a
 * Vestmind calculation. Small, but never hidden: a financial claim with no
 * attribution is the thing a careful reader — and a careful retrieval system —
 * is entitled to discount.
 */
.kn-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.kn-meta p { font-size: 13px; color: var(--text-muted); }
.kn-meta strong { color: var(--text-main); font-weight: 700; }
.kn-disclosure { color: var(--text-dim); }

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

/* ── Index pages ─────────────────────────────────────────────────────────── */

.kn-index {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.kn-index li a {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kn-index li a:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-paper-hover);
  text-decoration: none;
}

.kn-index strong { display: block; font-size: 15px; margin-bottom: 6px; }
.kn-index span { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ── Who it is for ────────────────────────────────────────────────────────── */

.kn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kn-cards--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.kn-cards li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--mist-blue, #D7E7F5);
  border-radius: 14px;
  background: var(--bg-card);
}

.kn-cards strong { font-size: 15px; color: var(--text-main); }
.kn-cards span { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

.kn-article .kn-after-list { margin: 18px 0 0; font-size: 15px; }

/* ── A worked example ────────────────────────────────────────────────────── */

/*
 * A pale-blue analytical surface, the way the brand shows data: each finding
 * a large figure with an explicit label, and the reasoning beneath it.
 */
.kn-example {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--mist-blue, #D7E7F5);
  border-radius: 18px;
  background: var(--pale-blue, #EAF6FF);
}

.kn-example figcaption {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.kn-example-label {
  justify-self: start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-mist, #FFF6E6);
  color: #8A5A12;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kn-example figcaption strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.kn-example figcaption > span:last-child { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

.kn-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 0;
}

.kn-findings > div {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-card);
}

.kn-findings dt {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.kn-findings dt b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--signal-blue, #0B63F6);
}

.kn-findings dd { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

.kn-article .kn-example-takeaway {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--vest-gold, #D69A2D);
  font-size: 15px;
  color: var(--text-main);
}

/* ── Compared with the alternatives ──────────────────────────────────────── */

/*
 * Navy header, alternating pale bands, and the product's own row set warm —
 * the brand's table.
 */
.kn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mist-blue, #D7E7F5);
  border-radius: 14px;
}

.kn-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

.kn-compare th,
.kn-compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.kn-compare thead th {
  background: var(--vest-navy, #071B3A);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kn-compare tbody tr:nth-child(even) { background: var(--cloud, #F7FBFF); }
.kn-compare tbody th { width: 26%; font-weight: 700; color: var(--text-main); }
.kn-compare td { color: var(--text-muted); }

.kn-compare tbody tr.kn-compare-own { background: var(--gold-mist, #FFF6E6); }
.kn-compare tbody tr.kn-compare-own th { color: var(--vest-navy, #071B3A); box-shadow: inset 3px 0 0 var(--vest-gold, #D69A2D); }
.kn-compare tbody tr.kn-compare-own td { color: var(--text-main); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.kn-article--wide { max-width: 1040px; }
.kn-article--wide .kn-header,
.kn-article--wide .kn-answer,
.kn-article--wide #questions,
.kn-article--wide #how-your-data-is-protected > h2,
.kn-article--wide .kn-meta { max-width: 760px; }

.kn-price-group h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.kn-price-group h2 span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}

.kn-price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kn-price-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--mist-blue, #D7E7F5);
  border-radius: 18px;
  background: var(--bg-card);
}

.kn-price-status {
  align-self: flex-start;
  margin: 0 0 18px !important;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--pale-blue, #EAF6FF);
  color: var(--signal-blue, #0B63F6) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kn-price-group--invite .kn-price-card { background: linear-gradient(180deg, var(--gold-mist, #FFF6E6) 0%, var(--bg-card) 42%); }
.kn-price-group--invite .kn-price-status { background: #FFFFFF; color: #8A5A12 !important; box-shadow: inset 0 0 0 1px rgba(214, 154, 45, .45); }

.kn-article .kn-price-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.kn-price-card h3 b { font-weight: 800; }

.kn-article .kn-price-tagline {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--signal-blue, #0B63F6);
}

.kn-article .kn-price-line { font-size: 15px; line-height: 1.65; color: var(--text-muted); }

.kn-price-features {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}

.kn-price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
}

.kn-price-features li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: rotate(-45deg);
}

.kn-article .kn-price-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
}

.kn-price-actions .kn-button { margin-top: 0; font-size: 14px; }
.kn-article .kn-price-more { font-size: 14px; font-weight: 700; }

.kn-article .kn-button { color: #FFFFFF; }
.kn-article .kn-button:hover { text-decoration: none; }

.kn-article .kn-button-outline {
  background: #FFFFFF;
  color: var(--vest-navy, #071B3A);
  box-shadow: inset 0 0 0 1px var(--vest-gold, #D69A2D);
}

@media (max-width: 640px) {
  .kn-main { padding: 0 16px 72px; }
  .kn-article { padding-top: 92px; }
  .kn-answer { padding: 20px; }
  .kn-cta { padding: 24px; }
  .kn-example { padding: 20px; }
  .kn-findings { grid-template-columns: 1fr; }
}
