/* Link styles for news and updates. */
.news-tabs a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--muted); padding: 0 14px; font-size: 13px; }
.news-tabs a.active { background: var(--raised); color: var(--text); }
.feed-filters a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.feed-filters a:hover { color: var(--text); }
.feed-filters a.active { color: var(--text); background: var(--raised); border-color: var(--line); }
.news-title-link { display: block; overflow-wrap: anywhere; }
.news-cover > img { position: absolute; inset: 0; }
.news-image-link .news-cover { min-height: 174px; }
.news-row-copy h2 { max-width: 100%; }
.news-row-copy > p { overflow-wrap: anywhere; }
.news-row, .update-row, #news-content { scroll-margin-top: 88px; }
.feed-summary { color: var(--dim); font-size: 12px; margin: 0 0 14px; }
.news-results { transition: opacity 150ms; }
.news-results[aria-busy=true] { opacity: .45; pointer-events: none; }
.article-header h1, .article-body { overflow-wrap: anywhere; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; margin: 18px 0; padding-left: 20px; }
.article-body pre { white-space: pre; overflow-wrap: normal; }
.article-body h4, .article-body h5, .article-body h6 { color: var(--text); font-size: 17px; margin: 28px 0 10px; }
.article-actions .copy-action { margin-left: auto; }
.article-error h1, .news-results .empty h2 { color: var(--text); font-size: 28px; }
.news-copy-fallback { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 20px; }
.news-copy-fallback input { border: 1px solid var(--line); border-radius: 5px; padding: 10px; width: 100%; color: var(--text); }
@media (max-width: 660px) {
  .news-tabs a { flex: 1; padding: 0 10px; white-space: nowrap; font-size: 12px; }
  .news-image-link { height: auto; aspect-ratio: 16 / 9; }
  .news-image-link .news-cover { min-height: 0; }
  .article-actions .copy-action { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .news-results { transition: none; } }
/* Release cards retain version and section hierarchy from the old journal. */
.release-layout { display: grid; grid-template-columns: minmax(230px,280px) minmax(0,1fr); align-items: start; gap: 20px; }
.release-sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; max-height: calc(100dvh - 100px); padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.release-sidebar .search { min-width: 0; }
.release-sidebar h2 { margin: 15px 4px 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.release-product-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #54545a transparent; }
.release-product-list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.release-product-list a:hover, .release-product-list a[aria-current] { background: var(--raised); border-color: var(--line); color: var(--text); }
.release-product-list small { color: var(--muted); font-variant-numeric: tabular-nums; }
.release-content { min-width: 0; }
@media (max-width: 760px) {
  .release-layout { grid-template-columns: minmax(0,1fr); }
  .release-sidebar { position: static; max-height: 285px; }
}
.release-list { display: grid; gap: 12px; }
.release-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 16px 20px; scroll-margin-top: 94px; }
.release-card-head, .release-card-head > div, .release-article-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.release-card-head { justify-content: space-between; }
.release-card-head h2 { margin: 0; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.release-card-head h2 a:hover { text-decoration: underline; text-underline-offset: .22em; }
.release-card time, .release-article-meta time { color: var(--muted); font-size: 13px; }
.release-version { display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.release-version b { color: var(--text); font-weight: 500; }
.release-changes { margin-top: 12px; border-top: 1px solid var(--line); }
.release-changes-label { margin: 0; padding: 10px 0; color: var(--muted); font-size: 14px; }
.release-notes { display: grid; gap: 10px; }
.release-note { border: 1px solid var(--line); background: var(--canvas); border-radius: 6px; padding: 12px 14px; }
.release-note h3 { margin: 0 0 6px; color: var(--text); font-size: 15px; font-weight: 600; }
.release-note--added h3 { color: #b2d5bc; }
.release-note--changed h3 { color: #c6cfee; }
.release-note--fixed h3 { color: #e3c699; }
.release-note ul { padding-left: 18px; margin: 0; list-style: disc; }
.release-note li { color: var(--muted); line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; }
.release-note code { background: var(--raised); color: var(--text); border-radius: 4px; padding: 1px 4px; }
.release-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }
.release-link:hover { color: var(--text); }
.release-article-heading { padding: 16px 0 20px; }
.release-article-heading h1 { font-size: clamp(27px,4vw,40px); font-weight: 500; margin: 8px 0 12px; overflow-wrap: anywhere; }
.release-article .article-body { max-width: none; margin: 0; }
.release-article .article-body .release-note ul { margin: 0; }
@media (max-width:600px) { .release-card { padding: 12px 14px; } }

/* Publication detail uses the same outer spacing as the rest of the site. */
.article-page > article { width: 100%; min-width: 0; }
.article-page .article-header { max-width: none; width: 100%; margin: 26px 0 0; }
.article-page .article-header h1 { max-width: none; }
.article-page .article-body, .release-article .article-body { width: 100%; max-width: none; margin: 32px 0 0; }
.article-page .article-markdown { width: 100%; }
/* News actions and gallery keep the same restrained controls as the catalogue. */
.news-card-actions { display:flex;align-items:center;justify-content:space-between;align-self:stretch;width:100%;gap:20px;margin-top:auto;padding-top:14px; }
.news-card-actions .read-more { margin:0;padding:6px 0; }
.news-like { --news-like-accent:#ef7b85;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:56px;min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:6px;color:var(--muted);background:transparent;font:inherit;font-size:13px;line-height:1;cursor:pointer;transition:background .18s,color .18s,border-color .18s; }
.news-like svg { width:18px;height:18px;fill:transparent;transition:fill .18s,stroke .18s; }
.news-like span { font-variant-numeric:tabular-nums; }
.news-like:hover { color:var(--text);background:var(--raised);border-color:var(--line); }
.news-like:hover svg,.news-like.is-liked svg { stroke:var(--news-like-accent); }
.news-like.is-liked svg { fill:var(--news-like-accent); }
.news-like.is-liked { color:var(--text); }
.news-like:focus-visible { outline:2px solid #a5a5ad;outline-offset:3px; }
.news-like:disabled { cursor:wait;opacity:.6; }
.article-actions .news-like { order:3;flex:0 0 auto;margin-left:0; }
.article-actions { justify-content:flex-start; }
.article-actions .copy-action { margin-left:auto; }
.news-image-link:hover img { transform:none; }
.publication-gallery { margin-top:28px;width:100%; }
.publication-gallery-stage { position:relative; }
.publication-gallery-main { position:relative;display:block;width:100%;height:clamp(260px,38vw,520px);padding:0;border:1px solid var(--line);border-radius:8px;background:#101011;overflow:hidden;cursor:zoom-in; }
.publication-gallery-main > img { display:block;width:100%;height:100%;object-fit:contain;filter:none;transform:none; }
.publication-gallery-zoom,.publication-gallery-count { position:absolute;bottom:16px;display:grid;place-items:center;color:#e4e4e7;background:#151516da;backdrop-filter:blur(6px);border:1px solid #ffffff1a;border-radius:6px;transition:background .2s,border-color .2s; }
.publication-gallery-zoom { right:16px;width:36px;height:36px; }
.publication-gallery-count { left:16px;padding:8px 11px;font-size:12px;font-variant-numeric:tabular-nums; }
.publication-gallery-main:hover .publication-gallery-zoom { background:#2a2a2e;border-color:#72727a; }
.publication-gallery-nav { position:absolute;top:50%;display:grid;place-items:center;transform:translateY(-50%);width:38px;height:38px;padding:0;border:1px solid #ffffff24;border-radius:7px;background:#171719d9;color:var(--text);cursor:pointer;transition:background .18s,border-color .18s; }
.publication-gallery-nav:hover { background:#303034;border-color:#77777e; }
.publication-gallery-nav.is-previous { left:16px; }
.publication-gallery-nav.is-next { right:16px; }
.publication-gallery-nav.is-previous svg { transform:rotate(180deg); }
.publication-gallery-thumbs { display:flex;gap:10px;overflow-x:auto;padding:12px 1px 4px;scrollbar-width:thin; }
.publication-gallery-thumbs button { flex:0 0 88px;width:88px;height:60px;padding:3px;border:1px solid transparent;border-radius:6px;overflow:hidden;background:transparent;opacity:.5;cursor:pointer;transition:opacity .18s,border-color .18s; }
.publication-gallery-thumbs button:hover { opacity:.85; }
.publication-gallery-thumbs button[aria-pressed=true] { opacity:1;border-color:#97979e; }
.publication-gallery-thumbs img { display:block;width:100%;height:100%;object-fit:cover;border-radius:3px; }
.publication-gallery button:focus-visible { outline:2px solid #b7b7c0;outline-offset:3px; }
@media(max-width:660px) {
 .publication-gallery-main { height:clamp(230px,65vw,340px); }
 .publication-gallery-nav.is-previous { left:10px; }.publication-gallery-nav.is-next { right:10px; }
 .publication-gallery-zoom { bottom:10px;right:10px; }.publication-gallery-count { bottom:10px;left:10px; }
 .news-card-actions { padding-top:12px; }
 .article-actions .copy-action { margin-left:0; }.article-actions .news-like { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) { .news-like,.news-like svg,.publication-gallery-thumbs button {transition:none;} }
