/* Public release notes (/releasenotes) — on top of designer.css + cloud.css tokens. */

.rn-muted { color: var(--muted); }

/* program tabs */
.rn-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--card); }
.rn-tabs a:hover { border-color: var(--accent); }
.rn-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rn-tabs a.mine:not(.on)::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent-lt); vertical-align: middle; }

/* latest versions */
.rn-latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rn-latest--one { grid-template-columns: 1fr; }
.rn-latest--one .rn-latest-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.rn-latest-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.rn-latest-name { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.rn-latest-name:hover { color: var(--accent-lt); }
.rn-latest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.rn-latest-row .rn-muted { white-space: nowrap; }
.rn-latest-row a { color: var(--text); text-decoration: none; }
.rn-latest-row a:hover code { color: var(--accent-lt); }
.rn-latest code, .rn-release code, .rn-since-result code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

/* channel pills + type badges (same colours as the old site) */
.rn-ch { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; }
.rn-ch--release { background: var(--accent); color: #fff; }
.rn-ch--beta { background: var(--yellow); color: #1a1200; }
.rn-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; margin-right: 6px; position: relative; top: -1px; }
.rn-t-new { background: #16a34a; color: #f0fdf4; }
.rn-t-fix { background: #0284c7; color: #f0f9ff; }
.rn-t-improvement { background: #9333ea; color: #faf5ff; }
.rn-t-critical { background: #fde047; color: #1a1200; }

/* toolbar */
.rn-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.rn-since { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rn-since label { font-size: 13px; font-weight: 600; color: var(--muted); }
.rn-since input { background: var(--inset); border: 1px solid var(--btn-line); border-radius: 8px; color: var(--text); padding: 7px 10px; width: 160px; font-family: ui-monospace, monospace; font-size: 13px; }
.rn-since input:focus { outline: none; border-color: var(--accent); }
.rn-clear { font-size: 13px; color: var(--muted); }
.rn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rn-toggle { font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 6px; }
.rn-toggle.on, .rn-toggle:hover { color: var(--text); }
.rn-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rn-chip { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; opacity: .55; }
.rn-chip[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px currentColor; }
.rn-chip:hover { opacity: .9; }
.rn-since-result { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-wash); border: 1px solid var(--accent); }
.rn-since-result i { color: var(--accent-lt); }

/* timeline */
.rn-timeline { display: flex; flex-direction: column; gap: 12px; }
.rn-month { margin: 14px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.rn-release { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 18px 16px; scroll-margin-top: 80px; }
.rn-release--beta { border-left-color: var(--yellow); }
.rn-release.rn-target { box-shadow: 0 0 0 2px var(--accent-lt); }
.rn-release > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rn-release h3 { margin: 0; font-size: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.rn-release h3 a { color: var(--text); text-decoration: none; }
.rn-release h3 a:hover { color: var(--accent-lt); }
.rn-product { font-weight: 700; color: var(--accent-lt); text-decoration: none; font-size: 15px; }
.rn-release time { color: var(--muted); font-size: 13px; margin-left: auto; }
.rn-title { margin: 8px 0 0; font-weight: 600; font-size: 15px; }
.rn-intro { color: var(--text); margin-top: 8px; line-height: 1.6; }
.rn-intro p { margin: 0 0 8px; }
.rn-release a:not(.rn-pic):not(.rn-product):not(h3 a) { color: var(--accent-lt); }
.rn-items { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 9px; line-height: 1.55; }
.rn-items li { font-size: 15px; }
.rn-details { color: var(--muted); font-size: 14px; margin: 4px 0 0; line-height: 1.6; }
.rn-details p { margin: 0 0 6px; }
.rn-pics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rn-pics figure { margin: 0; max-width: min(100%, 520px); }
.rn-pics img { display: block; max-width: 100%; height: auto; max-height: 340px; border-radius: 8px; border: 1px solid var(--line); background: #000; cursor: zoom-in; }
.rn-pics figcaption { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rn-older { text-align: center; margin-top: 10px; }
.rn-older a { color: var(--muted); font-size: 13px; }

.rn-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.rn-lightbox[hidden] { display: none; }
.rn-lightbox img { max-width: 100%; max-height: calc(100vh - 80px); border-radius: 6px; }
.rn-lightbox p { color: #e5e7eb; margin: 10px 0 0; }

@media (max-width: 600px) {
    .rn-release { padding: 12px 14px; }
    .rn-release time { margin-left: 0; width: 100%; }
    .rn-items li { font-size: 14.5px; }
    .rn-since input { width: 100%; flex: 1; }
}
