:root {
  color-scheme: light;
  --cms-primary: #1d4ed8;
  --cms-primary-dark: #1e3a8a;
  --cms-accent: #f97316;
  --cms-text: #111827;
  --cms-muted: #64748b;
  --cms-border: #e5e7eb;
  --cms-surface: #ffffff;
  --cms-soft: #f8fafc;
  --cms-band: #eef4ff;
  --cms-shell: 1180px;
}

* {
  box-sizing: border-box;
}

body.cms-site {
  margin: 0;
  color: var(--cms-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--cms-surface);
}

a {
  color: var(--cms-primary);
  text-decoration: none;
}

a:hover {
  color: var(--cms-accent);
}

.cms-site-shell,
.cms-content-shell {
  width: min(100% - 40px, var(--cms-shell));
  margin: 0 auto;
}

.cms-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--cms-border);
  backdrop-filter: blur(14px);
}

.cms-site-header .cms-site-shell,
.cms-site-footer .cms-site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.cms-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cms-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.cms-site-logo {
  display: block;
  width: auto;
  max-width: 152px;
  height: 36px;
  object-fit: contain;
}

.cms-nav-group {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}

.cms-nav-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cms-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--cms-primary-dark);
  font: inherit;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--cms-border);
  border-radius: 4px;
}

.cms-menu-toggle i,
.cms-menu-toggle i::before,
.cms-menu-toggle i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.cms-menu-toggle i {
  position: relative;
}

.cms-menu-toggle i::before,
.cms-menu-toggle i::after {
  position: absolute;
  left: 0;
  content: "";
}

.cms-menu-toggle i::before {
  top: -6px;
}

.cms-menu-toggle i::after {
  top: 6px;
}

.cms-nav-state:checked + .cms-menu-toggle i {
  background: transparent;
}

.cms-nav-state:checked + .cms-menu-toggle i::before {
  top: 0;
  transform: rotate(45deg);
}

.cms-nav-state:checked + .cms-menu-toggle i::after {
  top: 0;
  transform: rotate(-45deg);
}

.cms-site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-site-nav li {
  position: relative;
}

.cms-site-nav a {
  color: var(--cms-text);
  font-size: 14px;
}

.cms-site-subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: none;
  min-width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--cms-border);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.cms-site-nav li:hover > .cms-site-subnav,
.cms-site-nav li:focus-within > .cms-site-subnav {
  display: grid;
  gap: 6px;
}

.cms-site-nav-mobile {
  display: none;
}

.cms-site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-site-search {
  min-height: 36px;
  padding: 7px 14px;
  color: var(--cms-primary-dark);
  border: 1px solid var(--cms-border);
  border-radius: 6px;
}

.cms-page {
  min-height: 58vh;
}

.cms-page-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

.cms-page-description,
.cms-article-meta,
.cms-empty,
.cms-section-kicker {
  color: var(--cms-muted);
}

.cms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cms-muted);
  font-size: 14px;
}

.cms-breadcrumb a {
  color: var(--cms-muted);
}

.cms-breadcrumb a:hover {
  color: var(--cms-primary);
}

.cms-enterprise-hero {
  padding: 72px 0 64px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #f97316 140%);
}

.cms-enterprise-hero-has-image {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 52%, rgba(15, 23, 42, 0.32)),
    var(--cms-hero-image);
  background-position: center;
  background-size: cover;
}

.cms-enterprise-hero .cms-page-title {
  max-width: 760px;
  color: #ffffff;
  font-size: 56px;
}

.cms-enterprise-hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.cms-enterprise-hero-actions,
.cms-enterprise-metrics,
.cms-enterprise-grid {
  display: grid;
  gap: 18px;
}

.cms-enterprise-hero-actions {
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  margin-top: 30px;
}

.cms-enterprise-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 44px;
}

.cms-metric {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.cms-metric strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.1;
}

.cms-metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.cms-enterprise-band {
  padding: 64px 0;
  background: var(--cms-surface);
}

.cms-enterprise-band-alt {
  background: var(--cms-soft);
}

.cms-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.cms-section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.cms-link-more {
  color: var(--cms-primary-dark);
  font-size: 14px;
  font-weight: 600;
}

.cms-enterprise-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cms-enterprise-trust {
  padding: 34px 0;
  background: var(--cms-text);
}

.cms-enterprise-trust .cms-section-kicker {
  margin: 0 0 14px;
  color: #bfdbfe;
}

.cms-trust-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(100px, 1fr));
  gap: 12px;
  align-items: center;
}

.cms-trust-row > strong,
.cms-trust-row > span {
  min-height: 54px;
  padding: 14px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.cms-trust-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 14px;
}

.cms-trust-row-dynamic {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cms-customer-logo-card {
  min-height: 78px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.cms-customer-logo-card img {
  max-width: 130px;
  max-height: 38px;
  object-fit: contain;
}

.cms-customer-logo-card span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cms-customer-logo-card small {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.cms-card {
  padding: 24px;
  background: var(--cms-surface);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-card-media,
.cms-article-cover,
.cms-page-cover {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.cms-card-media {
  aspect-ratio: 16 / 9;
  margin: -8px 0 18px;
}

.cms-article-cover {
  max-height: 420px;
  margin-top: 28px;
}

.cms-page-cover {
  max-height: 360px;
  margin-top: 28px;
}

.cms-card h2,
.cms-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cms-card p {
  margin: 0;
  color: var(--cms-muted);
}

.cms-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--cms-muted);
  font-size: 13px;
}

.cms-card-meta span {
  color: var(--cms-primary-dark);
  font-weight: 600;
}

.cms-card-action {
  display: inline-flex;
  margin-top: 16px;
}

.cms-public-form [data-public-form-result] {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--cms-muted);
}

.cms-public-form[data-submit-state="success"] [data-public-form-result] {
  color: #166534;
}

.cms-public-form[data-submit-state="error"] [data-public-form-result] {
  color: #b91c1c;
}

.cms-category-children + .cms-enterprise-band {
  padding-top: 32px;
}

.cms-category-card {
  min-height: 118px;
}

.cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--cms-primary);
  border-radius: 6px;
}

.cms-button:hover {
  color: #ffffff;
  background: var(--cms-primary-dark);
}

.cms-button-secondary {
  color: var(--cms-primary-dark);
  background: #ffffff;
}

.cms-enterprise-contact {
  padding: 64px 0;
  background: var(--cms-band);
}

.cms-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: var(--cms-surface);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-contact-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.cms-contact-panel p {
  margin: 0;
  color: var(--cms-muted);
}

.cms-contact-panel .cms-contact-address {
  margin-top: 12px;
  color: var(--cms-text);
}

.cms-contact-actions {
  display: grid;
  gap: 12px;
}

.cms-contact-actions .cms-button {
  width: 100%;
}

.cms-contact-template {
  padding: 70px 0;
  color: #ffffff;
  background: var(--cms-text);
}

.cms-contact-template .cms-breadcrumb,
.cms-contact-template .cms-breadcrumb a,
.cms-contact-template .cms-page-description {
  color: #cbd5e1;
}

.cms-contact-template .cms-page-title,
.cms-contact-template .cms-section-kicker {
  color: #ffffff;
}

.cms-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.cms-contact-card {
  display: grid;
  gap: 14px;
  margin: 0;
  font-style: normal;
}

.cms-contact-card div {
  padding: 18px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.cms-contact-card span {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
}

.cms-contact-card a,
.cms-contact-card strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cms-contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
  gap: 28px;
  align-items: start;
}

.cms-contact-sidebar {
  padding: 24px;
  background: var(--cms-surface);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-contact-sidebar h2 {
  margin: 0 0 14px;
  color: var(--cms-text);
  font-size: 24px;
}

.cms-contact-sidebar ol {
  margin: 0;
  padding-left: 20px;
  color: var(--cms-muted);
}

.cms-contact-sidebar li + li {
  margin-top: 10px;
}

.cms-contact-content {
  min-width: 0;
}

.cms-page-body,
.cms-html-page-body {
  margin-top: 26px;
}

.cms-page-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.cms-page-sidebar {
  padding: 22px;
  background: var(--cms-soft);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-page-sidebar h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.cms-page-sidebar ul,
.cms-article-tags {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-page-sidebar ul {
  flex-direction: column;
  gap: 8px;
}

.cms-page-sidebar a {
  color: var(--cms-text);
}

.cms-page-sidebar .is-current a {
  color: var(--cms-primary);
  font-weight: 700;
}

.cms-article-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cms-article-tags span {
  padding: 4px 10px;
  color: var(--cms-primary-dark);
  background: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
}

.cms-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--cms-muted);
}

.cms-pagination a {
  padding: 6px 12px;
  color: var(--cms-primary-dark);
  border: 1px solid var(--cms-border);
  border-radius: 6px;
}

.cms-block {
  margin: 24px 0;
}

.cms-block-rich_text,
.cms-block-html,
.cms-block-table {
  overflow-wrap: anywhere;
}

.cms-block-image {
  margin: 32px 0;
}

.cms-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--cms-border);
}

.cms-block-image figcaption {
  margin-top: 10px;
  color: var(--cms-muted);
  font-size: 14px;
  text-align: center;
}

.cms-block-image-text {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.cms-block-image-text-body {
  min-width: 0;
}

.cms-block-image-text-body > :first-child {
  margin-top: 0;
}

.cms-block-image-text-body > :last-child {
  margin-bottom: 0;
}

.cms-block-image-text-right {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.cms-block-image-text-right .cms-block-image {
  order: 2;
}

.cms-block-banner ul,
.cms-block-gallery ul,
.cms-block-article-list ul,
.cms-result-list,
.cms-article-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 20px;
}

.cms-block-banner-item > a,
.cms-block-banner-copy {
  display: block;
}

.cms-block-banner-copy {
  padding: 24px;
  background: var(--cms-soft);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-block-banner-copy h2,
.cms-block-banner-copy p {
  margin: 0;
}

.cms-block-banner-copy p {
  margin-top: 8px;
  color: var(--cms-muted);
}

.cms-block-gallery ul {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cms-block-gallery-item {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-block-gallery-copy {
  padding: 18px;
}

.cms-block-gallery-copy h3,
.cms-block-gallery-copy p {
  margin: 0;
}

.cms-block-gallery-copy p {
  margin-top: 8px;
  color: var(--cms-muted);
}

.cms-block-quote {
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--cms-soft);
  border-left: 4px solid var(--cms-primary);
}

.cms-block-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--cms-muted);
}

.cms-block-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--cms-border);
}

.cms-block-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.cms-block-faq-answer {
  margin-top: 12px;
  color: var(--cms-muted);
}

.cms-block-faq-answer > :first-child {
  margin-top: 0;
}

.cms-block-faq-answer > :last-child {
  margin-bottom: 0;
}

.cms-preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #92400e;
  text-align: center;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
}

.cms-preview-banner-theme {
  color: #0f172a;
  background: #dbeafe;
  border-bottom-color: #93c5fd;
}

.cms-preview-banner strong {
  color: #78350f;
}

.cms-preview-banner-theme strong {
  color: #1d4ed8;
}

.cms-preview-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  text-decoration: none;
  background: #92400e;
  border-radius: 6px;
}

.cms-search-form {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.cms-search-form input {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cms-border);
  border-radius: 6px;
}

.cms-search-form button {
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--cms-primary);
  border: 0;
  border-radius: 6px;
}

.cms-result-list-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  background: var(--cms-surface);
  border: 1px solid var(--cms-border);
  border-radius: 8px;
}

.cms-result-no-media {
  grid-template-columns: minmax(0, 1fr);
}

.cms-result-media {
  display: block;
  overflow: hidden;
  background: var(--cms-soft);
  border-radius: 6px;
}

.cms-result-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 144px;
  object-fit: cover;
}

.cms-result-body {
  min-width: 0;
}

.cms-result-body h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.cms-result-body p {
  margin: 0;
  color: var(--cms-muted);
}

.cms-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--cms-muted);
  font-size: 13px;
}

.cms-result-meta span:first-child {
  padding: 3px 9px;
  color: var(--cms-primary-dark);
  font-weight: 700;
  background: #dbeafe;
  border-radius: 999px;
}

.cms-result-action {
  display: inline-flex;
  margin-top: 14px;
}

.cms-site-footer {
  margin-top: 40px;
  color: #dbeafe;
  background: #0f172a;
}

.cms-enterprise-footer {
  width: min(100% - 40px, var(--cms-shell));
}

.cms-site-footer a {
  color: #ffffff;
}

.cms-site-footer p {
  margin: 6px 0 0;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .cms-site-shell,
  .cms-content-shell {
    width: min(100% - 24px, var(--cms-shell));
  }

  .cms-site-header .cms-site-shell,
  .cms-site-footer .cms-site-shell,
  .cms-section-head,
  .cms-search-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-site-header .cms-site-shell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .cms-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .cms-nav-group {
    display: none;
    width: 100%;
    padding: 14px 0 4px;
    border-top: 1px solid var(--cms-border);
  }

  .cms-nav-state:checked ~ .cms-nav-group {
    display: grid;
    gap: 14px;
  }

  .cms-nav-group.has-mobile-menu .cms-site-nav-header {
    display: none;
  }

  .cms-nav-group.has-mobile-menu .cms-site-nav-mobile {
    display: block;
  }

  .cms-site-nav-header,
  .cms-site-nav-mobile,
  .cms-site-actions,
  .cms-site-search {
    width: 100%;
  }

  .cms-site-nav-header ul,
  .cms-site-nav-mobile ul {
    display: grid;
    gap: 8px;
  }

  .cms-site-subnav {
    position: static;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 6px 0 0 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--cms-border);
    border-radius: 0;
    box-shadow: none;
  }

  .cms-site-nav-header a,
  .cms-site-nav-mobile a,
  .cms-site-search {
    display: block;
  }

  .cms-enterprise-hero {
    padding: 48px 0;
  }

  .cms-enterprise-hero .cms-page-title {
    font-size: 38px;
  }

  .cms-page-title {
    font-size: 32px;
  }

  .cms-block-image-text,
  .cms-block-image-text-right,
  .cms-page-layout-with-sidebar,
  .cms-contact-panel,
  .cms-contact-hero,
  .cms-contact-layout,
  .cms-result-list-item,
  .cms-trust-row {
    grid-template-columns: 1fr;
  }

  .cms-block-image-text-right .cms-block-image {
    order: initial;
  }
}
