/* The Insights tab (rh-insights.js): the list and the reader. Colours come from the tokens, so dark mode follows. */
.in-lede { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.in-cat { display: block; font-size: 13px; font-weight: 650; color: var(--act-ink); }
.in-meta { display: flex; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.in-meta b { font-weight: 650; color: var(--ink); }
.in-meta span::before { content: "·"; margin-right: 8px; }

/* The featured note: art and copy side by side, sized to the window like a stock's chart. */
.in-feat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-top: 22px; height: clamp(260px, calc(100vh - 420px), 440px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.in-feat:hover { border-color: var(--line-2); box-shadow: 0 24px 48px -30px rgba(13, 13, 15, .35); }
.in-feat-art { display: block; min-height: 0; overflow: hidden; background: var(--sunk); }
.in-feat-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.in-feat:hover .in-feat-art img { transform: scale(1.03); }
.in-feat-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(24px, 3vw, 44px); }
.in-feat-title { display: block; margin-top: 10px; font: 600 clamp(26px, 2.3vw, 36px)/1.12 var(--display); letter-spacing: -.025em; }
.in-feat-sub { display: block; margin-top: 12px; max-width: 40ch; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.in-read { margin-top: 22px; font-size: 15px; font-weight: 650; color: var(--act-ink); }
.in-feat:hover .in-read { text-decoration: underline; text-underline-offset: 3px; }

/* The news list: copy left, art right. */
.in-list { margin-top: 4px; }
.in-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.in-row:last-child { border-bottom: 0; }
.in-row-title { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; transition: color .15s; }
.in-row:hover .in-row-title { color: var(--act-ink); }
.in-row-sub { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.in-row .in-meta { margin-top: 8px; }
.in-thumb { display: block; width: 132px; aspect-ratio: 6 / 5; border-radius: 12px; overflow: hidden; background: var(--sunk); }
.in-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* The reader. */
.in-reader { max-width: 760px; }
.in-h1 { margin-top: 10px; font: 600 clamp(30px, 2.8vw, 42px)/1.1 var(--display); letter-spacing: -.028em; }
.in-sub { margin-top: 12px; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.in-reader > .in-meta { margin-top: 14px; }
.in-art { margin-top: 24px; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; background: var(--sunk); }
.in-art img { width: 100%; height: 100%; object-fit: cover; }
.in-prose { max-width: 68ch; margin-top: 8px; }
.in-prose p { margin-top: 1.05em; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.in-prose strong, .in-prose b { color: var(--ink); font-weight: 650; }
.in-prose a { color: var(--act-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.in-prose a:hover { text-decoration-thickness: 2px; }
.in-prose h2, .in-prose h3 { margin-top: 1.6em; font: 650 21px/1.3 var(--ui); color: var(--ink); }
.in-prose ul, .in-prose ol { margin-top: 1em; padding-left: 1.3em; list-style: disc; color: var(--text-2); }
.in-prose li { margin-top: .4em; line-height: 1.65; }
.in-prose img, .in-prose figure { margin-top: 1.4em; border-radius: 12px; }
.in-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--text-3); }
.in-prose table { width: 100%; margin-top: 1.4em; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.in-prose th, .in-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.in-prose th { font-weight: 650; color: var(--ink); }
.in-prose .sk { margin-top: 18px; }
.in-next { max-width: 760px; margin-top: 56px; }
.in-back { margin-top: 18px; font-size: 15px; }
.in-back a { color: var(--act-ink); font-weight: 650; text-decoration: none; }
.in-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

:root[data-theme="dark"] .in-feat:hover { box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .8); }

@media (prefers-reduced-motion: reduce) {
  .in-feat-art img { transition: none; }
}
@media (max-width: 980px) {
  .in-feat { height: auto; grid-template-columns: minmax(0, 1fr); }
  .in-feat-art { aspect-ratio: 16 / 9; }
  .in-feat-copy { padding: 22px 22px 24px; }
}
@media (max-width: 640px) {
  .in-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; }
  .in-thumb { width: 88px; }
  .in-row-title { font-size: 17px; }
  .in-row-sub { display: none; }
  .in-prose p { font-size: 17px; }
  .in-sub { font-size: 17px; }
}
