/* /changelog/ only (sites/build_changelog.py). Loaded after style.css + app.css; no other page loads it.
   Light = the site (cream page, navy ink, coral accent). Dark = the Quote Pro design v3 values (pro-tools.css): navy
   surfaces, cream text, the same coral. Dark when the system asks (and the Pro moon button did not say light), or when
   the Pro moon button says dark (cl.js copies that choice to html[data-qz-theme]). The two dark blocks stay identical.
   Contrast: navy on cream 13.7:1, muted #596274 on cream 5.6:1, navy on coral 5.7:1; dark: cream on #142039 14.6:1,
   muted #A8B1C2 on the card #182644 6.5:1. */
html.qz-cl {
  --cl-card: #FFFDF9; --cl-dot: #F4EDE0; --cl-rail: color-mix(in oklab, #14213D 16%, transparent);
  --cl-chip-bg: #14213D; --cl-chip-fg: #F4EDE0;
  --cl-raise-1: 0 1px 2px rgba(20,33,61,.05), 0 2px 8px -2px rgba(20,33,61,.07);
  --cl-raise-2: 0 1px 2px rgba(20,33,61,.05), 0 16px 36px -18px rgba(20,33,61,.26);
  --cl-hi: inset 0 1px 0 rgba(255,255,255,.7);
  --cl-wash-1: rgba(255,107,91,.16); --cl-wash-2: rgba(20,33,61,.07);
  --cl-halo: rgba(255,107,91,.32); --cl-focus: #14213D;
  --cl-ease: cubic-bezier(.2,.8,.2,1);
}
@media screen and (prefers-color-scheme: dark) {
html.qz-cl:not([data-qz-theme="light"]) {
  --bg: #0E1729; --surface: #16223B; --card: #142039; --field: #0B1324; --cream: #1A2745;
  --ink: #F4EDE0; --navy: #F4EDE0; --muted: #A8B1C2;
  --line: rgba(244,237,224,.11); --line-strong: rgba(244,237,224,.22); --field-line: #71809E;
  --cl-card: #182644; --cl-dot: #0E1729; --cl-rail: rgba(244,237,224,.16);
  --cl-chip-bg: #F4EDE0; --cl-chip-fg: #14213D;
  --cl-raise-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 10px -2px rgba(0,0,0,.35);
  --cl-raise-2: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.75);
  --cl-hi: inset 0 1px 0 rgba(244,237,224,.06);
  --cl-wash-1: rgba(255,107,91,.14); --cl-wash-2: rgba(80,112,170,.16);
  --cl-halo: rgba(255,107,91,.45); --cl-focus: #F4EDE0;
  color-scheme: dark;
}
html.qz-cl:not([data-qz-theme="light"]) .logo-img { content: url("/assets/brand/qazzly-en-logo-on-navy.svg"); }
}
html.qz-cl[data-qz-theme="dark"] {
  --bg: #0E1729; --surface: #16223B; --card: #142039; --field: #0B1324; --cream: #1A2745;
  --ink: #F4EDE0; --navy: #F4EDE0; --muted: #A8B1C2;
  --line: rgba(244,237,224,.11); --line-strong: rgba(244,237,224,.22); --field-line: #71809E;
  --cl-card: #182644; --cl-dot: #0E1729; --cl-rail: rgba(244,237,224,.16);
  --cl-chip-bg: #F4EDE0; --cl-chip-fg: #14213D;
  --cl-raise-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 10px -2px rgba(0,0,0,.35);
  --cl-raise-2: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.75);
  --cl-hi: inset 0 1px 0 rgba(244,237,224,.06);
  --cl-wash-1: rgba(255,107,91,.14); --cl-wash-2: rgba(80,112,170,.16);
  --cl-halo: rgba(255,107,91,.45); --cl-focus: #F4EDE0;
  color-scheme: dark;
}
html.qz-cl[data-qz-theme="dark"] .logo-img { content: url("/assets/brand/qazzly-en-logo-on-navy.svg"); }

/* ---- ambiance: a soft coral + navy wash behind the page head (its own layer: text contrast is measured on the page colour) */
html.qz-cl body { position: relative; isolation: isolate; }
html.qz-cl body::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 560px; pointer-events: none;
  background: radial-gradient(900px 380px at 10% 40px, var(--cl-wash-1), transparent 70%),
              radial-gradient(760px 420px at 95% -120px, var(--cl-wash-2), transparent 70%);
}
html.qz-cl .top { background: color-mix(in oklab, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); }
html.qz-cl :focus-visible { outline: 2px solid var(--cl-focus); outline-offset: 3px; border-radius: 4px; }

/* ---- head */
.cl { padding-top: 8px; }
.cl .crumb { margin: 24px 0 20px; }
.cl-head { max-width: 680px; }
.cl h1 { margin: 0 0 16px; }
.cl .lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); margin: 0 0 20px; max-width: 56ch; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; font-size: 15px; color: var(--muted); }
.cl-meta time { color: var(--ink); font-weight: 600; }
.cl-ico { flex: none; display: block; }
.cl-rss { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--cl-card); color: var(--ink); font-weight: 500; text-decoration: none; box-shadow: var(--cl-raise-1);
  transition: border-color 140ms var(--cl-ease), transform 140ms var(--cl-ease); }
.cl-rss .cl-ico { color: var(--coral); }
.cl-rss:hover { border-color: var(--ink); }

/* ---- a month: its name, then a timeline (dates in a column, a hairline rail with one dot per change) */
.cl-month h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 56px 0 24px; font-size: clamp(26px, 1vw + 21px, 32px); }
.cl-count { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.cl-list { list-style: none; margin: 0; padding: 0; position: relative; }
.cl-list::before { content: ""; position: absolute; top: 8px; bottom: 24px; left: 113px; width: 2px; border-radius: 2px; background: var(--cl-rail); }
.cl-entry { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 52px; margin: 0; padding: 0 0 18px;
  scroll-margin-top: calc(var(--nav) + 24px); }
.cl-entry::before { content: ""; position: absolute; left: 107px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cl-dot); border: 2px solid var(--line-strong); box-sizing: border-box; }
.cl-entry.is-latest::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px var(--cl-halo); }
.cl-when { margin: 0; padding-top: 18px; text-align: right; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* read aloud, not shown: "(latest change)" after the newest date (the coral dot shows it), and the date of a second
   change on the same day (the eye sees one date per day) */
.cl-sr, .cl-entry.is-same-day .cl-when time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cl-card { position: relative; padding: 18px 22px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cl-card);
  box-shadow: var(--cl-raise-1), var(--cl-hi); transition: box-shadow 200ms var(--cl-ease), border-color 200ms var(--cl-ease); }
.cl-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.cl-card > h3:first-child { margin-top: 0; }
/* the title is the link to this change: it reads as a heading, the coral underline comes on hover / keyboard focus */
.cl-h { color: inherit; text-decoration: none; }
.cl-h:hover, .cl-h:focus-visible { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cl-card p { margin: 0; }
.cl-card > p + p, .cl-card > ul + p { margin-top: 10px; }
.cl-items { margin: 10px 0 0; padding-left: 20px; }
.cl-items li { margin: 6px 0 0; padding-left: 2px; }
.cl-items li::marker { color: var(--muted); }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; }
.cl-tag-pro { background: var(--cl-chip-bg); color: var(--cl-chip-fg); }
.cl-tag-asked { border-color: var(--coral); color: var(--ink); }
.cl-go a { font-weight: 600; }
/* arriving from the "What's new" line in My Quotes (/changelog/#id): the change is marked with a coral ring */
.cl-entry:target .cl-card { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral), var(--cl-raise-2); }

/* ---- the idea box pointer */
.cl-idea { display: flex; gap: 16px; align-items: flex-start; margin: 56px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--cl-card); box-shadow: var(--cl-raise-1), var(--cl-hi); }
.cl-idea h2 { margin: 2px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.cl-idea p { margin: 0; }
.cl-idea-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: #14213D; }

/* ---- phones and small tablets: one column, the rail on the left, the date above its card */
@media (max-width: 639px) {
  .cl .crumb { margin: 16px 0 16px; }
  .cl-list::before { left: 6px; top: 6px; }
  .cl-entry { grid-template-columns: minmax(0, 1fr); padding: 0 0 16px 28px; }
  .cl-entry::before { left: 0; top: 3px; }
  .cl-when { padding: 0 0 8px; text-align: left; }
  .cl-entry.is-same-day .cl-when { padding: 0; height: 0; }
  .cl-entry.is-same-day::before { top: 22px; }
  .cl-card { padding: 16px 16px 14px; }
  .cl-card h3 { font-size: 19px; }
  .cl-month h2 { margin-top: 44px; }
  .cl-idea { flex-direction: column; padding: 18px 16px; }
}

/* ---- motion: one calm rise on arrival; the ring on a linked change settles in. Nothing under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .cl-head { animation: cl-rise 460ms var(--cl-ease) both; }
  .cl-month:first-of-type .cl-entry:nth-child(-n+3) { animation: cl-rise 420ms var(--cl-ease) both; }
  .cl-month:first-of-type .cl-entry:nth-child(1) { animation-delay: 80ms; }
  .cl-month:first-of-type .cl-entry:nth-child(2) { animation-delay: 140ms; }
  .cl-month:first-of-type .cl-entry:nth-child(3) { animation-delay: 200ms; }
  .cl-entry:target .cl-card { animation: cl-ring 900ms var(--cl-ease) both; }
  @media (hover: hover) and (pointer: fine) { .cl-rss:hover { transform: translateY(-1px); } }
}
@keyframes cl-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes cl-ring { from { box-shadow: 0 0 0 10px var(--cl-halo), var(--cl-raise-2); } }
@media (prefers-reduced-motion: reduce) {
  html.qz-cl *, html.qz-cl *::before, html.qz-cl *::after { animation: none !important; transition: none !important; }
}
@media print { html.qz-cl body::before { display: none; } .cl-entry { break-inside: avoid; } .cl-rss { display: none; } }
