/* Carried over from Cyberpedia v4 (Nov 2026): compact contents, light newsletter, thumbnails on related research. */
.toc__list a { padding: 5px 0; font-size: 14px; }

/* Newsletter: light version */
.nl--light { background: #F1EAFB; color: var(--ink-2); }
.prose .nl--light h2 { color: var(--ink); }
.nl--light .nl__f input { border-color: #D0C2EE; background: #fff; color: var(--ink); }
.nl--light .nl__f input::placeholder { color: #98A2B3; }
.nl--light .nl__f input:focus-visible { outline-color: var(--violet); }
.nl--light .nl__f button { background: var(--violet); color: #fff; }
.nl--light .nl__f button:hover { background: var(--violet-dark); }
.prose .nl--light .nl__x { color: var(--muted); }
.nl--light .nl__x a { color: var(--ink-2); }

/* Related research with thumbnails */
.rcard__img { display: block; margin: -24px -24px 4px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px 18px 0 0; background: #F2F2F2; }
.rcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rcard:has(.rcard__img) { grid-template-rows: auto auto 1fr auto; overflow: hidden; }


/* Rail must fit a laptop screen: compact CTA (title and button only), and on short screens
   drop the share row from the rail (sharing is repeated at the end of the article). */
.toc .rail-cta { margin-top: 8px; padding: 16px 18px; gap: 6px; }
.toc .rail-cta > p:not([class]) { display: none; }
.toc .rail-cta__t { font-size: 16px; }
@media (min-width: 1001px) and (max-height: 860px) { .toc .share--rail { display: none; } }

/* Author box: the analyst, not the team (About CYFIRMA Research covers the team). Initials until a photo is supplied. */
.author__av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
@media (max-width: 760px) { .author__av { width: 48px; height: 48px; font-size: 16px; } }

/* Safety net: if the rail is still taller than the screen, it scrolls on its own rather than hiding its end. */
@media (min-width: 1001px) { .toc { max-height: calc(100vh - 126px); overflow-y: auto; scrollbar-width: thin; } }

/* ===== Dark mode (html[data-theme="dark"]) ===== */
/* .nl--light is a light-violet-tint surface with var(--ink)/var(--ink-2)
   text on top (already flips to light text via the global token) — give the
   surface itself a dark equivalent. */
html[data-theme="dark"] .nl--light { background: #2A2340; }
html[data-theme="dark"] .nl--light .nl__f input { background: #1D2939; border-color: rgba(255,255,255,.14); color: #F2F4F7; }
html[data-theme="dark"] .nl--light .nl__f input::placeholder { color: #98A2B3; }

/* author avatar initials use the brand violet (unaffected by the dark
   flip), nothing to pin here — listed for completeness per the file's
   convention of a dark-mode block at the end of every resource CSS file. */
