:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5faff;
  background: #071a33;
  --blog-bg: #071a33;
  --blog-surface: #0b2545;
  --blog-surface-2: #102e55;
  --blog-line: #244b78;
  --blog-muted: #c5d8ed;
  --blog-blue: #2e6fdc;
  --blog-pink: #f43f8a;
  --blog-raspberry: #c0265b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 80% 5%, rgba(46, 111, 220, 0.18), transparent 28rem), var(--blog-bg); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #dceeff; outline-offset: 3px; }

.blog-shell, .blog-footer { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.blog-shell { padding: 104px 0 80px; }
.blog-intro { max-width: 800px; margin-bottom: 44px; }
.blog-eyebrow, .blog-section-label, .blog-section-heading p { margin: 0 0 12px; color: #8db9f5; font-size: .82rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.blog-intro h1 { max-width: 900px; margin: 0 0 18px; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .93; letter-spacing: -.055em; }
.blog-intro > p:last-child { max-width: 740px; margin: 0; color: var(--blog-muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }

.blog-featured {
  height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 8px;
  background: var(--blog-surface);
}
.blog-featured-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(24px, 3vw, 40px); }
.blog-featured-copy h2 { margin: 8px 0 14px; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: .98; letter-spacing: -.045em; }
.blog-featured-copy h2 a, .blog-card h3 a { text-decoration: none; }
.blog-featured-copy h2 a:hover, .blog-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--blog-pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.blog-featured-copy > p:not(.blog-meta):not(.blog-section-label) { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--blog-muted); font-size: 1rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.blog-featured-media { position: relative; min-height: 0; overflow: hidden; background: linear-gradient(135deg, #3c7be3, #78a8eb 50%, #f43f8a); text-decoration: none; }
.blog-featured-media img, .blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #3475df, #8db9f5 55%, #f43f8a); }
.blog-media-placeholder strong { color: rgba(7,26,51,.68); font-size: clamp(4rem, 12vw, 10rem); letter-spacing: -.08em; }
.blog-play { position: absolute; inset: 50% auto auto 50%; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #071a33; transform: translate(-50%,-50%); font-size: 28px; box-shadow: 0 16px 40px rgba(0,0,0,.26); }
.blog-primary-link { align-self: flex-start; color: #fff; text-decoration: none; font-weight: 850; }
.blog-primary-link span { margin-left: 8px; color: var(--blog-pink); }

.blog-recent { margin-top: 72px; }
.blog-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--blog-line); }
.blog-section-heading span { color: var(--blog-muted); font-weight: 800; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.blog-card { min-width: 0; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 8px; background: var(--blog-surface); }
.blog-card-media { position: relative; height: 190px; display: block; overflow: hidden; background: var(--blog-surface-2); text-decoration: none; }
.blog-card-media .blog-play { width: 58px; height: 58px; font-size: 18px; }
.blog-card-copy, .blog-card--text { padding: 24px; }
.blog-card h3 { margin: 10px 0; font-size: 1.4rem; line-height: 1.15; }
.blog-card p { margin: 0 0 18px; color: var(--blog-muted); line-height: 1.55; }
.blog-card-copy > span { color: #8db9f5; font-size: .88rem; font-weight: 750; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 0; color: #8db9f5; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.blog-empty { min-height: 360px; display: grid; place-content: center; max-width: 780px; padding: 48px; border: 1px solid var(--blog-line); border-radius: 8px; background: var(--blog-surface); }
.blog-empty h1, .blog-empty h2 { margin: 0 0 16px; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; }
.blog-empty > p:not(.blog-eyebrow) { color: var(--blog-muted); font-size: 1.1rem; line-height: 1.6; }

.blog-preview-banner { position: sticky; top: 96px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding: 14px 18px; border: 1px solid #ffd166; border-radius: 8px; color: #071a33; background: #ffd166; }
.blog-preview-banner a { font-weight: 850; }
.blog-breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 40px; color: var(--blog-muted); font-size: .92rem; }
.blog-breadcrumbs a { color: #8db9f5; }
.blog-publication { width: 100%; }
.blog-article-header { max-width: 920px; margin-bottom: 36px; }
.blog-article-header h1 { max-width: 1050px; margin: 18px 0; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.055em; }
.blog-lead { max-width: 820px; margin: 0 0 26px; color: var(--blog-muted); font-size: clamp(1.18rem, 2.3vw, 1.55rem); line-height: 1.55; }
.blog-byline { display: flex; justify-content: space-between; gap: 18px; max-width: 820px; padding-top: 18px; border-top: 1px solid var(--blog-line); color: var(--blog-muted); }
.blog-byline div { display: grid; gap: 3px; }
.blog-byline strong { color: #fff; }
.blog-primary-media { width: min(720px, 100%); margin: 42px auto; }
.blog-primary-media img { width: 100%; max-height: 720px; object-fit: contain; border: 1px solid var(--blog-line); border-radius: 8px; background: var(--blog-surface); }
.blog-primary-media figcaption { margin-top: 10px; color: var(--blog-muted); font-size: .88rem; line-height: 1.5; }
.blog-video { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 8px; background: #000; }
.blog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-article-layout { width: 100%; }
.blog-prose { width: min(720px, 100%); margin: 0 auto; color: #eef6ff; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.68; }
.blog-prose h2, .blog-prose h3, .blog-secondary-content h2, .blog-related h2 { color: #fff; line-height: 1.12; letter-spacing: -.025em; }
.blog-prose h2 { margin: 2.5em 0 .7em; font-size: 2rem; }
.blog-prose h3 { margin: 2em 0 .6em; font-size: 1.45rem; }
.blog-prose a, .blog-secondary-content a { color: #8db9f5; text-underline-offset: 3px; }
.blog-prose img, .blog-prose table { max-width: 100%; }
.blog-prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 4px solid var(--blog-pink); color: var(--blog-muted); }
.blog-prose pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 8px; background: #031226; }
.blog-secondary-content, .blog-author, .blog-related, .blog-cta { width: min(920px, 100%); margin: 64px auto 0; padding: 28px; border: 1px solid var(--blog-line); border-radius: 8px; background: var(--blog-surface); }
.blog-secondary-content h2, .blog-related h2 { margin: 0 0 20px; font-size: 1.7rem; }
.blog-secondary-content li, .blog-secondary-content p, .blog-transcript, .blog-author p { color: var(--blog-muted); line-height: 1.62; }
.blog-secondary-content details { padding: 14px 0; border-top: 1px solid var(--blog-line); }
.blog-secondary-content summary { cursor: pointer; font-weight: 800; }
.blog-author { display: grid; gap: 5px; }
.blog-author strong { font-size: 1.25rem; }
.blog-author span { color: #8db9f5; }
.blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(244,63,138,.62); background: linear-gradient(135deg, rgba(192,38,91,.2), var(--blog-surface)); }
.blog-cta h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.6rem); }
.blog-cta a { flex: 0 0 auto; padding: 13px 18px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, var(--blog-pink), var(--blog-raspberry)); text-decoration: none; font-weight: 850; }

.blog-footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 20px; padding: 34px 0 48px; border-top: 1px solid var(--blog-line); color: var(--blog-muted); }
.blog-footer .footer__brand { justify-self: start; display: grid; gap: 12px; }
.blog-footer .footer__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-style: normal; }
.blog-footer .footer__links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.blog-footer a { color: var(--blog-muted); }
.blog-footer a:hover { color: #fff; }

@media (max-width: 920px) {
  .blog-shell { padding-top: 72px; }
  .blog-featured { height: auto; grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 260px; order: -1; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blog-preview-banner { top: 76px; }
}

@media (max-width: 620px) {
  .blog-shell, .blog-footer { width: min(calc(100% - 24px), 1180px); }
  .blog-shell { padding-bottom: 54px; }
  .blog-intro { margin-bottom: 28px; }
  .blog-featured-copy { padding: 24px; }
  .blog-featured-media { min-height: 220px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-media { height: 210px; }
  .blog-article-header h1 { font-size: clamp(2.45rem, 13vw, 4.2rem); }
  .blog-byline, .blog-cta, .blog-preview-banner { align-items: flex-start; flex-direction: column; }
  .blog-secondary-content, .blog-author, .blog-related, .blog-cta { padding: 22px; }
  .blog-empty { min-height: 300px; padding: 28px; }
  .blog-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .blog-footer .footer__brand { justify-self: center; }
  .blog-footer .footer__contacts, .blog-footer .footer__links { justify-content: center; }
  .blog-footer .footer__links { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .blog-card, .blog-featured, .blog-secondary-content, .blog-author, .blog-cta { border: 1px solid CanvasText; } }
