/* /changelog/ (site/changelogpage.py): hero spec, penapis kategori melekat, garis masa mengikut tarikh. */
.clx-hero { padding-bottom: 0; }
.clx-body { padding-block: 56px 112px; }
/* Penapis (rekaan B): satu bar melekat — menu ciri (pop-over dengan bilangan) di kiri, suis jenis di kanan. */
.clx-filter { position: sticky; top: var(--top-h); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 32px;
  padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.clx-menu { position: relative; }
.clx-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; }
.clx-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clx-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; display: grid; gap: 2px; width: 280px; max-height: min(70vh, 520px); overflow-y: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.clx-pop[hidden] { display: none; }
.clx-pop button { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--copy);
  font: 500 14px/1.3 var(--font); text-align: start; cursor: pointer; }
.clx-pop button span { flex: 1; }
.clx-pop em, .clx-seg em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.clx-pop button:hover, .clx-pop button[aria-checked="true"] { background: color-mix(in srgb, var(--ink) 8%, var(--bg)); color: var(--ink); }
.clx-ic { flex: none; display: grid; place-items: center; color: var(--muted); font-style: normal; }
.clx-ic svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clx-ic svg.cmp-thl { fill: currentColor; stroke: none; }
.clx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.clx-seg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--copy);
  font: 500 13.5px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.clx-seg button em { font-size: 12px; }
.clx-seg button:hover:not(.on) { color: var(--ink); }
.clx-seg button.on { background: var(--ink); color: var(--bg); } .clx-seg button.on em { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.clx-dot { width: 8px; height: 8px; border-radius: 50%; font-style: normal; }
.clx-dot[data-kind="new"] { background: var(--k-new); } .clx-dot[data-kind="changed"] { background: var(--k-changed); } .clx-dot[data-kind="fixed"] { background: var(--k-fixed); }
:is(.clx-btn, .clx-pop button, .clx-seg button):focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
html[lang="ar"] :is(.clx-btn, .clx-pop button) { font-size: 15.5px; } html[lang="ar"] .clx-seg button { font-size: 14.5px; }

/* Hari: tarikh melekat di kiri, entri di kanan; ruang memisahkan hari, garis memisahkan entri. */
.clx-day { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 8px 0 56px; border-top: 0; scroll-margin-top: calc(var(--top-h) + 76px); }
.clx-day[hidden] { display: none; }
.clx-date { position: sticky; top: calc(var(--top-h) + 76px); align-self: start; display: grid; gap: 4px; padding-top: 16px; }
.clx-date time { color: var(--ink); font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.clx-n { color: var(--muted); font-size: 13px; }
.clx-list { margin: 0; padding: 0; list-style: none; }
.clx-list li { padding: 18px 0 20px; }
.clx-list li + li { border-top: 1px solid var(--line); }      /* garis hanya antara entri; ruang memisahkan hari */
.clx-list li[hidden] { display: none; }
.clx-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* Label jenis: pil pepejal (tepu, teks putih). */
.clx-kind { padding: 3px 8px; border-radius: 6px; background: var(--muted); color: #fff; font: 600 11.5px/1.3 var(--font); }
.clx-kind[data-kind="new"] { background: var(--k-new); }
.clx-kind[data-kind="changed"] { background: var(--k-changed); }
.clx-kind[data-kind="fixed"] { background: var(--k-fixed); }
:root[data-theme="dark"] .clx-kind { color: #0e0e10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .clx-kind { color: #0e0e10; } }
.clx-cat { color: var(--muted); font-size: 13px; }
.sp-page .clx-list p { margin: 0; color: var(--copy); font-size: 15px !important; line-height: 1.65 !important; max-width: 70ch; }
.clx-list p b { color: var(--ink); font-weight: 600; }
html[lang="ar"] .clx-kind { font-size: 13px; } html[lang="ar"] .clx-cat { font-size: 14.5px; }
html[lang="ar"] .clx-date time { font-size: 20px; } html[lang="ar"] .clx-n { font-size: 14.5px; }
html[lang="ar"] .sp-page .clx-list p { font-size: 17px !important; line-height: 1.8 !important; }

@media (max-width: 760px) {
  .clx-body { padding-block: 40px 72px; }
  .clx-filter { flex-wrap: wrap; gap: 10px; }
  .clx-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .clx-seg::-webkit-scrollbar { display: none; }
  .clx-seg button { height: 30px; padding: 0 10px; font-size: 13px; }
  .clx-day { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 40px; }
  .clx-date { position: static; display: flex; align-items: baseline; gap: 10px; padding: 0 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .clx-seg button { transition: none; } }
