/* ============================================================
   Tektome — White Papers list page (#white-papers).
   A stack of horizontal cards: a line-art illustration panel on
   the left, content (badge, title, description, key-points,
   download link) on the right. Reuses news.css for the hero band
   and CTA shell. Tokens from colors_and_type.css.
   ============================================================ */

.wp-list {
  background: var(--bg-page);
  padding: 64px 0 88px;
  font-family: var(--font-sans);
  color: var(--fg-primary);
}
.wp-list__inner {
  max-width: var(--site-width, 1300px);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- List header ---- */
.wp-list__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.wp-list__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-data-black);
  margin: 0;
}
.wp-list__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  white-space: nowrap;
}

/* ---- The stack ---- */
.wp-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   White-paper card
   ============================================================ */
.wp-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}
.wp-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

/* ---- Illustration panel ---- */
.wp-card__media {
  background: #F8F8FD;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  min-height: 340px;
}
.wp-card__media svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}

/* ---- Body ---- */
.wp-card__body {
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wp-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  color: var(--color-draft-white);
  background: var(--purple-400);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  margin-bottom: 22px;
}
.wp-card__title {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--color-data-black);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.wp-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0 0 22px;
  max-width: 54ch;
  text-wrap: pretty;
}
.wp-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.wp-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-primary);
  text-wrap: pretty;
}
.wp-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-arch-purple);
}

/* ---- Download link ---- */
.wp-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--color-arch-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) var(--ease-out);
}
.wp-download svg {
  width: 15px;
  height: 15px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.wp-download:hover { color: var(--purple-700); }
.wp-download:hover svg { transform: translateX(3px); }
.wp-download:focus-visible {
  outline: none;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-focus);
}

/* ============================================================
   Shared illustration styling — flat line art
   ============================================================ */
.wp-illu { color: var(--color-dark-gray); }
.wp-illu .ln { stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wp-illu .ln-soft { stroke: var(--gray-400); stroke-width: 1; fill: none; }
.wp-illu .ai-fill { fill: var(--purple-50); }
.wp-illu .node-fill { fill: var(--color-draft-white); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .wp-card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .wp-card__body { padding: 40px 40px; }
  .wp-card__title { font-size: 24px; }
}
@media (max-width: 860px) {
  .wp-card { grid-template-columns: minmax(0, 1fr); }
  .wp-card__media {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    min-height: 0;
    padding: 36px 40px;
  }
  .wp-card__media svg { max-height: 220px; max-width: 360px; }
}
@media (max-width: 600px) {
  .wp-list { padding: 48px 0 64px; }
  .wp-list__inner { padding: 0 24px; }
  .wp-list__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wp-card__body { padding: 30px 26px 32px; }
  .wp-card__title { font-size: 22px; }
  .wp-card__desc { font-size: 15px; }
}
