/* Part of the site kit: ~/Developer/my-mac-setup/site-kit. Edit it there, then `site-kit sync`.
   The release notes page (/releases): markup from scripts/kit/releases-build.mjs, behaviour
   from releases.js, colors from the site's accent (kit.css tokens). A site with parts colors
   them in its site.css: [data-part="planner"] { --c: …; }. Animations always play. */
.rel-page { --c: var(--accent);   /* a part's color; a site sets [data-part="…"] { --c } */
  max-width: calc(860px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 40px; }

/* ── The top: slow, soft light behind the title ── */
.rel-hero { position: relative; text-align: center; padding: 72px 0 44px; isolation: isolate; }
/* The whole window's width (the page is narrower), fading out at the bottom so it has no edge */
.blobs {
  position: absolute; top: calc(-1 * var(--top-h)); bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.blobs i {
  position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .32;
  animation: rel-float 14s ease-in-out infinite alternate;
}
.blobs i:nth-child(1) { background: var(--glow-1); left: 12%; top: 60px; }
.blobs i:nth-child(2) { background: var(--glow-2); right: 10%; top: 100px; animation-delay: -5s; }
.blobs i:nth-child(3) { background: var(--glow-3); left: 38%; top: 220px; animation-delay: -9s; opacity: .22; }
@keyframes rel-float { to { transform: translate(40px, 30px) scale(1.15); } }
.rel-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The lead under the title: the same on every site, whatever the site's own .lead says */
.rel-hero .lead { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 19px; }
.rel-stats:empty { display: none; }   /* beta: no counters */
.rel-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.stat {
  min-width: 150px; padding: 16px 22px; border-radius: 16px; text-align: center;
  background: rgba(10, 9, 24, .55); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.stat .num {
  display: block; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat small { color: var(--muted); font-size: 14px; }

/* ── Filter and search: stay in view under the top menu ── */
.rel-tools {
  position: sticky; top: var(--top-h); z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter); background: rgba(10, 9, 24, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.rel-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--font); color: var(--text); background: var(--glass); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .15s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--c); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip .n { font-size: 12px; font-weight: 650; color: var(--muted); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); color: var(--c); }
.chip[aria-pressed="true"] .n { color: inherit; }
.rel-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 420px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted);
}
.rel-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.rel-search svg { width: 18px; height: 18px; flex: none; }
.rel-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px var(--font); color: var(--text); }

/* ── The versions: a line down the left ties them together ── */
.rel-list { position: relative; padding: 40px 0 0 34px; }
/* The line starts at the first dot's middle: 40 (padding) + 10 (the heading's) + 19 ("Version") + 24 (half the number) */
.rel-list::before {
  content: ''; position: absolute; left: 9px; top: 93px; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.rel { position: relative; padding-bottom: 14px; scroll-margin-top: calc(var(--top-h) + 80px); }
.item[id] { scroll-margin-top: calc(var(--top-h) + 80px); }
.rel-v { position: relative; }
/* The dot on the line, level with the number */
.rel-v::before {
  content: ''; position: absolute; left: -31px; top: 36px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent-2);
}
.rel.newest .rel-v::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); animation: rel-beat 2.4s ease-in-out infinite; }
@keyframes rel-beat { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 0%, transparent); } }
.rel:target .rel-v b { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)); }

/* The heading is the button that folds the section */
.rel-head {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; width: 100%;
  padding: 10px 48px 10px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rel-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.rel-v small { display: block; height: 19px; line-height: 19px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rel-v b {
  display: block; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; flex: 1 1 260px; color: var(--muted); font-size: 15px; }
.badge {
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-accent); background: linear-gradient(100deg, var(--accent-light), var(--accent) 40%, var(--accent-2));
}
.badge.first { background: var(--glass); color: var(--text); border: 1px solid var(--line); }
.rel-bar { display: flex; gap: 3px; width: 120px; height: 8px; }
.rel-bar i { border-radius: 4px; background: var(--c); min-width: 6px; }
.rel-n { font-size: 14px; }
/* The down chevron: this heading unfolds a section (the one place arrows go) */
.rel-chev { position: absolute; right: 6px; top: 39px; width: 26px; height: 26px; color: var(--muted); transition: transform .3s ease, color .2s; }
.rel-head:hover .rel-chev { color: var(--text); }
.rel.open .rel-chev { transform: rotate(180deg); color: var(--accent); }
html.js .rel:not(.open) .rel-chev { transform: none; }
html:not(.js) .rel-chev { display: none; }   /* without the script every fold shows open */

/* The fold: grid rows 0fr → 1fr (only with the script) */
html.js .rel-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
html.js .rel.open .rel-body { grid-template-rows: 1fr; }
.rel-inner { overflow: hidden; min-height: 0; }
.rel-items { list-style: none; margin: 0; padding: 8px 0 30px; max-width: var(--column); }

/* The lines: a plain list, read straight down; the part's icon (or ✓) in its color */
.item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.item + .item { border-top: 1px solid var(--line); }
.item-ic {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; border-radius: 9px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-weight: 800; font-size: 15px;
}
.item-ic svg { width: 18px; height: 18px; }
.item-txt p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.item:target .item-txt p { color: var(--text); }
.item mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Rising in (releases.js adds .in); a fold's lines one after another when it opens */
html.js .rel-head, html.js .item { opacity: 0; transform: translateY(18px); }
html.js .rel-head.in, html.js .rel.open .item { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }

/* Searched or filtered away (releases.js sets hidden); display:flex above would keep them */
.item[hidden], .rel[hidden] { display: none; }
.rel-empty { padding: 30px 0; text-align: center; color: var(--muted); }

/* ── The end: one call to action ── */
.rel-end { text-align: center; padding: 70px 0 60px; border-top: 1px solid var(--line); }
.rel-end h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 0; }
.rel-end .lead { color: var(--muted); margin: 14px auto 0; font-size: 19px; }
.rel-end .meta { color: var(--faint); font-size: 14px; margin: 0; }

/* A phone or a narrow window: the line closer to the edge */
@media (max-width: 820px) {
  .rel-hero { padding-top: 48px; }
}
@media (max-width: 700px) {
  .blobs i { width: 240px; height: 240px; }
  .stat { min-width: 0; flex: 1 1 90px; padding: 12px; }
  .stat .num { font-size: 34px; }
  .rel-tools { position: static; }   /* chips and search on two rows: too tall to follow you down a phone */
  .rel-search { flex: 1 1 100%; }
  .rel-list { padding-left: 24px; }
  .rel-list::before { left: 4px; top: 89px; }   /* 40 + 10 + 19 + 20 */
  .rel-v::before { left: -26px; top: 32px; }
  .rel-v b { font-size: 40px; }
  .rel-chev { top: 35px; right: 0; }
  .rel-head { padding-right: 34px; }
}
