/* ─────────────────────────────────────────────────────────────
   Academy / generated marketing pages
   Only the components the hand-built pages did not already have.
   Everything else reuses playloudr-v3.css + marketing.css.
   ───────────────────────────────────────────────────────────── */

/* ── Article header ───────────────────────────────────────── */
.article-byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--ui); font-size: 13.5px; color: var(--gray-500);
}
/* In the editorial hero the card edge is the separator, so no rule is needed. */
.editorial-hero .article-byline { padding-bottom: 0; border-bottom: 0; }
.tool-divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0 30px; }
.article-byline .sep { color: var(--gray-300); }
.article-author { display: inline-flex; align-items: center; gap: 9px; }
.article-avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-400), var(--warm));
}
.article-updated { font-family: var(--mono); font-size: 12px; }

.article-body .article-lead { font-size: 18px; color: var(--ink-2); }
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 90px; }

/* Editorial media, concept diagrams and practical learning paths. */
.academy-figure { margin: 28px 0 34px; }
.academy-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 14px; background: var(--gray-100);
}
.academy-figure figcaption {
  font-family: var(--ui); font-size: 12px; line-height: 1.5;
  color: var(--gray-500); margin-top: 9px;
}
.academy-card-image {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; border-radius: 10px; margin-bottom: 20px;
}
.academy-concept {
  padding: 24px; margin: 0 0 30px; background: #f2f6fd;
  border: 1px solid #dbe6f7; border-radius: 16px;
}
.article-body .academy-concept h2 { font-size: 23px; margin: 0 0 22px; }
.article-body .academy-concept .mkt-eyebrow { font-size: 11px; margin: 0 0 10px; }
.article-body .academy-journey {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; padding: 0; margin: 0; gap: 12px;
}
.article-body .academy-journey li {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 13px; padding: 16px; border-radius: 10px; background: white;
  border: 1px solid #e0e8f5;
}
.article-body .academy-journey li::before { content: none; }
.academy-step-number { font-family: var(--mono); color: var(--blue-600); font-size: 12px; }
.article-body .academy-journey strong { font-size: 15px; color: var(--ink); }
.article-body .academy-journey p { font-size: 13px; line-height: 1.55; margin: 7px 0 0; }
.academy-tutorial-link { display: inline-block; margin: 14px 0 0 12px; font-size: 14px; }
.article-body .academy-practice .academy-signin-note { font-size: 12px; color: var(--gray-500); margin: 12px 0 0; }
.mkt-card.academy-featured { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.academy-featured .academy-card-image { aspect-ratio: 4 / 3; margin: 0; }
.academy-path ol { padding-left: 23px; margin: 22px 0 0; }
.academy-path li { padding: 0 0 14px 4px; font-family: var(--ui); font-size: 14px; line-height: 1.5; }
.academy-path li::marker { color: var(--blue-600); font-weight: 600; }
.academy-path a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.academy-search { display: flex; gap: 16px; align-items: flex-end; margin: 24px 0 12px; }
.academy-search > div:first-child { flex: 1; }
.academy-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; font-family: var(--ui); }
.academy-search input, .academy-search select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: 15px var(--ui); background: white; color: var(--ink);
}
.academy-search input:focus-visible, .academy-search select:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: 2px;
}
[data-academy-search][hidden], [data-academy-guide][hidden], #academy-empty[hidden] { display: none; }
#academy-results, #academy-empty { font: 14px var(--ui); color: var(--gray-500); margin-bottom: 24px; }
@media (max-width: 620px) {
  .mkt-card.academy-featured { grid-template-columns: 1fr; gap: 24px; }
  .academy-concept { padding: 18px; }
  .article-body .academy-journey { grid-template-columns: 1fr; }
  .article-body .academy-journey li { flex-direction: row; }
  .academy-step-number { padding-top: 3px; }
  .academy-search { flex-direction: column; align-items: stretch; }
  .academy-tutorial-link { display: block; margin-left: 0; }
}

/* ── Pillar ↔ cluster links ───────────────────────────────── */
.article-pillar-link {
  font-family: var(--ui); font-size: 14.5px; color: var(--gray-500);
  background: var(--blue-tint); border-radius: var(--r-md);
  padding: 12px 16px; margin: 0 0 26px;
}
.article-body .article-cluster { gap: 9px; }
.article-body .article-cluster li { font-size: 15.5px; }
.article-body .article-cluster li::before {
  content: '→'; flex-shrink: 0; color: var(--blue-500); font-weight: 600;
}

/* ── Editorial layout ─────────────────────────────────────────
   Long-form pages sit on a white card over a brand fade. Prose wants roughly
   an 80-character measure, and the card is what makes that narrower column
   read as a deliberate reading surface rather than a page that failed to fill
   its container.
   ───────────────────────────────────────────────────────────── */
.editorial { position: relative; }
.editorial::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 580px;
  background: linear-gradient(180deg, #D3E3FB 0%, #E1EAF9 44%, rgba(239, 241, 249, 0) 100%);
  pointer-events: none;
}
.editorial > * { position: relative; }

/* 1020 shell − 48 shell padding − 176 card padding ≈ a 796px measure. */
.editorial-shell { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* The hero sits on the fade rather than the card, but its text lines up with
   the card's text below it. */
.editorial-hero { padding-bottom: 30px; }
.editorial-hero-inner { padding: 0 88px; }

.editorial-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(17, 20, 43, 0.04), 0 18px 44px rgba(17, 20, 43, 0.07);
  padding: 52px 88px 60px;
}
.editorial-card > :first-child { margin-top: 0; }
.editorial-card > :last-child { margin-bottom: 0; }

/* A tool's widget is already a panel; inside the card it would be white on
   white, so it gives up its own chrome. */
.editorial-card .tool-panel {
  background: none; border: 0; box-shadow: none; padding: 0;
}

@media (max-width: 900px) {
  .editorial-hero-inner { padding: 0; }
  .editorial-card { padding: 32px 24px 40px; border-radius: 16px; }
  .editorial::before { height: 420px; }
}

/* ── On-page contents ─────────────────────────────────────── */
.article-toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-card); padding: 20px 24px; margin: 0 0 34px;
}
/* On the card it would be white on white, so it reads as a tint instead. */
.editorial-card .article-toc {
  background: var(--gray-50, #F4F5FB); border-color: transparent; box-shadow: none;
}
.article-toc h2 {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500);
  margin: 0 0 12px;
}
.article-toc ol {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px; counter-reset: toc;
}
.article-toc li { counter-increment: toc; display: flex; gap: 10px; align-items: baseline; }
.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--blue-500); flex-shrink: 0;
}
.article-toc a {
  font-family: var(--ui); font-size: 15px; color: var(--ink-2);
  text-decoration: none; line-height: 1.45;
}
.article-toc a:hover { color: var(--blue-600); text-decoration: underline; }

/* ── Comparison tables ────────────────────────────────────── */
.mkt-table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.mkt-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-family: var(--ui); font-size: 14.5px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}
.mkt-table th, .mkt-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.5;
}
.mkt-table thead th {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: -0.005em; color: var(--ink); background: var(--blue-tint);
  white-space: nowrap;
}
.mkt-table tbody th { font-weight: 600; color: var(--ink); }
.mkt-table tbody td { color: var(--ink-2); }
.mkt-table tbody tr:last-child th, .mkt-table tbody tr:last-child td { border-bottom: 0; }
.mkt-table-note { font-size: 13.5px; color: var(--gray-500); margin: -10px 0 24px; }

.comparison-disclosure {
  font-family: var(--ui); font-size: 13.5px; line-height: 1.6; color: var(--gray-500);
  border-left: 3px solid var(--gray-300); padding: 2px 0 2px 14px; margin: 22px 0 0;
}

/* ── In-article CTA card ──────────────────────────────────── */
.mkt-cta-card {
  background: var(--blue-tint); border: 1px solid var(--line);
  border-radius: var(--r-lg, 16px); padding: 26px 28px; margin: 34px 0;
}
.article-body .mkt-cta-card h2 {
  font-size: 21px; margin: 0 0 8px;
}
.article-body .mkt-cta-card p { font-size: 15.5px; margin: 0 0 18px; }
.mkt-cta-card .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ── Compact hero for feature / tool pages ────────────────── */
.mkt-hero-compact { padding-bottom: 8px; }

/* The homepage hero sits in a two-column grid, where a 50ch lead is right.
   These heroes run the full container width, so that measure leaves a hole to
   the right of the text. */
.mkt-hero-compact .mkt-hero-sub { max-width: 68ch; }

/* ── Keep reading ─────────────────────────────────────────── */
.mkt-related { background: var(--gray-50, #FAFAFA); }

/* ── Free tools ───────────────────────────────────────────── */
.tool-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-card); padding: 26px 28px;
}
.tool-field { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.tool-field label {
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink);
}
.tool-field input {
  font-family: var(--ui); font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff;
}
.tool-field input:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.tool-hint { font-family: var(--ui); font-size: 13px; color: var(--gray-500); margin: 0; }

.tool-timeline { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; }
.tool-timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.tool-timeline li:first-child { border-top: 0; }
.tool-timeline .step-date {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--blue-600);
  white-space: nowrap;
}
.tool-timeline .step-body { font-family: var(--ui); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.tool-timeline .step-body strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.tool-timeline li.is-release .step-date { color: var(--warm-2, #E8833A); }
.tool-timeline li.is-past { opacity: 0.55; }
.tool-empty { font-family: var(--ui); font-size: 15px; color: var(--gray-500); margin: 22px 0 0; }

@media (max-width: 620px) {
  .tool-timeline li { grid-template-columns: 1fr; gap: 4px; }
  .mkt-table { min-width: 440px; }
}
