/* CHERT Katula — additions on top of the shared CHERT site styles (site.css, shell.css), the same
   way chertfleet.css and cherttt.css extend them. Only what chertiot does not have: the resolver
   card in the hero, the doors band, the capabilities grid and the engines grid. Tokens only. */

/* ------------------------------------------------- hero: resolver card --- */
.kt-res { position: absolute; right: 0; bottom: calc(-78 * var(--u)); width: calc(248 * var(--u)); padding: 14px 16px; border-radius: var(--radius-card);
  border: 1px solid var(--chert-dark-border); background: color-mix(in srgb, var(--chert-dark-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-modal); animation: sx-float 7s ease-in-out infinite; }
.kt-res__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--chert-dark-muted); }
.kt-res__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chert-orange); animation: sx-blink 1.6s ease-in-out infinite; }
.kt-res__tag { margin-inline-start: auto; font-family: var(--font-ui); font-size: 10.5px; padding: 1px 7px; border-radius: var(--radius-pill); border: 1px solid var(--chert-dark-border); }
.kt-res__rows { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 7px; }
.kt-res__rows li { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--chert-dark-muted); }
.kt-res__rows li b { margin-inline-start: auto; color: var(--chert-dark-text); font-weight: 600; }
.kt-res__rows li.is-ok b { color: var(--chert-success); }
.kt-res__foot { padding-top: 10px; border-top: 1px solid var(--chert-dark-border); font-family: var(--font-mono); font-size: 11px; color: var(--chert-dark-muted); }
@media (max-width: 760px) { .kt-res { display: none; } }

/* ------------------------------------------------------------- doors --- */
.kt-doors { background: var(--chert-surface-alt); }

/* ------------------------------------------------------ capabilities --- */
.kt-caps { background: var(--chert-surface-alt); }
.kt-caps__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.kt-cap { display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 18px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .kt-cap.sx-reveal { transition-delay: 0s, 0s, 0s, calc(var(--k, 0) * 60ms), calc(var(--k, 0) * 60ms); }
.kt-cap:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.kt-cap__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kt-cap__top .sx-pillar__icon { margin: 0; flex: none; }
.kt-cap h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.kt-cap > p { margin: 0 0 12px; color: var(--chert-muted); font-size: 14.5px; }
.kt-cap ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 7px; }
.kt-cap li { position: relative; padding-inline-start: 18px; font-size: 14px; color: var(--chert-muted); line-height: 1.45; }
.kt-cap li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--chert-orange); transform: rotate(45deg); }
[lang="ar"] .kt-cap li { line-height: var(--lh-ar); }
[dir="rtl"] .kt-cap li::before { left: auto; right: 2px; }

/* ----------------------------------------------------------- engines --- */
.kt-engines { background: var(--chert-cream); }
.kt-engines__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.kt-engine { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .kt-engine.sx-reveal { transition-delay: calc(var(--k, 0) * 90ms), 0s, 0s, calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms); }
.kt-engine:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.kt-engine__kicker { margin: 18px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--chert-orange-deep); }
[lang="ar"] .kt-engine__kicker { letter-spacing: normal; font-size: 13px; text-transform: none; }
.kt-engine h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.kt-engine > p { margin: 0 0 14px; color: var(--chert-muted); }
.kt-engine dl { margin: 0 0 14px; display: grid; gap: 10px; }
.kt-engine dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--chert-ink); }
.kt-engine dd { margin: 3px 0 0; font-size: 13.5px; color: var(--chert-muted); line-height: 1.45; }
[lang="ar"] .kt-engine dt { font-family: var(--font-ar); font-size: 14px; unicode-bidi: plaintext; }
[lang="ar"] .kt-engine dd { line-height: var(--lh-ar); }
.kt-engine__count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--chert-muted); }
[lang="ar"] .kt-engine__count { font-family: var(--font-ar); font-size: 13px; unicode-bidi: plaintext; }

/* Arabic: eyebrows do not shout, and labels that mix Arabic with Latin product names take their
   direction from their first strong character, as shell.css does for text blocks. */
[lang="ar"] .sx-eyebrow { text-transform: none; }
[lang="ar"] .sx-nav__links a, [lang="ar"] .sx-nav__actions a, [lang="ar"] .btn, [lang="ar"] .sx-btn-ghost,
[lang="ar"] .sx-jbtn, [lang="ar"] .sx-foot__links a, [lang="ar"] .kt-res__rows li { unicode-bidi: plaintext; }

/* The brand mark is the existing Katula archway: unchanged, and never recoloured. */
.sx-nav__brand .kt-glyph { width: 30px; height: 30px; flex: none; }
.sx-foot__inner .kt-glyph { width: 24px; height: 24px; flex: none; }
