/* Release notes (/release-notes), Website V2, Nov 21 2026 (AK).
   Replaces public/css/release-notes.css, which styled the old docs layout (Webflow chrome, a
   "Guides / On this page" sidebar, the week's date as the entry heading).

   Hero and its shell deliberately copy /objections (public/v2/straight-talk/st.css .ob-hero): same
   padding clamps, same centred 44px display cap. AK asked for uniformity with the pages that
   already exist, so those values are matched, not re-invented. That part is settled.

   Below the hero the page is its own thing. Two passes:

   1. A timeline, not a list. Dates are data, so they sit quiet in a left rail in tabular figures;
      the things that shipped are the headlines. No cards: a box per entry would fight the timeline
      and say nothing the hairlines do not.
   2. (AK review, Nov 21) The page is navigated by PART OF THE PRODUCT, not by month, and the
      scroll-progress line is gone. AK: "that's just a normal thing, everyone... it's very AI slop,
      it's literally the UI people use for their journey." The dot sized by feature count went with
      it, since it only read against that line.

   The rail is the one idea. Attio prints a year density bar, Stripe product and category dropdowns,
   Linear and Vercel named filter tabs: each shows either WHEN things shipped or WHAT KIND, never
   both, and in all four the filter is a separate object from the picture. Here one object is both,
   a row per category carrying its own twelve-month track, and picking a row filters the feed. */

.rn {
	--gold: #FFC61E; --gold-3: #FFE8A5; --ink: #110A33; --violet: #341D99; --lav: #DDD6FF;
	--mist: #F6F4FF; --cream: #FFF4D2; --slate: #5B6478; --line: #E6E8EF;
	--shell: 1120px; --gutter: clamp(20px, 4vw, 48px);
	--disp: "Cabinet Grotesk", Cabinetgrotesk, Arial, sans-serif;
	--body: Manrope, "Manrope Fallback", Arial, sans-serif;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
}
body.rn { margin: 0; background: #fff; }
.rn-shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hero: matched to .ht-hero on /how-to (AK, Nov 21) ----------
   Release notes sits in the Library family with How-To Guides and the comparison pages, so it takes
   the How-To hero, not the Objections one: those are different kinds of page. Values copied from
   public/v2/how-to/how-to.css .ht-hero / .ht-h1, including the mist band and the 767px step.
   The lede is gone. AK was not sure it was needed, the page reads without it, and the four
   intelligence-type names in the rail carry the AEO terms better than a list of products did. */
.rn-hero { padding: 144px 0 8px; background: var(--mist); text-align: center; }
.rn .rn-hero h1 {
	margin: 0 auto;
	font: 700 clamp(38px, 6vw, 76px)/1.06 var(--disp);
	letter-spacing: -.055em; color: var(--ink); text-wrap: balance;
}

/* ================= The rail =================
   Still on the hero's mist, so the two read as one opening block and the white feed below is a
   clean change of surface. Rows are one line each: name, track, count. The two things a row leaves
   out, what it covers and what the columns are, are said once in the line underneath. */
/* The twelve-month density tracks are gone (AK, Nov 21: "people won't even understand what this
   bar graph is", and "too much happening, the main important part is not very visible"). They were
   data that read as decoration, and on a page whose job is to show what shipped they competed with
   the releases. What is left is the filter, in the shape of the tab row on /how-to and /library
   (.ht-tabbar / .lib-tabs): one white pill rail on the mist, a name and a count per tab. This page
   belongs to that family, so the pattern is already familiar and needs no explaining. */
.rn-rail-wrap { background: var(--mist); padding: 24px 0 20px; }
.rn-rail-wrap .rn-shell { padding-inline: clamp(16px, 2vw, 24px); }

.rn-rail {
	display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
	padding: 5px; margin-inline: auto; width: max-content; max-width: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.rn-rail::-webkit-scrollbar { display: none; }

.rn-row {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: inline-flex; align-items: center; gap: 7px; flex: none;
	min-height: 38px; padding: 0 15px; border-radius: 999px; white-space: nowrap;
	font: 700 14px/1 var(--body); color: var(--slate);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.rn-row small {
	font: 800 12px/1.5 var(--body); padding: 1px 7px; border-radius: 999px;
	background: var(--mist); color: var(--slate); font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
	.rn-row:hover { color: var(--ink); background: var(--mist); }
}
.rn-row:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.rn-row.is-on { background: var(--ink); color: #fff; }
.rn-row.is-on small { background: var(--gold); color: var(--ink); }

/* Phone step, matched to /how-to's 767px break. */
@media (max-width: 767px) {
	.rn-hero { padding: 92px 0 4px; }
	.rn .rn-hero h1 { letter-spacing: -.045em; }
	.rn-rail-wrap { padding: 16px 0 20px; }
}

/* ================= The feed ================= */
.rn-body { padding: clamp(24px, 3vw, 36px) 0 clamp(56px, 7vw, 80px); }
/* Nov 21 (AK): "make it center aligned, not left aligned". The COLUMN is centred in the page and kept to
   a reading width, so the gutters either side match; the text inside stays left-aligned. */
.rn-body .rn-shell { max-width: calc(904px + 2 * var(--gutter)); }
.rn-feed { min-width: 0; }

.rn-item {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
	padding: 36px 0; border-top: 1px solid var(--line);
}
.rn-item:first-of-type { border-top: 0; padding-top: 0; }
.rn-item[hidden] { display: none; }

/* REMOVED (AK, Nov 21): the "about a month later" / "2 weeks later" markers. AK: "I think these
   headings are a bit wrong... the context is not there... Is there even a need for that?" The dates
   already tell a reader how far apart releases are, so the marker was restating them less precisely.
   The rule is kept, display:none, only so the class cannot reappear styled by accident. */
.rn-quiet { display: none; }
.rn-quiet--unused {
	grid-column: 1 / -1; justify-self: center;
	display: block; margin: 0 0 20px; padding: 5px 12px; border-radius: 999px;
	font: 700 12px/1.4 var(--body); color: var(--ink); background: var(--lav);
	letter-spacing: .01em; font-variant-numeric: tabular-nums;
}

/* The date is plain yellow TEXT, no pill (AK, Nov 21: "It does not need to have be in a bubble or
   something. Just make the date in yellow. This is the text color yellow"). This is a deliberate
   exception to the brand rule "never gold text on white": gold #FFC61E on white is about 1.7:1 and
   the contrast audit flags it. AK asked for it twice and it is his call. The year below stays ink,
   so the pairing is always readable even where the gold is not. Reverting is one declaration:
   put `background: var(--gold)` and `color: var(--ink)` back on .rn-when__a. */
.rn-when { position: relative; display: flex; align-items: baseline; gap: 8px; }
.rn-when__a {
	display: flex; align-items: baseline; gap: 8px;
	text-decoration: none;
	transition: color .18s var(--ease);
}
.rn-when__d { font: 800 17px/1.2 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }
.rn-when__y { font: 600 13px/1.2 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
/* The date is the link to the release, so there is no "Permalink" to explain (AK, Nov 21). */
@media (hover: hover) and (pointer: fine) {
	.rn-when__a:hover .rn-when__d { color: var(--ink); }
}
.rn-when__a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.rn-what { min-width: 0; }

.rn-feat + .rn-feat { margin-top: 26px; }
.rn-feat[hidden] { display: none; }
/* Headline and label share a row, the label held to the right at the end of the text measure, so it
   stays with the headline it describes instead of drifting to the far edge of a 952px column. */
.rn-feat__top {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 12px 16px; flex-wrap: wrap;
}
.rn-feat__h {
	margin: 0; flex: 1 1 18ch; min-width: 0;
	font: 700 clamp(20px, 1.6vw, 23px)/1.25 var(--disp);
	letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
/* What kind of change this is. Quiet text, not a filled chip: 109 chips down the page was part of
   what buried the releases (AK, Nov 21). Drawn only when it changes from the item above. */
.rn-what-kind[hidden] { display: none; }
/* Yellow too, but the quieter yellow: gold 300 fill, ink text (about 15:1), so the date is the loud one. */
.rn-what-kind {
	flex: none; font: 700 12px/1.4 var(--body); color: var(--ink); white-space: nowrap;
	padding: 3px 12px; border-radius: 999px; background: var(--gold-3);
}
.rn-feat__b { margin-top: 8px; color: var(--slate); font: 500 16px/1.6 var(--body); max-width: 68ch; }
.rn-feat__b p { margin: 0 0 8px; max-width: 68ch; font: 500 16px/1.6 var(--body); text-wrap: pretty; }
.rn-feat__b p:last-child { margin-bottom: 0; }
/* Bullets only appear where they carry their own facts (the report tiers), so they sit on mist as a
   small panel: it separates "what it is" from "what is in it". */
.rn-feat__b ul { margin: 12px 0 0; padding: 12px 16px; list-style: none; background: var(--mist); border-radius: 16px; }
.rn-feat__b li {
	position: relative; margin: 0 0 7px; padding-left: 20px;
	font: 500 16px/1.55 var(--body); color: var(--slate); text-wrap: pretty;
}
.rn-feat__b li:last-child { margin-bottom: 0; }
.rn-feat__b li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.rn-feat__b strong { color: var(--ink); font-weight: 800; }
.rn-feat__b a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rn-feat__b a:focus-visible, .rn-raw a:focus-visible {
	outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px;
}

.rn-vid { margin-top: 20px; max-width: 640px; }
.rn-vid video { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--ink); }

/* A release that does not match the usual shape still prints in full, just styled. */
.rn-raw { color: var(--slate); font: 500 16px/1.6 var(--body); max-width: 68ch; }
.rn-raw h4 { margin: 0 0 10px; font: 700 20px/1.25 var(--disp); color: var(--ink); }
.rn-raw ul { margin: 0 0 12px; padding-left: 20px; }
.rn-raw li { margin: 0 0 6px; }
.rn-raw strong { color: var(--ink); font-weight: 800; }
.rn-raw video { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 24px; margin: 0 0 16px; }

.rn-none, .rn-empty { font: 500 17px/1.6 var(--body); color: var(--slate); margin: 0; }
.rn-older {
	margin: clamp(32px, 4vw, 48px) 0 0; padding-top: 20px; border-top: 1px solid var(--line);
	font: 500 15px/1.6 var(--body); color: var(--slate);
}

/* Cadence spacing. On a phone it runs at about two thirds the desktop stretch. */
.rn-item + .rn-item { padding-top: max(28px, calc(var(--gap, 36px) * .62)); }

/* ---------- From 680px: the date becomes a rail ---------- */
@media (min-width: 680px) {
	/* The hairline sits between two releases; the quiet time is the space BELOW it, before the next
	   release starts, so the gap reads as "then nothing happened for a while, then this". */
	.rn-item { grid-template-columns: 120px minmax(0, 1fr); column-gap: 32px; row-gap: 0;
		/* Date, first headline and its kind label read on ONE baseline (AK's red line). */
		align-items: first baseline; padding: 0 0 clamp(28px, 3vw, 40px); }
	.rn-item + .rn-item { padding-top: var(--gap, 44px); border-top: 1px solid var(--line); }
	.rn-when { display: block; }
	.rn-when__a { display: block; }
	.rn-when__a { width: fit-content; flex-direction: column; gap: 0; }
	.rn-when__d { display: block; }
	.rn-when__y { display: block; margin-top: 2px; }
}

/* Filtered to one part of the product: what is left is no longer consecutive, so the spacing would
   be measuring nothing. It flattens, and the quiet marks go with it, until Everything comes back. */
.rn-feed--flat .rn-item + .rn-item { padding-top: 32px; }
.rn-feed--flat .rn-quiet { display: none; }
/* The kind label stays while filtered: the filter is by product area, so what kind of change each
   item is remains the one thing the entry still has to say. */
@media (min-width: 680px) {
	.rn-feed--flat .rn-item + .rn-item { padding-top: 44px; }
}

/* ---------- Reveal ----------
   One short rise per release as it comes into view, staggered only for the first few so the top of
   the page settles rather than the whole list animating. Transform and opacity only. */
.rn-feed--anim .rn-item { opacity: 0; transform: translateY(14px); }
.rn-feed--anim .rn-item.is-in {
	opacity: 1; transform: none;
	transition: opacity .5s var(--ease) calc(var(--i, 0) * 40ms), transform .5s var(--ease) calc(var(--i, 0) * 40ms);
}

@media (prefers-reduced-motion: reduce) {
	.rn * { transition: none !important; animation: none !important; }
	.rn-feed--anim .rn-item { opacity: 1; transform: none; }
}
