/* page/article-detail.css — the production article detail template, used by
   every articles/<slug>.html page. Composes tokens/classes from
   components/styles.css + home/home-flagship.css only (R-04/R-05) — no
   shared component is edited. Loads LAST.

   Content is injected at runtime by page/article-detail.js from
   components/data-articles.js — this file stays pure structure/style, no
   article-specific content. Single readable column (this is prose, not a
   campaign showcase) — deliberately simpler than the case-study template's
   alternating photo panels. */

/* ---------------- Breadcrumb ---------------- */
.ad-crumb { padding: 18px var(--gutter) 0; }
.ad-crumb__link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--text); transition: color .2s var(--ease-standard);
}
.ad-crumb__link:hover { color: var(--primary); }
.ad-crumb__link svg { width: 13px; height: 13px; }

/* ---------------- Masthead ---------------- */
.ad-mast { text-align: center; padding-bottom: 0; }
.ad-mast__cat {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); justify-content: center; margin: 0 0 14px;
}
.ad-mast__cat::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--primary); }
.ad-mast__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.08; color: var(--primary);
  max-width: 850px; margin: 0 auto; text-wrap: balance;
}
.ad-mast__dek {
  max-width: 62ch; margin: clamp(16px, 2.2vw, 22px) auto 0;
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--text); text-wrap: pretty;
}

/* ---------------- Hero image ---------------- */
.ad-hero {
  max-width: var(--max); margin: clamp(32px, 4.5vw, 48px) auto 0;
  border-radius: var(--r-frame); overflow: hidden; aspect-ratio: 16 / 7.5;
  background: var(--surface-2);
}
.ad-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Body ---------------- */
.ad-body { max-width: 720px; margin: clamp(40px, 6vw, 60px) auto 0; }
.ad-p { font-size: 16.5px; line-height: 1.8; color: var(--text); margin: 0 0 22px; }
.ad-p a, .ad-list a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--line); transition: text-decoration-color .2s var(--ease-standard);
}
.ad-p a:hover, .ad-list a:hover { text-decoration-color: var(--primary); }
.ad-h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.25; color: var(--primary);
  margin: clamp(34px, 4vw, 46px) 0 18px;
}
.ad-h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.3; color: var(--primary);
  margin: clamp(24px, 3vw, 32px) 0 12px;
}
.ad-inline-img {
  margin: clamp(28px, 3.5vw, 38px) 0; border-radius: var(--r-frame);
  overflow: hidden; background: var(--surface-2);
}
.ad-inline-img img { width: 100%; height: auto; display: block; }
.ad-list { margin: 0 0 22px; padding: 0; list-style: none; }
.ad-list li {
  position: relative; padding-left: 24px; margin-bottom: 11px;
  font-size: 16px; line-height: 1.65; color: var(--text);
}
.ad-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 10px; border: solid var(--primary); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.ad-list li:last-child { margin-bottom: 0; }

/* ---- pull-quote (named attribution — press-release / thought-leadership
   posts quote real people) ---- */
.ad-quote { border-left: 2px solid var(--primary); padding: 2px 0 2px 26px; margin: 0 0 26px; }
.ad-quote__text {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--primary);
  margin: 0 0 14px; text-wrap: pretty;
}
.ad-quote__name { font-weight: 700; font-size: 14.5px; color: var(--primary); margin: 0; }
.ad-quote__role { font-size: 13px; color: var(--text); margin: 2px 0 0; }

/* ---------------- Sources ---------------- */
.ad-sources { margin: clamp(36px, 5vw, 48px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.ad-sources__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.ad-sources__list { margin: 0; padding: 0; list-style: none; }
.ad-sources__list li { margin-bottom: 6px; }
.ad-sources__list a {
  font-size: 13px; color: var(--text); word-break: break-word; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: var(--line);
}
.ad-sources__list a:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* ---------------- More articles ---------------- */
.ad-more__head { max-width: var(--max); margin: clamp(64px, 8vw, 88px) auto 20px; text-align: center; }
.ad-more { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; }
.ad-more__card { display: block; }
.ad-more__media {
  display: block; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.07);
}
.ad-more__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.ad-more__card:hover .ad-more__media img { transform: scale(1.04); }
.ad-more__cat { display: inline-block; margin: 13px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.ad-more__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 16px; line-height: 1.3; color: var(--primary); margin: 6px 0 0; text-wrap: pretty;
}

@media (max-width: 860px) {
  .ad-hero { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .ad-more { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-more__media img { transition: none; }
}
