/*!
 * AcquisitionSuite Theme — Changelog page (changelog.css)
 * Loaded only on the Changelog template, on top of site.css. Colors come from
 * the `--as-*` brand tokens, the typeface from `--as-font`.
 */

.as-btn-blue { color: var(--as-white); background: var(--as-blue); border-color: var(--as-blue); }
.as-btn-blue:hover { color: var(--as-white); background: color-mix(in srgb, var(--as-blue) 85%, var(--as-navy-950)); }

/* ---------- Hero ---------- */
.cl-hero .as-hero-inner { grid-template-columns: minmax(0, 5.8fr) minmax(0, 5.7fr); }
.cl-hero h1 { font-size: clamp(28px, 2.8vw, 40px); }
.cl-hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.cl-hero-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--as-orange); }
.cl-badges { list-style: none; margin: 34px 0 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.cl-badges li { display: flex; align-items: center; gap: 11px; }
.cl-badge-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--as-orange) 55%, transparent); border-radius: 10px; color: var(--as-orange); background: color-mix(in srgb, var(--as-orange) 12%, transparent); }
.cl-badges li > span:last-child { display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; color: var(--as-w80); }
.cl-badges b { font-size: 12px; font-weight: 600; color: var(--as-white); }

/* ---------- Layout ---------- */
.cl-main { padding: 26px 0 40px; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 22px; align-items: start; }
.cl-side { min-width: 0; position: sticky; top: 92px; }
.cl-feed { min-width: 0; background: var(--as-white); border: 1px solid var(--as-line); border-radius: var(--as-radius); box-shadow: var(--as-shadow-card); overflow: hidden; }

/* Sidebar */
.cl-side-card { padding: 22px 16px 18px; background: var(--as-white); border: 1px solid var(--as-line); border-radius: var(--as-radius); box-shadow: var(--as-shadow-card); }
.cl-side-card h2 { margin: 0 0 6px 4px; font-size: 16px; }
.cl-side-card > p { margin: 0 0 16px 4px; font-size: 12px; line-height: 1.55; color: var(--as-muted); }
.cl-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cl-versions a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px; border: 1px solid transparent; border-bottom-color: var(--as-line); border-radius: 8px; color: var(--as-blue); text-decoration: none; }
.cl-versions li:last-child a { border-bottom-color: transparent; }
.cl-versions a span { display: flex; flex-direction: column; gap: 3px; }
.cl-versions b { font-size: 12px; font-weight: 700; color: var(--as-ink); }
.cl-versions small { font-size: 11px; color: var(--as-muted); }
.cl-versions a.is-active { background: color-mix(in srgb, var(--as-blue) 10%, var(--as-white)); border-color: color-mix(in srgb, var(--as-blue) 18%, var(--as-white)); }
.cl-versions a.is-active b { color: var(--as-blue); }
.cl-versions a:hover { background: var(--as-soft); }
.cl-older { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0 4px; font-size: 12px; font-weight: 500; color: var(--as-blue); text-decoration: none; }
.cl-older:hover { text-decoration: underline; }

/* Lite / Pro filter and plugin tags */
.cl-filter { display: inline-flex; gap: 4px; margin: 0 0 22px; padding: 4px; background: var(--as-white); border: 1px solid var(--as-line); border-radius: 999px; box-shadow: var(--as-shadow-card); }
.cl-filter button { padding: 8px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--as-muted); background: transparent; cursor: pointer; }
.cl-filter button:hover { color: var(--as-ink); }
.cl-filter button.is-active { color: #fff; background: var(--as-blue); }
.cl-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.cl-tag-lite { color: var(--as-blue); background: color-mix(in srgb, var(--as-blue) 10%, var(--as-white)); }
.cl-tag-pro { color: var(--as-orange); background: color-mix(in srgb, var(--as-orange) 12%, var(--as-white)); }
.cl-versions b .cl-tag { margin-left: 6px; font-size: 9px; padding: 1px 6px; }
.cl-side .cl-versions li[hidden], .cl-feed .cl-release[hidden] { display: none; }

/* Releases */
.cl-release { padding: 26px 28px; border-bottom: 1px solid var(--as-line); scroll-margin-top: 90px; }
.cl-release:last-of-type { border-bottom: 0; }
.cl-release-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cl-release-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.cl-latest-eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--as-ink); }
.cl-latest-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--as-orange); }
.cl-date { padding: 4px 12px; border-radius: 14px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--as-muted); background: var(--as-soft); }
.cl-pill { flex-shrink: 0; padding: 5px 12px; border-radius: 14px; font-size: 10.5px; font-weight: 600; color: var(--as-blue); background: color-mix(in srgb, var(--as-blue) 10%, var(--as-white)); }
.cl-pill::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.cl-pill.is-latest { color: var(--as-green); background: color-mix(in srgb, var(--as-green) 12%, var(--as-white)); }
.cl-summary { margin: 12px 0 0; font-size: 13px; color: var(--as-text); }
.cl-release.is-latest { padding-bottom: 28px; }

/* Group cards */
.cl-groups { display: grid; gap: 16px; margin-top: 22px; }
.cl-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-group { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px 22px; border-radius: 12px; background: color-mix(in srgb, var(--as-white) 55%, var(--as-soft)); --kind: var(--as-blue); }
.cl-group > div { min-width: 0; }
.cl-group-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; color: var(--kind); background: color-mix(in srgb, var(--kind) 12%, var(--as-white)); }
.cl-group h3 { margin: 8px 0 12px; font-size: 14px; }
.cl-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cl-group li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--as-text); }
.cl-group li .as-icon { flex-shrink: 0; margin-top: 3px; color: var(--as-ink); }
.cl-group li span { min-width: 0; overflow-wrap: anywhere; }
.cl-kind-fix { --kind: var(--as-green); }
.cl-kind-new { --kind: var(--as-orange); }
.cl-kind-improve { --kind: var(--as-blue); }
.cl-kind-update { --kind: color-mix(in srgb, var(--as-blue) 60%, var(--as-red)); }
.cl-kind-security { --kind: var(--as-red); }
.cl-groups-grid .cl-group { padding: 16px 18px; }
.cl-groups-grid .cl-group h3 { margin: 4px 0 10px; font-size: 13px; }
.cl-groups-grid .cl-group-icon { width: 30px; height: 30px; border-radius: 8px; }
.cl-groups-grid .cl-group li { font-size: 11px; }
.cl-groups-grid .cl-group:only-child { grid-column: 1 / -1; }
.cl-rest { margin-top: 20px; }

/* Recommendation bar */
.cl-recommend { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border-radius: 10px; background: color-mix(in srgb, var(--as-blue) 8%, var(--as-white)); }
.cl-recommend-icon { display: inline-flex; flex-shrink: 0; color: var(--as-blue); }
.cl-recommend p { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--as-text); }

/* Collapsed older releases */
.cl-notes { margin-top: 16px; border: 1px solid var(--as-line); border-radius: 8px; background: color-mix(in srgb, var(--as-white) 55%, var(--as-soft)); }
.cl-notes summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 12px; font-weight: 500; color: var(--as-ink); cursor: pointer; list-style: none; }
.cl-notes summary::-webkit-details-marker { display: none; }
.cl-notes[open] summary .as-icon { transform: rotate(180deg); }
.cl-notes .cl-groups { margin: 0; padding: 0 14px 14px; }

.cl-pagination { padding: 18px 28px 24px; text-align: center; }
.cl-pagination .page-numbers { display: inline-block; margin: 0 3px; padding: 6px 12px; border: 1px solid var(--as-line); border-radius: 8px; font-size: 12px; color: var(--as-ink); text-decoration: none; }
.cl-pagination .page-numbers.current { color: var(--as-white); background: var(--as-blue); border-color: var(--as-blue); }
.cl-empty { padding: 40px 0; text-align: center; color: var(--as-muted); }

/* ---------- Closing CTA ---------- */
.cl-cta { padding: 46px 0; }
.cl-cta-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 44px; align-items: center; }
.cl-cta-logo img { max-height: 60px; }
.cl-cta-logo .site-logo-dark-lockup img { width: 52px; height: 52px; }
.cl-cta-logo .site-logo-dark-text { font-size: 26px; }
.cl-cta-copy { min-width: 0; padding-left: 44px; border-left: 1px solid var(--as-w12); }
.cl-cta h2 { color: var(--as-white); font-size: clamp(20px, 1.9vw, 26px); margin-bottom: 8px; }
.cl-cta-copy p { margin: 0; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.cl-layout { grid-template-columns: minmax(0, 1fr); }
	.cl-side { position: static; }
	.cl-versions { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
	.cl-versions a { border-bottom-color: var(--as-line); }
	
	.cl-cta-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
	.cl-cta-copy { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
	.cl-release { padding: 22px 18px; }
	.cl-groups-grid { grid-template-columns: minmax(0, 1fr); }
	.cl-recommend { flex-wrap: wrap; }
	.cl-group { padding: 16px; }
}

@media (max-width: 600px) {
	
	
	
	.cl-release-head { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
	.cl-cta-logo { max-width: 100%; }
	.cl-cta-logo .site-logo-dark-lockup img { width: 40px; height: 40px; }
	.cl-cta-logo .site-logo-dark-text { font-size: 18px; }
}
