/*
Theme Name: AI Insider
Theme URI: https://aiinsider.ru
Author: AI Insider
Description: Editorial intelligence theme for AI Insider: paper layer, machine layer, provenance-first publishing.
Version: 0.7.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: aiinsider
*/

:root {
  --paper: #f0f1f3;
  --paper-night: #e4e6e9;
  --ink: #15181d;
  --machine: #0e1420;
  --machine-2: #131b2c;
  --phosphor: #ffb300;
  --link: #2547c9;
  --smoke: #6f7785;
  --muted: #6f7785;
  --line: rgba(21, 24, 29, .16);
  --ok: #2fbf71;
  --multi: #3e8bff;
  --single: #e8a13c;
  --rumor: #8b93a1;
  --font-display: Piazzolla, Georgia, serif;
  --font-body: "Golos Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-machine: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1280px;
  --read: 680px;
  --machine-wide: 872px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.45), transparent 26rem),
    linear-gradient(rgba(21,24,29,.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 8px, auto;
  font: 400 18px/1.65 var(--font-body);
  overflow-x: hidden;
}

body.ai-night-shift {
  background-color: var(--paper-night);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: .18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 241, 243, .94);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-footer__inner,
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: var(--font-machine);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand__cursor {
  width: 9px;
  height: 18px;
  background: var(--phosphor);
  box-shadow: 0 0 12px rgba(255,179,0,.35);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  font-size: 15px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 600 15px/1.2 var(--font-body);
  cursor: pointer;
}

.button--phosphor {
  border-color: var(--phosphor);
  background: var(--phosphor);
  color: var(--machine);
  box-shadow: 0 0 18px rgba(255,179,0,.24);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.machine {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.05), transparent 55%),
    var(--machine);
  color: #e8edf7;
}

.machine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 58%, rgba(0,0,0,.12));
}

.machine-glow {
  color: var(--phosphor);
  text-shadow: 0 0 8px rgba(255,179,0,.35), 0 0 24px rgba(255,179,0,.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 32px;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--smoke);
  font-family: var(--font-machine);
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font: 800 clamp(34px, 5vw, 64px)/1.02 var(--font-display);
}

h2 {
  font: 760 clamp(26px, 3vw, 38px)/1.12 var(--font-display);
}

h3 {
  font: 650 21px/1.25 var(--font-body);
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #303641;
  font-size: 21px;
  line-height: 1.55;
}

.digest-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: digest;
  list-style: none;
}

.digest-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.digest-list li::before {
  counter-increment: digest;
  content: counter(digest, decimal-leading-zero);
  color: var(--smoke);
  font-family: var(--font-machine);
  font-size: 14px;
}

.hero-terminal {
  align-self: start;
  padding: 24px;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-machine);
  font-size: 13px;
}

.terminal-line span:first-child {
  color: #9ba8bb;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.26);
  color: var(--ink);
}

.card:hover {
  text-decoration: none;
}

.card__image {
  aspect-ratio: 16 / 10;
  background: var(--machine);
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.card__meta,
.provenance-bar,
.confidence-badge,
.source-list,
.trace-line {
  font-family: var(--font-machine);
  font-size: 12px;
  line-height: 1.45;
}

.card__meta {
  color: var(--smoke);
}

.card__title {
  color: var(--ink);
}

.card__excerpt {
  margin: 0;
  color: #414854;
  font-size: 16px;
  line-height: 1.5;
}

.card__rail {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 9px 12px;
  background: var(--machine);
  color: #dce3ef;
}

.confidence-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #dce3ef;
}

.confidence-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--rumor);
}

.confidence-badge--ok::before { background: var(--ok); }
.confidence-badge--multi::before { background: var(--multi); }
.confidence-badge--single::before { background: var(--single); }
.confidence-badge--rumor::before { background: var(--rumor); }

.subscribe-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.subscribe-band h2,
.subscribe-band p {
  color: #f4f6fb;
}

.subscribe-band p {
  margin: 8px 0 0;
  color: #b9c3d3;
}

.article {
  width: min(calc(100% - 40px), var(--read));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.article h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.article__lead {
  margin: 18px 0 24px;
  color: #343b46;
  font-size: 21px;
}

.provenance-bar {
  width: min(100%, var(--machine-wide));
  margin: 24px auto;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--machine);
  color: #dce3ef;
}

.provenance-bar strong {
  color: var(--phosphor);
  font-weight: 500;
}

.article-content {
  font-size: 18px;
}

.article-content p {
  margin: 0 0 1.25em;
}

.article-content h2,
.article-content h3 {
  margin: 1.8em 0 .7em;
}

.business-takeaway {
  margin: 34px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--ink);
}

.business-takeaway__label {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
}

.sources-box {
  width: min(100%, var(--machine-wide));
  margin: 36px auto;
  padding: 22px;
}

.sources-box h2 {
  color: #f4f6fb;
  font: 600 18px/1.3 var(--font-body);
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  color: #f4f6fb;
}

.trace-line {
  margin-top: 32px;
  color: var(--smoke);
}

.page-body {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  padding: 56px 0 78px;
}

.site-footer {
  background: var(--machine);
  color: #dce3ef;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px 0;
}

.site-footer a {
  color: #f4f6fb;
}

.site-footer h2,
.site-footer h3 {
  color: #f4f6fb;
}

.footer-honesty {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9ba8bb;
  font-family: var(--font-machine);
  font-size: 12px;
}

@media (max-width: 900px) {
  .header-inner,
  .hero,
  .subscribe-band,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: start;
    overflow-x: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand__cursor {
    animation: aiBlink 1.4s steps(1) infinite;
  }

  .slider-slide.is-active img {
    animation: aiSlideImageDrift 5600ms cubic-bezier(.2,.8,.2,1) both;
  }

  .card {
    transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
  }

  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(14,20,32,.42);
    background: rgba(255,255,255,.42);
  }

  .card__image img {
    transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter 520ms ease;
  }

  .card:hover .card__image img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.04);
  }

  .side-story img,
  .article-format__image img {
    transition: transform 680ms cubic-bezier(.2,.8,.2,1), filter 680ms ease, opacity 680ms ease;
  }

  .side-story:hover img,
  .article-format:hover .article-format__image img {
    transform: scale(1.045);
    filter: saturate(1.1) contrast(1.05);
  }

  .side-story,
  .article-format,
  .format-feature {
    animation: aiBlockReveal 620ms cubic-bezier(.2,.8,.2,1) both;
  }

  .side-story:nth-child(2),
  .article-format:nth-child(2) {
    animation-delay: 90ms;
  }

  .article-format:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes aiBlink {
  50% { opacity: .15; }
}

@keyframes aiSlideImageDrift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(-1.2%, -.8%, 0); }
}

@keyframes aiBlockReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-slide,
  .slider-slide.is-active,
  .card,
  .side-story,
  .article-format,
  .format-feature {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.subscribe-form--page {
  max-width: 680px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.subscribe-form--page label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.subscribe-form--page input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.subscribe-form__check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  margin-top: 16px;
  line-height: 1.45;
}

.subscribe-form__check input {
  margin-top: 3px;
}

.subscribe-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.subscribe-form--page button {
  margin-top: 18px;
  min-height: 46px;
  border: 0;
  border-radius: 3px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.notice-inline {
  max-width: 680px;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
}

.notice-inline--ok {
  border-left: 4px solid #2f8f5b;
}

.notice-inline--error {
  border-left: 4px solid #c93a2f;
}

.agent-team-panel {
  margin: 0 0 34px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.32);
}

.page-body .agent-team-panel {
  width: min(100%, 980px);
  margin-top: 34px;
}

.agent-team-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .32fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.agent-team-panel__head h2 {
  font-size: clamp(25px, 3vw, 36px);
}

.agent-team-panel__head p {
  max-width: 820px;
  margin: 12px 0 0;
  color: #3d4551;
  font-size: 16px;
  line-height: 1.55;
}

.agent-team-panel__meta {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--machine);
  color: #dce3ef;
  font-family: var(--font-machine);
  font-size: 12px;
}

.agent-team-panel__meta strong {
  color: var(--phosphor);
  font-weight: 500;
}

.agent-team-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.agent-team-flow div {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
}

.agent-team-flow div + div {
  border-left: 1px solid var(--line);
}

.agent-team-flow span,
.agent-card span,
.agent-card strong {
  font-family: var(--font-machine);
  font-size: 12px;
}

.agent-team-flow span,
.agent-card span {
  color: var(--smoke);
}

.agent-team-flow strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.agent-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agent-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 220px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.agent-card:last-child {
  border-right: 0;
}

.agent-card h3 {
  font-size: 18px;
}

.agent-card strong {
  color: var(--link);
  font-weight: 600;
}

.agent-card p {
  margin: 0;
  color: #454d59;
  font-size: 14px;
  line-height: 1.45;
}

.editorial-board {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.board-head h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.7vw, 58px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.board-positioning {
  margin: 0 0 5px;
  color: #333a45;
  font-size: 16px;
  line-height: 1.58;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(330px, .82fr);
  gap: 18px;
  align-items: stretch;
}

.lead-grid > *,
.story-slider,
.slider-slide,
.slide-copy,
.side-story {
  min-width: 0;
}

.story-slider {
  min-height: 610px;
  border: 1px solid rgba(255,255,255,.08);
  max-width: 100%;
}

.slider-track {
  position: relative;
  min-height: 610px;
  max-width: 100%;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity 1100ms cubic-bezier(.2,.8,.2,1), transform 1500ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 1100ms;
}

.slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transform: scale(1.01);
}

.slide-copy {
  display: grid;
  gap: 12px;
  padding: 24px 26px 78px;
}

.slide-kicker {
  margin: 0;
  color: var(--phosphor);
  font-family: var(--font-machine);
  font-size: 12px;
}

.slide-copy h2 {
  max-width: 920px;
  color: #f4f6fb;
  font: 760 clamp(28px, 3.4vw, 44px)/1.08 var(--font-display);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slide-copy p {
  max-width: 780px;
  margin: 0;
  color: #c5cfde;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: #93a1b7;
  font-family: var(--font-machine);
  font-size: 12px;
}

.slide-meta a {
  color: var(--phosphor);
}

.market-desk .story-slider {
  min-height: 620px;
}

.market-desk .slider-track {
  min-height: 620px;
}

.market-desk .slide-copy {
  padding-bottom: 106px;
}

.market-desk .slider-controls {
  right: 26px;
  bottom: 24px;
  left: 26px;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.market-desk .slider-controls > button {
  display: none;
}

.signal-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 4px;
}

.signal-widget {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
}

.signal-widget span,
.signal-tags span {
  color: #93a1b7;
  font-family: var(--font-machine);
  font-size: 11px;
  text-transform: uppercase;
}

.signal-widget strong {
  color: #f4f6fb;
  font-family: var(--font-machine);
  font-size: 19px;
  font-weight: 600;
}

.signal-widget--score strong {
  color: var(--phosphor);
  font-size: 30px;
  line-height: 1;
}

.signal-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 760px;
}

.signal-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.signal-tags span {
  width: 100%;
}

.signal-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.13);
  color: #e8edf7;
  font-family: var(--font-machine);
  font-size: 11px;
  font-weight: 500;
}

.slider-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.slider-controls button {
  pointer-events: auto;
}

.slider-controls > button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #f4f6fb;
  font-size: 28px;
  line-height: 1;
}

.slider-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}

.slider-dots button {
  width: 34px;
  min-width: 34px;
  height: 4px;
  min-height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.24);
}

.slider-dots button.is-active {
  background: var(--phosphor);
}

.side-visuals {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.side-story {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: end;
  border: 1px solid var(--line);
  background: var(--machine);
  color: #f4f6fb;
  overflow: hidden;
}

.side-story:hover {
  text-decoration: none;
}

.side-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: saturate(.88) contrast(1.08);
}

.side-story div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 100%;
  align-content: end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(8,13,22,.32) 0%, rgba(8,13,22,.68) 44%, rgba(8,13,22,.96) 100%);
}

.side-story span,
.intelligence-strip span,
.signal-table span {
  color: var(--smoke);
  font-family: var(--font-machine);
  font-size: 12px;
}

.side-story strong {
  color: #f4f6fb;
  font-size: 21px;
  line-height: 1.22;
}

.side-story p {
  margin: 0;
  color: #d5deec;
  font-size: 14px;
  line-height: 1.45;
}

.intelligence-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.intelligence-strip a {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.intelligence-strip a:first-child {
  border-left: 1px solid var(--line);
}

.intelligence-strip a:hover {
  background: rgba(255,255,255,.32);
  text-decoration: none;
}

.intelligence-strip strong {
  font-size: 18px;
  line-height: 1.15;
}

.intelligence-strip em {
  color: #454d59;
  font-style: normal;
  font-size: 14px;
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: start;
}

.signal-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: #343b46;
}

.signal-table {
  display: grid;
  padding: 10px 20px;
}

.signal-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.signal-table div:last-child {
  border-bottom: 0;
}

.signal-table strong {
  color: #f4f6fb;
  font-family: var(--font-machine);
  font-size: 14px;
  font-weight: 500;
}

.desk-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.format-showcase {
  padding-top: 46px;
}

.primary-formats {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 22px;
}

.format-feature {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.format-feature--digest {
  background:
    linear-gradient(135deg, rgba(14,20,32,.98), rgba(19,27,44,.94)),
    var(--machine);
  color: #e8edf7;
}

.format-feature--news {
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.5)),
    rgba(255,255,255,.44);
}

.format-feature__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--font-machine);
  font-size: 12px;
  opacity: .72;
}

.format-feature h3 {
  max-width: 720px;
  color: inherit;
  font: 760 clamp(30px, 4vw, 48px)/1.03 var(--font-display);
}

.format-feature p {
  max-width: 680px;
  margin: 0;
  color: #343b46;
  font-size: 18px;
  line-height: 1.55;
}

.format-feature--digest h3,
.format-feature--digest p,
.format-feature--digest a {
  color: #f4f6fb;
}

.format-feature a {
  align-self: end;
  justify-self: start;
  margin-top: 6px;
  font-family: var(--font-machine);
  font-size: 13px;
}

.format-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: #dce3ef;
  font-family: var(--font-machine);
  font-size: 12px;
}

.format-feature--news .format-feature__meta {
  color: var(--smoke);
}

.format-checklist {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.format-checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: #c5cfde;
  font-size: 15px;
}

.format-checklist li::before {
  content: "✓";
  color: var(--phosphor);
  font-family: var(--font-machine);
}

.article-showcase {
  padding-top: 52px;
}

.article-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.article-format {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.34);
  overflow: hidden;
}

.article-format--analysis {
  background: rgba(255,255,255,.62);
}

.article-format__image {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  background: var(--machine);
  overflow: hidden;
}

.article-format__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  filter: saturate(.9) contrast(1.08);
}

.article-format__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,22,.56) 0%, rgba(8,13,22,.04) 48%, rgba(8,13,22,.78) 100%);
}

.article-format__image figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #f4f6fb;
  font-family: var(--font-machine);
  font-size: 12px;
  text-transform: uppercase;
}

.article-format span {
  display: inline-flex;
  margin: 6px 22px 0;
  color: var(--smoke);
  font-family: var(--font-machine);
  font-size: 12px;
}

.article-format h3 {
  margin: 0 22px;
  font-size: clamp(22px, 2.6vw, 31px);
}

.article-format p {
  margin: 0 22px;
  color: #3d4551;
  font-size: 16px;
  line-height: 1.55;
}

.article-format a {
  align-self: end;
  margin: 10px 22px 0;
  font-family: var(--font-machine);
  font-size: 13px;
}

.longform-ledger,
.modular-briefs {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  padding: 24px;
}

.longform-ledger h2,
.modular-briefs h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.longform-ledger p,
.modular-briefs p {
  margin: 14px 0 0;
  color: #343b46;
}

.longform-ledger a,
.modular-briefs a {
  display: inline-flex;
  margin-top: 20px;
  font-family: var(--font-machine);
  font-size: 13px;
}

.ledger-lines {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.ledger-lines span,
.ledger-lines strong {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-lines span,
.brief-grid span {
  color: var(--smoke);
  font-family: var(--font-machine);
  font-size: 12px;
}

.ledger-lines strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.brief-grid div {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brief-grid strong {
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .lead-grid,
  .board-head,
  .signal-layout,
  .desk-panels,
  .primary-formats,
  .article-format-grid {
    grid-template-columns: 1fr;
  }

  .side-visuals {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(280px, 1fr);
  }

  .agent-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card:nth-child(2n) {
    border-right: 0;
  }

  .intelligence-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .board-head h1 {
    font-size: clamp(32px, 13vw, 46px);
    overflow-wrap: anywhere;
  }

  .board-positioning {
    font-size: 15px;
  }

  .story-slider,
  .slider-track {
    min-height: 760px;
  }

  .slider-slide img {
    min-height: 250px;
  }

  .slide-copy {
    padding: 20px 18px 78px;
  }

  .slide-copy h2 {
    font-size: clamp(25px, 8.3vw, 34px);
  }

  .slide-copy p {
    font-size: 15px;
  }

  .signal-widget-grid,
  .signal-tags,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .ledger-lines {
    grid-template-columns: 1fr;
  }

  .ledger-lines span {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .side-visuals,
  .intelligence-strip {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .side-story {
    min-height: 0;
  }

  .signal-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .agent-team-panel__head,
  .agent-team-flow,
  .agent-roster {
    grid-template-columns: 1fr;
  }

  .agent-team-flow div + div,
  .agent-card,
  .agent-card:nth-child(2n) {
    border-right: 0;
    border-left: 0;
  }

  .agent-card {
    min-height: 0;
    border-top: 1px solid var(--line);
  }

  .format-feature {
    min-height: 0;
    padding: 22px;
  }

  .format-feature h3 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .format-feature p {
    font-size: 16px;
  }
}
