/* ─── /news shared styles ─────────────────────────────────────────────────
   Loaded by every static page under /news/. Inherits tokens (--bg, --ink,
   --serif, etc.) from /styles.css. Keep this file small and content-focused;
   visual chrome (header, footer, nav, buttons) reuses /styles.css classes.
   ──────────────────────────────────────────────────────────────────────── */

/* ── shared scaffolding ───────────────────────────────────────────────── */

.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.breadcrumb span { color: var(--ink-4); }
.breadcrumb span:last-child { color: var(--ink); }

/* ── article page ─────────────────────────────────────────────────────── */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--page-px) 96px;
}

.article > h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 16px 0 12px;
  text-wrap: balance;
}

.kes-byline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.kes-byline .byline-author { color: var(--ink-2); }
.kes-byline time { color: var(--ink-3); }

.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.article-body > p:first-of-type,
.article-body p.answer {
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  padding: 20px 24px;
  margin: 24px 0 32px;
  background: var(--bg-deep);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 12px;
  letter-spacing: -0.005em;
}

.article-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 32px 0 8px;
}

.article-body p   { margin: 0 0 18px; }
.article-body ul,
.article-body ol  { margin: 0 0 24px; padding-left: 24px; }
.article-body li  { margin: 0 0 8px; }

.article-body a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s ease;
}
.article-body a:hover { border-bottom-color: var(--accent); }

.article-body blockquote {
  border-left: 3px solid var(--rule-2);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--ink-3);
  font-style: italic;
}

/* ── end-of-article CTA: newsletter + programs ────────────────────────── */

.article-cta {
  margin: 56px 0 0;
  padding: 32px 28px;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.article-cta + .article-cta { margin-top: 24px; }

.article-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.article-cta > p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 20px;
}

/* Newsletter form */
.cta-newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}
.cta-newsletter-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease;
}
.cta-newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}
.cta-newsletter-form button {
  padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.cta-newsletter-form button:hover { background: var(--accent-deep); }
.cta-newsletter-form button:disabled { opacity: .6; cursor: progress; }

.cta-newsletter-form__msg {
  flex: 1 0 100%;
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  min-height: 1.2em;
}
.cta-newsletter-form__msg[data-state="success"] { color: var(--accent-deep); }
.cta-newsletter-form__msg[data-state="error"]   { color: #b34a3a; }

.cta-newsletter-form__fineprint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 16px 0 0;
}

/* Program cards grid */
.article-cta__intro {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
}

.program-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.program-card {
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.program-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}

.program-card p {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 16px;
  flex: 1;
}

.program-card__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: none;
  border: 0 !important;
  align-self: flex-start;
  transition: color .15s ease;
}
.program-card__cta:hover { color: var(--ink); }

/* ── consent banner (loaded from /analytics.js, shown on first visit) ── */

#kes-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink-2);
  padding: 14px var(--page-px);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  animation: kes-consent-slide 0.25s ease-out;
}
@keyframes kes-consent-slide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #kes-consent-banner { animation: none; }
}
.kes-consent-banner__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.kes-consent-banner__text {
  margin: 0;
  color: #DDD3BD;
  flex: 1 1 320px;
}
.kes-consent-banner__text a {
  color: var(--bg);
  border-bottom: 1px solid #5a5042;
  text-decoration: none;
}
.kes-consent-banner__text a:hover { border-bottom-color: var(--bg); }
.kes-consent-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.kes-consent-banner__btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg);
  color: var(--ink);
  transition: background .15s ease;
}
.kes-consent-banner__btn:hover { background: var(--gold); color: var(--ink); }
.kes-consent-banner__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.kes-consent-banner__btn--ghost {
  background: transparent;
  color: #DDD3BD;
  border: 1px solid #5a5042;
}
.kes-consent-banner__btn--ghost:hover {
  background: var(--ink-2);
  color: var(--bg);
}
.kes-consent-banner__btn--ghost:focus-visible {
  outline-color: var(--bg);
}

/* a11y helper used by the newsletter form label */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── disclaimer ───────────────────────────────────────────────────────── */

.kes-disclaimer {
  margin: 56px 0 0;
  padding: 24px 28px;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.kes-disclaimer p { margin: 0; }
.kes-disclaimer strong { color: var(--ink); }
.kes-disclaimer a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── news index ───────────────────────────────────────────────────────── */

.news-index {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--page-px) 96px;
}

.news-index__header {
  max-width: 720px;
  margin: 0 0 48px;
}

.news-index__header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}

.news-index__header p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card a {
  display: block;
  height: 100%;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.news-card a:hover {
  transform: translateY(-2px);
  border-color: var(--rule-2);
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.06);
}

.news-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}

.news-card__desc {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  margin: 0;
}

.news-card--empty {
  padding: 48px;
  text-align: center;
  background: var(--bg-deep);
  border: 1px dashed var(--rule-2);
  border-radius: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
}
