/* The right column on the narrow pages (templates/_rail.html): white cards after Perplexity's Discover column (a
   block of small stat tiles, a ranked list with its values) and Quartz's tinted sign-up box. Beside the page from
   64rem; under it on a phone. Tokens only, so dark mode follows site.css. */
.with-rail > .rail-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.rail { margin-top: 40px; font-size: 0.9375rem; }
.rail-in { display: flex; flex-direction: column; gap: 16px; }
.rcard { display: block; padding: 18px; background: var(--card); border-radius: 16px; box-shadow: var(--lift); }
.rcard h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.rcard p { margin: 0 0 8px; }
.rcard a { color: inherit; text-decoration: none; }
.rcard a:hover { color: var(--blue); }
.rbig { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.rbig small { font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--grey); }
.rband { display: block; width: 100%; height: 6px; margin: 4px 0 10px; }
.rcard .track { fill: var(--rule-soft); }
.rcard .fill { fill: var(--blue); }
.rnote { color: var(--grey); font-size: 0.8125rem; line-height: 1.45; }
.rtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.rtiles a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.rtiles span { font-size: 0.75rem; color: var(--grey); }
.rtiles b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rmore { margin: 0; font-size: 0.875rem; }
.rcard .rmore a { color: var(--blue); }
.rrank { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: r; }
.rrank li { display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: baseline; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); counter-increment: r; }
.rrank li::before { content: counter(r); color: var(--grey); font-size: 0.8125rem; }
.rrank b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rrank svg { grid-column: 2 / -1; width: 100%; height: 3px; }
.rail-find { display: flex; gap: 8px; }
.rail-find select { flex: 1; min-width: 0; }
.rposts { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rposts li { display: flex; gap: 12px; align-items: flex-start; }
.rposts img { flex: none; width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }
.rposts a { line-height: 1.35; font-weight: 500; }
.rmail { background: var(--band); box-shadow: none; }
.rmail form { display: flex; flex-direction: column; gap: 8px; }
.rmail input[type="email"] { width: 100%; }
.rail .rail-ad { padding: 16px 18px; border: 1px dashed var(--rule); border-radius: 16px; }
.rail .rail-ad a { color: var(--blue); }
.rail .rwide { display: none; }
@media (min-width: 64rem) {
  /* The column is exactly as tall as the page beside it. Its cards stack down it; one that does not fit wraps into
     a second column that is out of sight. So the page's own length decides how many cards show. No script. */
  .with-rail { display: grid; grid-template-columns: minmax(0, 680px) 328px; column-gap: 60px; align-items: stretch; min-height: 430px; }
  .rail { position: relative; margin-top: 0; }
  .rail-in { position: absolute; inset: 0; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 16px 40px; padding: 4px; overflow: hidden; }
  .rail-in > * { width: 320px; box-sizing: border-box; }
  .rail .rwide { display: block; }
}
