/* =========================================================
   R2V Unified Portal — whats-new.css
   "What's new" hero + pinned section + timeline grouped by year
   ========================================================= */

/* ---- Hero ---- */
.r2v-wn-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(213,32,39,.14), transparent 35%),
    radial-gradient(circle at 86% 6%, rgba(20,131,177,.18), transparent 30%),
    linear-gradient(135deg, var(--r2v-cream) 0%, var(--r2v-cream-2) 100%);
  border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-xl);
  padding: 28px 32px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.r2v-wn-hero::after {
  content: '';
  position: absolute; top: -30%; right: -6%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.r2v-wn-hero__row { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.r2v-wn-hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--r2v-red); margin-bottom: 8px;
}
.r2v-wn-hero__title {
  font-family: var(--r2v-font-head); font-size: 36px; font-weight: 800;
  letter-spacing: -.02em; color: var(--r2v-blue-dark); margin: 0 0 6px;
}
.r2v-wn-hero__sub { color: var(--r2v-ink-soft); margin: 0; max-width: 680px; font-size: 15px; line-height: 1.55; }
.r2v-wn-hero__stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.r2v-wn-stat strong {
  display: block; font-family: var(--r2v-font-head); font-size: 28px; font-weight: 800;
  color: var(--r2v-blue-dark); line-height: 1; letter-spacing: -.02em;
}
.r2v-wn-stat span { font-size: 12px; color: var(--r2v-ink-mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.r2v-wn-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Section labels ---- */
.r2v-wn-section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--r2v-font-head); font-weight: 700; font-size: 14px;
  color: var(--r2v-ink); text-transform: uppercase; letter-spacing: .08em;
  margin: 6px 0 14px;
}
.r2v-wn-section-label i { width: 16px; height: 16px; color: var(--r2v-red); }
.r2v-wn-section-label .r2v-tag { background: var(--r2v-blue-soft); color: var(--r2v-blue-dark); }

/* ---- Tag chip (tone-aware) ---- */
.r2v-wn-tagchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.r2v-wn-tagchip i { width: 12px; height: 12px; }

.r2v-wn-tone--red    { background: var(--r2v-red-soft);   color: var(--r2v-red); }
.r2v-wn-tone--blue   { background: var(--r2v-blue-soft);  color: var(--r2v-blue-dark); }
.r2v-wn-tone--green  { background: #DDF3EA;               color: #0E6C53; }
.r2v-wn-tone--warn   { background: #FBEFC8;               color: #7A5A05; }
.r2v-wn-tone--ink    { background: #E5E7EB;               color: var(--r2v-ink); }

/* The same tone tokens applied to solid icon backgrounds */
.r2v-tl__dot.r2v-wn-tone--red    { background: var(--r2v-red);       color: #fff; }
.r2v-tl__dot.r2v-wn-tone--blue   { background: var(--r2v-blue);      color: #fff; }
.r2v-tl__dot.r2v-wn-tone--green  { background: var(--r2v-success);   color: #fff; }
.r2v-tl__dot.r2v-wn-tone--warn   { background: var(--r2v-warn);      color: #fff; }
.r2v-tl__dot.r2v-wn-tone--ink    { background: var(--r2v-ink);       color: #fff; }

/* ---- Pinned cards (top section) ---- */
.r2v-wn-pinned-grid {
  display: grid; gap: 18px; margin-bottom: 32px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.r2v-wn-pinned {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--r2v-surface); border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg); overflow: hidden;
  box-shadow: var(--r2v-shadow-1);
  text-decoration: none; color: inherit;
  transition: transform var(--r2v-dur), box-shadow var(--r2v-dur);
}
.r2v-wn-pinned:hover { transform: translateY(-2px); box-shadow: var(--r2v-shadow-2); text-decoration: none; color: inherit; }
.r2v-wn-pinned__media { background: var(--r2v-cream-2); position: relative; overflow: hidden; }
.r2v-wn-pinned__media img { width: 100%; height: 100%; object-fit: cover; }
.r2v-wn-pinned__media--noimg {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--r2v-blue), var(--r2v-blue-teal));
  color: #fff;
}
.r2v-wn-pinned__media--noimg.r2v-wn-tone--red    { background: linear-gradient(135deg, #7B2625, var(--r2v-red)); }
.r2v-wn-pinned__media--noimg.r2v-wn-tone--green  { background: linear-gradient(135deg, #0E6C53, var(--r2v-success)); }
.r2v-wn-pinned__media--noimg.r2v-wn-tone--warn   { background: linear-gradient(135deg, #A6770D, var(--r2v-warn)); }
.r2v-wn-pinned__media--noimg.r2v-wn-tone--ink    { background: linear-gradient(135deg, #1A2536, #56657A); }
.r2v-wn-pinned__media--noimg i { width: 64px; height: 64px; opacity: .85; }
.r2v-wn-pinned__body { padding: 18px 22px; display: flex; flex-direction: column; }
.r2v-wn-pinned__title { font-family: var(--r2v-font-head); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0 0 6px; color: var(--r2v-ink); }
.r2v-wn-pinned__excerpt { color: var(--r2v-ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 10px; flex: 1; }
.r2v-wn-pinned__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--r2v-ink-mute); }
.r2v-wn-pinned__meta i { width: 12px; height: 12px; color: var(--r2v-ink-mute); }

/* ---- Timeline ---- */
.r2v-tl {
  position: relative;
  margin: 0 0 20px;
  padding-left: 0;
}
.r2v-tl::before {
  content: ''; position: absolute; left: 27px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--r2v-border-2) 0%, var(--r2v-border-2) 88%, transparent 100%);
}

/* Year marker — sticky as you scroll the section */
.r2v-tl__year {
  display: flex; align-items: center; gap: 18px;
  margin: 32px 0 12px;
  padding-left: 0;
  position: sticky; top: calc(var(--r2v-topbar-h) + 8px);
  z-index: 5;
  background: linear-gradient(180deg, var(--r2v-cream) 80%, rgba(255,248,241,0) 100%);
  padding-top: 10px; padding-bottom: 6px;
}
.r2v-tl__year:first-child { margin-top: 8px; }
.r2v-tl__year-marker {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--r2v-blue-dark); color: #fff;
  display: grid; place-items: center;
  font-family: var(--r2v-font-head); font-weight: 800; font-size: 12px;
  letter-spacing: -.01em;
  box-shadow: 0 0 0 4px var(--r2v-cream), 0 4px 12px rgba(14,81,139,.25);
  flex-shrink: 0;
}
.r2v-tl__year-marker span { line-height: 1; }
.r2v-tl__year-meta {
  font-size: 13px; color: var(--r2v-ink-soft);
}
.r2v-tl__year-meta strong { color: var(--r2v-ink); font-family: var(--r2v-font-head); font-size: 16px; }

/* Entry — dot + card */
.r2v-tl__entry {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  margin-bottom: 14px;
  position: relative;
}
.r2v-tl__rail { display: flex; justify-content: center; padding-top: 18px; }
.r2v-tl__dot {
  position: relative; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--r2v-blue);
  color: #fff;
  border: 3px solid var(--r2v-cream);
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}
.r2v-tl__dot i { width: 16px; height: 16px; }

.r2v-tl__card {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px;
  background: var(--r2v-surface); border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg); overflow: hidden;
  box-shadow: var(--r2v-shadow-1);
  padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: transform var(--r2v-dur), box-shadow var(--r2v-dur), border-color var(--r2v-dur);
}
.r2v-tl__card:hover {
  transform: translateX(2px);
  box-shadow: var(--r2v-shadow-2);
  border-color: var(--r2v-border-2);
  text-decoration: none; color: inherit;
}
.r2v-tl__date {
  width: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border-right: 1px solid var(--r2v-border);
  padding-right: 12px;
}
.r2v-tl__date strong {
  font-family: var(--r2v-font-head); font-size: 22px; font-weight: 800;
  color: var(--r2v-red); line-height: 1;
}
.r2v-tl__date span {
  font-size: 11px; color: var(--r2v-ink-soft);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 2px;
}
.r2v-tl__body { min-width: 0; }
.r2v-tl__title {
  font-family: var(--r2v-font-head); font-weight: 700; font-size: 17px;
  color: var(--r2v-ink); margin: 0 0 4px; line-height: 1.3;
}
.r2v-tl__excerpt { color: var(--r2v-ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.r2v-tl__meta { display: flex; gap: 8px; font-size: 12px; color: var(--r2v-ink-mute); }
.r2v-tl__thumb {
  width: 100px; height: 100px; border-radius: 12px; overflow: hidden;
  flex-shrink: 0; align-self: center;
}
.r2v-tl__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile collapse */
@media (max-width: 720px) {
  .r2v-wn-hero { padding: 20px 18px; }
  .r2v-wn-hero__title { font-size: 26px; }
  .r2v-wn-pinned { grid-template-columns: 1fr; }
  .r2v-wn-pinned__media { aspect-ratio: 16/8; }
  .r2v-tl::before { left: 18px; }
  .r2v-tl__entry { grid-template-columns: 38px 1fr; gap: 10px; }
  .r2v-tl__rail { padding-top: 14px; }
  .r2v-tl__dot { width: 28px; height: 28px; border-width: 2px; }
  .r2v-tl__dot i { width: 14px; height: 14px; }
  .r2v-tl__year-marker { width: 44px; height: 44px; font-size: 11px; }
  .r2v-tl__card { grid-template-columns: 1fr; padding: 12px 14px; }
  .r2v-tl__date {
    flex-direction: row; gap: 6px; width: auto; padding: 0; border-right: 0; justify-content: flex-start;
  }
  .r2v-tl__date strong { font-size: 16px; }
  .r2v-tl__thumb { width: 100%; height: 140px; }
}
