/* QR7 News section — sketch 002 winning Variant C (featured coral hero + image-free
   text grid) + the Post detail (#v-d). Lifted from the sketch's inline <style> and
   re-pointed onto the established qr7.css brand tokens (--accent #F1582C /
   --accent-deep #C0421E / --accent-soft #FCE9E1, plus the neutral --surface/--border/
   --text-* and --shadow-* set on :root/.qr7-theme by qr7.css). Loaded only on the
   /news djangocms-stories surface via a sekizai {% addtoblock "css" %} from the
   template overrides. ALL rules are scoped under `.news` so they never leak onto the
   other marketing pages. The featured `.art` panel is a SOLID coral gradient (no
   image); grid cards are text-only; the detail feature image is conditional (rendered
   by the template only when post.main_image exists). */

/* ── width wrapper (the stories base.html replaces the marketing container) ── */
.news { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── shared news bits ── */
.news .eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep); font-weight: 500;
}
.news .eyebrow.dim { color: var(--text-faint); }
.news .page-head { padding: 48px 0 8px; }
.news .page-head h1 {
  font-size: 40px; line-height: 1.05; font-weight: 800;
  letter-spacing: -.02em; margin: .25em 0 .15em;
}
.news .page-head p { color: var(--text-muted); font-size: 16px; max-width: 60ch; margin: 0; }
.news .readmore {
  font-weight: 600; font-size: 14px; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 5px;
}
.news .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 3px; padding: 3px 7px; font-weight: 500;
}

/* ── Variant C — featured hero + grid ── */
.news .feat {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border: 1px solid var(--border); border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 32px 0 26px; background: var(--surface);
}
.news .feat .art {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  min-height: 300px; display: flex; align-items: flex-end; padding: 24px; color: #fff;
}
.news .feat .art .k {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  opacity: .85; text-transform: uppercase;
}
.news .feat .copy {
  padding: 34px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.news .feat .copy h2 {
  font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0;
}
.news .feat .copy h2 a { color: var(--text); text-decoration: none; }
.news .feat .copy h2 a:hover { color: var(--accent-deep); }
.news .feat .copy .lead, .news .feat .copy .lead p {
  color: var(--text-muted); font-size: 15.5px; margin: 0; max-width: 52ch;
}
.news .feat .copy .btn-brand { align-self: flex-start; }

.news .grid2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 8px;
}

/* text-only card */
.news .ncard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.news .ncard:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong);
}
.news .ncard .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news .ncard h3 { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 0; }
.news .ncard h3 a { color: var(--text); text-decoration: none; }
.news .ncard h3 a:hover { color: var(--accent-deep); }
.news .ncard .lead, .news .ncard .lead p { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }
.news .ncard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* ── Detail ── */
.news .article { max-width: 720px; margin: 0 auto; padding: 40px 0 8px; }
.news .article .back {
  font-weight: 600; font-size: 13.5px; color: var(--text-muted);
  display: inline-flex; gap: 6px; align-items: center; text-decoration: none;
}
.news .article .back:hover { color: var(--accent-deep); }
.news .article .eyebrow { display: block; margin-top: 18px; }
.news .article h1 {
  font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 14px;
}
.news .article .by {
  display: flex; align-items: center; gap: 12px; color: var(--text-faint);
  font-size: 13.5px; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 26px;
}
/* Conditional feature image: a real image (NOT the sketch placeholder box). */
.news .article .hero-art {
  margin: 8px 0 28px; border-radius: 3px; overflow: hidden; border: 1px solid var(--border);
}
.news .article .hero-art img { display: block; width: 100%; height: auto; }
.news .article .blog-content p { font-size: 16.5px; line-height: 1.7; color: #332e28; margin: 0 0 18px; }
.news .article .blog-content h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 30px 0 10px; }
.news .article .blog-content > p:first-child {
  font-size: 19px; line-height: 1.5; color: var(--text); margin: 0 0 22px;
}
/* Related posts under a detail page reuse the card grid. */
.news .post-detail-list { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 28px; }

.news .blog-empty { color: var(--text-muted); font-size: 16px; padding: 32px 0; }
.news .blog-back { margin-top: 24px; }
.news .pagination {
  display: flex; align-items: center; gap: 16px; margin-top: 32px;
  font-weight: 600; font-size: 14px;
}
.news .pagination .current { color: var(--text-muted); }

@media (max-width: 840px) {
  .news .grid2 { grid-template-columns: repeat(2, 1fr); }
  .news .feat { grid-template-columns: 1fr; }
  .news .feat .art { min-height: 180px; }
  .news .page-head h1 { font-size: 32px; }
  .news .article h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .news .grid2 { grid-template-columns: 1fr; }
}
