/* ==========================================================================
   ARTHA NAKSHATRA — RESEARCH LIBRARY (/research)
   Builds on tokens.css and site.css only: same plate, type, buttons, chips
   and typemarks as the home page. Nothing here restyles an existing class.
   ========================================================================== */

/* This page hides panels with the hidden attribute; grid and flex rules below must not undo it. */
#main [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preview-ribbon { background: var(--warn-soft); color: var(--warn); font-size: var(--t-xs); font-weight: 600; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* ---------- Hero plate ---------- */
.rl-hero { border-bottom: 1px solid var(--plate-line); }
.rl-hero__in { display: grid; gap: 18px; padding-block: 56px 48px; max-width: 900px; margin-inline: 0; }
@media (min-width: 720px) { .rl-hero__in { margin-inline: auto; max-width: var(--content-max); padding-right: 32%; } }
.rl-hero .eyebrow { color: var(--plate-gold); letter-spacing: 0.16em; }
.rl-hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.rl-hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 500; }
.rl-hero p { color: var(--plate-ink-2); font-size: 1.0625rem; max-width: 58ch; }

.rl-search { position: relative; display: flex; align-items: center; max-width: 640px; margin-top: 6px; }
.rl-search .ico { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--gold-400); fill: none; stroke: currentColor; stroke-width: 1.6; }
.rl-search input {
  width: 100%; height: 56px; padding: 0 56px 0 50px; border-radius: var(--r-pill);
  border: 1px solid var(--plate-line); background: rgba(244, 241, 234, 0.06); color: var(--plate-ink);
  font: inherit; font-size: var(--t-md); outline: none; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.rl-search input::placeholder { color: var(--plate-ink-2); }
.rl-search input:focus { border-color: var(--gold-400); background: rgba(244, 241, 234, 0.1); }
.rl-search kbd { position: absolute; right: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--plate-ink-2); border: 1px solid var(--plate-line); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 720px) { .rl-search kbd { display: none; } }

.rl-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--t-xs); }
.rl-quick span { color: var(--plate-ink-2); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; margin-right: 4px; }
.rl-quick button { font: inherit; font-size: var(--t-xs); color: var(--plate-ink); background: transparent; border: 1px solid var(--plate-line); border-radius: var(--r-pill); padding: 5px 12px; cursor: pointer; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.rl-quick button:hover { border-color: var(--gold-400); color: var(--gold-300); }
.rl-trust { margin-top: 4px; }
.rl-trust .ico { width: 15px; height: 15px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; }

/* ---------- How it works (the disclaimer, given real weight) ---------- */
.rl-terms { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px; }
.rl-terms__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .rl-terms__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.rl-term { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.rl-term__seal { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); }
.rl-term__seal svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rl-term b { display: block; font-size: var(--t-md); }
.rl-term p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.rl-legal { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.rl-legal summary { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-sm); font-weight: 600; color: var(--accent); list-style: none; }
.rl-legal summary::-webkit-details-marker { display: none; }
.rl-legal summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-2) var(--ease); }
.rl-legal[open] summary::after { transform: rotate(-135deg); }
.rl-legal__body { display: grid; gap: 10px; max-width: 86ch; margin-top: 12px; color: var(--ink-2); font-size: var(--t-sm); }
.rl-legal__body a { color: var(--accent); }

/* ---------- Tabs ---------- */
.rl-lib { padding-block: 40px 72px; }
.rl-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.rl-tabs::-webkit-scrollbar { display: none; }
.rl-tabs button { font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); background: none; border: 0; padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.rl-tabs button:hover { color: var(--ink); }
.rl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-strong); }

/* ---------- Layout ---------- */
.rl-body { display: grid; gap: 24px; }
@media (min-width: 1000px) { .rl-body { grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; } }

/* ---------- Filters ---------- */
.rl-filters details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (min-width: 1000px) { .rl-filters { position: sticky; top: 88px; } .rl-filters summary { pointer-events: none; } }
.rl-filters summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; font-size: var(--t-sm); cursor: pointer; list-style: none; }
.rl-filters summary::-webkit-details-marker { display: none; }
.rl-filters summary .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#fcount { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.rl-filters__in { display: grid; gap: 18px; padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.rl-filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.rl-filters legend { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; padding: 0; }
.rl-group { font-size: 11px; color: var(--ink-3); margin: 8px 0 2px; }
.rl-group:first-child { margin-top: 0; }
.rl-check { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.rl-check input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; margin: 0; display: grid; place-items: center; flex: none; cursor: pointer; }
.rl-check input:checked { background: var(--accent-strong); border-color: var(--accent-strong); }
.rl-check input:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.rl-check span { flex: 1; }
.rl-check small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.rl-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-seg button { font: inherit; font-size: var(--t-xs); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; cursor: pointer; }
.rl-seg button[aria-pressed="true"] { background: var(--navy-900); color: var(--gold-300); border-color: var(--navy-900); }
.rl-clear { font: inherit; font-size: var(--t-xs); font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; justify-self: start; cursor: pointer; }

/* ---------- Results ---------- */
.rl-results { min-width: 0; display: grid; gap: 16px; align-content: start; }
.rl-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.rl-results__head b { color: var(--ink); font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
#activechips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
.rl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 2px 4px 2px 10px; }
.rl-chip button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; line-height: 1; }
.rl-chip button:hover { background: var(--accent-line); }
.rl-sort { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink-3); }
.rl-sort select { font: inherit; font-size: var(--t-sm); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; }

.rl-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.rl-row { display: grid; gap: 8px 20px; padding: 18px 20px; border-top: 1px solid var(--line); transition: background var(--dur-1) var(--ease); }
.rl-row:first-child { border-top: 0; }
.rl-row:hover { background: var(--surface-2); }
@media (min-width: 760px) { .rl-row { grid-template-columns: 76px minmax(0, 1fr) 170px 128px; align-items: start; } }
.rl-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.3; padding-top: 3px; }
.rl-date b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
@media (max-width: 759px) { .rl-date b { display: inline; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); font-weight: 500; } }
.rl-main { display: grid; gap: 6px; min-width: 0; }
.rl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rl-tick { font: inherit; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); background: var(--navy-900); color: var(--gold-300); border: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; cursor: pointer; }
.rl-tick:hover { background: var(--navy-700); }
.rl-kind { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--r-xs); height: 20px; display: inline-flex; align-items: center; padding: 0 6px; }
.rl-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--ink); text-wrap: pretty; }
.rl-title a { color: inherit; text-decoration: none; }
.rl-title a:hover { text-decoration: underline; text-decoration-color: var(--gold-500, currentColor); text-underline-offset: 3px; }
.rl-tag { font: inherit; font-size: 11px; color: var(--ink-2); background: transparent; border: 0; padding: 0 2px; height: 20px; cursor: pointer; }
.rl-tag:hover { color: var(--ink); text-decoration: underline; }
.rl-view { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--warn); background: var(--warn-soft); border-radius: var(--r-xs); height: 20px; display: inline-flex; align-items: center; padding: 0 7px; cursor: help; }
.rl-none { font-size: var(--t-xs); color: var(--ink-3); margin: 0; }
.rl-note { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.rl-note i { color: var(--ink-3); font-style: normal; }
.rl-pub { display: grid; gap: 2px; font-size: var(--t-sm); align-content: start; padding-top: 2px; }
.rl-pub button { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.rl-pub button:hover { color: var(--accent); }
.rl-pub small { color: var(--ink-3); font-size: var(--t-xs); }
.rl-open { justify-self: start; }
@media (min-width: 760px) { .rl-open { justify-self: end; } }
.rl-open .btn { height: 34px; padding: 0 14px; font-size: var(--t-xs); }
.rl-open .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--line { color: var(--ink); }

.rl-empty { padding: 48px 24px; text-align: center; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }
.rl-empty b { font-family: var(--font-display); font-size: var(--t-xl); color: var(--ink); }

/* ---------- Spotlight (company or publisher) ---------- */
.rl-spot { border-radius: var(--r-lg); padding: 24px; display: grid; gap: 18px; border: 1px solid var(--plate-line); box-shadow: var(--shadow-2); }
@media (min-width: 860px) { .rl-spot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; } }
.rl-spot .eyebrow { color: var(--plate-gold); }
.rl-spot h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--plate-ink); margin-top: 6px; }
.rl-spot__codes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rl-spot__codes span { font-family: var(--font-mono); font-size: 11px; color: var(--plate-ink-2); border: 1px solid var(--plate-line); border-radius: var(--r-xs); padding: 2px 8px; }
.rl-spot p { color: var(--plate-ink-2); font-size: var(--t-sm); margin-top: 12px; }
.rl-spot__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rl-spot__links a { color: var(--gold-300); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.rl-spot__links a:hover { text-decoration: underline; }
.rl-bars { display: grid; gap: 10px; }
.rl-bars__h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plate-ink-2); }
.rl-bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 24px; gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--plate-ink); }
.rl-bar i { display: block; height: 8px; border-radius: 4px; background: var(--plate-gold); opacity: 0.85; }
.rl-bar b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-align: right; color: var(--plate-ink-2); }
.rl-spot__x { justify-self: start; font: inherit; font-size: var(--t-xs); color: var(--plate-ink-2); background: none; border: 1px solid var(--plate-line); border-radius: var(--r-pill); padding: 4px 12px; cursor: pointer; margin-top: 16px; }

/* ---------- Publisher directory ---------- */
.rl-pubs { display: grid; gap: 28px; }
.rl-pubs h3 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.rl-pubs__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rl-ptile { font: inherit; text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; cursor: pointer; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); color: var(--ink); }
.rl-ptile:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.rl-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.rl-ptile b { display: block; font-size: var(--t-sm); }
.rl-ptile small { color: var(--ink-3); font-size: var(--t-xs); }

/* ---------- App path ---------- */
.rl-cta { padding-block: 56px; }
.rl-cta__card { display: grid; gap: 20px; align-items: center; padding: 32px; border-radius: var(--r-lg); }
@media (min-width: 860px) { .rl-cta__card { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.rl-cta__card h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-top: 8px; color: var(--plate-ink); }
.rl-cta__card p { margin-top: 10px; max-width: 60ch; }
.rl-more { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--line); }
@media (max-width: 759px) {
  .rl-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .rl-date, .rl-main { grid-column: 1 / -1; }
  .rl-open { justify-self: end; }
}

/* ---------- Search suggestions ---------- */
.rl-hero { z-index: 5; }
.rl-suggest { position: fixed; z-index: 30; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); max-height: 420px; overflow-y: auto; }
.rl-sg { font: inherit; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; }
.rl-sg:hover, .rl-sg[aria-selected="true"] { background: var(--surface-2); }
.rl-sg b { display: block; font-size: var(--t-sm); font-weight: 600; }
.rl-sg small { color: var(--ink-3); font-size: var(--t-xs); }
.rl-sg i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.rl-sg--q { border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; margin-bottom: 4px; }
.rl-sg--q b { color: var(--accent); }
.rl-sg--company b::before { content: "Stock"; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); background: var(--navy-900); border-radius: var(--r-xs); padding: 2px 6px; margin-right: 8px; vertical-align: 2px; }

/* ---------- The desk switch: Artha Nakshatra View | Across the Street ---------- */
.rd-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px); margin-bottom: 28px; }
.rd-switch button { font: inherit; display: flex; align-items: center; gap: 14px; text-align: left; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-lg); padding: 14px 16px; cursor: pointer; transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); min-width: 0; }
.rd-switch button:hover { color: var(--ink); }
.rd-switch button[aria-selected="true"] { background: radial-gradient(120% 160% at 90% 0%, var(--plate-2), var(--plate) 60%); color: var(--plate-ink); border-color: rgba(212, 166, 94, 0.55); box-shadow: var(--shadow-2), 0 0 0 3px rgba(212, 166, 94, 0.12); }
.rd-switch b { display: block; font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.2; }
.rd-switch small { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.rd-switch button[aria-selected="true"] small { color: var(--plate-ink-2); }
.rd-switch__mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); }
.rd-switch__mark svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rd-switch button[aria-selected="true"] .rd-switch__mark { background: rgba(244, 241, 234, 0.08); }
.rd-switch button[aria-selected="true"] .rd-switch__mark svg { stroke: var(--gold-400); }
@media (max-width: 560px) { .rd-switch button { padding: 12px; gap: 10px; } .rd-switch__mark { display: none; } }

/* ---------- Artha Nakshatra View ---------- */
.rd-view { display: grid; gap: 20px; }
.rd-view__head { display: grid; gap: 16px; align-items: end; }
@media (min-width: 860px) { .rd-view__head { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }
.rd-view__head h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-top: 6px; }
.rd-view__head p { color: var(--ink-2); max-width: 62ch; margin-top: 8px; }
.rd-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rd-card { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.rd-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.rd-card__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.rd-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.22; text-wrap: balance; }
.rd-card p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.rd-card__m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink-3); }
.rd-card__go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--accent); margin-top: 4px; }
.rd-card__go .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rd-card.rd-card--lead { grid-column: 1 / -1; border-color: var(--plate-line); padding: 28px; background: radial-gradient(120% 140% at 85% 20%, var(--plate-2) 0%, var(--plate) 55%); }
.rd-card--lead .rd-card__k, .rd-card--lead .rd-card__go { color: var(--plate-gold); }
.rd-card--lead h3 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--plate-ink); max-width: 30ch; }
.rd-card--lead p, .rd-card--lead .rd-card__m { color: var(--plate-ink-2); max-width: 70ch; }
.rd-note { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- The week on the Street ---------- */
.rl-pulse { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.rl-pulse:empty { display: none; }
@media (min-width: 1000px) { .rl-pulse { grid-template-columns: repeat(3, minmax(0, 150px)) minmax(0, 1fr); } }
.rl-stat { font: inherit; text-align: left; display: grid; gap: 2px; align-content: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); }
button.rl-stat { cursor: pointer; }
button.rl-stat:hover { border-color: var(--accent-line); }
.rl-stat b { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; font-size: 2.1rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.rl-stat span { font-size: var(--t-xs); color: var(--ink-3); }
.rl-trend { grid-column: 1 / -1; padding: 14px 16px; background: var(--navy-900); border: 1px solid var(--plate-line); border-radius: var(--r-lg); min-width: 0; }
@media (min-width: 1000px) { .rl-trend { grid-column: auto; } }
.rl-trend__h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plate-gold); margin-bottom: 8px; }
.rl-trend__list { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-trend button { font: inherit; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--plate-ink); background: rgba(244, 241, 234, 0.06); border: 1px solid var(--plate-line); border-radius: var(--r-pill); padding: 4px 10px 4px 4px; cursor: pointer; }
.rl-trend button:hover { border-color: var(--gold-400); }
.rl-trend i { font-style: normal; font-variant-numeric: lining-nums; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--plate-gold); color: var(--navy-900); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.rl-trend small { font-family: var(--font-mono); color: var(--plate-ink-2); }
.rl-trend .rl-none { color: var(--plate-ink-2); }
@media (max-width: 560px) { .rl-stat { padding: 12px; } .rl-stat b { font-size: 1.5rem; } }

/* Opened headlines and bookmarks (kept in this browser) */
.rl-title a:visited { color: var(--loss); }
.rl-row--opened .rl-title a { color: var(--loss); }
.rl-opened { display: none; margin-top: 4px; font-size: var(--t-2xs); font-weight: 700; letter-spacing: .02em; color: var(--loss); }
.rl-row--opened .rl-opened { display: inline-block; }
.rl-open { display: flex; gap: 8px; align-items: center; }
.rl-save { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.rl-save:hover { border-color: var(--gold-500); color: var(--ink); }
.rl-save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rl-save[aria-pressed="true"] { color: var(--star); border-color: var(--star); }
.rl-save[aria-pressed="true"] svg { fill: currentColor; }
