/* Monthly market reviews (/market-reviews and /market-reviews/<id>). Loaded after site.css and article.css,
   and built from their pieces: the reading column, kn-cards, the navy figure, the paper-2 boxes. */

.rv-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 24px; list-style: none; font-size: var(--t-5); color: var(--ink-soft); }
.rv-crumbs li + li::before { content: "‹"; margin-inline: 8px; color: var(--gold-deep); }
.rv-crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.rv-kicker { font-size: var(--t-5); font-weight: 800; color: var(--gold-deep); margin-bottom: 10px; }
.rv-title { font-size: var(--t-1); }
.rv-head .art-standfirst { color: var(--ink); font-weight: 500; }

.rv-cover { margin-bottom: 48px; }
.rv-cover img { width: 100%; max-height: 420px; aspect-ratio: 16 / 9; object-fit: cover; filter: contrast(1.04); }

/* in short: the summary and the 3–5 points, on paper-2 with gold squares */
.rv-brief { background: var(--paper-2); padding: 28px 32px; margin-bottom: 56px; }
.rv-brief h2 { margin-top: 0 !important; }
.prose .rv-points { margin: 18px 0 0; }
.prose .rv-points li { font-weight: 500; }

.rv-sec { margin-top: 40px; }
.rv-sec-k { font-size: var(--t-5) !important; font-weight: 800; color: var(--gold-deep); margin-bottom: 4px !important; }
.prose h3 { font-size: var(--t-3); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }

/* figures: a navy panel inside the reading column, the date and source always under it */
.rv-fig { background: var(--navy); color: var(--on-dark); padding: 24px 24px 18px; margin: 28px 0 32px; }
.rv-fig-cap { font-size: var(--t-4); font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.prose .rv-fig-src { font-size: 13.5px; line-height: 1.5; color: var(--on-dark-soft); margin: 14px 0 0; }
.rv-bars { width: 100%; border-collapse: collapse; }
.rv-bars th { width: 34%; padding: 7px 0 7px 14px; text-align: start; font-size: var(--t-5); font-weight: 700; vertical-align: middle; }
.rv-bars td { padding: 7px 0; display: flex; align-items: center; gap: 10px; }
.rv-bar { display: block; height: 22px; width: var(--w); min-width: 3px; background: var(--gold); flex: none; max-width: calc(100% - 76px); }
.rv-val { font-size: var(--t-5); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* with losses each row has two halves around a middle line: gains grow right of it, losses left of it */
.rv-bars.has-neg td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; position: relative; }
.rv-bars.has-neg td::after { content: ''; position: absolute; inset-block: 2px; inset-inline-start: 50%; width: 1px; background: rgba(241, 241, 238, .35); }
.rv-half { display: flex; align-items: center; gap: 8px; min-width: 0; }
.is-pos .rv-half:first-child { justify-content: flex-end; }
.is-neg .rv-half:last-child { justify-content: flex-start; }
.rv-bars.has-neg .rv-bar { width: calc(var(--w) * .55); max-width: none; }
.rv-bars .is-neg .rv-bar { background: var(--on-dark-soft); }
.rv-table-wrap { overflow-x: auto; }
.rv-table { width: 100%; border-collapse: collapse; font-size: var(--t-5); }
.rv-table th, .rv-table td { padding: 10px 12px 10px 0; text-align: start; border-bottom: 1px solid rgba(241, 241, 238, .18); vertical-align: baseline; }
.rv-table thead th { color: var(--on-dark-soft); font-weight: 700; }
.rv-table tbody th { font-weight: 700; }
.rv-table td { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
/* a cell that starts with a number turns left-to-right (dir="auto"), and "start" then meant left: keep every cell on the right, under its heading (Roei) */
.rv-table td[dir] { text-align: right; }
.rv-table tr:last-child > * { border-bottom: 0; }

/* what it means for our savings: one box per product */
.rv-meaning { margin-top: 56px; }
.rv-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 8px; }
.rv-product { background: var(--paper-2); padding: 20px 22px; border-top: 3px solid var(--gold); }
.rv-product h3 { font-size: var(--t-4); margin-bottom: 8px; }
.prose .rv-product p { font-size: 16.5px; line-height: 1.65; margin-bottom: 10px; }
.prose .rv-product p:last-of-type { margin-bottom: 0; }
.rv-product-go { display: inline-block; margin-top: 10px; font-size: var(--t-5); font-weight: 700; }
.prose .rv-general { font-size: var(--t-5); color: var(--ink-soft); margin-top: 14px; }

/* Roei's own angle: written and approved by him, never generated */
.rv-angle { margin-top: 56px; background: var(--navy); color: var(--on-dark); padding: 28px 32px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; border-inline-start: 6px solid var(--gold); }
.rv-angle img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 15%; }
.prose .rv-angle h2 { margin-top: 0; color: var(--gold); font-size: var(--t-3); }
.prose .rv-angle p { font-size: 18px; }
.prose .rv-angle p:last-child { margin-bottom: 0; }

.rv-credit { margin-top: 48px !important; }
.rv-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-copy svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.rv-copy.is-done { background: var(--paper-2); }

.rv-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.rv-pager-link { display: flex; flex-direction: column; padding: 14px 18px; background: var(--paper-2); color: var(--ink); text-decoration: none; transition: background-color 180ms ease; }
.rv-pager-link.is-prev { text-align: end; }
.rv-pager-link small { font-size: 13px; color: var(--ink-soft); }
.rv-pager-link strong { font-size: var(--t-4); font-weight: 800; }
.prose .rv-all { margin-top: 20px; font-size: var(--t-5); }

.rv-related { padding-block: 56px 0; }
.rv-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.rv-cta h2 { max-width: 30ch; }
/* the line under the heading: smaller than the heading, like body text */
.rv-cta .statement { font-size: var(--t-4); line-height: 1.6; margin-top: 14px; max-width: 60ch; color: var(--ink-soft); }
.rv-cta .button svg { width: 22px; height: 22px; fill: currentColor; margin-inline-end: 10px; }

/* the hub */
.rv-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); background: var(--paper-2); margin-bottom: 64px; }
.rv-feature-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; filter: contrast(1.04); }
.rv-feature-text { padding: 32px 36px 36px 16px; }
.rv-feature-title { font-size: var(--t-2); font-weight: 800; line-height: 1.25; }
.rv-feature-title a { color: inherit; text-decoration: none; }
.rv-feature-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.rv-feature-sum { margin-top: 12px; color: var(--ink-soft); line-height: 1.65; }
.rv-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rv-topics li { background: var(--navy); color: var(--on-dark); font-size: 14px; font-weight: 700; padding: 4px 12px; }
.rv-meta { margin-top: 14px; font-size: var(--t-5); color: var(--ink-soft); }
.rv-feature .button { margin-top: 20px; }
.rv-empty { background: var(--paper-2); padding: 32px; font-size: var(--t-3); font-weight: 700; margin-bottom: 64px; }
.rv-archive { padding-bottom: 72px; }
.rv-archive-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.rv-archive-head .kn-title { flex: 1 1 260px; }
.rv-years { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rv-year { min-height: 40px; padding: 0 16px; border: 0; background: var(--paper-2); color: var(--ink); font-weight: 700; cursor: pointer; }
.rv-year[aria-pressed="true"] { background: var(--navy); color: var(--on-dark); }
.rv-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-card[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .rv-pager-link:hover { background: #D9DBD7; }
  .rv-year:hover:not([aria-pressed="true"]) { background: #D9DBD7; }
}

@media (max-width: 800px) {
  .rv-feature { grid-template-columns: minmax(0, 1fr); }
  .rv-feature-img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .rv-feature-text { padding: 22px 20px 26px; }
  .rv-archive-grid, .rv-related-grid, .rv-products { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .rv-cover { margin-bottom: 32px; }
  .rv-brief { padding: 22px 18px; margin-bottom: 40px; }
  .rv-fig { padding: 18px 16px 14px; margin-inline: calc(var(--margin) * -1); }
  .rv-bars th { width: 34%; padding-inline-end: 10px; }
  .rv-bars .rv-val { font-size: 13px; }
  .rv-angle { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .rv-angle img { width: 56px; height: 56px; }
  .prose .rv-product p { font-size: 16px; }
  .rv-share-actions, .rv-share-actions .button { width: 100%; }
}
@media print {
  .topbar, .back-home, .art-share, .rv-pager, .rv-related, .rv-cta, .foot { display: none !important; }
  .rv-fig { background: none; color: inherit; border: 1px solid #999; }
}

/* "מה עשו הקופות?": a frozen snapshot, labelled as historical so nobody reads it as today's figures */
.rv-funds { margin-top: 56px; }
.prose .rv-snap { font-size: var(--t-5); line-height: 1.6; color: var(--ink-soft); margin-bottom: 0; }
.rv-snap-tag { display: inline-block; margin-inline-end: 8px; padding: 2px 10px; background: var(--navy); color: var(--gold); font-size: 13px; font-weight: 800; }
.rv-funds-fig { margin-top: 16px; }
.rv-funds-fig .rv-table td { white-space: nowrap; }
.prose .rv-funds-why { font-size: var(--t-5); color: var(--ink-soft); }
@media (max-width: 700px) {
  .rv-funds-fig .rv-table th, .rv-funds-fig .rv-table td { padding-inline-end: 8px; font-size: 13.5px; }
}
