/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #0057FF;
  --cyan:      #00C2FF;
  --navy:      #0A1628;
  --navy-2:    #0D1E35;
  --navy-3:    #1A2E4A;
  --surface:   #F4F6FA;
  --border:    #e2e6ee;
  --text:      #0A1628;
  --text-muted:#6b7a8d;
  --footer-bg: #060e1a;
  --header-h:  112px; /* ticker(32) + topbar(68) + nav(44) - used for sticky offset */
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Reading progress bar ─────────────────────────────────────────────────── */
#reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Img placeholder ──────────────────────────────────────────────────────── */
.img-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #e8edf5 0px, #e8edf5 8px,
    #dde3ef 8px, #dde3ef 16px
  );
}
.img-placeholder--dark {
  background: repeating-linear-gradient(
    45deg,
    #0d1e35 0px, #0d1e35 8px,
    #0a1628 8px, #0a1628 16px
  );
}

/* ── Category tag badge ───────────────────────────────────────────────────── */
.cat-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-color, var(--accent));
  background: color-mix(in srgb, var(--tag-color, var(--accent)) 12%, transparent);
  padding: 3px 9px;
  border-radius: 3px;
}
.cat-tag--sm { font-size: 10px; padding: 2px 7px; }

/* ── Breaking ticker ──────────────────────────────────────────────────────── */
.ticker {
  background: var(--accent);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ticker__badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: #fff;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker__text {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
}

/* ── Site header — light (homepage) ──────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.site-header__logo-text { line-height: 1; }
.site-header__logo-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.site-header__logo-name span { color: var(--accent); }
.site-header__logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #8899aa;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.btn-newsletter {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-newsletter:hover { opacity: 0.88; }

.site-header__nav {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header__nav::-webkit-scrollbar { display: none; }
.site-header__nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 400;
  color: #5a6478;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.site-header__nav a:hover,
.site-header__nav a.current-menu-item,
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Site header — dark (single posts) ────────────────────────────────────── */
.site-header--dark {
  background: var(--navy);
  border-bottom-color: var(--navy-3);
}
.site-header--dark .site-header__logo-name { color: #fff; }
.site-header--dark .site-header__logo-sub { color: #4a6a8a; }
.site-header--dark .site-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8899aa;
}
.site-header--dark .site-header__breadcrumb a { color: var(--accent); }
.site-header--dark .site-header__breadcrumb span { color: #4a6a8a; }

/* ── Hero — Split (text left / image right) ───────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 520px;
  overflow: hidden;
  background: var(--navy);
}
.hero-split__text {
  display: flex;
  align-items: center;
  padding: 48px 56px;
  background: var(--navy);
}
.hero-split__inner { max-width: 540px; }
.hero-split__tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-split__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.hero-split__title a { color: inherit; }
.hero-split__title a:hover { color: var(--cyan); }
.hero-split__excerpt {
  font-size: 15px;
  color: #8aa0be;
  line-height: 1.65;
  margin-bottom: 24px;
}
.hero-split__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-cta:hover { background: #fff; color: var(--navy); }
.hero-split__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #4a6a8a;
}
.hero-split__image {
  overflow: hidden;
  position: relative;
}
.hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-split__image:hover img { transform: scale(1.03); }
.hero-split__image .img-placeholder { width: 100%; height: 100%; }

/* ── Section header ───────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-head__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: #99a8ba;
}
.section-head__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.section-head__link:hover { text-decoration: underline; }

/* ── Main grid layout (homepage) ─────────────────────────────────────────── */
.homepage-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
}
.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Article card (outlined) ─────────────────────────────────────────────── */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(10,22,40,0.10);
}
.article-card__img {
  display: block;
  height: 170px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.article-card__img img,
.article-card__img .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__img-tag {
  position: absolute;
  top: 12px;
  left: 12px;
}
.article-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.article-card__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.article-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  flex: 1;
  transition: color 0.15s;
}
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f2f6;
  padding-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #99a8ba;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-widget__title {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-widget__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.sidebar-widget__title span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Topics widget */
.topics-list { padding: 8px 0; }
.topics-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #f4f6fa;
  cursor: pointer;
}
.topics-list__item:last-child { border-bottom: none; }
.topics-list__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}
.topics-list__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.topics-list__count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: #f4f6fa;
  color: #8899aa;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Latest articles widget */
.latest-list { padding: 6px 0; }
.latest-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 20px;
  border-bottom: 1px solid #f4f6fa;
  cursor: pointer;
}
.latest-list__item:last-child { border-bottom: none; }
.latest-list__thumb {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.latest-list__thumb img,
.latest-list__thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.latest-list__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.latest-list__title {
  font-size: 12.5px;
  font-weight: 500;
  color: #1e3050;
  line-height: 1.4;
  text-wrap: pretty;
}
.latest-list__time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #99a8ba;
  margin-top: 5px;
}

/* Newsletter CTA widget */
.newsletter-cta {
  background: var(--navy);
  border-radius: 8px;
  padding: 24px 20px;
  border: 1px solid var(--navy-3);
}
.newsletter-cta__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.newsletter-cta__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.newsletter-cta__desc {
  font-size: 12.5px;
  color: #4a6a8a;
  line-height: 1.55;
  margin-bottom: 18px;
}
.newsletter-cta__input {
  width: 100%;
  background: var(--navy-2);
  border: 1px solid #1e3a5f;
  border-radius: 5px;
  padding: 9px 12px;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
}
.newsletter-cta__input:focus { border-color: var(--accent); }
.newsletter-cta__btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s;
}
.newsletter-cta__btn:hover { opacity: 0.88; }

/* ── Category strips ──────────────────────────────────────────────────────── */
.category-strips {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.category-strip { margin-bottom: 40px; }
.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.strip-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.strip-card:hover { box-shadow: 0 4px 16px rgba(10,22,40,0.08); }
.strip-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.strip-card__thumb img,
.strip-card__thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.strip-card__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}
.strip-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.38;
  margin-bottom: 6px;
  text-wrap: pretty;
}
.strip-card__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #99a8ba;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--navy-3);
  margin-top: 60px;
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
  margin-bottom: 0;
}
.site-footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.site-footer__brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-footer__brand-name span { color: var(--accent); }
.site-footer__brand-desc {
  font-size: 12.5px;
  color: #3a5a7a;
  line-height: 1.65;
}
.site-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer__col-list li { margin-bottom: 8px; }
.site-footer__col-list a {
  font-size: 12.5px;
  color: #3a5a7a;
  transition: color 0.15s;
}
.site-footer__col-list a:hover { color: #fff; }
.site-footer__bar {
  border-top: 1px solid var(--navy-3);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer__copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: #2a4a6a;
}

/* Footer minimal (single post) */
.site-footer--minimal .site-footer__main { display: none; }
.site-footer--minimal { margin-top: 60px; }
.site-footer--minimal .site-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer--minimal .footer-mini-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer--minimal .footer-mini-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.site-footer--minimal .footer-mini-name span { color: var(--accent); }
.site-footer--minimal .footer-back {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.site-footer--minimal .footer-back:hover { text-decoration: underline; }

/* ── Article hero split (single) ─────────────────────────────────────────── */
.article-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  background: var(--navy);
}
.article-hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: var(--navy);
}
.article-hero-split__image {
  overflow: hidden;
  position: relative;
}
.article-hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-hero-split__image:hover img { transform: scale(1.03); }
.article-hero-split__image .img-placeholder { width: 100%; height: 100%; }

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-hero__date,
.article-hero__readtime {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #3a5a7a;
}
.article-hero__sep { color: var(--navy-3); }
.article-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.article-hero__excerpt {
  font-size: 16px;
  color: #6a86a0;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 24px;
}
.article-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-hero__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.article-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__author-name {
  font-size: 13px;
  font-weight: 600;
  color: #cdd5e0;
}
.article-hero__author-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #3a5a7a;
}


/* ── Article 3-column layout ──────────────────────────────────────────────── */
.article-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 40px;
}

/* ── TOC ──────────────────────────────────────────────────────────────────── */
.toc {
  position: sticky;
  top: 84px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  align-self: start;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.toc__header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc__header::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}
.toc__header span {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc__body { padding: 10px 16px 16px; }
.toc__link {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 12.5px;
  color: #5a6a7a;
  border-left: 2px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.toc__link:hover { color: var(--accent); border-left-color: var(--accent); }
.toc__link.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc__link--h3 { padding-left: 22px; font-size: 12px; }

/* ── Article body typography ──────────────────────────────────────────────── */
.article-body p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  line-height: 1.78;
  color: #1e2d42;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.article-body h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 42px 0 16px;
  letter-spacing: -0.02em;
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 30px 0 12px;
  scroll-margin-top: 90px;
}
.article-body ul,
.article-body ol {
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1e2d42;
  padding-left: 24px;
  margin-bottom: 22px;
  list-style: revert;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 600; color: var(--navy); }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 16px 24px;
  background: #eef3ff;
  border-radius: 0 6px 6px 0;
}
.article-body blockquote p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #334155;
  margin-bottom: 0;
}
.article-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: #eef1f7;
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--accent);
}
.article-body pre {
  background: var(--navy);
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 22px;
}
.article-body pre code {
  background: none;
  color: #8aa0be;
  font-size: 14px;
  padding: 0;
}

/* Callout box */
.article-body .wp-block-callout,
.article-body .callout {
  background: var(--navy);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .callout-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.article-body .callout p {
  font-family: 'IBM Plex Sans', sans-serif;
  color: #8aa0be;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Share bar ────────────────────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.share-bar__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #99a8ba;
  letter-spacing: 0.06em;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  color: #5a6a7a;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s;
  font-family: 'IBM Plex Sans', sans-serif;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn--copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Author block ─────────────────────────────────────────────────────────── */
.author-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin: 40px 0;
}
.author-block__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-block__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-block__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.author-block__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.author-block__bio {
  font-size: 12.5px;
  color: #5a6a7a;
  line-height: 1.55;
}

/* ── Related articles ─────────────────────────────────────────────────────── */
.related-articles {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 2px solid var(--navy);
}
.related-articles__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: block;
}
.related-card:hover { box-shadow: 0 4px 20px rgba(10,22,40,0.10); }
.related-card__img {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.related-card__img img,
.related-card__img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.related-card__img-tag { position: absolute; top: 10px; left: 10px; }
.related-card__body { padding: 16px 18px 18px; }
.related-card__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.related-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.38;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.related-card:hover .related-card__title { color: var(--accent); }
.related-card__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #99a8ba;
}

/* ── Article sidebar ──────────────────────────────────────────────────────── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}

/* Tags widget */
.tags-widget { padding: 18px 20px; }
.tags-widget__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tags-widget__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  background: #f4f6fa;
  color: #5a6a7a;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }

/* More-in-category widget */
.more-widget { overflow: hidden; }
.more-widget__header {
  background: var(--navy);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.more-widget__header::before {
  content: '';
  display: block;
  width: 3px;
  height: 15px;
  background: var(--accent);
  border-radius: 2px;
}
.more-widget__header span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.more-widget__list { padding: 6px 0; }
.more-widget__item {
  padding: 11px 18px;
  border-bottom: 1px solid #f4f6fa;
  cursor: pointer;
  display: block;
}
.more-widget__item:last-child { border-bottom: none; }
.more-widget__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
.more-widget__title {
  font-size: 12.5px;
  font-weight: 500;
  color: #1e3050;
  line-height: 1.4;
  text-wrap: pretty;
}
.more-widget__item:hover .more-widget__title { color: var(--accent); }
.more-widget__time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #99a8ba;
  margin-top: 5px;
}

/* ── Archive page ─────────────────────────────────────────────────────────── */
.archive-header {
  background: var(--navy);
  padding: 48px 0 40px;
  margin-bottom: 40px;
}
.archive-header__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.archive-header__title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── 404 page ─────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.not-found__code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 96px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.not-found__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: #5a6a7a;
  background: #fff;
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── .cved-related — Related Coverage block injected by pipeline ──────────── */
/* Overrides dark-theme CSS injected inline by cvedaily-schema.php mu-plugin  */
.article-body .cved-related,
.article-body .related-posts {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  padding: 20px 24px !important;
  margin: 36px 0 0 !important;
  color: var(--navy) !important;
}
.article-body .cved-related h3,
.article-body .related-posts h3 {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--navy) !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border) !important;
  scroll-margin-top: 0;
}
.article-body .cved-related ul,
.article-body .related-posts ul {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13.5px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  color: var(--navy) !important;
}
.article-body .cved-related li,
.article-body .related-posts li {
  margin-bottom: 8px !important;
  padding-left: 12px !important;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13.5px !important;
}
.article-body .cved-related li:last-child,
.article-body .related-posts li:last-child { margin-bottom: 0 !important; }
.article-body .cved-related li:hover,
.article-body .related-posts li:hover { border-left-color: var(--accent); }
.article-body .cved-related a,
.article-body .related-posts a {
  color: var(--navy) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.15s;
}
.article-body .cved-related a:hover,
.article-body .related-posts a:hover { color: var(--accent) !important; }

/* ── Article body — Tables ────────────────────────────────────────────────── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(10,22,40,0.08);
  border: 1px solid var(--border);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body thead tr {
  background: var(--navy);
}
.article-body thead th {
  padding: 13px 18px;
  text-align: left;
  font-weight: 700;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
}
.article-body tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.article-body tbody tr:nth-child(odd)  { background: #fff; }
.article-body tbody tr:nth-child(even) { background: var(--surface); }
.article-body tbody tr:hover           { background: #eef3ff; }
.article-body tbody tr:last-child      { border-bottom: none; }
.article-body tbody td {
  padding: 11px 18px;
  color: #4a5a6a;
  vertical-align: middle;
  border: none;
}
.article-body tbody td:first-child {
  color: var(--navy);
  font-weight: 600;
}
.article-body table a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,87,255,0.3);
  transition: border-color 0.15s;
}
.article-body table a:hover { border-bottom-color: var(--accent); }

/* ── WordPress admin bar compensation ────────────────────────────────────── */
/* Adjusts sticky header and TOC top when the WP admin bar is visible        */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .toc         { top: 116px; }
body.admin-bar #reading-progress { top: 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablet)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Article layout: hide TOC column, keep content + sidebar */
  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }
  .toc { display: none; }

  /* Article grid: 2 columns */
  .article-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2×2 */
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Strip grid: already 2 col, no change needed */
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 768px (mobile)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Container */
  .container { padding: 0 16px; }

  /* ── Homepage hero split → stack ── */
  .hero-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-split__text {
    padding: 36px 24px;
    order: 1;
  }
  .hero-split__image {
    order: 2;
    height: 260px;
  }
  .hero-split__title { font-size: 28px; }
  .hero-split__excerpt { font-size: 14px; }

  /* ── Article hero split → stack ── */
  .article-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .article-hero-split__text {
    padding: 36px 24px;
    order: 1;
  }
  .article-hero-split__image {
    order: 2;
    height: 260px;
  }
  .article-hero__title { font-size: 28px; }
  .article-hero__excerpt { font-size: 14px; }

  /* ── Homepage grid → single column ── */
  .homepage-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  /* ── Article grid → 2 columns ── */
  .article-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Article layout → single column, sidebar below ── */
  .article-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }
  .article-sidebar { display: none; }

  /* ── Related + archive grids → 2 cols ── */
  .related-grid    { grid-template-columns: repeat(2, 1fr); }
  .archive-grid    { grid-template-columns: repeat(2, 1fr); }

  /* ── Footer → 2 cols ── */
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 0 28px; }

  /* ── Header ── */
  .site-header__logo-sub { display: none; }
  .site-header__nav { height: auto; padding: 6px 0; }

  /* ── Homepage section head ── */
  .homepage-main { padding: 24px 16px; }

  /* ── Category strips ── */
  .category-strips { padding: 0 16px; }
  .strip-grid { grid-template-columns: 1fr; }

  /* ── Reading progress + TOC ── */
  #reading-progress { display: none; }

  /* ── Share bar ── */
  .share-bar { flex-wrap: wrap; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 480px (mobile portrait)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Heros */
  .hero-split__text        { padding: 28px 16px; }
  .hero-split__title       { font-size: 24px; }
  .hero-split__image       { height: 220px; }
  .article-hero-split__text { padding: 28px 16px; }
  .article-hero__title     { font-size: 24px; }
  .article-hero-split__image { height: 220px; }

  /* Grids → single column */
  .article-grid  { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .archive-grid  { grid-template-columns: 1fr; }
  .strip-grid    { grid-template-columns: 1fr; }

  /* Footer → single column */
  .site-footer__main { grid-template-columns: 1fr; }

  /* Newsletter CTA */
  .newsletter-cta { padding: 20px 16px; }

  /* Ticker text truncation tighter */
  .ticker__text { max-width: calc(100vw - 100px); }
}
