/* ── Critical Vulnerabilities (cv) — LIGHT MODE ─────── */
  .page-cv { background: #fafafa; }

  /* ── Hero ─────────────────────────────────────────── */
  .cv-hero {
    position: relative;
    background: #ffffff;
    color: #1b1b3c;
    padding: 100px 24px 60px;
    text-align: center;
    overflow: hidden;
  }
  .cv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 69, 98, 0.08) 0%, transparent 60%),
      radial-gradient(circle at 20% 80%, rgba(255, 69, 98, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 20%, rgba(255, 69, 98, 0.04) 0%, transparent 40%);
    pointer-events: none;
  }
  .cv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, rgba(0,0,0, 0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0,0,0, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    pointer-events: none;
  }
  .cv-hero__container { position: relative; max-width: 900px; margin: 0 auto; z-index: 1; }
  .cv-breadcrumb { font-size: 0.813rem; color: #4e4e70; margin-bottom: 20px; }
  .cv-breadcrumb a { color: #4e4e70; text-decoration: none; }
  .cv-breadcrumb a:hover { color: #FF4562; }
  .cv-breadcrumb__sep { margin: 0 8px; color: #d4d4d4; }
  .cv-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #FF4562;
    margin-bottom: 20px;
  }
  .cv-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1b1b3c;
    margin: 0 0 20px;
  }
  .cv-hero__title-accent { color: inherit; }
  .cv-hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.7;
    color: #1b1b3c;
    margin: 0 auto 32px;
    max-width: 720px;
  }
  .cv-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    font-size: 0.875rem;
    color: #404040;
  }
  .cv-hero__meta-item { display: inline-flex; align-items: center; gap: 8px; }

  /* ── Year + Month bar ──────────────────────── */
  .cv-yearbar {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px 16px;
  }
  .cv-yearbar__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .cv-years { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .cv-year-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1b1b3c;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 10px 22px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
  }
  .cv-year-btn:hover { border-color: #FF4562; color: #FF4562; }
  .cv-year-btn.is-active { background: #FF4562; border-color: #FF4562; color: #fff; }
  .cv-months {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .cv-month-btn {
    border: 1px solid transparent;
    background: #f5f5f5;
    color: #1b1b3c;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
  }
  .cv-month-btn:hover { background: #e5e5e5; color: #1b1b3c; }
  .cv-month-btn.is-active { background: #1b1b3c; color: #fff; }

  /* ── Filter bar ─────────────────────────────── */
  .cv-filters {
    max-width: 1320px;
    margin: 18px auto 0;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }
  .cv-select, .cv-search {
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 0.813rem;
    color: #404040;
    font-family: inherit;
    outline: none;
  }
  .cv-search { min-width: 280px; }
  .cv-search:focus, .cv-select:focus { border-color: #FF4562; box-shadow: 0 0 0 3px rgba(255,69,98,0.15); }
  .cv-sort {
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 0.813rem;
    color: #404040;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  }
  .cv-sort:hover { background: #f5f5f5; }

  /* ── Main layout ──────────────────────────────── */
  .cv-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px;
  }
  .cv-main__content { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

  /* ── Card base ─────────────────────────────── */
  .cv-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
  }

  /* ── Table ─────────────────────────────────── */
  .cv-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
  }
  .cv-table-head__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0;
  }
  .cv-csv {
    font-size: 0.813rem;
    color: #FF4562;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .cv-csv:hover { text-decoration: underline; }
  .cv-table-scroll { overflow-x: auto; }
  .cv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }
  .cv-table thead th {
    background: #fafafa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4e4e70;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
  }
  .cv-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #404040;
    vertical-align: top;
  }
  .cv-table tbody tr:nth-child(even) { background: #fafafa; }
  .cv-table tbody tr:hover { background: #f5f5f5; }
  .cv-table tbody tr:last-child td { border-bottom: none; }

  /* Vulnerability description cell */
  .cv-vuln {
    font-size: 0.875rem;
    color: #404040;
    line-height: 1.55;
    max-width: clamp(280px, 34vw, 460px);
    margin: 0;
  }

  /* Product cell */
  .cv-product { display: flex; flex-direction: column; gap: 3px; min-width: 160px; }
  .cv-product__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1b1b3c;
    line-height: 1.3;
  }
  .cv-product__version {
    font-size: 0.75rem;
    color: #4e4e70;
  }

  /* CVSS pill */
  .cv-cvss {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
  }
  .cv-cvss--max  { background: #b91c1c; font-weight: 900; }
  .cv-cvss--high { background: #dc2626; }
  .cv-cvss--crit { background: #ea580c; }

  /* Release date */
  .cv-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #1b1b3c;
    white-space: nowrap;
  }

  /* Reference pill */
  .cv-ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF4562;
    background: rgba(255, 69, 98, 0.08);
    border: 1px solid rgba(255, 69, 98, 0.18);
    padding: 4px 10px;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
  }
  .cv-ref:hover { background: rgba(255, 69, 98, 0.14); }

  /* ── Summary visualizations ─────────── */
  .cv-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cv-chart { padding: 28px 32px; }
  .cv-chart__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0 0 20px;
  }

  /* Vertical bar chart */
  .cv-vbar {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    align-items: end;
    height: 220px;
    padding: 0 4px;
  }
  .cv-vbar__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
  }
  .cv-vbar__bar {
    width: 100%;
    background: linear-gradient(180deg, #FF4562, #ff7a8e);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: opacity 0.15s;
  }
  .cv-vbar__bar:hover { opacity: 0.85; }
  .cv-vbar__val {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #FF4562;
  }
  .cv-vbar__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4e4e70;
    text-transform: uppercase;
  }

  /* Horizontal bar chart */
  .cv-chart__rows { display: flex; flex-direction: column; gap: 12px; }
  .cv-chart__row {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 14px;
    font-size: 0.875rem;
  }
  .cv-chart__label { color: #404040; font-weight: 500; }
  .cv-chart__bar-wrap {
    background: #f5f5f5;
    height: 18px;
    border-radius: 12px;
    overflow: hidden;
  }
  .cv-chart__bar {
    height: 100%;
    background: linear-gradient(90deg, #FF4562, #ff7a8e);
    border-radius: 12px;
  }
  .cv-chart__val {
    font-weight: 700;
    color: #FF4562;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* ── Methodology ─────────────────────────── */
  .cv-method { padding: 32px; }
  .cv-method__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1b1b3c;
    margin: 0 0 14px;
  }
  .cv-method__intro {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1b1b3c;
    margin: 0 0 28px;
    max-width: 780px;
  }
  .cv-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 28px;
  }
  .cv-step {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
  }
  .cv-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 12px;
    background: #FF4562;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 12px;
  }
  .cv-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0 0 8px;
  }
  .cv-step__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4e4e70;
    margin: 0;
  }
  .cv-step__arrow {
    display: flex;
    align-items: center;
    color: #d4d4d4;
    font-size: 1.25rem;
  }
  .cv-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .cv-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #404040;
    background: #f5f5f5;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
  }
  .cv-method__note {
    font-size: 0.813rem;
    color: #a3a3a3;
    font-style: italic;
    margin: 0;
  }

  /* ── CTA (dark) ──────────────────────────── */
  .cv-cta {
    background: #1b1b3c;
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cv-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(255, 69, 98, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 69, 98, 0.12) 0%, transparent 50%);
    pointer-events: none;
  }
  .cv-cta__inner { position: relative; max-width: 780px; margin: 0 auto; z-index: 1; }
  .cv-cta__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
  }
  .cv-cta__desc {
    font-size: 1.0625rem;
    color: #d4d4d4;
    line-height: 1.6;
    margin: 0 0 28px;
  }
  .cv-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF4562;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  }
  .cv-cta__btn:hover {
    background: #e8294a;
  }

  /* ── Responsive ──────────────────────────── */
  @media (max-width: 960px) {
    .cv-main { padding: 40px 20px; }
    .cv-charts-grid { grid-template-columns: 1fr; }
    .cv-steps { grid-template-columns: 1fr; gap: 12px; }
    .cv-step__arrow { display: none; }
    .cv-chart__row { grid-template-columns: 110px 1fr 40px; gap: 10px; }
  }
  @media (max-width: 640px) {
    .cv-hero { padding: 56px 16px 36px; }
    .cv-hero__container { max-width: 100%; }
    .cv-hero__meta { gap: 14px; font-size: 0.813rem; }
    .cv-yearbar { padding: 16px 16px 14px; }
    .cv-filters { flex-direction: column; align-items: stretch; padding: 0 16px; }
    .cv-filters .cv-search, .cv-filters .cv-select, .cv-filters .cv-sort { width: 100%; min-width: 0; }
    /* Touch targets ≥ 44px */
    .cv-search, .cv-select, .cv-sort { padding: 14px 16px; }
    .cv-year-btn { padding: 12px 20px;
      font-weight: 600;
    border-radius: 9999px;
  }
    .cv-month-btn { padding: 9px 14px;
      font-weight: 600;
    border-radius: 9999px;
  }
    .cv-cta__btn { padding: 14px 28px;
      font-weight: 600;
    border-radius: 9999px;
  }
    .cv-main { padding: 32px 16px; }
    .cv-main__content { gap: 24px; }
    .cv-method, .cv-chart { padding: 20px; }
    .cv-cta { padding: 56px 16px; }
    .cv-table-head { padding: 16px; flex-wrap: wrap; gap: 10px; }
    .cv-table thead th, .cv-table tbody td { padding: 12px 10px; font-size: 0.813rem; }
    /* Keep table columns readable inside the horizontal scroll container */
    .cv-vuln { max-width: 260px; }
    .cv-product { min-width: 120px; }
    /* Vertical bar chart: thinner gaps, smaller value labels so 12 bars fit */
    .cv-vbar { height: 160px; gap: 3px; }
    .cv-vbar__val { font-size: 0.625rem; top: -15px; }
    .cv-vbar__label { font-size: 0.5625rem; }
    /* Horizontal bar chart: narrower label column on phones */
    .cv-chart__row { grid-template-columns: 84px 1fr 32px; gap: 8px; font-size: 0.8125rem; }
  }
