/* ── Blog Article (ba) — LIGHT MODE ─────────────── */

  /* Reading progress bar */
  .ba-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: #FF4562;
    z-index: 1000;
    transition: width 0.05s linear;
  }

  /* ── Hero (16:9 cover image only) ────────────────── */
  .ba-hero {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 20px 24px 16px;
    overflow: hidden;
  }
  /* Ambient backdrop: the cover image itself, zoomed + heavily
     blurred + faded, melting into the white page at the edges.
     The img src is synced from the cover automatically (JS). */
  .ba-hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .ba-hero__ambient img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35);
    filter: blur(32px) saturate(1.2);
    opacity: 1;
  }
  .ba-hero__ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 70% dark scrim (brand navy #1b1b3c, never pure black) */
    background: rgba(27, 27, 60, 0.7);
  }
  .ba-hero__container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
  }
  .ba-hero__head {
    max-width: 920px;
    margin: 0 auto 32px;
    text-align: center;
  }
  .ba-hero__eyebrow {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF4562;
    margin-bottom: 18px;
  }
  .ba-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.875rem, 3.6vw, 2.875rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1b1b3c;
    margin: 0 0 14px;
  }
  .ba-hero__tag {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 500;
    line-height: 1.55;
    color: #1b1b3c;
    margin: 0 auto;
    max-width: 760px;
  }

  /* 16:9 image cover with rounded corners */
  .ba-hero__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #1b1b3c;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
  }
  .ba-hero__cover img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .ba-hero__cover-badge {
    position: absolute; top: 18px; left: 20px;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-size: 0.6875rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  .ba-hero__cover-badge::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: #FF4562;
  }

  /* ── 2-col body layout (content left, sidebar right) ── */
  .ba-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
  .ba-body { grid-column: 1; grid-row: 1; }
  .ba-sidebar { grid-column: 2; grid-row: 1; }
  .ba-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .ba-body { min-width: 0; }

  /* Sidebar cards */
  .ba-card-s {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 20px 22px;
  }
  .ba-card-s__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  .ba-card-s__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .ba-card-s__title svg { width: 16px; height: 16px; color: #1b1b3c; }
  .ba-toc-toggle {
    background: #FF4562;
    border: none;
    border-radius: 9999px;
    width: 32px; height: 32px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background 0.15s;
  }
  .ba-toc-toggle:hover { background: #e8294a; }

  .ba-toc-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .ba-toc.is-collapsed .ba-toc-list { display: none; }
  .ba-toc-list a {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #404040;
    text-decoration: none;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
    transition: color 0.15s, border-color 0.15s;
  }
  .ba-toc-list a:hover,
  .ba-toc-list a.is-active {
    color: #FF4562;
    border-color: #FF4562;
  }

  /* Related list in sidebar */
  .ba-related-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ba-related-list a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    text-decoration: none;
    align-items: center;
  }
  .ba-related-list__thumb {
    width: 96px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
  }
  .ba-related-list__title {
    font-size: 0.813rem;
    font-weight: 600;
    color: #1b1b3c;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
  }
  .ba-related-list a:hover .ba-related-list__title { color: inherit; }
  .ba-related-list__date {
    font-size: 0.688rem;
    color: #a3a3a3;
    margin: 0;
  }

  /* DW mini form card */
  .ba-dw__label {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1b1b3c;
    margin-bottom: 10px;
  }
  .ba-dw__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b3c;
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.3;
  }
  .ba-dw__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .ba-dw__input {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.813rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    color: #1b1b3c;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .ba-dw__input:focus {
    border-color: #FF4562;
    box-shadow: 0 0 0 3px rgba(255,69,98,0.15);
  }
  .ba-dw__btn {
    padding: 10px 18px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #fff;
    background: #FF4562;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background 0.15s;
  }
  .ba-dw__btn:hover { background: #e8294a; }

  /* Hacker's Eyes promo card */
  .ba-promo {
    position: relative;
    border-radius: 16px;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, #fff 0%, #fef1f3 55%, #ffe4e8 100%);
    border: 1px solid #fbd5dc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
  }
  .ba-promo__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #1b1b3c;
    line-height: 1.25;
    margin: 0;
  }
  .ba-promo__visual {
    position: relative;
    flex: 1;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
      linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 100%);
    overflow: hidden;
  }
  .ba-promo__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(90deg, transparent 0 18px, rgba(163,163,163,0.35) 18px 19px),
      repeating-linear-gradient(0deg, transparent 0 12px, rgba(163,163,163,0.3) 12px 13px);
    opacity: 0.6;
  }
  .ba-promo__reticle {
    position: relative;
    z-index: 2;
    width: 72px; height: 72px;
    color: #FF4562;
  }
  .ba-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    font-size: 0.813rem;
    font-weight: 500;
    color: #FF4562;
    background: #fff;
    border: 1px solid rgba(255,69,98,0.3);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background 0.2s, border-color 0.2s;
  }
  .ba-promo__btn:hover {
    background: #fff1f3;
    border-color: rgba(255,69,98,0.5);
  }

  /* ── Main body header (breadcrumb + meta) ─────── */
  .ba-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    color: #4e4e70;
    margin-bottom: 16px;
  }
  .ba-breadcrumb a { color: #4e4e70; text-decoration: none; }
  .ba-breadcrumb a:hover { color: #FF4562; }
  .ba-breadcrumb__sep { color: #d4d4d4; font-size: 0.75rem; }
  .ba-breadcrumb__current { color: #FF4562; font-weight: 600; }

  .ba-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.813rem;
    color: #4e4e70;
    margin-bottom: 28px;
  }
  .ba-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .ba-meta svg { width: 14px; height: 14px; color: #a3a3a3; }

  /* Article body */
  .ba-h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #1b1b3c;
    margin: 0 0 24px;
  }
  .ba-article {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #404040;
    max-width: 72ch;
  }
  .ba-article p { margin: 0 0 22px; }
  .ba-article h2 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 1.625rem;
    font-weight: 800;
    color: #1b1b3c;
    margin: 48px 0 18px;
    padding-left: 14px;
    border-left: 3px solid #FF4562;
    line-height: 1.25;
    letter-spacing: -0.01em;
    scroll-margin-top: 100px;
  }
  .ba-article h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 36px 0 14px;
    line-height: 1.3;
    scroll-margin-top: 100px;
  }
  .ba-article ol { margin: 0 0 24px; padding-left: 22px; }
  .ba-article ol li { margin-bottom: 12px; line-height: 1.7; }
  .ba-article strong { color: #1b1b3c; }

  .ba-link {
    color: #FF4562;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,69,98,0.3);
    transition: text-decoration-color 0.15s;
  }
  .ba-link:hover { text-decoration-color: #FF4562; }
  .ba-bold { font-weight: 700; color: #1b1b3c; }

  /* Charts */
  .ba-chart {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 24px 0;
  }
  .ba-chart__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0 0 18px;
  }
  .ba-chart__rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ba-chart__row {
    display: grid;
    grid-template-columns: minmax(140px, 40%) 1fr auto;
    align-items: center;
    gap: 14px;
    font-size: 0.875rem;
  }
  .ba-chart__label { color: #404040; }
  .ba-chart__bar-wrap {
    background: #fafafa;
    height: 22px;
    border-radius: 12px;
    overflow: hidden;
  }
  .ba-chart__bar {
    height: 100%;
    background: linear-gradient(90deg, #FF4562, #ff7a8e);
    border-radius: 12px;
  }
  .ba-chart__val {
    font-weight: 700;
    font-size: 1rem;
    color: #FF4562;
    min-width: 52px;
    text-align: right;
  }
  .ba-chart__axis {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0;
    padding-left: calc(40% + 14px);
    padding-right: 52px;
    font-size: 0.688rem;
    color: #a3a3a3;
  }
  .ba-chart__caption {
    display: block;
    text-align: center;
    font-size: 0.813rem;
    font-style: italic;
    color: #a3a3a3;
    margin-top: 14px;
  }

  /* Tags */
  .ba-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 24px;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  .ba-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1b1b3c;
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }
  .ba-tag:hover { color: #fff; background: #FF4562; }

  /* Author bio */
  .ba-author {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    margin: 24px 0;
  }
  .ba-author__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4562, #e8294a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
  }
  .ba-author__name { font-size: 1rem; font-weight: 700; color: #1b1b3c; margin: 0 0 2px; }
  .ba-author__role { font-size: 0.813rem; color: #4e4e70; margin: 0 0 10px; }
  .ba-author__bio { font-size: 0.875rem; color: #1b1b3c; line-height: 1.6; margin: 0; }

  /* Related (bottom) */
  .ba-related {
    background: #fafafa;
    padding: 72px 24px;
  }
  .ba-related__container { max-width: 1200px; margin: 0 auto; }
  .ba-related__heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1b1b3c;
    margin: 0 0 32px;
    text-align: center;
  }
  .ba-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .ba-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
  }
  .ba-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10);
    border-color: rgba(255,69,98,0.3);
  }
  .ba-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #fff;
    overflow: hidden;
  }
  .ba-card__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .ba-card__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .ba-card__brand {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    z-index: 2;
  }
  .ba-card__brand svg { width: 12px; height: 12px; }
  .ba-card__cover-title {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    line-height: 1.25;
  }
  .ba-card__body { padding: 14px 16px 18px; flex: 1; }
  .ba-card__date { font-size: 0.688rem; color: #4e4e70; margin: 0 0 6px; }
  .ba-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1b1b3c;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ba-card:hover .ba-card__title { color: inherit; }

  /* Gradient palettes */
  .ba-grad-cybernews { background: linear-gradient(135deg, #ef4444, #ff4562); }
  .ba-grad-cti       { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
  .ba-grad-threat    { background: linear-gradient(135deg, #7c3aed, #a855f7); }
  .ba-grad-drp       { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
  .ba-grad-practice  { background: linear-gradient(135deg, #f59e0b, #f97316); }
  .ba-grad-darkweb   { background: linear-gradient(135deg, #ec4899, #f43f5e); }

  /* Newsletter CTA */
  .cps-cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, #1b1b3c 0%, #2a2a52 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cps-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;
  }
  .cps-cta__container { position: relative; max-width: 720px; margin: 0 auto; z-index: 1; }
  .cps-cta__heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.25;
  }
  .cps-cta__desc {
    font-size: 1.063rem;
    line-height: 1.7;
    color: #d4d4d4;
    margin: 0 auto 36px;
    max-width: 560px;
  }
  .cps-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF4562;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  }
  .cps-cta__btn:hover {
    background: #e8294a;
  }

  /* Responsive */
  @media (max-width: 960px) {
    .ba-layout { grid-template-columns: 1fr; gap: 32px; padding: 20px 20px 64px; }
    /* Article reads first on stacked layout; sidebar follows below */
    .ba-body { grid-column: 1; grid-row: 1; }
    .ba-sidebar { grid-column: 1; grid-row: 2; position: static; top: auto; }
    .ba-related__grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .ba-hero { padding: 36px 16px 24px; }
    .ba-hero__cover { border-radius: 20px; }
    .ba-layout { padding: 20px 16px 56px; gap: 28px; }
    .ba-chart { padding: 20px 16px; }
    .ba-chart__row { grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; }
    .ba-chart__val { min-width: 42px; }
    .ba-chart__axis { display: none; }
    .ba-related { padding: 56px 16px; }
    .ba-related__grid { grid-template-columns: 1fr; }
    /* Touch targets ≥44px for sidebar form */
    .ba-dw__input { padding: 12px 16px; font-size: 1rem; }
    .ba-dw__btn { padding: 13px 18px;
      font-weight: 600;
    border-radius: 9999px;
  }
    .ba-promo__btn { padding: 13px 18px; }
    .ba-author { grid-template-columns: 56px 1fr; gap: 14px; padding: 20px; }
    .ba-author__avatar { width: 56px; height: 56px; }
    /* Trim large CTA padding on phones */
    .cps-cta { padding: 64px 16px; }
  }
