/* The release notes page (release.mjs): a dated timeline, newest first. The site's look (hub.css tokens): near-black, Inter, hairlines,
   ruled rows rather than cards, violet only as a sparing accent. Every entry is in the HTML; release.js adds the sticky filter bar
   (kind, area, search), and without it everything shows. */
.hb-rn { --rn-top: 80px; --rn-col: 232px; --rn-bar-h: 58px; }
.hb-rn [hidden] { display: none !important; }
.rn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Hero: the title, the intro line, one line of facts */
.rn-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.rn-hero .hb-h1 { margin-top: 28px; max-width: 15em; }
.rn-hero .hb-lede { margin-top: 20px; }
.rn-meta { margin-top: 16px; max-width: 42em; font-size: var(--hb-t-sm); line-height: 1.6; color: var(--hb-mut); }
.rn-meta a { color: var(--hb-mut-2); text-decoration: underline; text-decoration-color: var(--hb-line-2); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.rn-meta a:hover { color: var(--hb-fg); text-decoration-color: currentColor; }

/* ---- The filter bar: kind chips, an area select, a search box */
.rn-body { position: relative; padding-bottom: clamp(72px, 8vw, 120px); }
.rn-bar { position: sticky; top: var(--rn-top); z-index: 20; display: flex; align-items: center; gap: 16px; margin-inline: calc(var(--hb-gut) * -1); padding: 10px var(--hb-gut); background: rgba(10, 10, 10, .84); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--hb-line); }
/* stuck under the floating header: a strip of the bar's glass fills the gap above it, so rows never show through */
.rn-bar.is-stuck::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--rn-top); background: var(--hb-bg); pointer-events: none; }
.rn-chips { display: flex; gap: 4px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.rn-chips::-webkit-scrollbar { display: none; }
.rn-chip { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: var(--hb-t-sm); font-weight: 500; color: var(--hb-mut-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.rn-chip span { margin-left: 8px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--hb-mut); transition: color .2s; }
.rn-chip:hover { color: var(--hb-fg); background: rgba(246, 245, 250, .06); }
.rn-chip.is-on { color: #0a0a0a; background: var(--hb-fg); }
.rn-chip.is-on span { color: rgba(10, 10, 10, .55); }
.hb-rn .rn-chip:focus-visible { outline-offset: 1px; border-radius: 999px; }
.rn-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.rn-select { position: relative; display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: rgba(246, 245, 250, .05); box-shadow: inset 0 0 0 1px var(--hb-line); transition: box-shadow .2s, background-color .2s; }
.rn-select:focus-within { box-shadow: inset 0 0 0 1px var(--hb-line-2); background: rgba(246, 245, 250, .07); }
.rn-select select { appearance: none; -webkit-appearance: none; height: 100%; max-width: 220px; padding: 0 36px 0 14px; border: 0; border-radius: 999px; outline: 0; background: transparent; color: var(--hb-fg); font: inherit; font-size: var(--hb-t-sm); cursor: pointer; color-scheme: dark; }
.rn-select select option { background: #151518; color: var(--hb-fg); }
.rn-select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--hb-mut); border-bottom: 1.5px solid var(--hb-mut); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.rn-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; width: 220px; padding: 0 14px; border-radius: 999px; color: var(--hb-mut); background: rgba(246, 245, 250, .05); box-shadow: inset 0 0 0 1px var(--hb-line); transition: box-shadow .2s, background-color .2s; }
.rn-search:focus-within { box-shadow: inset 0 0 0 1px var(--hb-line-2); background: rgba(246, 245, 250, .07); }
.rn-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--hb-fg); font: inherit; font-size: var(--hb-t-sm); -webkit-appearance: none; appearance: none; }
.rn-search input::placeholder { color: var(--hb-mut); }
.rn-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.rn-count { margin-top: 20px; font-size: var(--hb-t-sm); color: var(--hb-mut); }
.rn-empty { padding: 56px 0 8px; font-size: var(--hb-t-body); color: var(--hb-mut-2); }
.rn-clear { font-weight: 500; color: var(--hb-fg); text-decoration: underline; text-decoration-color: var(--hb-line-2); text-underline-offset: 3px; }
.rn-clear:hover { text-decoration-color: currentColor; }

/* ---- The timeline: a day a row, its date on the left (it stays while the day scrolls), its sections on the right */
.rn-days { margin-top: 0; }
.rn-day { display: grid; grid-template-columns: var(--rn-col) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hb-line); }
.rn-day:first-child { border-top: 0; }
.rn-dh { position: sticky; top: calc(var(--rn-top) + var(--rn-bar-h) + 20px); align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hb-rn .rn-h2 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }
.rn-h2 a { transition: color .15s; }
.rn-h2 a:hover { color: #fff; }
.rn-ver { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: var(--hb-t-lbl); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--hb-vi-2); background: rgba(139, 92, 246, .14); box-shadow: inset 0 0 0 1px rgba(163, 124, 255, .28); }
.rn-dc { font-size: var(--hb-t-lbl); color: var(--hb-mut); font-variant-numeric: tabular-nums; }
.rn-db { min-width: 0; }
.rn-sec + .rn-sec { margin-top: 40px; }
.rn-sec { --k: var(--hb-mut); }
.rn-sec[data-kind='new'] { --k: var(--hb-vi-2); }
.rn-sec[data-kind='improved'] { --k: rgba(246, 245, 250, .85); }
.rn-sec[data-kind='fixed'] { --k: var(--hb-warm); }
.rn-sec[data-kind='release'] { --k: #30d158; }
.hb-rn .rn-h3 { display: flex; align-items: center; gap: 10px; font-size: var(--hb-t-sm); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.rn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.rn-l { margin-top: 14px; border-top: 1px solid var(--hb-line); }
.rn-n { padding: 18px 0; border-bottom: 1px solid var(--hb-line); }
.rn-t { font-size: var(--hb-t-body); font-weight: 500; line-height: 1.5; letter-spacing: -.012em; text-wrap: pretty; overflow-wrap: anywhere; }
.rn-area { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--hb-mut-2); background: rgba(246, 245, 250, .06); box-shadow: inset 0 0 0 1px var(--hb-line); vertical-align: 2px; white-space: nowrap; }
.rn-v { margin-left: 6px; font-size: var(--hb-t-lbl); font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--hb-mut); white-space: nowrap; }
.rn-d { display: grid; gap: 6px; margin-top: 10px; }
.rn-d li { position: relative; padding-left: 18px; font-size: var(--hb-t-sm); line-height: 1.6; color: var(--hb-mut); text-wrap: pretty; overflow-wrap: anywhere; }
.rn-d li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: rgba(246, 245, 250, .36); }
.rn-d strong { font-weight: 500; color: var(--hb-fg); }
.rn-where { margin-top: 10px; font-size: var(--hb-t-lbl); color: rgba(246, 245, 250, .46); }
.rn-where code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; color: var(--hb-mut); overflow-wrap: anywhere; }

/* ---- Narrower screens: one column; the bar scrolls away (three rows of chips, select and search would cover the page) */
@media (max-width: 1080px) {
  .rn-search { width: 180px; }
  .hb-rn { --rn-col: 196px; }
}
@media (max-width: 860px) {
  .hb-rn { --rn-top: 72px; }
  .rn-bar { position: static; flex-wrap: wrap; gap: 10px; }
  .rn-chips { flex-basis: 100%; }
  .rn-tools { flex: 1 1 100%; min-width: 0; }
  .rn-select { flex: none; }
  .rn-search { flex: 1; width: auto; min-width: 0; }
  .rn-day { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .rn-dh { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 22px; }
  .rn-dc { margin-left: auto; }
}
@media (max-width: 640px) {
  .hb-rn { --hb-gut: 16px; }
  .rn-tools { flex-wrap: wrap; }
  .rn-select { flex: 1 1 100%; }
  .rn-select select { width: 100%; max-width: none; }
  .rn-search { flex: 1 1 100%; }
  .rn-n { padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rn-chip, .rn-chip span, .rn-select, .rn-search, .rn-h2 a, .rn-meta a { transition: none; }
}
