/* ======================================================
   learn.css — COMPLETE
   - React-like Learn pages + stable grid
   - Cover-first media
   - Compact article hero
   - Article layout + prose + TOC
   ====================================================== */

:root{
  --bg1:#0b1f47;
  --bg2:#0a2b4f;
  --bg3:#0a1020;

  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.60);

  --shadow: 0 25px 70px rgba(0,0,0,.35);
  --radius: 22px;

  --blue1:#0ea5e9;
  --blue2:#2563eb;

  --focus: rgba(56,189,248,.45);
}

*{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);

  background:
    radial-gradient(
      700px 320px at 18% 12%,
      rgba(59,130,246,.20),
      transparent
    ),
    radial-gradient(
      520px 280px at 85% 18%,
      rgba(14,165,233,.16),
      transparent
    ),
    linear-gradient(
      135deg,
      var(--bg1),
      var(--bg2),
      var(--bg3)
    );
}

a{
  color:inherit;
  text-decoration:none;
}

.prose a:hover{
  text-decoration:underline;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:26px 16px 56px;
}


/* ======================================================
   Header
   ====================================================== */

.learn-header{
  position:sticky;
  top:0;
  z-index:40;

  border-bottom:1px solid rgba(255,255,255,.10);

  background:rgba(2,6,23,.4);

  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

.learn-header-inner{
  max-width:72rem;
  margin:0 auto;
  padding:16px 20px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.learn-brand{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.learn-logo{
  width:auto;
  height:clamp(96px,7vw,144px);

  display:block;
  object-fit:contain;

  transition:all .3s ease;

  filter:drop-shadow(0 10px 25px rgba(0,0,0,.35));
}

.learn-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.learn-nav a{
  padding:10px 14px;

  border-radius:12px;

  color:#e2e8f0;

  font-size:.95rem;
  font-weight:600;

  text-decoration:none;

  transition:.2s ease;
}

.learn-nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
}

.learn-cta{
  color:#fff !important;

  background:linear-gradient(
    90deg,
    #0ea5e9,
    #2563eb
  );

  box-shadow:0 10px 30px rgba(37,99,235,.2);
}

.learn-cta:hover{
  background:linear-gradient(
    90deg,
    #3b82f6,
    #38bdf8
  ) !important;
}


/* ======================================================
   Typography helpers
   ====================================================== */

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:6px 10px;

  border:1px solid var(--border);
  border-radius:999px;

  background:rgba(255,255,255,.06);

  color:var(--muted);

  font-size:12px;
  font-weight:700;
}

.dot{
  width:8px;
  height:8px;

  border-radius:999px;

  background:var(--blue1);
}

.learn-title{
  margin:12px 0 0;

  font-size:clamp(30px,4.5vw,54px);
  line-height:1.05;
  letter-spacing:-.03em;
}

.meta{
  color:rgba(255,255,255,.68);

  font-size:12.5px;
  font-weight:650;
}


/* ======================================================
   Buttons
   ====================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:10px 14px;

  border:1px solid var(--border);
  border-radius:12px;

  background:rgba(255,255,255,.08);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  font-size:14px;
  font-weight:800;
}

.btn:hover{
  background:rgba(255,255,255,.10);
}

.btn-primary{
  border:none;

  background:linear-gradient(
    90deg,
    var(--blue1),
    var(--blue2)
  );

  box-shadow:0 18px 40px rgba(37,99,235,.30);
}

.btn-primary:hover{
  filter:brightness(1.05);
}


/* ======================================================
   Breadcrumbs
   ====================================================== */

.crumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;

  margin-bottom:12px;

  color:var(--muted);

  font-size:13px;
}

.crumbs a{
  color:var(--muted);
}

.crumbs a:hover{
  color:var(--text);
}

.sep{
  opacity:.6;
}


/* ======================================================
   Media
   ====================================================== */

.media{
  --img:none;
  --fit:cover;
  --pos:50% 30%;
  --pad:0;

  position:relative;

  overflow:hidden;

  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);

  background:rgba(255,255,255,.06);

  box-shadow:0 18px 55px rgba(0,0,0,.28);
}

.media::after{
  content:"";

  position:absolute;
  inset:0;

  pointer-events:none;

  background:linear-gradient(
    to top,
    rgba(0,0,0,.18),
    transparent 55%
  );
}

.media__img{
  position:relative;
  z-index:1;

  width:100%;
  height:100%;

  display:block;

  object-fit:var(--fit);
  object-position:var(--pos);

  padding:var(--pad);

  box-sizing:border-box;

  transform:translateZ(0);
}

.media--card{
  aspect-ratio:4 / 3;

  border-radius:16px;
}

.media--featurepanel{
  height:320px;

  border:0;
  border-radius:0;

  box-shadow:none;
}


/* ======================================================
   Learn hero
   ====================================================== */

.learn-hero{
  padding:4px 2px 6px;
}

.learn-topic-nav{
  margin-top:18px;
}


/* ======================================================
   Insights layout
   ====================================================== */

.insights{
  margin-top:26px;
}

.insights-featured{
  display:grid;
  grid-template-columns:6fr 6fr;

  overflow:hidden;

  border:1px solid var(--border);
  border-radius:calc(var(--radius) + 10px);

  background:rgba(255,255,255,.08);

  box-shadow:var(--shadow);
}

.insights-featured-body{
  padding:22px 22px 20px;

  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:10px;
}

.insights-featured-title{
  margin:0;

  font-size:clamp(20px,2vw,30px);
  line-height:1.15;
  letter-spacing:-.02em;
}

.insights-featured-desc{
  max-width:60ch;

  margin:0;

  color:rgba(255,255,255,.80);

  line-height:1.65;
}

.insights-grid{
  margin-top:18px;

  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.insights-card{
  overflow:hidden;

  border:1px solid var(--border);
  border-radius:18px;

  background:rgba(255,255,255,.06);

  box-shadow:0 18px 55px rgba(0,0,0,.22);
}

.insights-card-body{
  padding:12px 14px 14px;
}

.insights-card-title{
  margin:8px 0 0;

  overflow:hidden;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  font-size:15px;
  line-height:1.3;
  letter-spacing:-.01em;
}

.insights-card-desc{
  margin:8px 0 0;

  overflow:hidden;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  color:rgba(255,255,255,.76);

  font-size:13px;
  line-height:1.55;
}

.insights-featured,
.insights-card{
  text-decoration:none !important;
}

.insights-featured:focus-visible,
.insights-card:focus-visible{
  outline:none;

  box-shadow:0 0 0 3px var(--focus);
}

@media (prefers-reduced-motion:no-preference){

  .insights-card:hover .media__img,
  .insights-featured:hover .media__img{
    transform:scale(1.02);

    transition:transform .55s ease;
  }
}


/* ======================================================
   Article hero
   ====================================================== */

.article-hero{
  max-width:1100px;
  margin:0 auto 22px;
}

.article-hero-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);

  overflow:hidden;

  border:1px solid var(--border);
  border-radius:calc(var(--radius) + 10px);

  background:rgba(255,255,255,.08);

  box-shadow:var(--shadow);
}

.article-hero-panel .media--featurepanel{
  width:100%;
  height:100%;
  min-height:320px;
}

.article-hero-body{
  padding:26px 24px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}

.article-hero-body .kicker{
  align-self:flex-start;
}

.kicker-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-title{
  margin:0;

  font-size:clamp(28px,3.6vw,44px);
  line-height:1.08;
  letter-spacing:-.03em;
}

.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;

  color:rgba(255,255,255,.68);

  font-size:13px;
  font-weight:650;
}

.article-hero-desc{
  max-width:60ch;

  margin:0;

  color:rgba(255,255,255,.82);

  line-height:1.65;
}


/* ======================================================
   Article layout
   ====================================================== */

.article-layout{
  max-width:1240px;
  margin:8px auto 40px;
  padding:0 12px;

  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:32px;

  align-items:start;
}

.article-aside{
  position:sticky;
  top:14px;
}

.toc-card,
.aside-card{
  margin-bottom:12px;
  padding:16px;

  border:1px solid var(--border);
  border-radius:18px;

  background:rgba(255,255,255,.06);

  box-shadow:0 18px 50px rgba(0,0,0,.20);

  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.aside-title{
  margin-bottom:10px;

  color:rgba(255,255,255,.88);

  font-size:13px;
  font-weight:900;
  letter-spacing:-.01em;
}

.mini-related{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mini-link{
  display:block;

  padding:8px;

  border-radius:10px;

  color:rgba(255,255,255,.78);

  font-size:13px;
  line-height:1.4;
}

.mini-link:hover{
  color:#fff;

  background:rgba(255,255,255,.06);
}


/* ======================================================
   Table of contents
   ====================================================== */

.toc{
  color:rgba(255,255,255,.70);

  font-size:13px;
  line-height:1.45;
}

.toc ul{
  margin:0;
  padding-left:16px;
}

.toc li{
  margin:6px 0;
}

.toc a{
  display:inline-block;

  padding:6px 8px;

  border-radius:10px;

  color:rgba(255,255,255,.82);
}

.toc a:hover{
  color:rgba(255,255,255,.95);

  background:rgba(255,255,255,.06);
}


/* ======================================================
   Article prose
   ====================================================== */

.prose{
  width:100%;
  max-width:none;

  margin:0;
  padding:40px 36px 16px;

  border:1px solid rgba(255,255,255,.28);
  border-radius:28px;

  color:#111827;

  background:rgba(248,250,252,.96);

  box-shadow:0 20px 60px rgba(2,6,23,.10);

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  font-size:17px;
  line-height:1.9;
}

.prose p{
  margin:14px 0;
}

.prose p:first-child{
  margin-top:0;
}

.prose h2{
  margin:34px 0 12px;

  font-size:24px;
  line-height:1.25;
  letter-spacing:-.02em;
}

.prose h3{
  margin:22px 0 10px;

  font-size:18px;
  line-height:1.3;
  letter-spacing:-.01em;
}

.prose ul,
.prose ol{
  margin:12px 0 16px 22px;
  padding:0;
}

.prose li{
  margin:6px 0;
}

.prose hr{
  height:1px;

  margin:28px 0;

  border:0;

  background:#e5e7eb;
}

.prose blockquote{
  margin:18px 0;
  padding:14px 16px;

  border-left:3px solid rgba(37,99,235,.55);
  border-radius:16px;

  color:#334155;

  background:#f8fafc;
}

.prose code{
  padding:2px 6px;

  border:1px solid #e5e7eb;
  border-radius:10px;

  background:#f3f4f6;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size:.92em;
}

.prose pre{
  margin:18px 0;
  padding:14px;

  overflow:auto;

  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;

  background:rgba(0,0,0,.28);
}

.prose pre code{
  padding:0;

  border:none;

  background:transparent;
}

.prose a{
  color:#1d4ed8;

  text-decoration:underline;
  text-decoration-color:rgba(29,78,216,.35);
  text-underline-offset:3px;
}

.prose a:hover{
  color:#1e40af;

  text-decoration-color:rgba(30,64,175,.5);
}


/* ======================================================
   Article CTA
   ====================================================== */

.article-footer{
  margin-top:36px;
}

.article-cta{
  padding:24px;

  border:1px solid #dbeafe;
  border-radius:20px;

  background:#eff6ff;
}

.article-cta h2{
  margin-top:0;
}

.article-cta p{
  color:#334155;
}


/* ======================================================
   Responsive
   ====================================================== */

@media (max-width:1024px){

  .insights-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .article-layout{
    margin:8px auto 32px;

    grid-template-columns:1fr;
    gap:20px;
  }

  .article-aside{
    position:static;
    order:2;
  }
}

@media (max-width:900px){

  .learn-header-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .learn-nav{
    flex-wrap:wrap;
  }

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

  .article-hero-panel{
    grid-template-columns:1fr;
  }

  .media--featurepanel{
    height:clamp(200px,50vw,280px);
  }

  .article-hero-panel .media--featurepanel{
    min-height:0;
    height:clamp(220px,52vw,320px);
  }

  .insights-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:640px){

  .learn-nav a{
    padding:9px 12px;

    font-size:.9rem;
  }

  .learn-logo{
    height:clamp(84px,18vw,120px);
  }

  .container{
    padding:18px 0 40px;
  }

  .crumbs{
    padding:0 10px;
  }

  .article-hero{
    margin-bottom:14px;
    padding:0 8px;
  }

  .article-hero-panel{
    border-radius:24px;
  }

  .article-hero-body{
    padding:22px 18px;
  }

  .article-title{
    font-size:clamp(28px,9vw,38px);
  }

  .article-layout{
    margin:8px auto 24px;
    padding:0 8px;

    gap:18px;
  }

  .prose{
    padding:28px 20px 10px;

    border-radius:24px;

    font-size:16px;
    line-height:1.8;
  }

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

@media (max-width:520px){

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

/* ======================================================
   Footer CSS
   ====================================================== */

.learn-footer {
  margin-top: 4rem;
  background-color: #020617;
  border-top: 1px solid #334155;
  color: #cbd5e1;
}

.learn-footer-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding: 2.5rem 0;
}

.learn-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.learn-footer-nav a,
.learn-footer-nav a:visited {
  color: #f8fafc;
  text-decoration: none;
}

.learn-footer-nav a:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.learn-footer-nav a:focus-visible {
  color: #ffffff;
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
  border-radius: 2px;
}

.learn-footer-inner p {
  margin-top: 1.5rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.app-store-badge {
  display: block;
  width: auto;
  height: 48px;
}

/* ======================================================
   Shared topic and subtopic navigation
   ====================================================== */

.learn-mobile-actions,
.learn-mobile-menu-header,
.learn-mobile-utility,
.learn-subtopic-back,
.learn-menu-backdrop {
  display: none;
}

.learn-shared-topic-nav {
  position: relative;
  z-index: 35;

  width: 100%;
  justify-content: center;
  gap: 6px;

  margin: 0 0 20px;
  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;

  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.learn-topic-menu {
  position: relative;
}

.learn-topic-parent {
  display: flex;
  align-items: center;
}

.learn-topic-parent .learn-topic-link {
  padding-right: 5px;
}

.learn-subtopic-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 40px;
  padding: 0;

  border: 0;
  border-radius: 10px;

  color: #e2e8f0;
  background: transparent;

  font: inherit;
  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease;
}

.learn-subtopic-toggle:hover,
.learn-subtopic-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.learn-subtopic-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;

  min-width: 260px;
  padding: 10px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  background: #0b2850;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 8px);

  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    transform 0.15s ease;
}

.learn-subtopic-dropdown::before {
  content: "";

  position: absolute;
  bottom: 100%;
  left: 50%;

  transform: translateX(-50%);

  border: 8px solid transparent;
  border-bottom-color: #0b2850;
}

.learn-subtopic-dropdown a {
  display: block;
  width: 100%;
  padding: 10px 12px;

  border-radius: 9px;

  color: #e2e8f0;
  white-space: nowrap;
}

.learn-subtopic-dropdown a:hover,
.learn-subtopic-dropdown a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.learn-topic-menu:hover .learn-subtopic-dropdown,
.learn-topic-menu:focus-within .learn-subtopic-dropdown,
.learn-topic-menu.is-open .learn-subtopic-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translate(-50%, 0);
}

@media (min-width: 901px) {
  .learn-shared-topic-nav {
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


/* ======================================================
   Mobile Learn navigation
   ====================================================== */

@media (max-width: 900px) {

  body.learn-menu-open {
    overflow: hidden;
  }

  .learn-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .learn-desktop-nav {
    display: none;
  }

  .learn-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .learn-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;

    border-radius: 10px;

    font-size: 0.85rem;
    font-weight: 700;
  }

  .learn-menu-button,
  .learn-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;

    color: #fff;
    background: rgba(255, 255, 255, 0.07);

    font-size: 1.4rem;
    cursor: pointer;
  }

  .learn-shared-topic-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;

    display: block;

    width: min(86vw, 360px);
    height: 100dvh;

    margin: 0;
    padding: 22px;

    overflow-y: auto;

    border: 0;
    border-radius: 0;

    background: #0b2850;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-105%);

    transition:
      transform 0.22s ease,
      opacity 0.22s ease,
      visibility 0.22s ease;
  }

  .learn-shared-topic-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
  }

  .learn-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
    padding-bottom: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 1rem;
    font-weight: 800;
  }

  .learn-mobile-utility {
    display: grid;
    gap: 2px;

    margin-bottom: 12px;
    padding-bottom: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .learn-shared-topic-nav > a,
  .learn-mobile-utility a {
    display: block;
    width: 100%;
    padding: 12px 8px;
  }

  .learn-topic-menu {
    position: static;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .learn-topic-parent {
    justify-content: space-between;
  }

  .learn-topic-parent .learn-topic-link {
    flex: 1;
    padding: 13px 8px;
  }

  .learn-subtopic-toggle {
    width: 44px;
    height: 44px;
  }

  .learn-subtopic-dropdown {
    position: static;

    display: none;

    min-width: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
  }

  .learn-subtopic-dropdown::before {
    display: none;
  }

  .learn-topic-menu:hover .learn-subtopic-dropdown,
  .learn-topic-menu:focus-within .learn-subtopic-dropdown {
    transform: none;
  }

  .learn-topic-menu.is-open .learn-topic-parent {
    display: none;
  }

  .learn-topic-menu.is-open .learn-subtopic-dropdown {
    display: block;
    transform: none;
  }

  .learn-subtopic-dropdown a {
    padding: 13px 8px;
    white-space: normal;
  }

  .learn-subtopic-back {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin-bottom: 12px;
    padding: 12px 8px;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;
    background: transparent;

    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .learn-shared-topic-nav.has-open-subtopic
    > .learn-all-articles,
  .learn-shared-topic-nav.has-open-subtopic
    > .learn-mobile-utility,
  .learn-shared-topic-nav.has-open-subtopic
    > .learn-topic-menu:not(.is-open) {
    display: none;
  }

  .learn-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;

    display: block;

    background: rgba(2, 6, 23, 0.72);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .learn-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* ======================================================
   Additional article sections
   ====================================================== */

.article-section {
  margin: 38px 0;
  display: grid;
  gap: 28px;
  align-items: start;
}

.article-section--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
  grid-template-areas: "body media";
}

.article-section--media-left {
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  grid-template-areas: "media body";
}

.article-section--media-full {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "body";
}

.article-section--text-only {
  display: block;
}

.article-section__media {
  grid-area: media;
  min-width: 0;
}

.article-section__body {
  grid-area: body;
  min-width: 0;
}

.article-section__body > :first-child {
  margin-top: 0;
}

.article-section__body > :last-child {
  margin-bottom: 0;
}

.article-section__image,
.article-section__video,
.article-section__frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
}

.article-section__image {
  height: auto;
  object-fit: cover;
}

.article-section__video,
.article-section__frame {
  aspect-ratio: 16 / 9;
}

.article-section__game {
  min-height: 520px;
  aspect-ratio: auto;
}

.article-section__caption {
  margin: 10px 4px 0 !important;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 760px) {
  .article-section--media-right,
  .article-section--media-left,
  .article-section--media-full {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "body";
  }

  .article-section {
    margin: 30px 0;
    gap: 20px;
  }

  .article-section__game {
    min-height: 420px;
  }
}