/* The release notes page, on top of the site's style.css, which gives it the theme: fonts, colors, nav
   and footer. Small type on the plain dark, so no grain over it. */
body::after { content: none; }

/* The release notes, one release at a time: on the left the source, a filter and the list of releases,
   held in view and scrolling on its own; on the right the release open. Without a script every release
   shows, one after another, and the lists are links to them. */
code { font: 0.86em var(--mono); color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
:root { --nav: 64px; }
.nav::after { display: none; }
.nav.scrolled, html:not(.js) .nav { background: var(--bg); }

.shell { max-width: var(--max); margin: 0 auto; padding: 104px 40px 110px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 52px; align-items: start; }

/* The list: its title, the source, the filter, then the releases by month. */
.side { position: sticky; z-index: 5; top: calc(var(--nav) + 20px); max-height: calc(100vh - var(--nav) - 36px); display: flex; flex-direction: column; gap: 12px; }
.side-title { font: 500 0.76rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hot); }
.release-lists { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2c2b2a transparent; margin: 0 -8px; padding: 0 8px 8px; }
.release-list ol { list-style: none; margin: 0 0 6px; padding: 0; }
/* The graph beside the list: a lane per source in its colour, a point at each release - the open
   one lit - and a curve where an engine release first shipped a library release. */
.release-list li { position: relative; padding-left: calc(var(--gw) + 4px); }
.g { position: absolute; left: 0; top: 0; bottom: 0; width: var(--gw); pointer-events: none; }
.g .ln { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--c); opacity: 0.45; }
.g .ln.up { bottom: auto; height: 19px; }
.g .ln.down { top: 19px; }
.g .gp { position: absolute; top: 19px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); }
.release-list li.on .gp { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.g .gj { position: absolute; left: 0; top: 19px; bottom: 0; width: 100%; height: calc(100% - 19px); overflow: visible; }
.g .gj path { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: 0.7; }
.side.filtering .g { visibility: hidden; }
.release-list-name { margin: 10px 0 2px; font-size: 1rem; }
.month { margin: 0; padding: 14px 0 6px; font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.month-row:first-child .month { padding-top: 4px; }
.release-item {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline;
    padding: 8px 12px; border-radius: 10px; color: var(--text); transition: background 0.15s;
}
.release-item:hover { background: rgba(255, 255, 255, 0.04); }
.release-name b { font: 700 1.06rem var(--display); letter-spacing: -0.01em; }
.release-name small { margin-right: 3px; color: var(--muted); font: 500 0.86rem var(--font); }
.release-item time { color: var(--muted); font-size: 0.8rem; }
.pcount { grid-column: 1 / -1; color: var(--dim); font-size: 0.8rem; }
.release-item[aria-current="true"] { background: rgba(232, 135, 92, 0.13); }
.release-item[aria-current="true"] .release-name b { color: var(--accent-hot); }
.release-item.found .pcount { color: var(--accent-hot); }

/* A download's arrow, the mark each download is painted with. */
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Whose notes: one button naming the source shown, and a menu of every source under it - the
   engine and each library with its line and newest version, those with nothing released greyed. */
.picker { position: relative; flex: none; }
.picker-btn {
    display: flex; width: 100%; justify-content: flex-start; align-items: baseline; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-raised);
    color: var(--text); font: 600 0.9rem var(--font); cursor: pointer; transition: border-color 0.15s;
}
.picker-btn[hidden] { display: none; }
.picker-btn span { color: var(--accent-hot); font: 500 0.8rem var(--mono); }
.picker-btn::after { content: ""; align-self: center; width: 7px; height: 7px; margin: -3px 0 0 auto; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; transition: rotate 0.15s; }
.picker-btn:hover, .picker.open .picker-btn { border-color: rgba(232, 135, 92, 0.6); }
.picker.open .picker-btn::after { rotate: 225deg; margin-top: 3px; }
.picker-menu { list-style: none; margin: 0; padding: 0; }
.picker-menu a, .picker-menu .off > span {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px;
    padding: 9px 12px; border-radius: 10px; color: var(--text); outline: none;
}
.picker-menu b { font-weight: 600; font-size: 0.92rem; }
.picker-menu .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.picker-menu .pv { color: var(--accent-hot); font: 0.78rem var(--mono); align-self: center; }
.picker-menu .pd { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.picker-menu .pd code { font-size: 0.86em; }
.picker-menu a:hover, .picker-menu a:focus-visible { background: rgba(232, 135, 92, 0.1); }
.picker-menu a[aria-current="true"] { background: rgba(232, 135, 92, 0.14); }
.picker-menu .off > span { opacity: 0.42; cursor: default; }
.picker-menu .off .pv { color: var(--dim); }
.picker-menu .pick-all { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
/* With a script, a menu under the button; without one, the sources as a plain list of links to
   their lists, and no Everything, since every release already shows. */
.js .picker-menu {
    display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 400px;
    max-height: min(70vh, 640px); overflow: auto; padding: 6px;
    border: 1px solid var(--line-strong); border-radius: 14px; background: #121318;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.js .picker.open .picker-menu { display: block; }
html:not(.js) .picker-menu { display: flex; flex-wrap: wrap; gap: 2px; }
html:not(.js) .picker-menu a, html:not(.js) .picker-menu .off > span { display: flex; gap: 8px; align-items: baseline; padding: 3px 8px; }
html:not(.js) .picker-menu .pd, html:not(.js) .picker-menu .off, html:not(.js) .pick-all, html:not(.js) [data-list="everything"].release-list { display: none; }

.filter { position: relative; display: block; }
.filter[hidden] { display: none; }
.filter input {
    width: 100%; padding: 7px 12px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raised);
    color: var(--text); font: 0.86rem var(--font); outline: none; transition: border-color 0.15s;
}
.filter input:focus { border-color: rgba(232, 135, 92, 0.6); }
.filter output { display: block; min-height: 1.2em; margin: 5px 0 0 14px; color: var(--dim); font: 0.72rem var(--mono); }

/* The release: its header - the source, the version large, its date, its Download, and the releases
   either side - then its notes. */
.release { scroll-margin-top: calc(var(--nav) + 20px); }
html:not(.js) .release + .release { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.js .release:not(.on), .js .release-list:not(.on), .js .release-list-name { display: none; }
.release-head-inner { flex: 1; min-width: 0; }
/* The first change shown has no rule over it, under a filter too. */
.rows > .first { border-top: 0; padding-top: 0; }
/* The version shines as the home page's headline does: its grade runs left to right across the number,
   which its box fits. */
.release-version {
    width: fit-content; margin: 6px 0 10px; padding-bottom: 0.06em;
    font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.92; font-weight: 800; letter-spacing: -0.045em;
    background: linear-gradient(90deg, #d9784f, var(--accent-hot) 25%, #fff1dc 50%, var(--accent-hot) 75%, #d9784f);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 7s ease-in-out infinite;
}
.release-version.named { font-size: clamp(2rem, 4vw, 3rem); }
.when { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--muted); font: 0.86rem var(--mono); }
.chip { padding: 2px 9px; border-radius: 999px; background: rgba(232, 135, 92, 0.14); color: var(--accent); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; }
.release-get { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.release-steps { flex: none; display: flex; gap: 6px; }
.release-step {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raised);
    color: var(--text); font: 500 0.84rem var(--mono); transition: border-color 0.15s, color 0.15s;
}
.release-step:hover { border-color: rgba(232, 135, 92, 0.6); color: var(--accent-hot); }
.release-step.off { color: var(--dim); opacity: 0.4; }
.release-step span { font-size: 0.8rem; }
/* Every release under its source's picture: a banner, shaded on the words' side. */
.release-head { position: relative; display: flex; gap: 24px; margin-bottom: 26px; isolation: isolate; overflow: hidden; min-height: 240px; align-items: flex-end; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); }
.release-head .release-steps { position: absolute; top: 18px; right: 18px; }
.poster { position: absolute; inset: 0; z-index: -2; background: center 30% / cover no-repeat; }
/* Without a picture of its own, a glow of the source's colour. */
.poster.tint { background: radial-gradient(70% 120% at 85% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), radial-gradient(60% 90% at 10% 100%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--bg-raised); }
.release-head::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.62) 50%, rgba(10, 11, 13, 0.3) 100%),
        linear-gradient(90deg, rgba(10, 11, 13, 0.78) 0%, rgba(10, 11, 13, 0.35) 55%, rgba(10, 11, 13, 0.1) 85%);
}
.release-source { margin: 0; color: color-mix(in srgb, var(--c) 70%, #fff); font: 500 0.82rem var(--mono); letter-spacing: 0.04em; }
.view-top { display: none; }

/* A release's Download: its release on GitHub. */
.get-open {
    display: inline-block; padding: 10px 16px 10px 40px; position: relative;
    border: 1px solid rgba(232, 135, 92, 0.4); border-radius: 10px; background: rgba(232, 135, 92, 0.07);
    color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.get-open::before {
    content: ""; position: absolute; left: 14px; top: 50%; margin-top: -7.5px; width: 15px; height: 15px; background: var(--accent);
    -webkit-mask: var(--arrow);
    mask: var(--arrow);
}
.get-open b { display: block; font-weight: 600; font-size: 0.92rem; }
.get-open:hover { border-color: var(--accent); background: rgba(232, 135, 92, 0.13); }

/* A note: its bold lead as its heading. */
.note h4 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; color: var(--text); }
/* A note named by an API reads as code, in the heading's own size. */
.note h4 code { font-size: 0.9em; font-weight: 500; letter-spacing: 0; color: var(--accent-hot); background: none; padding: 0; }
.note-body p { margin: 0; color: var(--muted); }
.note-body p + p, .note-body p + ul { margin-top: 8px; }
.note-body .aside { font: 0.84rem var(--mono); color: var(--accent-hot); }
.note-body .aside code { background: none; padding: 0; color: inherit; }
.note-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-body li { position: relative; padding-left: 20px; color: var(--muted); }
.note-body li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.8; }

/* The rows: a heading beside its words, each under a hairline. */
.rows > * { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 28px; padding: 16px 0; border-top: 1px solid var(--line); }
.rows > :first-child { border-top: 0; padding-top: 0; }
.rows h4 { font-size: 1rem; font-weight: 600; color: rgba(243, 238, 231, 0.92); }
.rows .note-body { font-size: 0.97rem; }
/* A note with no bold lead keeps to the words' column. */
.rows .note.bare .note-body { grid-column: 2; }
.after { margin: 16px 0 0; padding: 14px 18px; border-left: 2px solid rgba(232, 135, 92, 0.5); background: rgba(232, 135, 92, 0.05); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.95rem; }

/* A filter hides the notes without its word in the release open, and marks the word where it is. */
.note.hidden { display: none; }
.release-list li[hidden] { display: none; }
::highlight(found) { background: rgba(232, 135, 92, 0.35); color: #fff; }

/* Less motion: the version's shine runs at half the pace - it is a colour, not a move. */
@media (prefers-reduced-motion: reduce) {
    .release-version { animation-duration: 14s; }
}

/* Phones: the list is one button over the release, naming it, that opens the list as a sheet; the
   release steps by its arrows. */
@media (max-width: 960px) {
    .shell { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 84px 20px 90px; }
    html:not(.js) .side { position: static; max-height: none; }
    .js .side {
        display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
        border: 1px solid var(--line-strong); border-bottom: 0; background: #121318; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    }
    .js .side.open { display: flex; }
    .js .side.open::before { content: ""; display: block; flex: none; width: 38px; height: 4px; margin: 0 auto; border-radius: 2px; background: var(--line-strong); }
    .js .side-title { display: none; }
    .sheet-dim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.55); }
    .js .view-top { display: block; position: sticky; top: calc(var(--nav) + 6px); z-index: 12; margin-bottom: 16px; }
    .side-toggle {
        display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 11px 16px;
        border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-raised);
        color: var(--text); font: 600 0.95rem var(--font); cursor: pointer;
    }
    .side-toggle[hidden] { display: none; }
    .side-toggle::after { content: ""; margin-left: auto; align-self: center; width: 7px; height: 7px; margin-top: -3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
    .side-toggle span b { color: var(--accent-hot); font: 500 0.85rem var(--mono); margin-left: 6px; }
    .js .picker-menu { width: auto; right: 0; }
    .release-head { flex-direction: column-reverse; align-items: stretch; gap: 14px; min-height: 0; padding: 66px 18px 20px; }
    .g .gj { display: none; }
    .release-steps { align-self: flex-start; }
    .release-head .release-steps { top: 14px; right: 14px; }
    .rows > * { grid-template-columns: minmax(0, 1fr); }
    .rows h4 { margin-bottom: 6px; }
    .rows .note.bare .note-body { grid-column: 1; }
    
    }
