/* ── Major AI Cyber Attacks (mai) — LIGHT MODE ─────── */
  .page-mai { background: #fafafa; }

  /* ── Hero ─────────────────────────────────────────── */
  .mai-hero {
    position: relative;
    background: #ffffff;
    color: #1b1b3c;
    padding: 100px 24px 60px;
    text-align: center;
    overflow: hidden;
  }
  .mai-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;
  }
  .mai-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;
  }
  .mai-hero__container { position: relative; max-width: 900px; margin: 0 auto; z-index: 1; }
  .mai-breadcrumb { font-size: 0.813rem; color: #4e4e70; margin-bottom: 20px; }
  .mai-breadcrumb a { color: #4e4e70; text-decoration: none; }
  .mai-breadcrumb a:hover { color: #FF4562; }
  .mai-breadcrumb__sep { margin: 0 8px; color: #d4d4d4; }
  .mai-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #FF4562;
    margin-bottom: 20px;
  }
  .mai-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;
  }
  .mai-hero__title-accent { color: inherit; }
  .mai-hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.7;
    color: #1b1b3c;
    margin: 0 auto 32px;
    max-width: 720px;
  }
  .mai-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    font-size: 0.875rem;
    color: #404040;
  }
  .mai-hero__meta-item { display: inline-flex; align-items: center; gap: 8px; }

  /* ── Year + Quarter bar ──────────────────────── */
  .mai-yearbar {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px 16px;
  }
  .mai-yearbar__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .mai-years { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .mai-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: all 0.15s;
    font-family: inherit;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  .mai-year-btn:hover { background: #f5f5f5; }
  .mai-year-btn.is-active { background: #FF4562; border-color: #FF4562; color: #fff; }
  .mai-quarters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .mai-quarter-btn {
    border: 1px solid transparent;
    background: #f5f5f5;
    color: #1b1b3c;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 16px;
    padding: 7px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
  }
  .mai-quarter-btn:hover { background: #e5e5e5; color: #1b1b3c; }
  .mai-quarter-btn.is-active { background: #1b1b3c; color: #fff; }

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

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

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

  /* ── Table ─────────────────────────────────── */
  .mai-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
  }
  .mai-table-head__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0;
  }
  .mai-csv {
    font-size: 0.813rem;
    color: #FF4562;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .mai-csv:hover { text-decoration: underline; }
  .mai-table-scroll { overflow-x: auto; }
  .mai-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }
  .mai-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;
  }
  .mai-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #404040;
    vertical-align: top;
  }
  .mai-table tbody tr:nth-child(even) { background: #fafafa; }
  .mai-table tbody tr:hover { background: #f5f5f5; }
  .mai-table tbody tr:last-child td { border-bottom: none; }

  .mai-table { min-width: 1220px; }
  .mai-table-head__count { font-weight: 500; color: #4e4e70; }

  /* Target cell */
  .mai-target { display: flex; flex-direction: column; gap: 4px; min-width: 140px; max-width: 180px; }
  .mai-target__name {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1b1b3c;
    line-height: 1.3;
  }
  .mai-target__ico { flex: none; display: inline-flex; margin-top: 2px; color: #4e4e70; }
  .mai-target__sub {
    font-size: 0.813rem;
    color: #4e4e70;
    line-height: 1.45;
    padding-left: 22px;
  }

  /* Details + role */
  .mai-details {
    font-size: 0.875rem;
    color: #404040;
    line-height: 1.55;
    min-width: 270px;
    max-width: 400px;
    margin: 0;
  }
  .mai-role {
    font-size: 0.875rem;
    color: #1b1b3c;
    line-height: 1.5;
    min-width: 160px;
    max-width: 210px;
    margin: 0;
  }

  /* Industry pills */
  .mai-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: 12px;
    max-width: 170px;
  }
  .mai-pill--healthcare { background: #ecfdf5; color: #047857; }
  .mai-pill--finance    { background: #eff6ff; color: #1d4ed8; }
  .mai-pill--tech       { background: #f5f3ff; color: #6d28d9; }
  .mai-pill--telecom    { background: #fef3c7; color: #b45309; }
  .mai-pill--retail     { background: #fce7f3; color: #be185d; }
  .mai-pill--education  { background: #ccfbf1; color: #0f766e; }
  .mai-pill--crypto     { background: #fef9c3; color: #a16207; }
  .mai-pill--gov        { background: #fee2e2; color: #b91c1c; }
  .mai-pill--cross      { background: #cffafe; color: #0e7490; }
  .mai-pill--unknown    { background: #f5f5f5; color: #404040; }

  /* AI system chips */
  .mai-ai {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: 12px;
    max-width: 180px;
  }
  .mai-ai--gemini  { background: #eff6ff; color: #1d4ed8; }
  .mai-ai--openai  { background: #ecfdf5; color: #047857; }
  .mai-ai--claude  { background: #ffedd5; color: #c2410c; }
  .mai-ai--other   { background: #f5f3ff; color: #6d28d9; }
  .mai-ai--unknown { background: #f5f5f5; color: #404040; }
  .mai-ai--none    { background: #fef9c3; color: #a16207; }
  .mai-note {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #4e4e70;
    max-width: 190px;
  }

  /* Threat actor tag */
  .mai-group {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 190px;
  }
  .mai-group--named   { background: #1b1b3c; color: #fff; }
  .mai-group--unknown { background: #f5f5f5; color: #4e4e70; }

  /* Source link */
  .mai-src {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #1b1b3c;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 1px;
  }
  .mai-src:hover { color: #FF4562; border-color: #FF4562; }

  .mai-quarter-btn:disabled { opacity: 0.4; cursor: not-allowed; }
  .mai-quarter-btn:disabled:hover { background: #f5f5f5; }
  .mai-quarter-btn__n { margin-left: 6px; font-weight: 500; opacity: 0.7; }

  .mai-empty td {
    padding: 48px 16px !important;
    text-align: center;
    color: #4e4e70;
    font-size: 0.9375rem;
  }
  .mai-reset {
    border: none;
    background: none;
    padding: 0;
    margin-left: 6px;
    font: inherit;
    font-weight: 600;
    color: #1b1b3c;
    text-decoration: underline;
    cursor: pointer;
  }

  .mai-source-pill__n {
    margin-left: 4px;
    font-weight: 500;
    color: #4e4e70;
  }

  /* ── Methodology ─────────────────────────── */
  .mai-method { padding: 32px; }
  .mai-method__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1b1b3c;
    margin: 0 0 14px;
  }
  .mai-method__intro {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1b1b3c;
    margin: 0 0 28px;
    max-width: 780px;
  }
  .mai-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 28px;
  }
  .mai-step {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 20px;
  }
  .mai-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;
  }
  .mai-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0 0 8px;
  }
  .mai-step__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4e4e70;
    margin: 0;
  }
  .mai-step__arrow {
    display: flex;
    align-items: center;
    color: #d4d4d4;
    font-size: 1.25rem;
  }
  .mai-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .mai-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;
  }
  .mai-method__note {
    font-size: 0.813rem;
    color: #a3a3a3;
    font-style: italic;
    margin: 0;
  }

  /* ── CTA (dark) ──────────────────────────── */
  .mai-cta {
    background: #1b1b3c;
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .mai-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;
  }
  .mai-cta__inner { position: relative; max-width: 780px; margin: 0 auto; z-index: 1; }
  .mai-cta__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
  }
  .mai-cta__desc {
    font-size: 1.0625rem;
    color: #d4d4d4;
    line-height: 1.6;
    margin: 0 0 28px;
  }
  .mai-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF4562;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 20px;
    padding: 12px 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);
  }
  .mai-cta__btn:hover {
    background: #e8294a;
  }

  /* ── Stacked rows on small screens ───────── */
  @media (max-width: 760px) {
    .mai-table { min-width: 0; }
    .mai-table thead { display: none; }
    .mai-table, .mai-table tbody, .mai-table tr, .mai-table td { display: block; width: 100%; }
    .mai-table tbody tr { padding: 18px 16px; border-bottom: 1px solid #e5e5e5; }
    .mai-table tbody tr:nth-child(even) { background: #fff; }
    .mai-table tbody td { padding: 0 !important; border: none; margin-top: 12px; }
    .mai-table tbody td:first-child { margin-top: 0; }
    .mai-table tbody td:not(:first-child)::before {
      content: attr(data-label);
      display: block;
      margin-bottom: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      color: #4e4e70;
    }
    .mai-target, .mai-details, .mai-role, .mai-note, .mai-pill, .mai-ai, .mai-group { max-width: none; min-width: 0; }
    .mai-empty td::before { display: none !important; }
  }

  /* ── Responsive ──────────────────────────── */
  @media (max-width: 960px) {
    .mai-main { padding: 40px 20px; }
    .mai-steps { grid-template-columns: 1fr; gap: 12px; }
    .mai-step__arrow { display: none; }
  }
  @media (max-width: 640px) {
    .mai-hero { padding: 72px 16px 40px; }
    .mai-hero__meta { gap: 14px; font-size: 0.813rem; }
    .mai-yearbar { padding: 16px 16px 14px; }
    .mai-filters {
      flex-direction: column;
      align-items: stretch;
      padding: 0 16px;
    }
    .mai-filters .mai-search, .mai-filters .mai-select { width: 100%; min-width: 0; }
    .mai-select, .mai-search { padding: 12px 16px; min-height: 44px; }
    .mai-quarter-btn { padding: 9px 16px;
      font-weight: 600;
    border-radius: 9999px;
  }
    .mai-method { padding: 20px; }
    .mai-table thead th, .mai-table tbody td { padding: 12px 10px; font-size: 0.813rem; }
    .mai-company__name { font-size: 0.9375rem; }
    .mai-cta { padding: 56px 16px; }
    .mai-cta__btn { width: 100%; justify-content: center;
      font-weight: 600;
    border-radius: 9999px;
  }
  }
