/* =====================================================================
   NRR articles — stories, spotlights, hints & tips
   Rendered by /js/article-render.js. Used on /article.html and in the
   admin live preview. Mirrors the look of the old branded PDFs.
   ===================================================================== */
.art {
  --a-burg: var(--burgundy, #732444);
  --a-burg-deep: var(--burgundy-deep, #4a1429);
  --a-gold: var(--gold, #edac1a);
  --a-gold-text: var(--gold-text, #8a6200);
  --a-cream: var(--cream, #fdf8f3);
  --a-gold-wash: #fbefd2;
  --a-ink: var(--ink, #1a0f15);
  --a-slate: var(--slate, #5a4f55);
  --a-line: var(--line, rgba(115, 36, 68, 0.12));
  --a-display: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif);
  --a-body: var(--font-body, 'Inter', system-ui, sans-serif);
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--a-body);
  color: var(--a-ink);
  line-height: 1.6;
}
.art *, .art *::before, .art *::after { box-sizing: border-box; }
.art img { max-width: 100%; display: block; }

/* ---------- Header band ---------- */
.art-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--a-burg-deep);
  background-image: radial-gradient(circle at 100% 0%, rgba(237, 172, 26, 0.14), transparent 55%);
  color: #fff;
  border-radius: 22px;
  padding: 40px 44px;
}
.art-hero-logo {
  width: 112px; height: 112px;
  background: url('/assets/uploads/logo/NRR-logo-white.png') center / contain no-repeat;
  opacity: 0.95;
}
.art-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--a-gold); margin-bottom: 10px;
}
.art-title {
  font-family: var(--a-display); font-weight: 800; color: #fff;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0; letter-spacing: -0.01em;
}
.art-subtitle {
  font-family: var(--a-display); font-weight: 700; color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.2; margin: 6px 0 0;
}
.art-gold { color: var(--a-gold); }
.art-intro { margin: 16px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 1rem; max-width: 60ch; }

.art-body { padding: 8px 4px 0; }
.art-body > * { margin-top: 32px; }

/* ---------- Heading ---------- */
.art-heading {
  font-family: var(--a-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--a-burg); margin-bottom: -12px;
  display: flex; align-items: center; gap: 14px;
}
.art-heading::after { content: ''; flex: 1; height: 2px; background: var(--a-gold); opacity: 0.6; }

/* ---------- Text ---------- */
.art-text { font-size: 1.04rem; }
.art-text p { margin: 0 0 1em; }
.art-text p:last-child { margin-bottom: 0; }
.art-text ul, .art-text ol, .art-step-body ul, .art-tip ul, .art-callout ul, .art-qa ul { padding-left: 1.3em; margin: 0.5em 0 1em; }
.art-text li::marker { color: var(--a-gold-text); }
.art a { color: var(--a-burg); text-decoration-color: var(--a-gold); text-underline-offset: 3px; }

/* ---------- Quote ---------- */
.art-quote {
  margin: 32px 0 0; display: flex; gap: 20px; align-items: center;
  background: var(--a-gold-wash); border-left: 5px solid var(--a-gold);
  border-radius: 0 16px 16px 0; padding: 22px 26px;
}
.art-quote-photo img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.art-quote blockquote {
  margin: 0; font-family: var(--a-display); font-size: 1.2rem; font-weight: 600; line-height: 1.4;
  font-style: italic; color: var(--a-burg-deep);
}
.art-quote blockquote::before { content: '“'; color: var(--a-gold); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.art-quote blockquote::after { content: '”'; }
.art-quote figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--a-slate); }
.art-quote figcaption::before { content: '— '; }

/* ---------- Stats ---------- */
.art-stats { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.art-stat {
  background: var(--a-gold-wash); border-radius: 14px; padding: 22px 14px 18px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.art-stat-value { font-family: var(--a-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1; color: var(--a-burg-deep); }
.art-stat-label { margin-top: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-ink); }
.art-stat-note { margin-top: 3px; font-size: 0.72rem; font-style: italic; color: var(--a-slate); }
.art-stat.is-hl { background: var(--a-burg-deep); }
.art-stat.is-hl .art-stat-value { color: var(--a-gold); }
.art-stat.is-hl .art-stat-label { color: #fff; }
.art-stat.is-hl .art-stat-note { color: rgba(255, 255, 255, 0.75); }

/* ---------- Figure ---------- */
.art-figure { margin: 32px 0 0; }
.art-figure-imgs { display: grid; gap: 10px; }
.art-figure.is-pair .art-figure-imgs { grid-template-columns: 1fr 1fr; }
.art-figure img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 16px; }
.art-figure:not(.is-pair) img { width: auto; max-width: 100%; margin: 0 auto; }
.art-figure figcaption {
  margin-top: 10px; text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--a-slate);
}

/* ---------- Q&A ---------- */
.art-qa { list-style: none; padding: 0; display: grid; gap: 22px; }
.art-qa li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.art-qa-num {
  width: 52px; height: 52px; border-radius: 12px; background: var(--a-burg-deep); color: var(--a-gold);
  display: grid; place-items: center; font-family: var(--a-display); font-weight: 800; font-size: 1.1rem;
}
.art-qa h3 { margin: 2px 0 6px; font-family: var(--a-body); font-size: 1.02rem; font-weight: 700; color: var(--a-burg); }
.art-qa p { margin: 0 0 0.6em; }

/* ---------- Steps ---------- */
.art-steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.art-steps li {
  display: grid; grid-template-columns: 64px 1fr; border: 1px solid var(--a-line);
  border-radius: 14px; overflow: hidden; background: #fff;
}
.art-step-num {
  background: var(--a-gold); color: var(--a-burg-deep); display: grid; place-items: center;
  font-family: var(--a-display); font-weight: 800; font-size: 1.8rem;
}
.art-step-body { padding: 16px 20px; }
.art-step-body h3 {
  margin: 0 0 6px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-burg-deep);
}
.art-step-body p { margin: 0 0 0.6em; }
.art-step-body p:last-child { margin-bottom: 0; }
.art-step-img { margin-top: 14px; }
.art-step-img img { max-height: 420px; margin: 0 auto; }

/* ---------- Tips ---------- */
.art-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-tip { background: #fff; border: 1px solid var(--a-line); border-top: 4px solid var(--a-gold); border-radius: 12px; padding: 16px 18px; }
.art-tip h3 { margin: 0 0 6px; font-size: 1rem; color: var(--a-burg); }
.art-tip p { margin: 0 0 0.5em; font-size: 0.95rem; }

/* ---------- Callout ---------- */
.art-callout { background: var(--a-gold-wash); border-left: 5px solid var(--a-burg); border-radius: 0 14px 14px 0; padding: 20px 24px; }
.art-callout-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-gold-text); margin-bottom: 4px; }
.art-callout h3 { margin: 0 0 6px; font-family: var(--a-display); font-size: 1.25rem; color: var(--a-burg-deep); }
.art-callout p { margin: 0 0 0.5em; }
.art-callout p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.art-timeline-wrap { padding: 4px 0; }
.art-timeline {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
}
.art-timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(3.2em + 18px); height: 4px;
  background: var(--a-burg-deep); border-radius: 2px;
}
.art-timeline li { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 4px; }
.art-tl-label { min-height: 3.2em; display: flex; align-items: flex-end; font-size: 0.85rem; font-weight: 700; color: var(--a-burg-deep); line-height: 1.25; }
.art-tl-dot {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 0 0; background: var(--a-burg-deep);
  display: grid; place-items: center; position: relative; z-index: 1;
}
.art-tl-dot::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--a-gold); }
.art-timeline li.is-hl .art-tl-dot { background: var(--a-gold); box-shadow: 0 0 0 4px rgba(237, 172, 26, 0.25); }
.art-timeline li.is-hl .art-tl-dot::after { background: #ffd34d; }
.art-tl-when { margin-top: 10px; font-family: var(--a-display); font-weight: 800; font-size: 1.05rem; color: var(--a-burg-deep); }
.art-tl-note { margin: 14px 0 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-burg); }

/* ---------- Table ---------- */
.art-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--a-line); }
.art-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.art-table th { background: var(--a-burg-deep); color: #fff; text-align: left; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; }
.art-table td { padding: 10px 14px; border-top: 1px solid var(--a-line); vertical-align: top; }
.art-table tbody tr:nth-child(even) td { background: var(--a-cream); }
.art-table td:first-child { font-weight: 700; color: var(--a-burg); white-space: nowrap; }

/* ---------- Join CTA ---------- */
.art-cta {
  margin-top: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: #fff; border: 2px solid var(--a-burg-deep); border-radius: 18px; padding: 24px 28px;
}
.art-cta-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-gold-text); }
.art-cta h2 { margin: 2px 0 4px; font-family: var(--a-display); font-size: 1.5rem; color: var(--a-burg-deep); }
.art-cta p { margin: 0; color: var(--a-slate); font-size: 0.95rem; }
.art-cta-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--a-gold); color: var(--a-burg-deep) !important; font-weight: 800; text-decoration: none !important;
  transition: transform 0.2s;
}
.art-cta-btn:hover { transform: translateY(-2px); }

/* ---------- Footer strip ---------- */
.art-foot {
  margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 3px solid var(--a-burg-deep); padding-top: 10px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-burg-deep);
}
.art-foot-label { background: var(--a-gold); padding: 3px 10px; border-radius: 4px; }

/* ---------- Small screens ---------- */
@media (max-width: 680px) {
  .art-hero { grid-template-columns: 1fr; padding: 28px 22px; gap: 14px; border-radius: 18px; }
  .art-hero-logo { width: 64px; height: 64px; }
  .art-stats { grid-template-columns: 1fr 1fr; }
  .art-stats[style*="--cols:1"] { grid-template-columns: 1fr; }
  .art-stats[style*="--cols:3"] .art-stat:last-child { grid-column: span 2; }
  .art-quote { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .art-tips { grid-template-columns: 1fr; }
  .art-figure.is-pair .art-figure-imgs { grid-template-columns: 1fr; }
  .art-qa li { grid-template-columns: 40px 1fr; gap: 12px; }
  .art-qa-num { width: 40px; height: 40px; font-size: 0.95rem; border-radius: 10px; }
  .art-steps li { grid-template-columns: 48px 1fr; }
  .art-cta { flex-direction: column; align-items: flex-start; }
  /* Timeline goes vertical */
  .art-timeline { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .art-timeline::before { left: 22px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .art-timeline li { flex-direction: row; text-align: left; gap: 14px; }
  .art-tl-dot { order: 0; flex-shrink: 0; }
  .art-tl-when { order: 1; margin: 0; min-width: 4.5em; }
  .art-tl-label { order: 2; min-height: 0; align-items: center; }
}

@media print {
  .art-cta { display: none; }
  .art-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
