/* ==========================================================================
   articles.css — /news and /blog (listing + detail), see src/components/news/*.
   All rules are scoped under .article-* so nothing leaks into the rest of the site.
   Fonts come from next/font (components/news/fonts.ts) as CSS variables.
   ========================================================================== */

.article-page {
  --a-bg: #fbfaf8;
  --a-card: #ffffff;
  --a-ink: #1a1a2e;
  --a-text: #2b2b38;
  --a-muted: #6b6b6b;
  --a-line: #e5e7eb;
  --a-amber: #f79500;
  --a-amber-soft: #fff3e0;
  --a-amber-text: #f79500;
  --a-brown: #f79500;
  --a-cream: #fff8ee;
  --a-dark: #1a1a2e;
  --a-radius: 18px;
  --a-shadow: 0 1px 2px rgba(26, 26, 46, 0.04), 0 8px 24px rgba(26, 26, 46, 0.05);

  clear: both;
  background: var(--a-bg);
  color: var(--a-text);
  padding-top: 0; /* the first section pads itself below the fixed navbar, so its background runs to the top */
  padding-bottom: 64px;
}

.article-page h1,
.article-page h2,
.article-page h3 {
  color: var(--a-ink);
  letter-spacing: -0.02em;
}

.article-page a {
  text-decoration: none;
}

.article-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Small shared bits ─────────────────────────────────────────────────── */

.article-muted {
  color: var(--a-muted);
  font-size: 0.82rem;
}

.article-caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

.article-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--a-amber);
  vertical-align: middle;
}

.article-dot--sm {
  width: 6px;
  height: 6px;
  background: #f79500;
}

.article-dot--brown {
  background: var(--a-brown);
}

.article-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--a-amber-soft);
  color: var(--a-amber-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-pill--solid {
  background: var(--a-amber);
  color: #ffffff;
}

.article-pill--grey {
  background: #f3f4f6;
  color: var(--a-text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.article-pill--hot {
  background: #f79500;
  color: #fff;
}

.article-pill--reads {
  background: var(--a-amber);
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  padding: 7px 14px;
}

.article-pill--reads b {
  color: #ffffff;
  font-weight: 700;
}

.article-pill--overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 243, 224, 0.95);
}

.article-pill--overlay.article-pill--hot {
  background: #f79500;
}

.article-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--a-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-chip--plain {
  background: none;
  color: var(--a-muted);
  font-weight: 500;
}

.article-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--a-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.article-avatar--sm {
  width: 28px;
  height: 28px;
  background: #f3f4f6;
  color: var(--a-ink);
  font-size: 0.65rem;
}

.article-avatar--lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--a-amber);
  color: #ffffff;
  font-size: 1rem;
}

.article-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--a-amber);
  color: #ffffff;
  flex: 0 0 auto;
}

.article-icon-badge--sm {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.article-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  border: 0;
}

.article-btn--dark {
  background: var(--a-dark);
  color: #fff;
}

.article-btn--dark:hover {
  background: #2b2b38;
  color: #fff;
}

.article-btn--brown {
  background: var(--a-brown);
  color: #fff;
}

.article-btn--brown:hover {
  background: #ef9b19;
  color: #fff;
}

.article-btn--grey {
  background: #f3f4f6;
  color: var(--a-ink);
}

.article-btn--grey:hover {
  background: #e5e7eb;
  color: var(--a-ink);
}

.article-btn--block {
  display: flex;
  width: 100%;
  border-radius: 10px;
}

.article-link {
  color: var(--a-brown);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.article-link:hover {
  color: var(--a-amber-text);
}

.article-media {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 627;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-media:hover img {
  transform: scale(1.03);
}

.article-media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--a-amber-text);
  font-weight: 700;
  background: linear-gradient(135deg, var(--a-cream), #f3f4f6);
}

.article-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.article-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.article-empty {
  background: var(--a-card);
  border-radius: var(--a-radius);
  padding: 32px;
  color: var(--a-muted);
}

.article-empty a {
  color: var(--a-brown);
  font-weight: 700;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.article-hero {
  text-align: center;
  padding: 130px 0 48px; /* 90px fixed navbar + 40px */
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(247, 149, 0, 0.12), transparent 70%),
    linear-gradient(180deg, #fff3e0 0%, var(--a-bg) 100%);
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #fff;
  box-shadow: var(--a-shadow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a-ink);
}

.article-eyebrow .article-dot {
  width: 7px;
  height: 7px;
  background: #f79500;
}

.article-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  margin: 18px 0 12px;
  line-height: 1.1;
}

.article-hero__accent {
  color: #f79500; /* logo orange */
  background: linear-gradient(transparent 88%, rgba(26, 26, 46, 0.85) 88%, rgba(26, 26, 46, 0.85) 94%, transparent 94%);
}

.article-hero__page {
  font-size: 0.45em;
  color: var(--a-muted);
  font-weight: 600;
}

.article-hero__lead {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--a-text);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 6px 6px 6px 18px;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(26, 26, 46, 0.04), 0 10px 30px rgba(26, 26, 46, 0.08);
}

.article-search i {
  color: var(--a-muted);
}

.article-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
  color: var(--a-ink);
  padding: 8px 0;
}

.article-search button {
  border: 0;
  border-radius: 50px;
  background: var(--a-dark);
  color: #fff;
  font-weight: 700;
  padding: 10px 24px;
}

.article-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.article-pills a {
  padding: 6px 16px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--a-line);
  color: var(--a-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.article-pills a:hover {
  border-color: var(--a-amber);
}

.article-pills a.is-active {
  background: var(--a-dark);
  border-color: var(--a-dark);
  color: #fff;
}

/* ── Top story ─────────────────────────────────────────────────────────── */

.article-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 8px 0 40px;
  padding: 20px;
  border-radius: 22px;
  background: var(--a-card);
  box-shadow: var(--a-shadow);
}

.article-top__media {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.article-top__reads {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(26, 26, 46, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-top__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.article-top__title {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 12px;
}

.article-top__title a {
  color: inherit;
}

.article-top__title a:hover {
  color: var(--a-amber-text);
}

.article-top__excerpt {
  color: var(--a-text);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-top__takeaway {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--a-amber);
  background: var(--a-cream);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.article-top__takeaway i {
  color: var(--a-amber);
  margin-top: 3px;
}

.article-top__takeaway strong {
  color: var(--a-ink);
}

.article-top__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-top__source {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--a-muted);
}

.article-top__source strong {
  color: var(--a-ink);
}

/* ── Listing layout + cards ────────────────────────────────────────────── */

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

.article-layout__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  border-radius: var(--a-radius);
  background: var(--a-card);
  box-shadow: var(--a-shadow);
  min-width: 0;
}

.article-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 8px;
}

.article-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 12px 0 8px;
}

.article-card__chips + .article-card__title {
  margin-top: 0;
}

.article-card__title a {
  color: inherit;
}

.article-card__title a:hover {
  color: var(--a-amber-text);
}

.article-card__excerpt {
  color: var(--a-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  font-size: 0.78rem;
  color: var(--a-muted);
}

.article-card__foot time {
  color: var(--a-ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Founder brief (newsletter) ────────────────────────────────────────── */

.article-brief {
  margin: 20px 0;
  padding: 32px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(ellipse 50% 90% at 85% 20%, rgba(247, 149, 0, 0.25), transparent 70%),
    var(--a-dark);
}

.article-brief h2 {
  color: #f79500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.article-brief h2 i {
  font-size: 0.8em;
  margin-right: 6px;
}

.article-brief p {
  max-width: 520px;
  margin: 0 0 18px;
}

.article-newsletter-form__row {
  display: flex;
  gap: 10px;
}

.article-newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 0.95rem;
  outline: 0;
}

.article-newsletter-form button {
  border: 0;
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 700;
  background: var(--a-amber);
  color: #ffffff;
}

.article-newsletter-form button:disabled {
  opacity: 0.7;
}

.article-newsletter-form--band .article-newsletter-form__row {
  max-width: 440px;
}

.article-newsletter-form__done {
  color: #f79500;
  font-weight: 700;
  margin: 0;
}

.article-newsletter-form__error {
  color: #ffc6be;
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.article-newsletter-form__legal {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  opacity: 0.7;
}

.article-newsletter-form--card .article-newsletter-form__row {
  flex-direction: column;
}

.article-newsletter-form--card input {
  background: #f3f4f6;
}

.article-newsletter-form--card button {
  background: var(--a-brown);
  color: #fff;
  border-radius: 50px;
}

.article-newsletter-form--card .article-newsletter-form__done {
  color: var(--a-brown);
}

/* ── Sidebar cards ─────────────────────────────────────────────────────── */

.article-side-card {
  padding: 22px;
  border-radius: var(--a-radius);
  background: var(--a-card);
  box-shadow: var(--a-shadow);
}

.article-side-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.article-side-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.article-side-card h2 i,
.article-hash {
  color: var(--a-amber);
  margin-right: 4px;
}

.article-side-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--a-muted);
}

.article-side-card--newsletter h2 {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}

.article-side-card--muted {
  background: #f3f4f6;
  box-shadow: none;
}

.article-side-card__small {
  font-size: 0.92rem !important;
}

.article-trending {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-trending li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
}

.article-trending--list li {
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--a-line);
}

.article-trending--list li:first-child {
  border-top: 0;
}

.article-trending__rank {
  color: var(--a-amber);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 18px;
}

.article-trending__cat {
  color: var(--a-amber-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-trending a.article-trending__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--a-ink);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 3px;
}

.article-trending a.article-trending__title:hover {
  color: var(--a-amber-text);
}

.article-launch-card {
  position: relative;
  padding: 22px;
  border-radius: var(--a-radius);
  background: #f79500;
  color: #ffffff;
  overflow: hidden;
}

.article-launch-card::after {
  content: "★";
  position: absolute;
  top: -6px;
  right: 10px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.35);
}

.article-launch-card__label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--a-dark);
  color: #f79500;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-launch-card h2 {
  color: #ffffff;
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.article-launch-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.article-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-topics a {
  padding: 5px 12px;
  border-radius: 50px;
  background: #f3f4f6;
  color: var(--a-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-topics a:hover {
  background: var(--a-amber-soft);
}

/* ── Pagination ────────────────────────────────────────────────────────── */

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0 8px;
}

.article-pagination__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-pagination__link {
  min-width: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--a-ink);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--a-shadow);
}

.article-pagination__link:hover {
  color: var(--a-amber-text);
}

.article-pagination__link--active,
.article-pagination__link--active:hover {
  background: var(--a-dark);
  color: #fff;
}

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

/* ── Blog strip / compact cards ────────────────────────────────────────── */

.article-blog-strip {
  margin-top: 56px;
  padding: 36px;
  border-radius: 26px;
  background: #f3f4f6;
}

.article-eyebrow--light {
  box-shadow: none;
}

.article-eyebrow--light i {
  color: var(--a-amber);
}

.article-blog-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 24px;
}

.article-blog-strip__head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 6px;
}

.article-blog-strip__head p {
  margin: 0;
  color: var(--a-muted);
}

.article-blog-strip__grid,
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-compact {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--a-radius);
  background: #fff8ee;
  min-width: 0;
}

.article-compact--image {
  background: var(--a-card);
  box-shadow: var(--a-shadow);
  padding: 14px 14px 18px;
}

.article-compact--image .article-media {
  margin-bottom: 14px;
}

.article-compact__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.article-compact--image .article-compact__meta {
  justify-content: flex-start;
}

.article-compact__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-compact__title a {
  color: inherit;
}

.article-compact__title a:hover {
  color: var(--a-amber-text);
}

.article-compact__excerpt {
  color: var(--a-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-compact__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  font-size: 0.78rem;
  color: var(--a-muted);
}

.article-compact__by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--a-ink);
  font-weight: 600;
}

/* ── Detail ────────────────────────────────────────────────────────────── */

.article-layout--detail {
  padding-top: 118px; /* 90px fixed navbar + 28px */
}

.article-layout__side--sticky {
  position: sticky;
  top: 100px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  color: var(--a-muted);
}

.article-breadcrumb i {
  font-size: 0.6rem;
}

.article-breadcrumb a {
  color: var(--a-text);
}

.article-breadcrumb a:hover,
.article-breadcrumb__cat {
  color: var(--a-amber-text) !important;
}

.article-breadcrumb__current {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.article-detail__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 16px;
}

.article-detail__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--a-text);
  margin: 0 0 22px;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f3f4f6;
  margin-bottom: 24px;
}

.article-byline__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.article-byline__who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
}

.article-byline__who strong {
  color: var(--a-ink);
  font-size: 1.05rem;
}

.article-byline__source {
  color: var(--a-brown);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-byline__source i {
  font-size: 0.65rem;
}

.article-byline__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share {
  display: flex;
  gap: 6px;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--a-ink);
}

.article-share a:hover {
  background: var(--a-amber);
  color: #ffffff;
}

.article-detail__hero {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: var(--a-shadow);
}

.article-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.article-takeaways {
  padding: 26px 28px;
  margin: 0 0 34px;
  border-radius: 18px;
  border-left: 5px solid var(--a-amber);
  background: #fff3e0;
}

.article-takeaways h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.article-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--a-ink);
  margin-top: 16px;
}

.article-takeaways li strong {
  font-weight: 700;
}

/* Small orange disc with a dark check, as in the design */
.article-takeaways__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #ffaa29;
  color: #1a1a2e;
  font-size: 0.65rem;
}

/* Article body */
.article-prose {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2b2b38;
  overflow-wrap: break-word;
}

.article-prose p,
.article-prose ul,
.article-prose ol,
.article-prose blockquote,
.article-prose figure,
.article-prose table,
.article-prose pre,
.article-prose audio {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.article-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.9;
  font-weight: 800;
  color: var(--a-brown);
  margin: 0.06em 0.12em 0 0;
}

.article-prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
}

.article-prose h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin: 1.4em 0 0.4em;
}

.article-prose h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.2em 0 0.4em;
}

.article-prose strong {
  color: var(--a-ink);
}

.article-prose a {
  color: var(--a-brown);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.4em;
}

.article-prose li + li {
  margin-top: 0.4em;
}

.article-prose blockquote {
  padding: 16px 22px;
  border-left: 4px solid var(--a-brown);
  border-radius: 0 14px 14px 0;
  background: #f3f4f6;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--a-ink);
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.article-prose figure {
  margin-left: 0;
  margin-right: 0;
}

.article-prose figcaption {
  font-size: 0.82rem;
  color: var(--a-muted);
  margin-top: 6px;
}

.article-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-prose th,
.article-prose td {
  border: 1px solid var(--a-line);
  padding: 8px 12px;
  text-align: left;
}

.article-prose th {
  background: #f3f4f6;
}

.article-prose pre {
  overflow-x: auto;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.article-prose audio {
  width: 100%;
}

.article-lesson {
  margin: 34px 0;
  padding: 24px;
  border-radius: 20px;
  background: #fff3e0;
  box-shadow: var(--a-shadow);
}

.article-lesson header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-lesson h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
}

.article-lesson .article-muted {
  margin: 0;
}

.article-lesson__card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
}

.article-lesson__card p {
  margin: 0;
  line-height: 1.65;
  color: var(--a-ink);
}

.article-source {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 0.9rem;
}

.article-source a {
  color: var(--a-ink);
  font-weight: 700;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
}

.article-tags a {
  padding: 4px 12px;
  border-radius: 50px;
  background: #f3f4f6;
  color: var(--a-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-read-sentinel {
  height: 1px;
}

.article-companies {
  margin: 48px 0 0;
}

.article-companies .article-section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.article-companies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-company {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--a-radius);
  background: var(--a-card);
  box-shadow: var(--a-shadow);
}

.article-company__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-company__head strong {
  color: var(--a-ink);
  font-size: 1.1rem;
}

.article-company__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--a-line);
}

.article-company__tagline {
  color: var(--a-text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.article-company__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.article-company__actions .article-btn--brown {
  flex: 1;
}

.article-companies__claim {
  color: var(--a-text);
  margin: 0;
}

.article-companies__claim a {
  color: var(--a-brown);
  font-weight: 700;
}

.article-related {
  margin-top: 64px;
}

.article-related__eyebrow {
  display: block;
  color: var(--a-brown);
  margin-bottom: 4px;
}

.article-related .article-section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout__side--sticky {
    position: static;
  }

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

  .article-blog-strip__grid,
  .article-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .article-hero {
    padding: 104px 0 32px;
  }

  .article-layout--detail {
    padding-top: 96px;
  }

  .article-grid,
  .article-blog-strip__grid,
  .article-related__grid,
  .article-companies__grid {
    grid-template-columns: 1fr;
  }

  .article-top {
    padding: 14px;
  }

  .article-top__foot {
    flex-wrap: wrap;
  }

  .article-brief,
  .article-blog-strip {
    padding: 24px 18px;
  }

  .article-newsletter-form--band .article-newsletter-form__row {
    flex-direction: column;
  }

  .article-search button {
    padding: 10px 16px;
  }

  .article-byline__actions {
    width: 100%;
    justify-content: space-between;
  }

  .article-prose {
    font-size: 1.02rem;
  }
}

/* ── Podcast player (cover image = player) ─────────────────────────────── */

.article-podcast {
  position: relative;
}

.article-podcast__placeholder {
  aspect-ratio: 16 / 9;
}

/* Solid semi-dark rounded rectangle behind the play button so it reads on any cover colour */
.article-podcast::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 136px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  z-index: 1;
  pointer-events: none;
  background: rgba(26, 26, 46, 0.75); /* dark enough for the orange icon on any cover colour */
}

.article-podcast__play,
.article-podcast__bar {
  z-index: 2;
}

.article-podcast__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Same size as the dark backdrop: the whole dark shape is the button, only the icon is orange */
  width: 136px;
  height: 100px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #f79500;
  font-size: 2.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.article-podcast__play i {
  margin-left: 6px; /* optical centre of the play triangle */
}

.article-podcast__play.is-playing i {
  margin-left: 0;
}

.article-podcast__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.article-podcast__play:focus {
  outline: none;
}

.article-podcast__play:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.article-podcast__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(26, 26, 46, 0.75);
  color: #ffffff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.article-podcast__track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  overflow: hidden;
}

.article-podcast__fill {
  height: 100%;
  background: #f79500;
}

.article-byline-after {
  margin-top: 28px;
}

/* Newsletter OTP step */
.article-newsletter-form__info {
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.article-newsletter-form__links {
  margin: 8px 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.article-newsletter-form .article-newsletter-form__link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 0;
}

.article-newsletter-form p.article-newsletter-form__legal {
  margin: 10px 0 0;
}

/* An odd last card (last page / search) spans both columns as a wide card — never a lone half */
@media (min-width: 576px) {
  .article-grid > .article-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 22px;
    align-content: start;
  }

  .article-grid > .article-card:last-child:nth-child(odd) > .article-media {
    grid-row: 1 / span 5;
  }

  .article-grid > .article-card:last-child:nth-child(odd) > :not(.article-media) {
    grid-column: 2;
  }
}
