@import url("docs.css");

/* WikiDoc aliases → official ServLayer Lagom2 tokens (servlayer-vars.css) */
:root {
  --brand: var(--brand-primary);
  --brand-hover: var(--brand-primary-darker);
  --text: var(--text-heading-color);
  --muted: var(--text-body-color);
  --border: var(--gray-lighter-4);
  --bg: var(--gray-faded);
  --card: var(--body-bg);
  --card-overlay: var(--ui-block-overlay-bg, var(--body-bg));
  --code-bg: var(--gray-faded);
  --table-head-bg: var(--gray-faded);
  --console: var(--app-nav-top-bg);
  --console-panel: var(--body-bg);
  --console-border: var(--ui-block-divider-color, var(--gray-lighter-4));
  --console-text: var(--text-heading-color);
  --console-muted: var(--text-body-color);
  --success: var(--brand-success);
  --warning: var(--brand-warning);
  --danger: var(--brand-danger);
  --brand-tint: var(--brand-primary-lighter-4);
  --brand-tint-hover: var(--brand-primary-lighter-3);
  --header-height: var(--app-nav-header-height, 64px);
  --sidebar-width: 280px;
  --ui-radius: var(--border-radius-base, 6px);
  --ui-radius-lg: var(--border-radius-lg, 8px);
  --app-nav-border: var(--ui-block-divider-color, var(--gray-lighter-4));
  --surface-muted: var(--gray-faded);
  --surface-subtle: var(--gray-lighter-4);
  --surface-elevated: var(--ui-block-overlay-bg, var(--body-bg));
  --text-strong: var(--text-heading-color);
  --text-secondary: var(--text-body-color);
  --text-tertiary: var(--text-lighter-color, var(--gray-lighter));
  --border-strong: var(--ui-block-divider-color, var(--gray-lighter-3));
  --border-subtle: var(--gray-lighter-4);
  --shadow-sm: 0 1px 2px rgba(24, 32, 39, .04);
  --shadow-md: 0 12px 24px rgba(24, 32, 39, .08);
  --shadow-lg: 0 12px 36px rgba(20, 28, 43, .06);
  --shadow-panel: 0 12px 32px rgba(15, 23, 42, .12);
  --success-fg: var(--brand-success);
  --success-bg: var(--brand-success-lighter-4, var(--success-bg));
  --on-brand: #fff;
  --focus-ring: var(--brand-primary-lighter-2);
  --radius-card: var(--ui-radius-lg);
  --doc-utility-bar-height: 2.25rem;
  --doc-brand-bar-height: 4.625rem;
  --wikidoc-chrome-height: calc(var(--doc-utility-bar-height) + var(--doc-brand-bar-height));
  --doc-chrome-divider-color: rgba(15, 23, 42, .08);
  --doc-chrome-container-max: 1360px;
  --doc-chrome-container-gutter: 40px;
}

body {
  font-family: var(--wikidoc-font-family, var(--font-family-base, "Readex Pro"), system-ui, sans-serif);
  background: var(--body-bg);
  color: var(--text);
}

[dir="rtl"] body {
  font-family: var(--wikidoc-font-family, "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif);
}


.doc-shell {
  background: var(--bg);
}

.doc-shell:has(.product-content-page--changelog),
.doc-shell:has(.changelog-page) {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.doc-shell--content-page .doc-shell__content {
  padding: .75rem 2rem 1.75rem;
}

.doc-shell--content-page:has(.product-content-page--doc):has(.toc-rail) {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-rail-width);
}

@media (max-width: 1100px) {
  .doc-shell--content-page:has(.product-content-page--doc):has(.toc-rail) {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
}

.doc-shell__content {
  padding: 1.25rem 1.75rem;
}

.doc-hub {
  max-width: 1180px;
}

.console-hero,
.product-hero,
.changelog-page__header,
.prose-docs,
.search-page {
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.console-hero {
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  border-top: 3px solid var(--brand);
}

.console-hero h1,
.product-hero__title,
.changelog-page h1 {
  letter-spacing: 0;
}

.console-hero__eyebrow,
.product-hero__eyebrow,
.changelog-page__eyebrow {
  margin: 0 0 .45rem;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.console-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

.console-hero__metrics span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: .5rem;
  font-size: .8125rem;
  font-weight: 700;
}

.console-hero__metrics span::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--success);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .875rem;
}

.product-family {
  margin-top: 1.75rem;
}

.product-family__title {
  color: var(--text-secondary);
  letter-spacing: .07em;
}

.product-card {
  border-radius: .625rem;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: var(--gray-lighter-2);
  box-shadow: var(--shadow-md);
}

.product-card--rich {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-inline-start-width: 0;
  padding: 1.125rem 1.25rem 1rem;
}

.product-card__logo-wrap {
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.product-card__logo {
  display: block;
  width: auto;
  height: 2rem;
  max-width: 10rem;
  object-fit: contain;
  object-position: left center;
}

[dir="rtl"] .product-card__logo {
  object-position: right center;
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.product-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
}

.product-card__version {
  flex-shrink: 0;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--state-success-bg, var(--brand-success-lighter-4));
  color: var(--state-success-text, var(--brand-success));
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-card__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.55;
}

.product-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .25rem;
}

.product-card__tag {
  border-radius: .375rem;
  color: var(--text-secondary);
  background: var(--surface-muted);
  letter-spacing: 0;
  text-transform: none;
}

.product-card__tag--whmcs {
  color: #1d4ed8;
  background: #eff6ff;
}

.product-card__tag--php {
  color: #6d28d9;
  background: #f5f3ff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.left-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  color: var(--text);
  background: var(--card);
  border-inline-end: 0;
  position: relative;
}

.left-nav::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--brand-primary) 0%,
    color-mix(in srgb, var(--brand-primary) 28%, var(--border)) 10%,
    var(--border) 22%,
    var(--border) 100%
  );
}

.left-nav-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  background: var(--body-bg);
}

.left-nav__switcher {
  position: relative;
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--border);
}

.left-nav__label {
  margin: 0 0 .5rem;
  padding: 0;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.left-nav__switcher-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--gray-faded);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.left-nav__switcher-trigger:hover,
.left-nav__switcher-trigger[aria-expanded="true"] {
  border-color: var(--brand-primary-lighter-2);
  background: var(--card);
}

.left-nav__switcher-current {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.left-nav__switcher-name {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading-color, var(--text-strong));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-nav__switcher-version {
  font-size: .68rem;
  font-weight: 700;
  color: var(--brand);
}

.left-nav__switcher-placeholder {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

.left-nav__switcher-chevron {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 150ms ease;
}

.left-nav__switcher-trigger[aria-expanded="true"] .left-nav__switcher-chevron {
  transform: rotate(225deg) translateY(1px);
}

.left-nav__switcher-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + .25rem);
  left: 1rem;
  right: 1rem;
  max-height: min(22rem, 55vh);
  overflow-y: auto;
  padding: .4rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--body-bg);
  box-shadow: var(--shadow-panel);
  isolation: isolate;
}

.left-nav__switcher-group + .left-nav__switcher-group {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

.left-nav__switcher-group-label {
  margin: 0 0 .35rem;
  padding: 0 .45rem;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.left-nav__switcher-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .55rem;
  border-radius: .375rem;
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}

.left-nav__switcher-option:hover {
  color: var(--brand);
  background: var(--brand-tint-hover);
}

.left-nav__switcher-option.is-active {
  color: var(--brand);
  background: var(--brand-primary-lighter-4, var(--brand-tint));
  box-shadow: inset 0 0 0 1px var(--brand-primary-lighter-2);
  font-weight: 700;
}

.left-nav__switcher-option.is-active .left-nav__switcher-option-name {
  color: inherit;
}

.left-nav__switcher-option.is-active .left-nav__switcher-option-version {
  background: var(--brand-primary-lighter-3, var(--brand-tint-hover));
  color: var(--brand);
}

.left-nav__switcher-option-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-nav__switcher-option-version {
  flex: 0 0 auto;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: .62rem;
  font-weight: 800;
}

.left-nav__switcher-hub {
  display: block;
  margin-top: .4rem;
  padding: .5rem .55rem .35rem;
  border-top: 1px solid var(--border);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.left-nav-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: .75rem 0 1.25rem;
}

.left-nav-panel__footer {
  margin-top: .75rem;
  padding: .75rem 1rem 0;
  border-top: 1px solid var(--border);
}

.left-nav__section-label {
  margin: 1rem 0 .35rem;
  padding: 0 1rem;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.left-nav__section-label:first-child {
  margin-top: .25rem;
}

.left-nav__flat-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: .1rem .65rem;
  padding: .45rem .65rem;
  border-radius: .5rem;
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.left-nav__flat-link:hover {
  color: var(--brand);
  background: var(--brand-tint-hover);
}

.left-nav__flat-link.is-active {
  color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand-primary-lighter-2);
}

.left-nav__flat-link-meta {
  margin-inline-start: auto;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: rgba(5, 135, 184, .12);
  color: var(--brand);
  font-size: .625rem;
  font-weight: 800;
}

.left-nav__whmcs-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.left-nav__whmcs-link:hover {
  color: var(--brand-hover);
}

.toc-rail {
  background: var(--surface-muted);
  border-inline-start-color: var(--border);
}

.toc-rail__link.is-active {
  color: var(--brand);
  font-weight: 700;
}

.prose-docs {
  padding: 1.5rem;
}

.prose-docs h1.doc-title {
  margin-top: 0;
}

.product-hero {
  padding: 1.5rem;
  border-radius: .5rem;
  border-inline-start: 0;
  border-top: 3px solid var(--brand);
}

.product-hero__module {
  display: inline-flex;
  padding: .25rem .55rem;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: .375rem;
}

.product-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.product-hero__logo {
  display: block;
  width: auto;
  height: 2.25rem;
  max-width: 11rem;
  object-fit: contain;
  object-position: right center;
  flex-shrink: 0;
}

[dir="rtl"] .product-hero__logo {
  object-position: left center;
}

.product-status {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-status__item {
  padding: .25rem .6rem;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-status__item--stable {
  color: var(--state-success-text, var(--brand-success));
  background: var(--state-success-bg, var(--brand-success-lighter-4));
  border-color: color-mix(in srgb, var(--brand-success) 18%, transparent);
}

.product-status__item--preview {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.product-status__item--deprecated {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.product-status__item--whmcs {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.product-status__item--latest {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.product-status__item--updated {
  color: var(--text-secondary);
  background: var(--surface-muted);
  border-color: var(--border);
}

.product-status__item--docs {
  color: var(--brand-primary);
  background: var(--brand-primary-lighter-4);
  border-color: var(--brand-primary-lighter-3);
}

.product-status__sep {
  display: none;
}

.compatibility-matrix {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.compatibility-matrix__item {
  border-radius: .5rem;
  background: var(--surface-muted);
}

.compatibility-matrix dt {
  color: var(--text-tertiary);
  letter-spacing: .06em;
}

.product-hero__btn {
  border-radius: .5rem;
}

.product-hero__btn--primary {
  background: var(--console);
  border-color: var(--console);
}

.product-hero__btn--secondary {
  background: var(--card);
  border: 1px solid var(--border);
}

.product-hero,
.doc-pager__link,
.changelog-accordion,
.product-content-page .changelog-latest {
  border-radius: var(--radius-card);
}

.compatibility-matrix__item,
.product-hero__module,
.product-status__item {
  border-radius: var(--ui-radius);
}

.changelog-page__header {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-top: 3px solid var(--brand);
}

.changelog-page__header-row {
  align-items: stretch;
}

.changelog-page__header .muted {
  color: var(--text-tertiary);
  font-weight: 600;
}

.changelog-page__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(8.75rem, 1fr));
  gap: .625rem;
  min-width: min(100%, 33rem);
}

.changelog-page__signal,
.changelog-page__whmcs-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.875rem;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.25;
}

.changelog-page__signal strong,
.changelog-page__whmcs-link {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.changelog-page__signal strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--text-tertiary);
}

.changelog-page__signal--status {
  border-color: rgba(40, 167, 69, .24);
  background: rgba(40, 167, 69, .07);
}

.changelog-page__whmcs-link {
  align-items: center;
  grid-column: span 3;
  min-height: 2.65rem;
  color: var(--brand);
  text-decoration: none;
}

.changelog-page__whmcs-link:hover {
  background: rgba(5, 135, 184, .08);
}

.changelog-latest,
.changelog-accordion {
  border-radius: .5rem;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.changelog-latest {
  padding: 0;
  overflow: hidden;
}

.changelog-latest__grid {
  display: grid;
  grid-template-columns: minmax(17rem, .7fr) minmax(0, 1.8fr);
  min-height: 20rem;
}

.changelog-latest__header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: transparent;
  border-inline-end: 0;
}

.changelog-latest__label {
  color: var(--brand);
  font-weight: 800;
}

.changelog-latest__hero {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.changelog-latest__version {
  margin: 0 0 .45rem;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.changelog-latest__date {
  color: var(--text-tertiary);
  font-weight: 700;
}

.changelog-latest__counts {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  margin: 1rem 0 0;
}

.changelog-latest__count {
  justify-content: center;
  min-height: 2.15rem;
  border: 1px solid transparent;
}

.changelog-latest__count--new {
  border-color: rgba(22, 101, 52, .12);
}

.changelog-latest__count--improvement {
  border-color: rgba(30, 64, 175, .12);
}

.changelog-latest__count--fix {
  border-color: rgba(185, 28, 28, .12);
}

.release-readiness {
  margin-top: 1rem;
}

.release-readiness__flag {
  background: var(--card);
}

.changelog-latest__notes {
  padding: 1.5rem;
  background: var(--card);
}

.changelog-latest__notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
}

.changelog-latest__notes-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.changelog-latest__notes-header span {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: .8125rem;
  font-weight: 800;
}

.changelog-list-items {
  gap: .55rem;
}

.changelog-item {
  position: relative;
  gap: .85rem;
  border: 1px solid transparent;
  border-radius: .5rem;
}

.changelog-latest__notes .changelog-item {
  background: var(--surface-subtle);
  border-color: var(--border-subtle);
}

.changelog-tag {
  min-width: 6.25rem;
  padding: .25rem .6rem;
  border-radius: .35rem;
}

.changelog-item__text {
  color: var(--text-strong);
  font-size: .94rem;
  line-height: 1.5;
}

.changelog-previous {
  margin-top: 1.25rem;
}

.changelog-previous__title {
  color: var(--text-strong);
  font-weight: 800;
}

.changelog-accordion {
  background: var(--card);
}

.changelog-accordion__summary {
  min-height: 4rem;
}

.changelog-accordion__version {
  color: var(--text-strong);
  font-weight: 800;
}

/*.changelog-accordion__body {
/*  background: var(--surface-subtle);
/*}

.release-readiness__badge,
.release-readiness__flag,
.changelog-latest__count,
.changelog-accordion__count,
.changelog-tag {
  border-radius: .375rem;
}

.search-page {
  padding: 1.5rem;
}

.search-modal__panel {
  border-radius: .5rem;
}

/* Product content shell (docs + changelog) */
.theme-lagom2.has-product-content-shell {
  background: var(--body-bg);
}

.theme-lagom2.has-product-content-shell .doc-shell,
.theme-lagom2.has-product-content-shell .doc-shell__content {
  background: var(--body-bg);
}

.product-content-page,
.changelog-page--reference {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--text);
}

.product-content-page__header,
.changelog-page--reference .changelog-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  box-shadow: none;
}

.product-content-page__header--changelog {
  position: relative;
  padding-inline-start: 1.25rem;
}

.product-content-page__header--changelog::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .25rem;
  bottom: .25rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-primary-lighter) 100%);
}

.product-content-page__header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.product-content-page__eyebrow {
  margin: 0 0 .4rem;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-content-page--doc .product-content-page__header h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.product-content-page--changelog .product-content-page__header h1,
.changelog-page--reference .changelog-page__header h1 {
  margin: 0 0 .85rem;
  color: var(--text-strong);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.product-content-page__lead,
.changelog-page--reference .changelog-page__header p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-tertiary);
  font-size: .95rem;
  line-height: 1.75;
}

.product-content-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.changelog-stat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-size: .75rem;
  font-weight: 700;
}
.changelog-stat--live {
  border-color: rgba(184, 5, 5, .35);
  background: var(--brand-tint);
  color: var(--brand);
}
.changelog-stat__dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(184, 5, 5, .2);
  animation: changelog-pulse 2s ease-in-out infinite;
}

@keyframes changelog-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.product-content-page__rss {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-content-page__rss:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.product-content-page a,
.changelog-page--reference a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.product-content-page a:hover,
.changelog-page--reference a:hover {
  color: var(--brand-hover);
}

.product-content-page__card {
  padding: 2rem 2.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.product-content-page__card.prose-docs {
  max-width: none;
  width: 100%;
}

.product-content-page--doc .doc-meta {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0;
}

.product-content-page--doc .doc-pager {
  max-width: none;
  margin-top: 2rem;
}

.product-content-page__empty {
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: .5rem;
  color: var(--text-tertiary);
  text-align: center;
}

.changelog-section-title,
.product-content-page .changelog-previous__title,
.changelog-page--reference .changelog-previous__title {
  margin: 0 0 1.35rem;
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-content-page .changelog-latest,
.changelog-page--reference .changelog-latest {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 2rem 2.25rem;
  overflow: visible;
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--brand);
  border-radius: .5rem;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.product-content-page .changelog-latest::before,
.changelog-page--reference .changelog-latest::before {
  content: none;
}

.changelog-page--reference .changelog-latest__header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  margin: 0 0 1.65rem;
  background: transparent;
  border: 0;
}

.changelog-page--reference .changelog-latest__version {
  margin: 0 0 .45rem;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.changelog-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}

.changelog-release-meta__item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: baseline;
}

.changelog-release-meta__label {
  color: var(--text-tertiary);
  font-weight: 600;
}

.changelog-release-meta__value {
  color: var(--text);
  font-weight: 700;
}

.changelog-release-meta strong,
.changelog-accordion__meta strong {
  color: var(--text-strong);
  font-weight: 800;
}

.changelog-page--reference .release-readiness {
  gap: .45rem;
  margin-top: .85rem;
}

.changelog-page--reference .release-readiness__badge,
.changelog-page--reference .release-readiness__flag {
  padding: .2rem .55rem;
  border: 0;
  border-radius: .25rem;
  font-size: .72rem;
  line-height: 1.25;
}

.product-content-page .changelog-latest__download,
.changelog-page--reference .changelog-latest__download {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: auto;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--brand);
  border-radius: .375rem;
  background: var(--brand);
  color: var(--on-brand);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.product-content-page .changelog-latest__download:hover,
.changelog-page--reference .changelog-latest__download:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--on-brand);
}

.changelog-page--reference .changelog-page__whmcs-label,
.product-content-page .changelog-page__whmcs-label,
.changelog-page--reference .changelog-latest__counts,
.product-content-page .changelog-latest__counts {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.changelog-page--reference .release-readiness__notes {
  margin: 0 0 1.2rem;
  color: var(--text-tertiary);
  font-size: .95rem;
  line-height: 1.7;
}

.changelog-page--reference .changelog-list-items {
  display: grid;
  gap: .55rem;
}

.changelog-page--reference .changelog-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.changelog-page--reference .changelog-item:hover,
.changelog-page--reference .changelog-item:focus,
.changelog-page--reference .changelog-item:focus-within,
.changelog-page--reference .changelog-latest .changelog-item:hover,
.changelog-page--reference .changelog-latest .changelog-item:focus,
.changelog-page--reference .changelog-latest .changelog-item:focus-within {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.changelog-page--reference .changelog-latest .changelog-item {
  background: transparent;
  border: 0;
}

.changelog-page--reference .changelog-tag {
  min-width: 5.1rem;
  padding: .22rem .5rem;
  border-radius: .25rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.changelog-page--reference .changelog-item__text {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.62;
}

.changelog-page--reference .changelog-item__text p {
  margin: 0;
}

.changelog-page--reference .changelog-previous {
  margin-top: 1.5rem;
}

.changelog-page--reference .changelog-timeline {
  display: grid;
  gap: .9rem;
  padding: 0;
}

.changelog-page--reference .changelog-timeline::before,
.changelog-page--reference .changelog-timeline .changelog-accordion::before {
  content: none;
}

.changelog-page--reference .changelog-accordion {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: .375rem;
  background: var(--card);
  box-shadow: none;
}

.product-content-page .changelog-accordion[open],
.changelog-page--reference .changelog-accordion[open] {
  border-color: var(--brand);
}

.changelog-previous--timeline .changelog-timeline {
  position: relative;
  padding-inline-start: 0;
}

.changelog-previous--timeline .changelog-timeline::before {
  content: none;
}

.changelog-previous--timeline .changelog-accordion {
  position: relative;
}

.changelog-previous--timeline .changelog-accordion::before {
  content: none;
}

.changelog-page--reference .changelog-accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.changelog-page--reference .changelog-accordion__summary::after {
  content: none;
}

.changelog-accordion__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.changelog-accordion__toggle::before {
  content: "+";
}

.changelog-accordion[open] .changelog-accordion__toggle::before {
  content: "-";
}

.changelog-page--reference .changelog-accordion__version {
  flex: 0 0 auto;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
}

.changelog-page--reference .changelog-accordion__meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1rem;
  min-width: 0;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
}

.changelog-page--reference .changelog-accordion__meta .changelog-release-meta {
  justify-content: flex-end;
  gap: .35rem .85rem;
  font-size: inherit;
}

.changelog-page--reference .changelog-accordion__body {
  padding: 1.45rem 1.65rem 1.75rem;
  border-top: 1px solid var(--border-strong);
  background: var(--card);
}

@media (max-width: 768px) {
  .site-header__brand-subtitle,
  .site-header__system-status,
  .site-header__search-label {
    display: none;
  }

  .doc-shell__content {
    padding: 1rem;
  }

  .doc-shell:has(.product-content-page--changelog),
  .doc-shell:has(.changelog-page),
  .doc-shell--content-page:has(.product-content-page--doc):has(.toc-rail) {
    grid-template-columns: minmax(0, 1fr);
  }

  .left-nav {
    flex-direction: column;
  }

  .left-nav__switcher-panel {
    position: static;
    margin-top: .4rem;
    max-height: none;
    box-shadow: none;
  }

  .product-content-page__header {
    flex-direction: column;
  }

  .product-content-page__card {
    padding: 1.25rem;
  }

  .prose-docs,
  .product-hero,
  .console-hero,
  .search-page {
    padding: 1rem;
  }

  .changelog-page__signals {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .changelog-page__whmcs-link {
    grid-column: auto;
  }

  .changelog-latest__grid {
    grid-template-columns: 1fr;
  }

  .changelog-latest__header {
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
  }

  .changelog-latest__counts {
    grid-template-columns: 1fr;
  }

  .changelog-latest__notes,
  .changelog-latest__header {
    padding: 1rem;
  }

  .changelog-latest__notes-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .changelog-item {
    display: grid;
    gap: .55rem;
  }

  .changelog-tag {
    min-width: 0;
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .changelog-reference-shell {
    padding: 2rem 1rem 3rem;
  }

  .doc-shell:has(.changelog-page--reference) .doc-shell__content {
    padding: 2rem 1rem 3rem;
  }

  .changelog-page--reference .changelog-page__header h1 {
    font-size: 2.25rem;
  }

  .changelog-section-title,
  .changelog-page--reference .changelog-previous__title {
    font-size: 1.45rem;
  }

  .changelog-page--reference .changelog-latest {
    padding: 1.25rem;
  }

  .changelog-page--reference .changelog-latest__header {
    flex-direction: column;
  }

  .changelog-page--reference .changelog-latest__download {
    width: auto;
    align-self: flex-start;
  }

  .changelog-page--reference .changelog-item {
    display: grid;
    gap: .45rem;
  }

  .changelog-page--reference .changelog-tag {
    min-width: 0;
    width: max-content;
  }

  .changelog-page--reference .changelog-item__text {
    font-size: .9rem;
  }

  .changelog-page--reference .changelog-accordion__summary {
    flex-wrap: wrap;
    min-height: auto;
    padding: 1rem;
  }

  .changelog-page--reference .changelog-accordion__meta {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-inline-start: 2.15rem;
  }

  .changelog-page--reference .changelog-accordion__meta .changelog-release-meta {
    justify-content: flex-start;
  }

  .changelog-page--reference .changelog-accordion__body {
    padding: 1rem;
  }
}


/* ——— Product roadmap (enterprise) ——— */
.product-roadmap__header {
  margin-bottom: 1.25rem;
}

.product-roadmap__search input {
  min-width: min(100%, 16rem);
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--card);
  color: var(--text-strong);
  padding: .55rem .75rem;
  font: inherit;
}

.product-roadmap__search input::placeholder {
  color: var(--text-tertiary, var(--muted));
}

.product-roadmap__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 1px solid var(--border, #dee0e3);
  margin-bottom: 1.5rem;
}

.product-roadmap__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #6d7482);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem .9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.product-roadmap__tab.is-active {
  color: var(--brand, #065cfe);
  border-bottom-color: var(--brand, #065cfe);
}

.product-roadmap__tab-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-muted, rgba(6, 92, 254, .08));
  color: inherit;
  font-size: .7rem;
  padding: .1rem .35rem;
}

.product-roadmap__horizon {
  margin-bottom: 2rem;
}

.product-roadmap__horizon-title {
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted, #6d7482);
  margin: 0 0 1rem;
}

.product-roadmap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}

.roadmap-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.roadmap-card:hover,
.roadmap-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  outline: none;
}

.roadmap-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.roadmap-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .75rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.lagom-dark-mode .roadmap-card__top {
  background: var(--surface-muted, #2b2b2b);
}

.roadmap-card__title-sm {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.3;
}

.roadmap-card__version {
  font-size: .68rem;
  color: var(--text-tertiary, var(--muted));
  white-space: nowrap;
}

.roadmap-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.35rem .85rem 1.45rem;
  background: #17191c;
  color: #f7f7f8;
  text-align: center;
  position: relative;
}

.lagom-dark-mode .roadmap-card__body {
  background: #0d0f12;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.roadmap-card__cover {
  width: 100%;
  max-height: 7rem;
  object-fit: contain;
}

.roadmap-card__icon,
.roadmap-card__placeholder {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  color: #ff8a3d;
}

.roadmap-card__placeholder {
  border-radius: .75rem;
  background: rgba(255, 255, 255, .06);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.roadmap-card__placeholder img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.roadmap-card__svg {
  width: 2.75rem;
  height: 2.75rem;
}

.roadmap-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

body.roadmap-modal-open {
  overflow: hidden;
}

.roadmap-modal[hidden] {
  display: none !important;
}

.roadmap-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.roadmap-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 18, 24, .55);
  cursor: pointer;
}

.lagom-dark-mode .roadmap-modal__backdrop {
  background: rgba(0, 0, 0, .72);
}

.roadmap-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(88vh, 40rem);
  overflow: auto;
  border-radius: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  outline: none;
}

.lagom-dark-mode .roadmap-modal__dialog {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}

.roadmap-modal__close {
  position: absolute;
  top: .55rem;
  inset-inline-end: .55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.roadmap-modal__hero {
  background: #17191c;
  color: #f7f7f8;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
}

.lagom-dark-mode .roadmap-modal__hero {
  background: #0d0f12;
}

.roadmap-modal__hero .roadmap-card__body {
  min-height: 0;
  padding: 0;
  background: transparent;
  border-top: 0;
}

.roadmap-modal__hero .roadmap-card__title {
  font-size: 1.35rem;
}

.roadmap-modal__content {
  padding: 1.25rem 1.35rem 1.5rem;
  background: var(--card);
}

.roadmap-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-bottom: .55rem;
}

.roadmap-modal__status,
.roadmap-modal__version {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-tertiary, var(--muted));
}

.roadmap-modal__title {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-strong);
}

.roadmap-modal__summary {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-secondary, var(--muted));
  white-space: pre-wrap;
}

.roadmap-modal__link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.roadmap-modal__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .product-roadmap__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
