.changelog-hero { padding-bottom: 82px; }
.changelog-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.changelog-hero h1 span { color: var(--brand); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges > span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-soft); }
.hero-badges bdi { color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.hero-badges small { color: var(--muted); font-size: 11px; }

.release-summary { position: relative; display: grid; flex-basis: 330px; gap: 11px; overflow: hidden; align-content: center; }
.release-summary::after { position: absolute; top: -55px; left: -45px; width: 155px; height: 155px; border-radius: 50%; content: ""; background: rgba(16, 185, 129, 0.09); }
.release-summary__pulse { position: absolute; top: 29px; left: 28px; z-index: 1; width: 9px; height: 9px; border: 2px solid #d1fae5; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.1); }
.release-summary div small, .release-summary time { color: var(--muted); font-size: 12px; }
.release-summary strong { display: block; margin-top: 3px; font-size: 20px; }
.release-summary p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.release-summary a { color: var(--brand-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.release-summary a span { display: inline-block; margin-right: 4px; transition: transform 180ms ease; }
.release-summary a:hover span { transform: translateX(-3px); }

.changelog-shell { padding: 76px 0 88px; }
.changelog-head { display: flex; align-items: end; justify-content: space-between; max-width: none; gap: 32px; }
.changelog-head h2 { margin-bottom: 0; }
.changelog-head > p { max-width: 470px; margin: 0 0 7px; color: var(--muted); }

.product-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-soft); }
.product-tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; min-height: 74px; padding: 11px 14px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 10px; font: inherit; text-align: right; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.product-tab:hover { color: var(--ink); background: var(--surface-soft); }
.product-tab.is-active { color: var(--ink); background: #fff; border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.08); }
.product-tab__icon { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: #21759b; border-radius: 11px; font: 700 20px/1 Georgia, serif; }
.product-tab__icon--core { background: var(--brand); }
.product-tab__icon--core svg { width: 22px; height: 22px; }
.product-tab__icon--basalam { background: #ff5c35; font-family: "Pelak", Tahoma, sans-serif; }
.product-tab > span:nth-child(2) { display: block; min-width: 0; }
.product-tab strong, .product-tab small { display: block; }
.product-tab strong { color: inherit; font-size: 14px; }
.product-tab small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.product-tab > bdi { padding: 4px 8px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.product-panel[hidden] { display: none; }

.product-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.product-intro h2 { margin: 6px 0 7px; font-size: clamp(24px, 3vw, 32px); }
.product-intro p { max-width: 700px; margin: 0; color: var(--muted); }
.product-kicker { color: var(--brand-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.product-status { display: flex; flex: none; align-items: center; gap: 10px; min-width: 128px; padding: 10px 13px; border: 1px solid #c6f0dc; border-radius: 10px; background: var(--brand-soft); }
.product-status--internal { border-color: #f2dfae; background: #fff9e9; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.1); }
.product-status--internal .status-dot { background: #b7791f; box-shadow: 0 0 0 5px rgba(183, 121, 31, 0.1); }
.product-status small, .product-status strong { display: block; }
.product-status small { color: var(--muted); font-size: 10px; }
.product-status strong { color: var(--brand-dark); font-size: 13px; }
.product-status--internal strong { color: #85570e; }

.version-index { position: sticky; top: 88px; z-index: 10; display: flex; align-items: center; gap: 7px; overflow-x: auto; margin-bottom: 28px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.93); box-shadow: var(--shadow-soft); scrollbar-width: thin; }
.version-index span { flex: none; padding: 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.version-index a { flex: none; min-width: 53px; padding: 6px 9px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
.version-index a:hover, .version-index a.is-latest { color: var(--brand-dark); border-color: var(--line-strong); background: var(--brand-soft); }

.release-list { position: relative; display: grid; gap: 18px; padding-right: 34px; }
.release-list::before { position: absolute; top: 22px; right: 8px; bottom: 22px; width: 1px; content: ""; background: linear-gradient(var(--brand), var(--line) 24%, var(--line) 86%, transparent); }
.release-card { position: relative; scroll-margin-top: 158px; padding: 27px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.release-card--latest { border-color: var(--line-strong); box-shadow: 0 14px 38px rgba(5, 150, 105, 0.08); }
.release-card__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.release-version { display: flex; align-items: center; gap: 14px; }
.release-dot { position: absolute; top: 34px; right: -33px; width: 15px; height: 15px; border: 3px solid var(--bg); border-radius: 50%; background: #b8d9ca; box-shadow: 0 0 0 1px var(--line-strong); }
.release-card--latest .release-dot { background: var(--brand); box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.1); }
.release-card h3 { margin: 0; font-size: 25px; }
.release-label { display: block; margin-bottom: 3px; color: var(--brand-dark); font-size: 10px; font-weight: 700; }
.release-card time { flex: none; color: var(--muted); font-size: 12px; }

.change-group + .change-group { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.change-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; font-size: 13px; }
.change-group h4 span { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 700; }
.change-group--fixed h4 { color: #047857; }
.change-group--fixed h4 span { background: #e6f6f0; }
.change-group--added h4 { color: #0369a1; }
.change-group--added h4 span { background: #e8f5fc; }
.change-group--changed h4 { color: #9a6700; }
.change-group--changed h4 span { background: #fff7dd; }
.change-group--improved h4 { color: #0369a1; }
.change-group--improved h4 span { background: #e8f5fc; }
.change-group--security h4 { color: #be123c; }
.change-group--security h4 span { background: #fff1f2; }
.change-group--tested h4 { color: #6d28d9; }
.change-group--tested h4 span { background: #f2edff; }
.change-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.change-group li { position: relative; padding-right: 19px; color: var(--ink-soft); line-height: 1.95; }
.change-group li::before { position: absolute; top: 0.86em; right: 1px; width: 6px; height: 6px; border-radius: 50%; content: ""; background: #9fc7b5; }
.change-group code { padding: 1px 6px; color: #065f46; background: #effaf5; border: 1px solid var(--line); border-radius: 5px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.release-note { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 21px; padding: 10px 12px; color: #77530f; border: 1px solid #f1dfa9; border-radius: 8px; background: #fffaeb; font-size: 11px; }
.release-note > span { display: grid; flex: none; width: 18px; height: 18px; place-items: center; color: #fff; border-radius: 50%; background: #b7791f; font: 700 11px/1 Georgia, serif; }
.release-note--neutral { margin: 22px 0 0; color: var(--muted); border-color: var(--line); background: var(--surface-soft); }
.release-note--neutral > span { background: #64748b; }

.no-public-release { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding: 21px 24px; border: 1px solid #f1dfa9; border-radius: 12px; background: #fffbef; }
.no-public-release__icon { display: grid; flex: none; width: 48px; height: 48px; place-items: center; color: #85570e; border: 1px solid #efd590; border-radius: 12px; background: #fff; font-size: 22px; font-weight: 700; }
.no-public-release__icon svg { width: 25px; height: 25px; }
.no-public-release h3 { margin: 0 0 4px; }
.no-public-release p { margin: 0; color: #795f2f; font-size: 12px; }
.no-public-release--basalam .no-public-release__icon { color: #c33f20; border-color: #ffd0c5; }
.release-list--snapshot { max-width: 900px; }

.changelog-cta { padding-top: 0; }
.changelog-cta .cta-box { color: #fff; border-color: rgba(255, 255, 255, 0.14); background: radial-gradient(circle at 8% 18%, rgba(52, 211, 153, 0.28), transparent 30%), linear-gradient(135deg, #064e3b, #07845f); box-shadow: 0 22px 50px rgba(4, 120, 87, 0.2); }
.changelog-cta h2 { margin: 4px 0 5px; color: #fff; font-size: clamp(23px, 3vw, 32px); }
.changelog-cta span { color: #a7f3d0; font-size: 11px; font-weight: 700; }
.changelog-cta p { color: rgba(255, 255, 255, 0.78); }

@media (max-width: 860px) {
  .changelog-head, .product-intro { align-items: flex-start; flex-direction: column; }
  .product-tabs { grid-template-columns: 1fr; }
  .product-tab { min-height: 66px; }
  .product-status { min-width: 0; }
}

@media (max-width: 560px) {
  .changelog-hero { padding-bottom: 58px; }
  .changelog-hero h1 { font-size: 34px; }
  .release-summary { padding: 23px; }
  .changelog-shell { padding: 54px 0 64px; }
  .changelog-head { gap: 10px; margin-bottom: 22px; }
  .product-tabs { padding: 6px; }
  .product-tab { padding: 9px 10px; }
  .product-tab__icon { width: 38px; height: 38px; }
  .product-intro { gap: 18px; padding: 22px 20px; }
  .version-index { top: 79px; margin-inline: -2px; }
  .release-list { padding-right: 19px; }
  .release-list::before { right: 3px; }
  .release-card { scroll-margin-top: 145px; padding: 22px 18px; }
  .release-dot { top: 30px; right: -23px; width: 13px; height: 13px; }
  .release-card__header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .release-card h3 { font-size: 22px; }
  .change-group li { font-size: 13px; }
  .no-public-release { align-items: flex-start; padding: 18px; }
  .changelog-cta .cta-box { padding: 27px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .release-summary a span, .product-tab { transition: none; }
}
