/* King.Prostor · the news section /si/novosti/ and the version pages (/si/<product>/razlicice/)
   Loaded after site.css and product.css on those pages only; the pages are written by the news
   generator. One white section per page: the head, then the list or the post, the aside beside. */

.nv { padding-block: clamp(32px, 4vw, 60px) var(--section); }
.nv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-block-end: clamp(26px, 3vw, 40px); }
.nv-head h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 740; font-stretch: 106%; letter-spacing: -.035em; line-height: 1.02; }
.nv-head .lead { max-inline-size: 42em; }
.nv-head .lead a, .note a, .byline a, .links a, .article .body a, .notes a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.back { font: 500 .875rem/1.4 var(--mono); color: var(--green-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.back:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); border-block-end: 2px solid var(--orange); padding-block-end: 3px; }

/* ---------- product chips: one static list page per product ---------- */
.chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-block-size: 40px; padding: 8px 16px; border: 1px solid var(--btn-line); border-radius: 999px; background: #FFFFFF; font: 500 .875rem/1.2 var(--mono); color: var(--ink); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* ---------- list beside the aside ---------- */
.nv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .nv-grid { grid-template-columns: minmax(0, 1fr); } }

time { font: 500 .8125rem/1.4 var(--mono); color: var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- the list: one entry per post, like a blog. The title leads; under it one quiet line
   (date · products · »različica 27.3.2«), then the lead and »Preberite več«. Room between entries,
   a hairline between them, no chips and no colour beyond the site's links. ---------- */
.posts { list-style: none; margin: 0; padding: 0; }
.post { padding-block: clamp(32px, 3.6vw, 48px); border-block-start: 1px solid var(--line-3); }
.post:first-child { padding-block-start: 0; border-block-start: 0; }
.post h2 { max-inline-size: 30em; font-size: clamp(1.375rem, 1.2rem + .75vw, 1.875rem); font-weight: 650; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.post h2 a { color: var(--ink); }
.post h2 a:hover { color: var(--orange-text); }
.post .excerpt { max-inline-size: 40em; margin-block-start: 16px; color: var(--body); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.post .more { display: inline-block; margin-block-start: 14px; font: 500 .875rem/1.4 var(--mono); color: var(--green-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post .more:hover { color: var(--ink); }

/* the quiet line under a title, in the list and on the post page */
.post-meta { margin-block-start: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.post-meta > :not(.sep) { white-space: nowrap; }
.post-meta time { font: inherit; color: inherit; }
.post-meta a { color: var(--body); text-decoration: underline; text-decoration-color: var(--btn-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-meta a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.post-meta .sep { margin-inline: 2px; color: var(--btn-line); }

/* ---------- release entries (Czech list): an entry with the number as its title and the new lines ---------- */
.rel h2 { font-variant-numeric: tabular-nums; }
.rel-lines { max-inline-size: 40em; margin: 16px 0 0; padding-inline-start: 1.2em; list-style: disc; display: flex; flex-direction: column; gap: 8px; color: var(--body); line-height: 1.6; text-wrap: pretty; }

/* ---------- aside: versions, the signup ---------- */
.nv-aside { display: flex; flex-direction: column; gap: 20px; }
.panel { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.panel h2 { margin-block-end: 12px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.vers { list-style: none; margin: 0 0 16px; padding: 0; }
.vers li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; padding-block: 8px; border-block-start: 1px solid var(--line-3); font-size: .9375rem; line-height: 1.4; }
.vers li:first-child { border-block-start: 0; padding-block-start: 0; }
.vers a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--btn-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vers a:hover { text-decoration-color: var(--ink); }
.vers.titles li { flex-direction: column; align-items: flex-start; gap: 2px; }
.vers a[href*="#v"] { font: 500 .875rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.note { margin-block: 0 14px; font-size: .9375rem; line-height: 1.55; color: var(--body); }
.signup form { display: flex; flex-direction: column; gap: 14px; }
.signup .field { display: flex; flex-direction: column; gap: 6px; }
.signup label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.signup input[type="email"], .signup input[type="text"] { inline-size: 100%; min-block-size: 48px; padding: 11px 14px; border: 1px solid var(--btn-line); border-radius: 4px; background: #FFFFFF; color: var(--ink); font: inherit; }
.signup .btn { align-self: flex-start; }
.signup .note { margin: 14px 0 0; font-size: .875rem; }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- one post ---------- */
.article { max-inline-size: 46rem; }
.article .back { display: inline-block; margin-block-end: 22px; }
.article h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 720; font-stretch: 106%; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
.article .post-meta { margin-block-start: 16px; font-size: 1rem; }
.article .lead { max-inline-size: none; margin-block-start: 22px; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); }
.article .body > * { margin-block-start: 16px; }
.article .body h2 { margin-block-start: 40px; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 650; }
.article .body h3 { margin-block-start: 28px; font-size: 1.1875rem; }
.article .body p, .article .body li { color: var(--body); font-size: 1.0625rem; text-wrap: pretty; }
.article .body ul, .article .body ol { margin-block-end: 0; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.article .body strong { color: var(--ink); font-weight: 600; }
.article code { padding: 1px 5px; border-radius: 3px; background: #EEF0EC; color: var(--ink); font-family: var(--mono); font-size: .875em; }
.article figure { margin-block-start: 28px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: clip; background: var(--map); }
.article figure img { inline-size: 100%; }
.article figcaption { padding: 10px 14px; border-block-start: 1px solid var(--line-2); background: #FFFFFF; font-size: .875rem; line-height: 1.5; color: var(--body); }
.links { margin-block-start: 40px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.links h2 { margin-block-end: 10px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.links ul { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.byline { margin-block-start: 28px; font-size: .9375rem; color: var(--body); }

/* ---------- the version pages (Različice): the versions grouped by minor version, notes where written ---------- */
.releases { display: flex; flex-direction: column; gap: clamp(30px, 3.4vw, 44px); }
.minor h2 { padding-block-end: 10px; border-block-end: 2px solid var(--ink); font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.builds { list-style: none; margin: 0; padding: 0; }
.release { padding-block: 13px 15px; border-block-end: 1px solid var(--line-3); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.release h3 { font: 600 1.0625rem/1.4 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.release .build { color: var(--muted); font-weight: 500; }
.release h4 { margin-block: 12px 4px; font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.notes { margin: 0; padding-inline-start: 1.2em; list-style: disc; display: flex; flex-direction: column; gap: 4px; color: var(--body); text-wrap: pretty; }
.notes-line { margin-block-start: 6px; color: var(--body); }
