/* Latest-note headline: a static glass pill under the top bar that scrolls away with the page. ticker.js adds it; /notes/latest.json feeds it.
   Colours come from the page's own tokens (homepage glass, light or dark; paper on notes and project pages). */
.ticker{position:absolute;z-index:58;left:50%;top:var(--ticker-top,12px);translate:-50% 0;display:flex;align-items:center;gap:10px;width:min(560px,calc(100% - 32px));height:38px;padding:0 6px;border:1px solid var(--glass-line,rgba(11,11,13,.12));border-radius:999px;background:linear-gradient(180deg,var(--gf,rgba(255,255,255,.74)),color-mix(in srgb,var(--gf,#fff) 40%,transparent)),color-mix(in srgb,var(--bg,#f3f2ed) 58%,transparent);box-shadow:var(--glass-shadow,0 18px 40px -24px rgba(0,0,0,.4)),inset 0 1px 0 rgba(255,255,255,.55);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);color:var(--ink,#0b0b0d);font:500 13px/1 Inter,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;text-decoration:none;opacity:0;transition:top .55s cubic-bezier(.16,1,.3,1),opacity .7s ease,border-color .3s ease,background .4s ease,color .4s ease}
.ticker.on{opacity:1}
.ticker:hover{border-color:color-mix(in srgb,var(--ac,#1c3cff) 55%,transparent)}
.ticker:focus-visible{outline:2px solid var(--ac,#1c3cff);outline-offset:3px}
.ticker-chip{flex:none;display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px 0 10px;border-radius:999px;background:#ffd02e;color:#0b0b0d;font-size:12px;font-weight:650}
.ticker-chip i{width:6px;height:6px;border-radius:50%;background:#1c3cff}
.ticker-view{display:flex;flex:1;min-width:0;overflow:hidden}
.ticker-track{display:flex;flex:1;min-width:0}
.ticker-item{display:flex;flex:1;align-items:center;gap:10px;min-width:0;padding:0 12px;white-space:nowrap}
.ticker-meta,.ticker-read{flex:none}
.ticker-title{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:580;letter-spacing:-.01em}
.ticker-meta{color:color-mix(in srgb,currentColor 58%,transparent);font-variant-numeric:tabular-nums}
.ticker-read{color:var(--ac,#1c3cff);font-weight:620}
/* Notes and project pages: leave a slot under the page bar so the pill does not cover the heading. */
html.has-ticker body>header.bar{margin-bottom:46px}
@media(max-width:560px){.ticker{height:38px;gap:6px}.ticker-chip{padding:0 10px 0 9px;font-size:10px}.ticker-meta{display:none}}
@media print{.ticker{display:none}}
