/* weDocs Changelog frontend
 * Self-contained styles for the changelog timeline. No build step / framework.
 */
.wedocs-cl-page {
  --cl-brand: #15a66e;
  --cl-bg: #ffffff;
  --cl-fg: #111827;
  --cl-muted: #6b7280;
  --cl-border: #eef0f2;
  --cl-soft: #f8fafc;
  /* timeline dot = darkest shade of the banner gradient colour */
  --cl-dot: color-mix(in srgb, var(--cl-banner, var(--cl-brand)) 70%, #000000);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cl-bg);
  color: var(--cl-fg);
  -webkit-font-smoothing: antialiased;
}
.wedocs-cl-page.is-dark {
  --cl-bg: #0b0f14;
  --cl-fg: #e5e7eb;
  --cl-muted: #9aa3af;
  --cl-border: rgba(255, 255, 255, 0.06);
  --cl-soft: rgba(255, 255, 255, 0.04);
  /* lift the dot on dark backgrounds */
  --cl-dot: color-mix(in srgb, var(--cl-banner, var(--cl-brand)) 78%, #ffffff);
}

.wedocs-cl-wrap { max-width: 1080px; margin: 0 auto; padding: 56px 24px 96px; }

/* hero header */
.wedocs-cl-icon { width: 16px; height: 16px; }
.wedocs-cl-title { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.05; color: var(--cl-fg); }
.wedocs-cl-sub { color: var(--cl-muted); margin: 10px 0 0; font-size: 16px; line-height: 1.5; }

/* banner band: gradient shade (from settings) behind the header */
.wedocs-cl-banner {
  --cl-banner: var(--cl-brand);
  background:
    linear-gradient(110deg,
      color-mix(in srgb, var(--cl-banner) 26%, var(--cl-bg)) 0%,
      color-mix(in srgb, var(--cl-banner) 9%, var(--cl-bg)) 45%,
      var(--cl-bg) 78%);
  border-bottom: 1px solid var(--cl-border);
}
.wedocs-cl-banner-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
/* header with the banner band turned off */
.wedocs-cl-plainhead { padding-bottom: 0; }
.wedocs-cl-plainhead .wedocs-cl-hero { padding: 8px 0 4px; }

.wedocs-cl-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 60px 0; }
.wedocs-cl-hero-main { flex: 1; min-width: 0; max-width: 600px; }
/* image auto-fits the band height, keeps aspect ratio */
.wedocs-cl-hero-art { flex-shrink: 0; max-width: 42%; margin-right: 48px; display: flex; justify-content: flex-end; }
.wedocs-cl-hero-art img { max-height: 180px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 860px) { .wedocs-cl-hero-art { display: none; } .wedocs-cl-hero-main { max-width: none; } .wedocs-cl-hero { padding: 28px 0; } }

.wedocs-cl-hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 16px 0 18px; }
.wedocs-cl-rss {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--cl-brand); text-decoration: none;
}
.wedocs-cl-rss:hover { text-decoration: underline; }

/* nice filter dropdown (Cloudflare-style) */
.wedocs-cl-hero-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.wedocs-cl-select { position: relative; }
.wedocs-cl-select-btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  min-width: 230px; cursor: pointer; font: inherit; font-size: 15px;
  border: 1px solid #c7cace; background: #f5f5f6; color: #1f2328;
  border-radius: 8px; padding: 0 0 0 16px;
}
.wedocs-cl-select-btn:hover { background: #eeeeef; }
.wedocs-cl-select-val { padding: 11px 0; }
.wedocs-cl-select-btn svg {
  width: 16px; height: 16px; color: #3b3f45; flex-shrink: 0;
  box-sizing: content-box; padding: 13px 12px; margin-left: 14px;
  border-left: 1px solid #c2c5ca; transition: transform 0.15s ease;
}
.wedocs-cl-select.is-open .wedocs-cl-select-btn svg { transform: rotate(180deg); }
.wedocs-cl-select-menu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%;
  background: #f2f2f3; border: 1px solid #d8dade; border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12); padding: 0; display: none;
  max-height: 320px; overflow: auto;
}
.wedocs-cl-select.is-open .wedocs-cl-select-menu { display: block; }
.wedocs-cl-select-opt {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 15px;
  border: 0; background: none; color: #1f2328; padding: 12px 16px;
  text-decoration: none; white-space: nowrap;
}
.wedocs-cl-select-opt:hover { background: #e4e4e6; }
.wedocs-cl-select-opt.is-active { background: #d6d7d9; color: #1f2328; font-weight: 600; }

/* dark theme keeps the controls legible */
.wedocs-cl-page.is-dark .wedocs-cl-select-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: var(--cl-fg); }
.wedocs-cl-page.is-dark .wedocs-cl-select-btn svg { color: var(--cl-muted); border-left-color: rgba(255, 255, 255, 0.12); }
.wedocs-cl-page.is-dark .wedocs-cl-select-menu { background: #1b212b; border-color: rgba(255, 255, 255, 0.10); }
.wedocs-cl-page.is-dark .wedocs-cl-select-opt { color: var(--cl-fg); }
.wedocs-cl-page.is-dark .wedocs-cl-select-opt:hover { background: rgba(255, 255, 255, 0.08); }
.wedocs-cl-page.is-dark .wedocs-cl-select-opt.is-active { background: rgba(255, 255, 255, 0.14); }

/* layout: timeline */
.wedocs-cl-body { display: flex; gap: 32px; }
.wedocs-cl-main { min-width: 0; flex: 1; }

/* timeline row */
.wedocs-cl-row {
  display: grid; grid-template-columns: 170px 1fr; gap: 0;
  padding: 8px 0 4px;
}
@media (max-width: 720px) { .wedocs-cl-row { grid-template-columns: 1fr; gap: 8px; } }

.wedocs-cl-meta { position: sticky; top: 24px; align-self: start; padding-top: 0; }
.wedocs-cl-range {
  display: inline-flex; align-items: center; height: 18px;
  color: var(--cl-fg); padding: 0; font-size: 14px; font-weight: 600;
}

/* vertical timeline line + dot on the entries column */
.wedocs-cl-entries {
  position: relative; padding: 0 0 36px 32px; border-left: 1.5px solid var(--cl-border);
}
.wedocs-cl-row:last-child .wedocs-cl-entries { border-left-color: transparent; }
.wedocs-cl-entries::before {
  content: ''; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px;
  border-radius: 9999px; background: var(--cl-dot); box-shadow: 0 0 0 4px var(--cl-bg);
}
.wedocs-cl-row.is-latest .wedocs-cl-entries::before {
  animation: wedocs-cl-pulse 1.6s ease-out infinite;
}
@keyframes wedocs-cl-pulse {
  0%   { box-shadow: 0 0 0 4px var(--cl-bg), 0 0 0 4px color-mix(in srgb, var(--cl-dot) 55%, transparent); }
  70%  { box-shadow: 0 0 0 4px var(--cl-bg), 0 0 0 12px color-mix(in srgb, var(--cl-dot) 0%, transparent); }
  100% { box-shadow: 0 0 0 4px var(--cl-bg), 0 0 0 12px color-mix(in srgb, var(--cl-dot) 0%, transparent); }
}
@media (max-width: 720px) {
  .wedocs-cl-entries { border-left: 0; padding-left: 0; }
  .wedocs-cl-entries::before { display: none; }
}

.wedocs-cl-group { margin-bottom: 28px; }
.wedocs-cl-group:last-child { margin-bottom: 0; }
.wedocs-cl-entry-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.wedocs-cl-group-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.wedocs-cl-group-title a { color: inherit; text-decoration: none; }
.wedocs-cl-group-title a:hover { color: var(--cl-dot); text-decoration: underline; }

/* single-entry page */
.wedocs-cl-single { max-width: 760px; }
.wedocs-cl-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px;
  color: var(--cl-muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.wedocs-cl-back:hover { color: var(--cl-fg); }
.wedocs-cl-single-meta { margin-bottom: 10px; }
.wedocs-cl-single-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; color: var(--cl-fg); }
.wedocs-cl-single .wedocs-cl-cats { margin: 0 0 22px; }
.wedocs-cl-single-body { font-size: 16px; }
.wedocs-cl-single-nav {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--cl-border);
}
.wedocs-cl-navlink {
  display: flex; flex-direction: column; gap: 4px; max-width: 48%;
  border: 1px solid var(--cl-border); border-radius: 12px; padding: 14px 18px;
  text-decoration: none; color: var(--cl-fg);
}
.wedocs-cl-navlink:hover { border-color: #d1d5db; background: var(--cl-soft); }
.wedocs-cl-navlink.is-next { text-align: right; margin-left: auto; }
.wedocs-cl-navlabel { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cl-muted); }
.wedocs-cl-navtitle { font-size: 15px; font-weight: 600; }
.wedocs-cl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wedocs-cl-badge {
  font-size: 13px; font-weight: 600; padding: 4px 13px; border-radius: 9999px;
  line-height: 1.5; letter-spacing: 0.005em;
}
.wedocs-cl-content { color: var(--cl-muted); font-size: 15px; line-height: 1.7; }
.wedocs-cl-content ul { margin: 0; padding: 0; list-style: none; }
.wedocs-cl-content li { position: relative; padding-left: 22px; margin: 0 0 10px; }
.wedocs-cl-content li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px;
  border-radius: 9999px; background: #cbd5e1;
}
.wedocs-cl-content p { margin: 0 0 10px; }
.wedocs-cl-content a { color: var(--cl-brand); }

/* side-by-side */
.wedocs-cl-note {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cl-soft);
  color: var(--cl-muted); border-radius: 10px; padding: 8px 12px; font-size: 12px; margin-bottom: 24px;
}
.wedocs-cl-compare { display: grid; grid-template-columns: 1fr; gap: 0 48px; }
@media (min-width: 1024px) {
  .wedocs-cl-compare { grid-template-columns: 1fr 1fr; }
  .wedocs-cl-compare > .wedocs-cl-col:first-child {
    border-right: 1px solid var(--cl-border); padding-right: 48px;
  }
}
.wedocs-cl-col { min-width: 0; }

/* theme toggle */
.wedocs-cl-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 50; cursor: pointer;
  border: 1px solid var(--cl-border); background: var(--cl-bg); color: inherit;
  width: 40px; height: 40px; border-radius: 9999px; display: grid; place-items: center;
}

.wedocs-cl-empty { color: var(--cl-muted); padding: 48px 0; }

.wedocs-cl-sentinel { height: 1px; }
.wedocs-cl-loadmore-wrap { text-align: center; padding: 8px 0 4px; }
.wedocs-cl-loadmore {
  cursor: pointer; border: 1px solid var(--cl-border); background: var(--cl-bg); color: var(--cl-fg);
  border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 500;
}
.wedocs-cl-loadmore:hover { background: var(--cl-soft); }
