/* Riviera 2027 Discovery & Science — Option B (handoff § 7, lab solutions / concern / science / ingredients). Builds on home.css + store.css. Tokens: kit --rv-*. */
.rvd-hero { border-bottom: 1px solid var(--rv-line); background: var(--rv-canvas); }
.rvd-hero-in { display: flex; flex-direction: column; gap: 20px; padding-block: 48px; }
@media (min-width: 768px) { .rvd-hero-in { padding-block: 72px; } }
.rvd-hero .rvh-actions { margin-top: 8px; }
.rvd-sec { padding-top: 16px; padding-bottom: 32px; }
.rvd-note-wrap { padding-block: 32px 48px; }
.rvd-note-end { padding-top: 32px; padding-bottom: 80px; }
.rvd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rvd-chip-all { border-color: transparent; background: var(--rv-surface-2); }
.rvd-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--rv-surface-2); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--rv-muted); white-space: nowrap; }
.rvh-ing-main .rvd-tag { align-self: center; }
/* Ingredient rows with a status tag: wrap instead of overlapping on narrow screens (name + tag first, areas below, end-aligned). */
.rvd .rvh-ing { flex-wrap: wrap; row-gap: 4px; }
.rvd .rvh-ing-main { flex: 1 1 220px; flex-wrap: wrap; align-items: center; row-gap: 6px; column-gap: 12px; }
.rvd .rvh-ing-meta { margin-inline-start: auto; }
.rvd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rvd-empty { margin-top: 0; }
[dir="rtl"] .rvd :is(.rvd-tag, .rvd-path-index, .rvd-step-index, .rvd-fact-label) { letter-spacing: 0; }

/* Solutions: care areas */
.rvd-areas { display: flex; flex-direction: column; gap: 56px; }
.rvd-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .rvd-area { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } }
.rvd-area-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rv-line, #e2e8f0); }
.rvd-area-blurb { font-size: 15px; line-height: 1.6; color: var(--rv-muted); }
.rvd-area-link { min-height: 44px; padding: 0; font-size: 14px; }
@media (min-width: 768px) { .rvd-concerns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Concern band */
.rvd-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .rvd-band { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; padding: 48px; } }
.rvd-band-copy { display: flex; flex-direction: column; gap: 16px; }
.rvd-band .rvst-blurb { max-width: 620px; line-height: 1.7; }
.rvd-band .rvst-notice { background: color-mix(in srgb, var(--rv-surface) 80%, transparent); }

/* Science: 5 paths (1px-gap tiles) */
.rvd-paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--rv-line); border-radius: 20px; background: var(--rv-line); }
@media (min-width: 768px) { .rvd-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rvd-paths { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rvd-path { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px; padding: 24px; background: var(--rv-surface); color: var(--rv-accent); transition: background-color 150ms var(--ease, ease); }
a.rvd-path:hover { background: var(--rv-surface-2); }
.rvd-path-index { font: 400 12px var(--font-mono); color: var(--rv-accent); }
.rvd-path-text { display: flex; flex-direction: column; gap: 8px; }
.rvd-path-title { font: 700 19px/1.25 var(--font-heading); color: var(--rv-heading); }
.rvd-path-desc { font-size: 14px; line-height: 1.6; color: var(--rv-muted); }
.rvd-soon { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--rv-muted); }

/* Science: 9-step strip (horizontal scroll on mobile) */
.rvd-strip { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 8px; overflow-x: auto; list-style: none; scrollbar-width: none; }
.rvd-strip::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .rvd-strip { margin-inline: 0; padding-inline: 0; } }
.rvd-step { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; width: 168px; padding: 16px; border: 1px solid var(--rv-line); border-radius: 16px; background: var(--rv-surface); }
.rvd-step-index { font: 400 12px var(--font-mono); color: var(--rv-accent); }
.rvd-step-title { font: 700 15px/1.3 var(--font-heading); color: var(--rv-heading); overflow-wrap: break-word; }
.rvd-policy { display: flex; flex-direction: column; gap: 8px; padding-block: 48px; }
.rvd-policy-text { max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--rv-muted); }

/* Ingredient library */
.rvd-lib-head { gap: 16px; }
.rvd-lib { display: flex; flex-direction: column; gap: 32px; }
.rvd-lib-tools { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .rvd-lib-tools { flex-direction: row; align-items: center; gap: 16px; } }
.rvd-lib-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.rvd-lib-search svg { position: absolute; inset-inline-start: 16px; width: 18px; height: 18px; color: var(--rv-muted); pointer-events: none; }
.rvd-lib-search input { width: 100%; height: 48px; padding-inline: 44px 16px; border: 1px solid var(--rv-line-strong); border-radius: 999px; background: var(--rv-surface); font: 400 16px var(--font-body); color: var(--rv-ink); }
.rvd-lib-search input::placeholder { color: var(--rv-muted); opacity: 1; }
.rvd-lib-chips { flex-shrink: 0; }
@media (min-width: 768px) { .rvd-lib-chips { flex-wrap: nowrap; max-width: 60%; overflow-x: auto; } }
.rvd-filter { cursor: pointer; }
.rvd-filter[aria-pressed="true"] { border-color: var(--rv-navy); background: var(--rv-navy); color: var(--rv-navy-ink) !important; }
.rvd-lib-list { display: flex; flex-direction: column; gap: 32px; }
.rvd-letter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 768px) { .rvd-letter { grid-template-columns: 64px minmax(0, 1fr); } }
.rvd-letter[hidden], .rvd-lib-item[hidden] { display: none; }
.rvd-letter-mark { font: 700 28px/1 var(--font-heading); color: var(--rv-muted); }

/* Ingredient detail */
.rvd-ing-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 1024px) { .rvd-ing-head { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 40px; } }
.rvd-ing-title { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rvd-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--rv-line); border-radius: 20px; background: var(--rv-line); }
@media (min-width: 768px) { .rvd-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rvd-fact { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--rv-surface); }
.rvd-fact-label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--rv-muted); }
.rvd-fact-value { font: 600 18px/1.4 var(--font-heading); color: var(--rv-heading); }
.rvd-depth { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--rv-line); border-radius: 20px; }
@media (min-width: 768px) { .rvd-depth { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; } }
.rvd-depth-title { font: 700 19px var(--font-heading); color: var(--rv-heading); }
.rvd-depth-text { font-size: 15px; color: var(--rv-muted); }

@media (prefers-reduced-motion: reduce) { .rvd-path { transition: none !important; } }


/* ---------- v0.40.0 — Living ingredient library (cards by family, hero stats, interactive profile) ---------- */
.rvd-card, .rvd-ing-hero, .rvd-ing-body, .rvd-fam-chip { --c: hsl(var(--h, 190) 62% 38%); --tint: hsl(var(--h, 190) 70% 50% / .11); }
body.rv-dark :is(.rvd-card, .rvd-ing-hero, .rvd-ing-body, .rvd-fam-chip) { --c: hsl(var(--h, 190) 72% 70%); --tint: hsl(var(--h, 190) 70% 60% / .15); }
@media (prefers-color-scheme: dark) { body:not(.rv-light) :is(.rvd-card, .rvd-ing-hero, .rvd-ing-body, .rvd-fam-chip) { --c: hsl(var(--h, 190) 72% 70%); --tint: hsl(var(--h, 190) 70% 60% / .15); } }
/* Hero */
.rvd-lib-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 24px; margin: 8px 0 28px; padding: 32px 22px; border: 1px solid var(--rv-line); border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, var(--rv-accent-soft), transparent 55%), linear-gradient(160deg, var(--rv-surface), var(--rv-canvas)); }
@media (min-width: 900px) { .rvd-lib-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; padding: 48px; } }
.rvd-lib-hero .rvst-blurb { max-width: 56ch; margin-bottom: 0; }
.rvd-lib-orbs span { position: absolute; z-index: -1; border-radius: 50%; animation: rvdFloat 14s ease-in-out infinite; }
.rvd-lib-orbs span:nth-child(1) { width: 220px; height: 220px; inset-inline-end: -60px; top: -70px; background: radial-gradient(circle at 35% 35%, hsl(172 70% 55% / .45), transparent 70%); }
.rvd-lib-orbs span:nth-child(2) { width: 140px; height: 140px; inset-inline-end: 26%; bottom: -50px; background: radial-gradient(circle at 35% 35%, hsl(268 70% 62% / .35), transparent 70%); animation-delay: -5s; }
.rvd-lib-orbs span:nth-child(3) { width: 100px; height: 100px; inset-inline-start: 42%; top: 10%; background: radial-gradient(circle at 35% 35%, hsl(38 90% 58% / .35), transparent 70%); animation-delay: -9s; }
@keyframes rvdFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -16px) scale(1.07); } }
.rvd-lib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rvd-stat { padding: 16px 10px; border: 1px solid var(--rv-line); border-radius: 18px; text-align: center; background: color-mix(in srgb, var(--rv-surface) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rvd-stat b { display: block; font: 700 32px/1 var(--font-heading); color: var(--rv-heading); }
.rvd-stat span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--rv-muted); }
/* Chips */
.rvd-lib-chips .rvst-chip { gap: 6px; }
.rvd-chip-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rv-surface-2); font: 600 11px/1 var(--font-body, inherit); color: var(--rv-muted); }
.rvd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); transition: transform .3s; }
.rvd-fam-chip:hover .rvd-dot { transform: scale(1.35); }
.rvd .rvd-fam-chip[aria-pressed="true"] { border-color: transparent; background: var(--c); color: #fff; }
body.rv-dark .rvd .rvd-fam-chip[aria-pressed="true"] { color: #0B1A2C; }
@media (prefers-color-scheme: dark) { body:not(.rv-light) .rvd .rvd-fam-chip[aria-pressed="true"] { color: #0B1A2C; } }
.rvd-fam-chip[aria-pressed="true"] .rvd-dot { background: currentColor; }
.rvd-fam-chip[aria-pressed="true"] .rvd-chip-n { background: rgb(255 255 255 / .25); color: inherit; }
/* Card grid */
.rvd-lib .rvd-grid-wrap { display: block; }
.rvd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rvd-lib-item { display: flex; }
.rvd-lib-item[hidden] { display: none; }
.rvd-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 18px; border: 1px solid var(--rv-line); border-radius: 22px; color: var(--rv-text); text-decoration: none;
  background: radial-gradient(150% 100% at var(--mx, 90%) var(--my, 0%), var(--tint), transparent 62%), var(--rv-surface);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s; }
.rvd-card::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(135deg, var(--c), transparent 40%, transparent 60%, var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.rvd-card:hover, .rvd-card:focus-visible { transform: translateY(-5px); border-color: transparent; box-shadow: 0 22px 44px -22px hsl(var(--h, 190) 60% 30% / .55); }
.rvd-card:hover::before, .rvd-card:focus-visible::before { opacity: 1; }
.rvd-card:focus-visible { outline: 2px solid var(--rv-focus, var(--c)); outline-offset: 3px; }
.rvd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rvd-card-mono { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; font: 700 21px/1 var(--font-heading);
  background: linear-gradient(135deg, hsl(var(--h, 190) 72% 55%), hsl(calc(var(--h, 190) + 32) 68% 40%)); box-shadow: 0 10px 20px -10px hsl(var(--h, 190) 70% 35% / .8);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.rvd-card:hover .rvd-card-mono { transform: rotate(-9deg) scale(1.1); }
.rvd-card-fam { overflow: hidden; max-width: 68%; padding: 4px 9px; border-radius: 999px; background: var(--tint); color: var(--c); font-size: 11px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rvd-card-name { margin-top: 6px; font: 700 18px/1.25 var(--font-heading); color: var(--rv-heading); }
.rvd-card-ar { margin-top: -4px; font-size: 14px; font-weight: 600; color: var(--c); }
.rvd-card-teaser { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.6; color: var(--rv-text); }
.rvd-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--rv-muted); }
.rvd-card-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rv-surface-2); color: var(--c); transition: transform .4s, background .4s, color .4s; }
.rvd-card-go svg { width: 16px; height: 16px; }
.rvd-card:hover .rvd-card-go { transform: translateX(4px); background: var(--c); color: #fff; }
[dir="rtl"] .rvd-card:hover .rvd-card-go { transform: translateX(-4px); }
@media (max-width: 600px) {
  .rvd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rvd-card { padding: 14px; border-radius: 18px; gap: 6px; }
  .rvd-card-mono { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
  .rvd-card-top { flex-direction: column; align-items: flex-start; }
  .rvd-card-fam { max-width: 100%; font-size: 10px; }
  .rvd-card-name { font-size: 15px; }
  .rvd-card-teaser { -webkit-line-clamp: 3; font-size: 12.5px; line-height: 1.55; }
  .rvd-card-areas { display: none; }
  .rvd-lib-hero { padding: 26px 18px; }
  .rvd-stat b { font-size: 26px; }
  .rvd-lib-chips { flex-wrap: wrap; overflow: visible; }
}
/* Entrance (JS adds .rvd-js; uses the independent "translate" property so hover transforms stay free) */
.rvd-js .rvd-card:not(.is-in) { opacity: 0; translate: 0 16px; }
.rvd-js .rvd-card.is-in { animation: rvdIn .65s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes rvdIn { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
/* Ingredient profile */
.rvd-ing-hero { display: grid; gap: 20px; padding-top: 12px; padding-bottom: 28px; }
@media (min-width: 1024px) { .rvd-ing-hero { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; } }
.rvd-ing-hero-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start; gap: 22px; padding: 30px; border: 1px solid var(--rv-line); border-radius: 28px;
  background: radial-gradient(120% 130% at 100% 0%, var(--tint), transparent 60%), linear-gradient(160deg, var(--rv-surface), var(--rv-canvas)); }
.rvd-ing-hero-card::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; inset-inline-end: -90px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--h, 190) 70% 55% / .28), transparent 70%); animation: rvdFloat 16s ease-in-out infinite; }
.rvd-ing-mono { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; color: #fff; font: 700 36px/1 var(--font-heading);
  background: linear-gradient(135deg, hsl(var(--h, 190) 72% 55%), hsl(calc(var(--h, 190) + 32) 68% 40%)); box-shadow: 0 16px 30px -14px hsl(var(--h, 190) 70% 35% / .85); animation: rvdBob 6s ease-in-out infinite; }
@keyframes rvdBob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5px; rotate: -4deg; } }
.rvd-ing-hero-copy { min-width: 0; }
.rvd-ing-hero .rvst-h1 { margin-bottom: 4px; }
.rvd-ing-ar { margin: 0 0 4px; font: 700 20px/1.4 var(--font-heading); color: var(--c); }
.rvd-ing-class { margin: 2px 0 14px; font-size: 13px; color: var(--rv-muted); }
.rvd .rvd-tag-fam { background: var(--tint); color: var(--c); }
.rvd-ing-body { display: grid; gap: 16px; padding-bottom: 12px; }
.rvd-fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rvd-fcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--rv-line); border-radius: 24px; background: var(--rv-surface); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.rvd-fcards .rvd-fcard:nth-child(1) { background: linear-gradient(160deg, var(--tint), transparent 65%), var(--rv-surface); }
.rvd-fcards .rvd-fcard:nth-child(2) { --c2: hsl(calc(var(--h, 190) + 45) 65% 45% / .12); background: linear-gradient(200deg, var(--c2), transparent 65%), var(--rv-surface); }
.rvd-fcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px hsl(var(--h, 190) 60% 30% / .55); }
.rvd-fcard-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--tint); color: var(--c); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.rvd-fcard:hover .rvd-fcard-ic { transform: rotate(-10deg) scale(1.08); }
.rvd .rvd-fcard .rvd-fact-label { margin: 4px 0 0; color: var(--c); }
.rvd-fcard-text { margin: 0; font: 600 18px/1.55 var(--font-heading); color: var(--rv-heading); }
.rvd-fcard-ev { background: linear-gradient(180deg, var(--rv-surface-2), var(--rv-surface)); }
.rvd-fcard-ev:hover { transform: none; }
.rvd-ev-text p { margin: 0 0 10px; max-width: 80ch; font-size: 16px; line-height: 1.75; color: var(--rv-text); }
.rvd-refs { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--rv-line); }
.rvd-refs summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 600; color: var(--c); }
.rvd-refs summary::-webkit-details-marker { display: none; }
.rvd-refs summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); font-weight: 700; transition: transform .3s; }
.rvd-refs[open] summary::before { content: "−"; transform: rotate(180deg); }
.rvd-refs ol { margin: 12px 0 0; padding-inline-start: 22px; text-align: left; font-size: 13px; line-height: 1.65; color: var(--rv-muted); animation: rvdIn .4s ease both; }
.rvd-refs a { color: var(--c); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .rvd-ing-hero-card { flex-direction: column; gap: 14px; padding: 22px; }
  .rvd-ing-mono { width: 58px; height: 58px; border-radius: 18px; font-size: 28px; }
  .rvd-fcard { padding: 20px; }
  .rvd-fcard-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rvd-lib-orbs span, .rvd-ing-hero-card::after, .rvd-ing-mono { animation: none; }
  .rvd-js .rvd-card:not(.is-in) { opacity: 1; translate: none; }
  .rvd-js .rvd-card.is-in { animation: none; }
  .rvd-card, .rvd-fcard, .rvd-card-mono, .rvd-fcard-ic { transition: none; }
}

/* 0.40.0 — tools: search full width, family chips wrap (never scroll sideways) */
.rvd-lib .rvd-lib-tools { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 22px; }
.rvd-lib .rvd-lib-chips { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; }
.rvd-lib .rvd-lib-chips .rvst-chip { flex: none; }
@media (max-width: 600px) { .rvd-lib .rvd-lib-chips { gap: 6px; } .rvd-lib .rvd-lib-chips .rvst-chip { min-height: 32px; height: 32px; padding: 0 10px; font-size: 12.5px; gap: 5px; } .rvd-lib .rvd-chip-n { min-width: 18px; height: 18px; font-size: 10px; } .rvd-dot { width: 7px; height: 7px; } }
.rvd-lib .rvd-lib-tools, .rvd-lib .rvd-lib-chips { position: static; top: auto; }

/* v0.51.0 (Hazem): Science journal — card system with effects, images, share */
.rvd [hidden]{display:none!important}
.rva-hero em{font-style:normal;color:var(--rv-accent)}
.rva-sec{padding-block:34px}
.rva-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:640px){.rva-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.rva-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rva-card{position:relative;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;text-decoration:none;color:var(--rv-ink);background:var(--rv-surface);box-shadow:0 0 0 1px var(--rv-line),0 14px 34px -24px rgba(0,0,0,.4);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.rva-card:hover{transform:translateY(-6px);box-shadow:0 0 0 1px var(--rv-line),0 28px 54px -26px rgba(0,0,0,.5)}
.rva-card:focus-visible{outline:3px solid var(--rv-focus,var(--rv-accent));outline-offset:3px}
.rva-card-art{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:radial-gradient(90% 90% at 80% 10%,color-mix(in srgb,var(--rva-c) 65%,#fff),transparent 65%),linear-gradient(150deg,color-mix(in srgb,var(--rva-c) 55%,#000),#0b1512)}
.rva-card-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.rva-card:hover .rva-card-art img{transform:scale(1.07)}
.rva-card-art i{position:absolute;inset-inline-start:18%;top:24%;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff,color-mix(in srgb,var(--rva-c) 40%,#fff));box-shadow:0 0 44px color-mix(in srgb,var(--rva-c) 60%,transparent)}
.rva-card-body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px;flex:1}
.rva-card-area{font-size:12px;font-weight:800;letter-spacing:.03em;color:var(--rva-c)}
.rva-card-title{font-family:var(--font-heading);font-weight:700;font-size:18px;line-height:1.5;color:var(--rv-heading,var(--rv-ink))}
.rva-card-dek{font-size:14.5px;line-height:1.75;color:var(--rv-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rva-card-meta{font-size:12.5px;color:var(--rv-muted)}
.rva-card-cta{margin-top:auto;padding-top:8px;display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:14px;color:var(--rv-accent)}
.rva-card-cta .rvh-arrow{transition:translate .25s}
.rva-card:hover .rva-card-cta .rvh-arrow{translate:4px 0}
html[dir=rtl] .rva-card:hover .rva-card-cta .rvh-arrow{translate:-4px 0}
.rva-card.is-big{grid-column:1/-1;min-height:440px;justify-content:flex-end;color:#fff;box-shadow:0 30px 60px -30px rgba(0,0,0,.55)}
.rva-card.is-big .rva-card-art{position:absolute;inset:0;aspect-ratio:auto}
.rva-card.is-big .rva-card-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(3,7,6,.88) 0%,rgba(3,7,6,.45) 45%,rgba(3,7,6,0) 78%)}
.rva-card.is-big .rva-card-art i{width:130px;height:130px;top:12%}
.rva-card.is-big .rva-card-body{position:relative;padding:clamp(22px,4vw,40px);max-width:760px}
.rva-card.is-big .rva-card-area{color:#fff;opacity:.92}
.rva-card.is-big .rva-card-title{color:#fff;font-size:clamp(24px,3.4vw,38px);line-height:1.3}
.rva-card.is-big .rva-card-dek{color:rgba(255,255,255,.9);font-size:16px;-webkit-line-clamp:3}
.rva-card.is-big .rva-card-meta{color:rgba(255,255,255,.8)}
.rva-card.is-big .rva-card-cta{color:#fff;align-self:flex-start;margin-top:10px;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px)}
.rva-band{background:var(--rv-canvas)}
.rva-conds{display:grid;gap:12px}
@media (min-width:760px){.rva-conds{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rva-cond{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;background:var(--rv-surface);box-shadow:0 0 0 1px var(--rv-line),0 10px 24px -20px rgba(0,0,0,.35);text-decoration:none;color:var(--rv-ink);transition:transform .25s,box-shadow .25s}
.rva-cond:hover{transform:translateY(-3px);box-shadow:0 0 0 1px var(--rv-line),0 20px 36px -22px rgba(0,0,0,.45)}
.rva-cond-ico{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font:800 17px/1 var(--font-heading);color:var(--rva-c);background:color-mix(in srgb,var(--rva-c) 14%,transparent)}
.rva-cond-txt{flex:1;display:flex;flex-direction:column;gap:3px}
.rva-cond-txt small{font-size:12.5px;color:var(--rv-muted)}
.rva-ings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:900px){.rva-ings{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* article */
.rva-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:10000;pointer-events:none}
.rva-progress i{display:block;height:100%;background:var(--rv-accent);transform:scaleX(0);transform-origin:left center}
html[dir=rtl] .rva-progress i{transform-origin:right center}
.rva-hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:min(68vh,540px);margin-top:6px;border-radius:28px;overflow:hidden;color:#fff;box-shadow:0 40px 80px -50px rgba(0,0,0,.7)}
.rva-hero-media{position:absolute;inset:0;z-index:-1;background:radial-gradient(80% 90% at 78% 15%,color-mix(in srgb,var(--rva-c) 70%,#fff),transparent 62%),linear-gradient(155deg,color-mix(in srgb,var(--rva-c) 50%,#000),#0b1512)}
.rva-hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;animation:rvaKen 16s ease-out both}
.rva-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(3,7,6,.92) 0%,rgba(3,7,6,.55) 42%,rgba(3,7,6,.08) 78%)}
.rva-hero-media i{position:absolute;inset-inline-start:12%;top:16%;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff,color-mix(in srgb,var(--rva-c) 35%,#fff));box-shadow:0 0 80px color-mix(in srgb,var(--rva-c) 65%,transparent);animation:rvaFloat 7s ease-in-out infinite}
@keyframes rvaKen{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes rvaFloat{50%{translate:0 -10px}}
.rva-hero-txt{padding:clamp(22px,4vw,48px);max-width:860px}
.rva-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.rva-chips span{padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:13px;font-weight:700;color:#fff}
html body .rvd .rva-title{margin:0;color:#fff;font-family:var(--font-heading);font-size:clamp(28px,5.2vw,50px);line-height:1.28;max-width:22ch;text-wrap:balance}
html body .rvd .rva-dek{margin:16px 0 0;color:rgba(255,255,255,.9);font-size:clamp(16px,2vw,19px);line-height:1.8;max-width:58ch}
.rva-wrap{max-width:840px;padding-bottom:56px}
.rva-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;margin:24px 0 6px}
.rva-seg{flex:1 1 300px;max-width:480px;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;border-radius:18px;background:var(--rv-canvas);box-shadow:inset 0 0 0 1px var(--rv-line)}
html body .rva-seg button{appearance:none;border:0;background:transparent;color:var(--rv-ink);font-family:inherit;font-weight:700;font-size:14px;line-height:1.3;padding:12px 10px;border-radius:13px;cursor:pointer;white-space:normal;box-shadow:none;transition:background .25s,color .25s}
html body .rva-seg button[aria-selected=true]{background:var(--rv-navy);color:var(--rv-navy-ink);box-shadow:0 8px 18px -12px rgba(0,0,0,.6)}
html body .rva-seg button:focus-visible{outline:3px solid var(--rv-focus,var(--rv-accent));outline-offset:2px}
.rva-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rva-share-l{font-size:13px;font-weight:800;color:var(--rv-muted)}
.rva-share-b{display:flex;gap:6px;flex-wrap:wrap}
html body .rva-sh{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:13px;background:var(--rv-surface);box-shadow:0 0 0 1px var(--rv-line);color:var(--rv-ink);cursor:pointer;text-decoration:none;transition:transform .2s,background .2s,color .2s,box-shadow .2s}
html body .rva-sh:hover,html body .rva-sh:focus-visible{transform:translateY(-3px);color:#fff;box-shadow:0 10px 20px -12px rgba(0,0,0,.5)}
html body .rva-sh.is-wa:hover,html body .rva-sh.is-wa:focus-visible{background:#1fa855}
html body .rva-sh.is-fb:hover,html body .rva-sh.is-fb:focus-visible{background:#1877f2}
html body .rva-sh.is-x:hover,html body .rva-sh.is-x:focus-visible{background:#111}
html body .rva-sh.is-tg:hover,html body .rva-sh.is-tg:focus-visible{background:#1d93d2}
html body .rva-sh.is-in:hover,html body .rva-sh.is-in:focus-visible{background:#0a66c2}
html body .rva-sh-copy:hover,html body .rva-sh-native:hover,html body .rva-sh-copy:focus-visible,html body .rva-sh-native:focus-visible,html body .rva-sh.is-done{background:var(--rv-navy);color:var(--rv-navy-ink)}
.rva-know{margin-top:28px}
.rva-kh{font-family:var(--font-heading);font-size:22px;line-height:1.4;margin:0 0 14px;color:var(--rv-heading,var(--rv-ink))}
.rva-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:520px){.rva-facts{grid-template-columns:1fr}}
.rva-fact{position:relative;padding:20px;border-radius:22px;background:linear-gradient(160deg,color-mix(in srgb,var(--rva-c) 16%,var(--rv-surface)),var(--rv-surface) 70%);box-shadow:0 0 0 1px var(--rv-line),0 12px 28px -22px rgba(0,0,0,.4);transition:transform .3s,box-shadow .3s}
.rva-fact:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--rv-line),0 22px 40px -24px rgba(0,0,0,.5)}
.rva-fact-n{display:block;font:800 30px/1 var(--font-heading);color:var(--rva-c)}
html body .rvd .rva-fact p{margin:12px 0 0;font-size:15.5px;line-height:1.8;color:var(--rv-ink)}
.rva-toc{margin-top:22px;padding:22px 24px;border-radius:24px;background:var(--rv-canvas);box-shadow:inset 0 0 0 1px var(--rv-line)}
.rva-toc b{font-family:var(--font-heading);font-size:17px;color:var(--rv-heading,var(--rv-ink))}
.rva-toc ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.rva-toc a{display:flex;gap:14px;align-items:baseline;padding:9px 12px;border-radius:12px;text-decoration:none;color:var(--rv-ink);font-weight:600;transition:background .2s,translate .2s}
.rva-toc a:hover{background:var(--rv-surface);translate:-4px 0}
html[dir=ltr] .rva-toc a:hover{translate:4px 0}
.rva-toc a span{font:800 13px/1 var(--font-heading);color:var(--rva-c);min-width:24px}
html body .rvd .rva-lead p{font-size:19px;line-height:1.9;margin:28px 0 0;color:var(--rv-ink)}
.rva-sec-card{position:relative;margin-top:18px;padding:30px clamp(20px,4.5vw,40px) 32px;border-radius:26px;background:var(--rv-surface);box-shadow:0 0 0 1px var(--rv-line),0 20px 44px -34px rgba(0,0,0,.45);scroll-margin-top:120px;overflow:hidden;transition:box-shadow .35s}
.rva-sec-card:hover{box-shadow:0 0 0 1px var(--rv-line),0 30px 60px -36px rgba(0,0,0,.55)}
.rva-sec-n{position:absolute;top:14px;inset-inline-end:22px;font:800 64px/1 var(--font-heading);color:var(--rva-c);opacity:.13;pointer-events:none}
html body .rvd .rva-sec-card h2{margin:0;padding-inline-end:70px;font-family:var(--font-heading);font-size:clamp(20px,2.6vw,27px);line-height:1.45;color:var(--rv-heading,var(--rv-ink))}
html body .rvd .rva-sec-card p{margin:14px 0 0;font-size:17px;line-height:1.95;color:var(--rv-text,var(--rv-ink))}
html body .rvd .rva-sec-card h2+p{margin-top:12px}
.rva-sec-card strong{color:var(--rv-heading,var(--rv-ink));font-weight:800}
.rva-ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.rva-ul li{position:relative;padding-inline-start:30px;font-size:16.5px;line-height:1.85}
.rva-ul li::before{content:"";position:absolute;inset-inline-start:5px;top:.72em;width:10px;height:10px;border-radius:50%;background:var(--rva-c);box-shadow:0 0 0 5px color-mix(in srgb,var(--rva-c) 16%,transparent)}
.rva-sec-card.is-alert{background:linear-gradient(160deg,#fff4dc,#fffcf5 70%)}
html body .rvd .rva-sec-card.is-alert h2{display:flex;align-items:center;gap:12px}
.rva-sec-card.is-alert h2::before{content:"!";flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e39b12;color:#fff;font-size:17px;font-weight:800}
.rva-sec-card.is-alert .rva-ul li::before{background:#e39b12;box-shadow:0 0 0 5px rgba(227,155,18,.18)}
.rva-sec-card.is-brand{background:linear-gradient(160deg,color-mix(in srgb,var(--rva-c) 13%,var(--rv-surface)),var(--rv-surface) 62%)}
.rva-eyebrow{margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--rva-c)}
.rva-sec-card .rvh-grid{margin-top:20px}
.rva-myths{display:grid;gap:14px;margin-top:18px}
@media (min-width:720px){.rva-myths{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rva-myth{border-radius:20px;overflow:hidden;background:var(--rv-canvas);box-shadow:0 0 0 1px var(--rv-line);transition:transform .3s,box-shadow .3s}
.rva-myth:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--rv-line),0 18px 34px -22px rgba(0,0,0,.45)}
html body .rvd .rva-myth p{display:flex;gap:12px;align-items:flex-start;margin:0;padding:16px 18px;font-size:15.5px;line-height:1.8}
.rva-myth b{display:block;margin-bottom:3px;font-size:12px;font-weight:800;letter-spacing:.05em}
.rva-myth-m{color:var(--rv-muted)}
.rva-myth-m b{color:#d04a3a}
html body .rvd .rva-myth-f{background:var(--rv-surface)}
.rva-myth-f b{color:#1f9461}
.rva-tag{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:14px;font-weight:800;color:#fff}
.rva-tag.is-x{background:#e05545}
.rva-tag.is-ok{background:#24a36a}
.rva-chips2{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.rva-chip{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:999px;background:color-mix(in srgb,var(--rva-c) 12%,var(--rv-surface));box-shadow:0 0 0 1px var(--rv-line);color:var(--rv-ink);text-decoration:none;font-weight:700;font-size:14px;transition:transform .2s,background .2s}
.rva-chip:hover{transform:translateY(-3px);background:color-mix(in srgb,var(--rva-c) 24%,var(--rv-surface))}
.rva-pro-note{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 0;padding:16px 18px;border-radius:18px;background:var(--rv-canvas);font-size:14.5px;line-height:1.7;color:var(--rv-muted)}
.rva-pro-note span{padding:5px 12px;border-radius:999px;background:var(--rv-navy);color:var(--rv-navy-ink);font-weight:800;font-size:12px}
html body .rvd .rva-pro .rva-sec-card h2{font-size:clamp(18px,2.2vw,22px);padding-inline-end:0}
html body .rvd .rva-pro .rva-sec-card p,.rva-pro .rva-ul li{font-size:16px}
.rva-refs{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px;text-align:left}
.rva-refs li{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--rv-canvas);font-size:13.5px;line-height:1.7;color:var(--rv-ink)}
.rva-ref-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--rv-navy);color:var(--rv-navy-ink);font-weight:800;font-size:12px}
.rva-refs a{color:var(--rv-accent);font-weight:800;white-space:nowrap;margin-inline-start:4px}
.rva-end{margin-top:28px;padding:30px 24px;border-radius:26px;text-align:center;background:linear-gradient(135deg,color-mix(in srgb,var(--rva-c) 18%,var(--rv-surface)),var(--rv-canvas))}
html body .rvd .rva-end h2{margin:0 0 16px;font-family:var(--font-heading);font-size:clamp(18px,2.4vw,22px);color:var(--rv-heading,var(--rv-ink))}
.rva-end .rva-share{justify-content:center}
.rva-end .rva-share-l{display:none}
html body .rva-end .rva-sh{width:48px;height:48px;border-radius:15px}
.rva-disc{margin-top:28px;font-size:13px;color:var(--rv-muted);text-align:center}
html.rva-js .rva-reveal{opacity:0;translate:0 24px;transition:opacity .7s cubic-bezier(.2,.7,.2,1),translate .7s cubic-bezier(.2,.7,.2,1),transform .35s,box-shadow .35s}
html.rva-js .rva-reveal.is-in{opacity:1;translate:0 0}
html.rva-js .rva-fact.rva-reveal{transition-delay:calc(var(--i,0) * 90ms)}
body.rv-dark .rva-sec-card.is-alert{background:linear-gradient(160deg,#2b2112,#16130e 70%)}
@media (prefers-color-scheme:dark){body:not(.rv-light) .rva-sec-card.is-alert{background:linear-gradient(160deg,#2b2112,#16130e 70%)}}
@media (prefers-reduced-motion:reduce){.rva-hero-media img,.rva-hero-media i{animation:none}html.rva-js .rva-reveal{opacity:1;translate:none;transition:none}.rva-card,.rva-card-art img,.rva-fact,.rva-myth,.rva-chip,.rva-sh{transition:none}}

/* v0.51.1 (Hazem): education, not a lesson — no numbers on article cards; clear bordered product cards */
html body .rvd .rva-fact-n,html body .rvd .rva-sec-n{display:none}
html body .rvd .rva-fact-i{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--rva-c) 14%,var(--rv-surface));color:var(--rva-c)}
html body .rvd .rva-fact{display:flex;align-items:flex-start;gap:14px}
html body .rvd .rva-fact-i{flex:0 0 38px}
html body .rvd .rva-fact p{margin:6px 0 0}
html body .rvd .rva-sec-card h2{padding-inline-end:0}
html body .rvd .rva-toc a .rva-toc-dot{width:8px;height:8px;min-width:8px;border-radius:50%;background:var(--rva-c);opacity:.75;flex:0 0 8px}
html body .rvd .rva-prods{display:grid;gap:12px;margin-top:22px}
@media (min-width:720px){html body .rvd .rva-prods{grid-template-columns:repeat(2,minmax(0,1fr))}}
html body .rvd a.rva-prod{display:flex;align-items:center;gap:14px;padding:12px;border-radius:20px;background:var(--rv-surface);box-shadow:0 0 0 1px var(--rv-line);text-decoration:none;color:var(--rv-ink);transition:transform .25s ease,box-shadow .25s ease}
html body .rvd a.rva-prod:hover,html body .rvd a.rva-prod:focus-visible{transform:translateY(-2px);box-shadow:0 0 0 1px color-mix(in srgb,var(--rva-c) 55%,var(--rv-line)),0 14px 30px -20px rgba(0,0,0,.45)}
html body .rvd .rva-prod-media{flex:0 0 92px;width:92px;height:92px;border-radius:14px;overflow:hidden;background:#fff;display:grid;place-items:center}
html body .rvd .rva-prod-img{width:100%;height:100%;object-fit:contain;transition:transform .35s ease}
html body .rvd a.rva-prod:hover .rva-prod-img{transform:scale(1.06)}
html body .rvd .rva-prod-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:start}
html body .rvd .rva-prod-brand{font-size:11.5px;font-weight:800;letter-spacing:.08em;color:var(--rva-c)}
html body .rvd .rva-prod-name{font-family:var(--font-heading);font-size:15.5px;font-weight:700;line-height:1.4;color:var(--rv-heading,var(--rv-ink))}
html body .rvd .rva-prod-name bdi,html body .rvd .rva-prod-brand bdi{display:inline;unicode-bidi:isolate;text-align:start}
html body .rvd .rva-prod-d{display:block;font-size:13px;line-height:1.55;color:var(--rv-muted)}
html body .rvd .rva-prod-go{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-size:13px;font-weight:700;color:var(--rva-c)}
html[dir=rtl] body .rvd .rva-prod-go .rvh-arrow{transform:scaleX(-1)}
@media (prefers-reduced-motion:reduce){html body .rvd a.rva-prod,html body .rvd .rva-prod-img{transition:none}}
/* 0.59.5 inline article photos */
.rva-fig{margin:18px 0 4px;display:grid;gap:8px}
.rva-fig img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;border-radius:18px;border:1px solid var(--rv-line,#e4e7ec)}
.rva-fig figcaption{font-size:14px;line-height:1.6;color:var(--rv-muted,#5b6472);text-align:center}
