/* The content of one release: shared by the preview in the portal and the public site, so that the preview looks like the real thing.
   It only uses tokens both define (--panel, --ink, --ink-2, --muted, --line, --accent, --accent-soft, --green, --green-bg, --radius, --radius-xs, --font-mono). */
.rn-release { color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.rn-new { --rn-tone: var(--accent); --rn-tone-bg: var(--accent-soft); }
.rn-fix { --rn-tone: var(--green); --rn-tone-bg: var(--green-bg); }
.rn-icon { flex: none; }

.rn-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(115deg, var(--accent-soft), transparent 85%); }
.rn-release h1 { margin: 0 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.rn-version { font-family: var(--font-mono); }
.rn-date { margin: 0; color: var(--muted); font-size: 14px; }

.rn-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--rn-tone-bg); color: var(--rn-tone); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rn-chip .rn-icon { width: 14px; height: 14px; }
.rn-hero .rn-chip { background: var(--panel); box-shadow: 0 0 0 1px var(--line); }

.rn-summary { margin-top: 16px; }
.rn-section { margin-top: 28px; }
.rn-section > h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600; }
.rn-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: var(--radius); background: var(--rn-tone-bg); color: var(--rn-tone); }
.rn-section-icon .rn-icon { width: 18px; height: 18px; }

.rn-card { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--rn-tone); border-radius: var(--radius); }
.rn-package { margin: 0; font-size: 15px; font-weight: 600; }
.rn-group { margin-top: 10px; }
.rn-group + .rn-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rn-feature { display: inline-block; margin: 0; padding: 1px 9px; border-radius: 999px; background: var(--rn-tone-bg); color: var(--rn-tone); font-size: 12px; font-weight: 600; }
.rn-item { position: relative; margin-top: 10px; padding: 10px 0 0 14px; border-top: 1px solid var(--line); font-size: 14px; }
.rn-item::before { content: ""; position: absolute; top: 19px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--rn-tone); }
.rn-item-trigger { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rn-item-trigger:hover .rn-item-title { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rn-item-title { margin: 0; font-size: 14px; font-weight: 600; }
.rn-item-action { flex: none; color: var(--accent); font-size: 12px; font-weight: 600; }
.rn-item-preview { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rn-item-preview > :nth-child(n+4) { display: none; }
.rn-dialog { width: min(680px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: 0 24px 80px #0005; }
.rn-dialog::backdrop { background: #10122299; }
.rn-dialog-form { padding: 20px 24px 24px; }
.rn-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rn-dialog-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.rn-dialog-close { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.rn-dialog-context { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.rn-dialog .rn-text { overflow-wrap: anywhere; }

.rn-text { color: var(--ink-2); font-size: 14px; }
.rn-text > :first-child { margin-top: 2px; }
.rn-text > :last-child { margin-bottom: 0; }
.rn-text p { margin: 6px 0; }
.rn-text ul, .rn-text ol { margin: 6px 0; padding-left: 22px; }
.rn-text li + li { margin-top: 2px; }
.rn-text h1, .rn-text h2, .rn-text h3, .rn-text h4, .rn-text h5, .rn-text h6 { margin: 10px 0 4px; font-size: inherit; font-weight: 600; }
.rn-text a { color: var(--accent); }
.rn-text code { padding: 1px 4px; border: 1px solid var(--line); border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: .92em; }
.rn-text pre { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-xs); overflow-x: auto; }
.rn-text pre code { padding: 0; border: 0; }
.rn-text blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
