/* ZLKL documentation portal visual layer for Cassiopeia Extended. */
:root {
  --zlkl-ink: #101218;
  --zlkl-deep: #151917;
  --zlkl-paper: #f2f2f0;
  --zlkl-white: #ffffff;
  --zlkl-green: #008c45;
  --zlkl-green-dark: #006e37;
  --zlkl-muted: rgba(16, 18, 24, 0.68);
  --zlkl-muted-on-dark: rgba(255, 255, 255, 0.72);
  --zlkl-line: rgba(16, 18, 24, 0.13);
  --zlkl-line-on-dark: rgba(255, 255, 255, 0.14);
  --zlkl-radius-lg: 28px;
  --zlkl-radius-md: 20px;
  --zlkl-shadow: 0 18px 50px rgba(16, 18, 24, 0.10);
}

html { scroll-behavior: smooth; }

body.site {
  background: var(--zlkl-paper);
  color: var(--zlkl-ink);
  font-family: var(--body-font-family, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  line-height: 1.6;
}

body.site a { color: var(--zlkl-green-dark); }
body.site a:hover,
body.site a:focus { color: var(--zlkl-green); }

body.site .container-header {
  background: var(--zlkl-white);
  border-bottom: 1px solid var(--zlkl-line);
  box-shadow: none;
}

body.site .container-header .grid-child { padding-block: 0.85rem; }

body.site .navbar-brand {
  align-items: center;
  color: var(--zlkl-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.site .navbar-brand img { max-height: 50px; width: auto; }

body.site .container-header .mod-menu > li > a,
body.site .container-header .mod-menu > li > span {
  border-radius: 999px;
  color: var(--zlkl-ink);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  transition: background-color 160ms ease, color 160ms ease;
}

body.site .container-header .mod-menu > li > a:hover,
body.site .container-header .mod-menu > li > a:focus,
body.site .container-header .mod-menu > li.active > a {
  background: rgba(0, 140, 69, 0.10);
  color: var(--zlkl-green-dark);
}

body.site .container-component { padding-block: clamp(1rem, 3vw, 3rem); }
body.itemid-101 .container-sidebar { display: none !important; }
body.itemid-101 .site-grid { grid-template-columns: minmax(0, 1fr); }

/* The starter Joomla site has menu/login modules in the sidebar. On the
 * landing page they must not occupy or overlap the content grid. The :has()
 * selector is deliberately content-based so this remains correct even when
 * the Home menu item gets a different numeric id. */
body:has(.zlkl-landing) .container-sidebar,
body:has(.zlkl-landing) .container-sidebar-left,
body:has(.zlkl-landing) .container-sidebar-right { display: none !important; }
body:has(.zlkl-landing) .container-breadcrumbs { display: none !important; }
body:has(.zlkl-landing) .mod-breadcrumbs,
body:has(.zlkl-landing) .mod-breadcrumbs__wrapper,
body:has(.zlkl-landing) nav[aria-label="Breadcrumbs"],
body:has(.zlkl-landing) .breadcrumb { display: none !important; }
body:has(.zlkl-landing) .site-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "comp" !important;
}
body:has(.zlkl-landing) .container-component {
  grid-area: comp !important;
  grid-column: 1 / -1 !important;
}

.zlkl-landing { margin-inline: auto; max-width: 1220px; }
.zlkl-landing h1,
.zlkl-landing h2,
.zlkl-landing h3,
.zlkl-landing p { margin-top: 0; }
.zlkl-landing h1,
.zlkl-landing h2,
.zlkl-landing h3 { color: inherit; letter-spacing: -0.04em; }

.zlkl-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 140, 69, 0.42), transparent 28%),
    linear-gradient(135deg, #151917 0%, #101218 72%);
  border-radius: var(--zlkl-radius-lg);
  box-shadow: var(--zlkl-shadow);
  color: var(--zlkl-white);
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5.5rem);
  position: relative;
}

.zlkl-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 29rem;
  position: absolute;
  right: -11rem;
  top: -15rem;
  width: 29rem;
}

.zlkl-hero__grid {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  position: relative;
  z-index: 1;
}

.zlkl-eyebrow {
  color: var(--zlkl-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.zlkl-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  max-width: 780px;
}

.zlkl-hero h1 em { color: #7ee2aa; font-style: normal; }
.zlkl-hero__lead {
  color: var(--zlkl-muted-on-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 620px;
}

.zlkl-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.zlkl-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.zlkl-button:hover,
.zlkl-button:focus { transform: translateY(-2px); }
.zlkl-button--primary { background: var(--zlkl-green); color: var(--zlkl-white) !important; }
.zlkl-button--primary:hover,
.zlkl-button--primary:focus { background: #00a551; }
.zlkl-button--ghost { border-color: var(--zlkl-line-on-dark); color: var(--zlkl-white) !important; }
.zlkl-button--ghost:hover,
.zlkl-button--ghost:focus { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.30); }

.zlkl-signal {
  border-left: 1px solid var(--zlkl-line-on-dark);
  display: grid;
  gap: 1rem;
  padding-left: clamp(1rem, 3vw, 2rem);
}

.zlkl-signal__item { border-bottom: 1px solid var(--zlkl-line-on-dark); padding-bottom: 1rem; }
.zlkl-signal__item:last-child { border-bottom: 0; padding-bottom: 0; }
.zlkl-signal__label { color: var(--zlkl-muted-on-dark); display: block; font-size: 0.82rem; margin-bottom: 0.15rem; }
.zlkl-signal__value { color: var(--zlkl-white); font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; }

.zlkl-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.zlkl-section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.zlkl-section__intro { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.zlkl-section__intro h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; max-width: 700px; }
.zlkl-section__intro p { color: var(--zlkl-muted); margin-bottom: 0; max-width: 430px; }

.zlkl-card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zlkl-card { background: var(--zlkl-white); border: 1px solid var(--zlkl-line); border-radius: var(--zlkl-radius-md); box-shadow: 0 8px 28px rgba(16, 18, 24, 0.04); padding: clamp(1.25rem, 3vw, 2rem); }
.zlkl-card__number,
.zlkl-step__number { align-items: center; background: rgba(0, 140, 69, 0.11); border-radius: 50%; color: var(--zlkl-green-dark); display: inline-flex; font-size: 0.82rem; font-weight: 800; height: 2.35rem; justify-content: center; margin-bottom: 2.2rem; width: 2.35rem; }
.zlkl-card h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.zlkl-card p { color: var(--zlkl-muted); margin-bottom: 0; }

.zlkl-area-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zlkl-area { align-items: start; background: var(--zlkl-deep); border-radius: var(--zlkl-radius-md); color: var(--zlkl-white); display: grid; gap: 1rem; grid-template-columns: auto minmax(0, 1fr); padding: clamp(1.4rem, 3vw, 2.2rem); }
.zlkl-area h3 { font-size: 1.4rem; margin-bottom: 0.45rem; }
.zlkl-area p { color: var(--zlkl-muted-on-dark); margin-bottom: 0; }
.zlkl-area__mark { align-items: center; border: 1px solid var(--zlkl-line-on-dark); border-radius: 14px; color: #7ee2aa; display: flex; font-size: 0.85rem; font-weight: 800; height: 2.65rem; justify-content: center; letter-spacing: 0.02em; width: 2.65rem; }

.zlkl-steps { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zlkl-step { border-top: 1px solid var(--zlkl-line); padding: 1.5rem 1.5rem 0 0; }
.zlkl-step + .zlkl-step { border-left: 1px solid var(--zlkl-line); padding-left: 1.5rem; }
.zlkl-step__number { background: var(--zlkl-deep); color: var(--zlkl-white); }
.zlkl-step h3 { font-size: 1.25rem; }
.zlkl-step p { color: var(--zlkl-muted); margin-bottom: 0; }

.zlkl-insights { background: var(--zlkl-white); border: 1px solid var(--zlkl-line); border-radius: var(--zlkl-radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.zlkl-insights__empty { color: var(--zlkl-muted); margin-bottom: 0; max-width: 620px; }
.zlkl-article-list { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zlkl-article { border-top: 2px solid var(--zlkl-green); padding-top: 1rem; }
.zlkl-article h3 { font-size: 1.25rem; }
.zlkl-article h3 a { color: var(--zlkl-ink); text-decoration: none; }
.zlkl-article p { color: var(--zlkl-muted); }

.zlkl-source-grid { display: grid; gap: 1rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zlkl-source-card { background: var(--zlkl-white); border: 1px solid var(--zlkl-line); border-radius: var(--zlkl-radius-md); color: var(--zlkl-ink) !important; display: flex; flex-direction: column; min-height: 180px; padding: 1.35rem; text-decoration: none !important; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.zlkl-source-card:hover,
.zlkl-source-card:focus { border-color: rgba(0, 140, 69, 0.55); box-shadow: var(--zlkl-shadow); transform: translateY(-3px); }
.zlkl-source-card span { color: var(--zlkl-green-dark); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; }
.zlkl-source-card strong { font-size: 1.15rem; letter-spacing: -0.03em; margin-top: 1.3rem; }
.zlkl-source-card p { color: var(--zlkl-muted); font-size: 0.92rem; margin: 0.55rem 0 0; }

.zlkl-faq { display: grid; gap: 0.8rem; max-width: 860px; }
.zlkl-faq details { background: var(--zlkl-white); border: 1px solid var(--zlkl-line); border-radius: 14px; padding: 1.1rem 1.25rem; }
.zlkl-faq summary { cursor: pointer; font-weight: 700; }
.zlkl-faq details p { color: var(--zlkl-muted); margin: 0.9rem 0 0; }

.zlkl-cta { background: var(--zlkl-green); border-radius: var(--zlkl-radius-lg); color: var(--zlkl-white); overflow: hidden; padding: clamp(2rem, 5vw, 4rem); position: relative; }
.zlkl-cta::after { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; content: ""; height: 22rem; position: absolute; right: -9rem; top: -12rem; width: 22rem; }
.zlkl-cta h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; max-width: 700px; position: relative; z-index: 1; }
.zlkl-cta p { max-width: 620px; opacity: 0.88; position: relative; z-index: 1; }
.zlkl-cta .zlkl-button--ghost { border-color: rgba(255, 255, 255, 0.58); position: relative; z-index: 1; }

body.site .container-footer { background: var(--zlkl-deep); color: var(--zlkl-muted-on-dark); }
body.site .container-footer a { color: #7ee2aa; }

@media (max-width: 900px) {
  .zlkl-hero__grid,
  .zlkl-card-grid,
  .zlkl-article-list,
  .zlkl-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zlkl-signal { border-left: 0; border-top: 1px solid var(--zlkl-line-on-dark); padding-left: 0; padding-top: 1.4rem; }
  .zlkl-section__intro { align-items: start; flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 680px) {
  .zlkl-hero { border-radius: var(--zlkl-radius-md); padding: 1.5rem; }
  .zlkl-area-grid,
  .zlkl-steps,
  .zlkl-source-grid { grid-template-columns: 1fr; }
  .zlkl-step,
  .zlkl-step + .zlkl-step { border-left: 0; padding-left: 0; }
  .zlkl-step + .zlkl-step { margin-top: 1.2rem; }
}
