/* VLPremier Pro · Product module public pages (Phase 004): /releases/, /blog/, published legal documents and release notes.
   New selectors only, built from the approved tokens; hero, crumbs, badges, callouts and the pager are the shared components. */

.pr-hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 48px; }
.pr-hero h1 { margin-top: 20px; }
.pr-hero .lede { margin-top: 20px; }
.pr-hero .post-meta { margin-top: 20px; }
.pr-body { padding-bottom: var(--section-y); }

/* long text: post bodies, release notes, legal documents */
.pr-text { max-width: 68ch; }
.pr-text > * + * { margin-top: 14px; }
.pr-text :is(h2, h3) { margin-top: 32px; }
.pr-text h2 { font-size: clamp(24px, 2.4vw, 30px); }
.pr-text h3 { font-size: 20px; }
.pr-text :is(ul, ol) { margin: 14px 0 0; padding-left: 22px; }
.pr-text li + li { margin-top: 6px; }
.pr-text img { border-radius: var(--r-panel); }
.pr-text a:not([class]) { color: var(--accent-bright); text-underline-offset: 3px; }
.l-doc { margin-top: 16px; color: var(--muted); }
.l-doc :is(h3, b, strong) { color: var(--text); }
.rn .pr-text { margin-top: 18px; font-size: var(--fs-sm); }
.rn .rn-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* release list */
.rel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rel-list > li { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rel-v { font: 600 20px/1.2 var(--font-mono); }
.rel-v a { text-decoration: none; }
.rel-v a:hover { color: var(--accent-bright); }
.rel-m { font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); }
.rel-s { color: var(--muted); font-size: var(--fs-sm); }
.rel-facts { margin-top: 32px; max-width: 760px; }
.rel-latest { padding: 28px 0 36px; border-top: 1px solid var(--line-strong); }   /* 2026-10-27: newest release in full */
.rel-latest-h { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.rel-latest .eyebrow { margin: 0; font: 600 14px/1.6 var(--font-display); color: var(--accent-bright); }   /* 2026-10-29: sentence case, no mono capitals */
.rel-latest-h h2 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 36px); }
.rel-latest-h h2 a { text-decoration: none; }
.rel-latest-h h2 a:hover { color: var(--accent-bright); }
.rel-latest-h .rel-m .badge { margin-left: 8px; vertical-align: 1px; }
.rel-get { display: grid; gap: 4px; justify-items: start; }
.rel-get .d-note { margin-top: 6px; }
.rel-notes { max-width: 72ch; }
.rel-sum { margin: 20px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.rel-sum span { font: 500 var(--fs-meta)/1.6 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.rel-sum code { overflow-wrap: anywhere; color: var(--text); }
.rel-older-h { margin: 8px 0 16px; font-size: 20px; }
.rel-older .rel-body { min-width: 0; }
.rel-more { margin-top: 8px; }
.rel-list .badge { justify-self: start; } /* one column on phones: the chip keeps its own width */
.rel-more summary { cursor: pointer; color: var(--accent-bright); font-size: var(--fs-sm); }
.rel-more .rel-notes { margin-top: 12px; font-size: var(--fs-sm); }

/* blog */
.posts { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: grid; gap: 12px; align-content: start; color: inherit; text-decoration: none; }
.post-card .cover { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.post-card .cover :is(picture, img) { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 22px; }
.post-card:hover h2 { color: var(--accent-bright); }
.post-card p { color: var(--muted); font-size: var(--fs-sm); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font: 400 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
.post-cover { margin-bottom: 40px; max-width: 960px; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cats a { text-decoration: none; }
.cats a[aria-current] { border-color: var(--accent); color: var(--text); }
.empty-state { max-width: 60ch; padding: 32px 0; border-top: 1px solid var(--line-strong); color: var(--muted); }
.empty-state b { display: block; margin-bottom: 8px; color: var(--text); font-size: 20px; }
.empty-state .btn-row { margin-top: 20px; }
.pr-pager { margin-top: 40px; }

@media (max-width: 640px) {
  .pr-hero { padding-top: calc(var(--nav-h) + 40px); }
  .rel-list > li { grid-template-columns: minmax(0, 1fr); }
}
.pr-foot { margin-top: 40px; }
.post-meta a { text-decoration: none; }

/* ---------- blog post layout (2026-10-26): full-width cover, text beside a sticky side column, topics, related posts ---------- */
.post-hero h1 { max-width: 22ch; }
.post-hero .lede { max-width: 68ch; }
.post-body .post-cover { max-width: none; margin-bottom: clamp(40px, 5vw, 64px); }
.post-body .post-cover :is(picture, img) { display: block; width: 100%; height: auto; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.post-main { min-width: 0; }
.post-text { max-width: 72ch; font-size: 18px; line-height: 1.7; }
.post-text > * + * { margin-top: 18px; }
.post-text h2 { margin-top: 48px; }
.post-text h3 { margin-top: 32px; }
.post-text :is(figure, picture, img, iframe, video) { max-width: 100%; }
.post-side { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 28px; max-height: calc(100dvh - var(--nav-h) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.post-side .side-h { margin: 0 0 12px; font: 600 14px/1.3 var(--font-display); color: var(--muted); }   /* 2026-10-29: sentence case, no mono capitals */
.post-toc ol, .post-toc-m ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.post-toc a, .post-toc-m a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color var(--t-tap), border-color var(--t-tap); }
.post-toc a:hover, .post-toc-m a:hover { color: var(--text); }
.post-toc a[aria-current], .post-toc-m a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.post-cta { display: grid; gap: 12px; justify-items: start; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: var(--surface-2); }
.post-cta .side-h { margin: 0; color: var(--text); }
.post-cta p:not(.side-h) { font-size: var(--fs-sm); color: var(--muted); }
.post-toc-m { display: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-panel); }
.post-toc-m summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-toc-m summary::-webkit-details-marker { display: none; }
.post-toc-m summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--accent-bright); transition: transform var(--t-tap); }
.post-toc-m[open] summary::after { transform: rotate(45deg); }
.post-toc-m nav { padding: 0 16px 16px; }
.post-tags, .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-cloud { margin: -16px 0 32px; }
:is(.post-tags, .tag-cloud) > .muted { margin-right: 4px; font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color var(--t-tap), border-color var(--t-tap); }
.tag:hover, .tag:focus-visible { color: var(--text); border-color: var(--accent); }
.post-related { margin-top: clamp(64px, 8vw, 104px); padding-top: 48px; border-top: 1px solid var(--line-strong); }
.post-related > h2 { margin-bottom: 28px; font-size: clamp(26px, 2.6vw, 34px); }
.post-card h3 { font-size: 22px; }
.post-card:hover h3 { color: var(--accent-bright); }
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; max-height: none; overflow: visible; }
  .post-toc { display: none; }
  .post-toc-m { display: block; }
  .post-text { font-size: var(--fs-body); }
}

/* Release notes block (2026-10-28, templates/product/_notes.php): Download page, Releases, one release, the app's update
   window. Every rule starts with .rn-notes so the older list styles around it (.rn li, .rel-list li) never reach the tiles. */
.rn-notes { min-width: 0; container-type: inline-size; }
.rn-notes .rn-intro, .rn-notes .rn-outro { max-width: 80ch; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.rn-notes .rn-intro p, .rn-notes .rn-outro p { margin: 0; }
.rn-notes .rn-intro { margin-top: 6px; }
.rn-notes .rn-outro { margin-top: 18px; }
.rn-notes .rn-outro b { color: var(--text); font-weight: 600; }
.rn-notes .rn-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* a fixed number of columns from the block's own width, so the first tiles fill the row and the opened ones line up below */
@container (min-width: 560px) { .rn-notes .rn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 900px) { .rn-notes .rn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rn-notes .rn-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); font-size: var(--fs-sm); }
.rn-notes .rn-kind { align-self: flex-start; padding: 4px 9px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.rn-notes .is-better .rn-kind { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.rn-notes .is-fixed .rn-kind { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.rn-notes .rn-title { font: 700 16px/1.35 var(--font-display); color: var(--text); }
.rn-notes .rn-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.rn-notes .rn-text b, .rn-notes .rn-text strong { font: inherit; font-weight: 600; color: var(--text); }
.rn-notes .rn-all { margin-top: 14px; }
.rn-notes .rn-all > summary { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); }
.rn-notes .rn-all > summary::-webkit-details-marker { display: none; }
.rn-notes .rn-all > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.rn-notes .rn-all[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.rn-notes .rn-all > summary:hover { border-color: var(--text); }
.rn-notes .rn-all > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn-notes .rn-all .rn-close, .rn-notes .rn-all[open] .rn-open { display: none; }
.rn-notes .rn-all[open] .rn-close { display: inline; }
.rn-notes .rn-all[open] > .rn-grid { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .rn-notes .rn-all > summary::after { transition: none; } }
/* 2026-11-02 (owner): a tile opens its pop-up. The whole tile is the Details link (stretched ::after); links in the text
   stay clickable above it. The card text is cut at 4 lines; the pop-up has all of it. */
.rn-notes .rn-item.has-pop { position: relative; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.rn-notes .rn-item.has-pop:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rn-notes .rn-item.has-pop:has(.rn-hit:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn-notes .has-pop .rn-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.rn-notes .has-pop .rn-text a { position: relative; z-index: 1; }
.rn-notes .rn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: auto 0 0; padding-top: 4px; font-size: 14px; }
.rn-notes .rn-hit { font-weight: 600; color: var(--accent-bright); text-decoration: none; }
.rn-notes .rn-hit::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rn-notes .rn-hit::after { content: " →"; }
.rn-notes .rn-hit:focus-visible { outline: none; }
.rn-notes .rn-has-guide { font: 400 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
.rn-pop { display: none; }
.rn-modal { width: min(680px, calc(100% - 32px)); }
.rn-modal .modal-h { align-items: flex-start; }
.rn-modal .rn-pop-t { min-width: 0; }
.rn-modal .rn-kind { display: inline-block; padding: 4px 9px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.rn-modal .is-better .rn-kind, .rn-modal[data-kind="better"] .rn-kind { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.rn-modal[data-kind="fixed"] .rn-kind { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.rn-modal .rn-pop-t h2 { margin: 10px 0 4px; font-size: clamp(20px, 3vw, 24px); line-height: 1.3; }
.rn-modal .rn-pop-v { margin: 0; font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.rn-modal .rn-pop-lead p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 70ch; }
.rn-modal .rn-pop-more { max-width: 70ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.rn-modal .rn-pop-more > * + * { margin-top: 10px; }
.rn-modal .rn-pop-help { display: grid; gap: 8px; justify-items: start; margin-top: 20px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r-panel); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.rn-modal .rn-pop-help .eyebrow { margin: 0; font: 600 13px/1.4 var(--font-display); color: var(--accent-bright); }
.rn-modal .rn-pop-help b { font: 700 16px/1.35 var(--font-display); color: var(--text); }
.rn-modal .rn-pop-help p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 70ch; }
.rn-modal .rn-pop-help .btn { margin-top: 4px; }
.rn-modal .rn-pop-f { position: sticky; bottom: 0; justify-content: flex-start; align-items: center; gap: 10px 22px; background: var(--surface); font-size: 14px; }   /* actions stay in view in a long pop-up */
.rn-modal .rn-pop-f .btn { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .rn-notes .rn-item.has-pop { transition: none; } .rn-notes .rn-item.has-pop:hover { transform: none; } }
/* the Download page card: full width, solid, header with the version on the left and the links on the right */
.rn.rn-live { max-width: none; border-style: solid; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.rn-live .rn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; font: inherit; color: inherit; }
.rn-live .rn-head h2 { margin: 0; }
.rn-live .rn-meta { margin: 6px 0 0; font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); }
.rn-live .rn-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 14px; }
/* Releases page: the earlier versions open into the same tiles */
.rel-more .rn-notes { margin-top: 4px; }
