/* The changelog (changelog.blade.php), moved here from the view's inline style block with the design-system migration
   (2026-10-30). Same layout as before (sticky date rail beside each entry, hairlines instead of boxes, the entries'
   seals); type and colour from the system: Satoshi for the titles, IBM Plex Sans for the prose, IBM Plex Mono for
   code only, the type scale (title 32, entry 24, sub-heads 18, prose 15, data 14, meta 13, labels 11, code 12.5),
   weights 400/600 and tokens only. The page sits in .ds-scope, so app-theme.css does not reach it and nothing needs
   !important. The seals' animations are unchanged. */

/* Entry layout — sticky date rail on desktop, meta row on mobile */
.cl-entry { scroll-margin-top: 6.5rem; }

.cl-rail-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
}
@media (min-width: 768px) {
    .cl-grid {
        display: grid;
        grid-template-columns: 10.5rem minmax(0, 1fr);
        column-gap: 2.75rem;
    }
    .cl-rail-inner {
        position: sticky;
        top: 6.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* The per-entry seal: a square hairline frame around the entry's pictogram, one accent element in its type colour.
   Monochrome parts ride currentColor and lift slightly when the entry is hovered. */
.cl-mark {
    display: block;
    width: 42px;
    height: 42px;
    color: rgb(var(--ds-heading));
    opacity: 0.85;
    transition: opacity var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
}
.cl-mark svg { display: block; width: 100%; height: 100%; }
.cl-entry:hover .cl-mark { opacity: 1; transform: translateY(-1px); }

/* Change-type tag: a square marker in the type's colour and the type as a label (the word carries the meaning) */
.cl-type-dot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 1px;
    flex-shrink: 0;
}
.cl-type--feature .cl-type-dot { background-color: rgb(var(--ds-ok)); }
.cl-type--improvement .cl-type-dot { background-color: rgb(var(--ds-link)); }
.cl-type--fix .cl-type-dot { background-color: rgb(var(--ds-warn)); }

/* Hover permalink on the title */
.cl-anchor {
    margin-left: 0.4rem;
    color: rgb(var(--ds-faint));
    text-decoration: none;
    font-weight: 400;
    opacity: 0;
    transition: opacity var(--ds-dur-fast) var(--ds-ease);
}
.cl-anchor:hover { color: rgb(var(--ds-link)); }
.cl-entry-title { scroll-margin-top: 6.5rem; }
.cl-entry-title:hover .cl-anchor,
.cl-anchor:focus-visible { opacity: 1; }

/* The entries' markdown is .ds-prose.ds-prose-sm (prose.css, Kevin D4 2026-10-30); the changelog's own bit: running
   text in the muted colour, so the entry titles and the bold lead-ins carry the page. */
.cl-prose :where(p, li) { color: rgb(var(--ds-muted)); }

/* Plan-tier chips in the topic lists: the x-ds.plan-badge look (Pro and Max both blue) */
.cl-tier {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0 7px;
    border: 1px solid rgb(var(--ds-primary) / 0.45);
    border-radius: var(--ds-radius-chip);
    background-color: var(--ds-primary-tint);
    color: rgb(var(--ds-link));
    font-family: var(--ds-font-body);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: var(--ds-label-tracking);
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: 0.1em;
}

/* Request card: hand-set, so the verb, the path and every query key carry their own colour (the code tokens) */
.cl-req {
    margin: 1.15rem 0;
    border: 1px solid var(--ds-line-soft);
    border-radius: var(--ds-radius-card);
    background-color: rgb(var(--ds-page));
    overflow: hidden;
    font-family: var(--ds-font-code);
    font-size: 12.5px;
    line-height: 1.8;
}
.cl-req-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--ds-line-soft);
}
.cl-req-verb {
    padding: 0.05rem 0.42rem;
    border-radius: var(--ds-radius-chip);
    background-color: rgb(var(--ds-ok));
    color: rgb(var(--ds-card));
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
}
.cl-req-path { color: rgb(var(--ds-heading)); font-weight: 600; }
.cl-req-body { padding: 0.5rem 0.85rem 0.6rem; overflow-x: auto; }
.cl-req-line { white-space: nowrap; }
.cl-req-punct { color: rgb(var(--ds-code-punct)); }
.cl-req-key { color: rgb(var(--ds-link)); }
.cl-req-val { color: rgb(var(--ds-heading)); }

/* Parameter rail: name left, meaning right, hairlines between */
.cl-params { margin: 1.05rem 0; }
.cl-param {
    display: grid;
    grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
    gap: 0.2rem 1.1rem;
    padding: 0.62rem 0;
    border-top: 1px solid var(--ds-line-soft);
}
.cl-param:last-child { border-bottom: 1px solid var(--ds-line-soft); }
.cl-param-name {
    font-family: var(--ds-font-code);
    font-size: 12.5px;
    color: rgb(var(--ds-link));
}
.cl-param-desc { color: rgb(var(--ds-muted)); font-size: 14px; }
@media (max-width: 640px) {
    .cl-param { grid-template-columns: minmax(0, 1fr); }
}

/* Entry separators ride the hairline */
.cl-entry + .cl-entry,
.cl-entry.cl-entry--follow {
    border-top: 1px solid var(--ds-line-soft);
}

/* ---- The seals' animations (unchanged) ---- */

/* Signals seal — the trace sweeps in, holds, then retreats, on the same 6s cycle as the homepage badge. Both paths
   carry identical keyframes; pathLength="100" normalises the dash maths, and the 200-unit dash pattern makes offset
   -100 and +100 the same phase, so the loop wraps clean. */
.cl-pulse {
    stroke-dasharray: 100 100;
    stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .cl-pulse {
        animation: cl-pulse-sweep 6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s infinite;
    }
}
@keyframes cl-pulse-sweep {
    0%   { stroke-dashoffset: 100; }
    15%  { stroke-dashoffset: 0; }
    82%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

/* Monitoring seal — one radar pass, then rest. The beam parks 60° clockwise of the contact, so during a 360° pass it
   is on top of it at 300° of travel; with this easing that lands at 16.9% of the cycle, where the flare is pinned. */
.cl-radar-beam { transform-box: view-box; transform-origin: 14px 14px; }
.cl-radar-blip { transform-box: view-box; transform-origin: 8.98px 11.1px; opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
    .cl-radar-beam { animation: cl-radar-sweep 7s cubic-bezier(0.5, 0, 0.4, 1) 0.5s infinite; }
    .cl-radar-blip { animation: cl-radar-contact 7s linear 0.5s infinite; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-radar-blip { opacity: 0.95; transform: scale(1.12); }
}
@keyframes cl-radar-sweep {
    0%   { transform: rotate(0deg); }
    26%  { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}
@keyframes cl-radar-contact {
    0%    { opacity: 0.55; transform: scale(1);   animation-timing-function: ease-out; }
    15.8% { opacity: 0.3;  transform: scale(1); }
    16.9% { opacity: 1;    transform: scale(1.4); animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
    36%   { opacity: 0.55; transform: scale(1); }
    100%  { opacity: 0.55; transform: scale(1); }
}

/* Watchlist seal: a continuous broadcast — dot, near wave, far wave peak evenly across the loop. */
.cl-feed-dot { transform-box: view-box; transform-origin: 8.35px 19.95px; }
.cl-feed-w1 { transform-box: view-box; transform-origin: 7.2px 20.8px; opacity: 0.55; }
.cl-feed-w2 { transform-box: view-box; transform-origin: 7.2px 20.8px; opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
    .cl-feed-dot { animation: cl-feed-pulse 2.8s linear infinite; }
    .cl-feed-w1 { animation: cl-feed-wave1 2.8s linear infinite; }
    .cl-feed-w2 { animation: cl-feed-wave2 2.8s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-feed-w1 { opacity: 0.9; }
    .cl-feed-w2 { opacity: 0.6; }
}
@keyframes cl-feed-pulse {
    0%   { transform: scale(1.3); animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
    33%  { transform: scale(1); }
    66%  { transform: scale(1); animation-timing-function: ease-in; }
    100% { transform: scale(1.3); }
}
@keyframes cl-feed-wave1 {
    0%   { opacity: 0.55; transform: scale(1); animation-timing-function: ease-in; }
    33%  { opacity: 1; transform: scale(1.05); animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
    75%  { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0.55; transform: scale(1); }
}
@keyframes cl-feed-wave2 {
    0%   { opacity: 0.35; transform: scale(1); }
    33%  { opacity: 0.35; transform: scale(1); animation-timing-function: ease-in; }
    66%  { opacity: 0.95; transform: scale(1.04); animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
    100% { opacity: 0.35; transform: scale(1); }
}

/* Register-filter seal — one pass down the three rules, then rest. Opacity only. */
.cl-narrow-1 { opacity: 0.42; }
.cl-narrow-2 { opacity: 0.6; }
.cl-narrow-3 { opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
    .cl-narrow-1 { animation: cl-narrow-a 4.6s ease-in-out 0.4s infinite; }
    .cl-narrow-2 { animation: cl-narrow-b 4.6s ease-in-out 0.4s infinite; }
    .cl-narrow-3 { animation: cl-narrow-c 4.6s ease-in-out 0.4s infinite; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-narrow-3 { opacity: 1; }
}
@keyframes cl-narrow-a {
    0%   { opacity: 0.42; }
    6%   { opacity: 1; }
    24%  { opacity: 0.42; }
    100% { opacity: 0.42; }
}
@keyframes cl-narrow-b {
    0%   { opacity: 0.6; }
    8%   { opacity: 0.6; }
    14%  { opacity: 1; }
    32%  { opacity: 0.6; }
    100% { opacity: 0.6; }
}
@keyframes cl-narrow-c {
    0%   { opacity: 0.85; }
    16%  { opacity: 0.85; }
    22%  { opacity: 1; }
    46%  { opacity: 0.85; }
    100% { opacity: 0.85; }
}

/* Ultra Deep Data seal — one pass back through the layers, then rest. Opacity only. */
.cl-depth-1 { opacity: 0.85; }
.cl-depth-2 { opacity: 0.55; }
.cl-depth-3 { opacity: 0.32; }
@media (prefers-reduced-motion: no-preference) {
    .cl-depth-1 { animation: cl-depth-a 5s ease-in-out 0.4s infinite; }
    .cl-depth-2 { animation: cl-depth-b 5s ease-in-out 0.4s infinite; }
    .cl-depth-3 { animation: cl-depth-c 5s ease-in-out 0.4s infinite; }
}
@keyframes cl-depth-a {
    0%   { opacity: 0.85; }
    6%   { opacity: 1; }
    24%  { opacity: 0.85; }
    100% { opacity: 0.85; }
}
@keyframes cl-depth-b {
    0%   { opacity: 0.55; }
    8%   { opacity: 0.55; }
    14%  { opacity: 1; }
    32%  { opacity: 0.55; }
    100% { opacity: 0.55; }
}
@keyframes cl-depth-c {
    0%   { opacity: 0.32; }
    16%  { opacity: 0.32; }
    22%  { opacity: 0.9; }
    46%  { opacity: 0.32; }
    100% { opacity: 0.32; }
}
