/* Notes: long-form pages on the dark site theme */
.note-wrap { padding-top: 8px; }
.note-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.note-body h2 { font-size: 28px; letter-spacing: -0.03em; margin: 44px 0 12px; }
.note-body h3 { font-size: 21px; margin: 28px 0 8px; }
.note-body p, .note-body li { color: var(--text); }
.note-body a { color: var(--cyan); }
.note-body blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.note-quote { font-size: 22px; line-height: 1.5; color: var(--text) !important; border-left: 4px solid var(--cyan) !important; margin-top: 0 !important; }
.note-copy { background: var(--panel-strong); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.note-table { overflow-x: auto; margin: 18px 0; }
.note-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.note-table th, .note-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.note-table th { color: var(--muted); font-weight: 600; }
.note-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-chart { margin: 24px 0; }
.note-chart svg { width: 100%; height: auto; }
.note-chart .lbl { fill: var(--muted); font-size: 15px; }
.note-chart .val { fill: var(--text); font-size: 15px; font-weight: 700; }
.note-chart figcaption, .note-video figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.note-video { margin: 24px 0; }
.note-video .frame { position: relative; padding-top: 56.25%; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.note-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note-cite { margin-top: 44px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.note-cite h2 { margin-top: 0; font-size: 20px; }
.note-cite p { font-size: 15px; }
.note-cite .muted, .note-body .muted { color: var(--muted); font-size: 14px; }
.note-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto 40px; }
.note-item { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); text-decoration: none; color: inherit; }
.note-item:hover { background: var(--panel-strong); }
.note-item h3 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.note-item p { margin: 0; color: var(--muted); }
.note-kind { color: var(--cyan); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
@media (max-width: 640px) { .note-body { font-size: 17px; } .note-quote { font-size: 19px; } .note-chart .lbl, .note-chart .val { font-size: 22px; } }

/* New badge and the lead card (Research page and the home strip) */
.note-new { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--cyan); color: #04121a; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }
.note-new[hidden] { display: none; }
.note-item.lead { border-color: var(--cyan); }
.note-item.lead h3 { font-size: 30px; }
.latest-research .note-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.latest-research .note-item h3 { font-size: 20px; }

/* Follow page */
.follow-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.follow-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--cyan); color: #04121a !important; font-weight: 800; text-decoration: none; }
.follow-btn:hover { filter: brightness(1.1); }
.follow-feed code { word-break: break-all; }

/* Wide tables scroll sideways on phones instead of being cut off */
.note-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note-comments { margin-top: 40px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
