/* CSS source: new-style/ui-global-style.css */
/* CSS source: new-style/global/base.css */
:root {
  --kh-indigo: #2f2963;
  --kh-blue:   #288eff;
  --kh-sky:    #dbecff;
  --kh-sky-050:#eef5ff;
  --kh-mist:   #e9e9f2;
  --kh-ink:    #020304;
  --kh-text:   #14151a;
  --kh-text-2: #585857;
  --kh-text-3: #8b90a0;
  --kh-line:   #e8e9ee;
  --kh-surface:#ffffff;
  --kh-bg:     #f6f7f9;
  --kh-success:#12a150;
  --kh-danger: #e5484d;
  
  --ph-a: #1f3f78;
  --ph-b: #5db2ff;
    
  --kh-font: 'Rubik','Segoe UI',system-ui,sans-serif;
  --kh-r-card: 24px;
  --kh-r-field: 12px;
  --kh-r-pill: 999px;
  --kh-sh-sm: 0 2px 8px rgba(47,41,99,.06);
  --kh-sh-md: 0 4px 16px rgba(47,41,99,.08);
  --kh-sh-lg: 0 16px 40px rgba(47,41,99,.14);
  --kh-glow:  0 8px 24px rgba(40,142,255,.35);
  --kh-ease:  cubic-bezier(.22,.61,.36,1);
  --kh-ease-out: cubic-bezier(.16,1,.3,1);
  --kh-dur-fast: .18s;
  --kh-dur-base: .32s;

  /* chart tokens: single hue for magnitude, text always in ink tokens */
  --viz-1: #288eff;
  --viz-1-soft: rgba(40,142,255,.14);
  --viz-ink: #14151a;
  --viz-ink-2: #585857;
  --viz-muted: #8b90a0;
  --viz-grid: #e8e9ee;
  
  /* base scale (4px step) */
  --nk-sp-1: 4px;  --nk-sp-2: 8px;   --nk-sp-3: 12px; --nk-sp-4: 16px;
  --nk-sp-5: 20px; --nk-sp-6: 24px;  --nk-sp-8: 32px; --nk-sp-10: 40px;
  --nk-sp-12: 48px; --nk-sp-16: 64px; --nk-sp-24: 96px;

  /* semantic rhythm (desktop) */
  --nk-section: var(--nk-sp-24);   /* padding-block of every section (BRAND §5: ~100px) */
  --nk-section-hero: 72px;         /* hero top only: it already sits under the fixed header */
  --nk-head: var(--nk-sp-8);       /* section head → its content */
  --nk-stack: var(--nk-sp-10);     /* sub-blocks inside a section: buttons → facts, steps → footnote, copy → photo */
  --nk-grid: var(--nk-sp-5);       /* gap between cards in a grid */
  --nk-cols: var(--nk-sp-16);      /* gap between the two columns of a split layout */
  --nk-card-pad: var(--nk-sp-6);   /* inner padding of cards and form cards */
  --nk-gutter: var(--nk-sp-6);     /* container side padding (= .kh-container) */
}

/* ---------- base ---------- */

.kh-body {
  margin: 0;
  padding-top: var(--header-height, 62px);
  font-family: var(--kh-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kh-text);
  background: var(--kh-surface);
  -webkit-font-smoothing: antialiased;
}

.kh-body *, .kh-body *::before, .kh-body *::after { box-sizing: border-box; }
/* the hidden attribute must win over component display values (flex/grid) */
.kh-body [hidden] { display: none !important; }

/* .kh-main { position: relative; z-index: 1; }
.kh-main a { color: var(--kh-indigo); text-decoration: none; }
.kh-main img, .kh-main svg { display: block; max-width: 100%; }
.kh-main button, .kh-main input { font: inherit; color: inherit; }
.kh-main ul, .kh-main ol { list-style: none; } */

.kh-container { padding-inline: 24px; }

.kh-skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--kh-r-pill);
  background: var(--kh-indigo); color: #fff;
}
.kh-skip:focus { inset-block-start: 12px; }

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

.kh-num { font-variant-numeric: tabular-nums; }

/* ---------- icon box utility (use on every page) ----------
   <span class="nk-icon"><svg viewBox="0 0 24 24">…</svg></span>
   --nk-icon-box = container size, --nk-icon-size = glyph size.
   Specificity (.kh-main .nk-icon) beats page-level "container span" rules
   that would otherwise turn the box back into display:block. */
.kh-main .nk-icon, .nk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; box-sizing: border-box; margin: 0; padding: 0; line-height: 0;
  width: var(--nk-icon-box, 40px); height: var(--nk-icon-box, 40px);
}
.kh-main .nk-icon > svg, .nk-icon > svg {
  display: block; flex: none; margin: 0;
  width: var(--nk-icon-size, 22px); height: var(--nk-icon-size, 22px);
}

/* ---------- typography ---------- */

.kh-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kh-blue); margin-block-end: 12px;
}
.kh-eyebrow--light { color: #9fd0ff; }

.kh-h1 { font-size: 50px; line-height: 1.15; font-weight: 700; color: var(--kh-indigo); }
.kh-h2 { font-size: 36px; line-height: 1.2; font-weight: 500; color: var(--kh-indigo); }
.kh-h2--light { color: #fff; }
.kh-lead { font-size: 18px; color: var(--kh-text-2); max-width: 520px; margin-block-start: 16px; }

/* ---------- buttons ---------- */

.kh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px; border: 0; border-radius: 24px;
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
  background: var(--kh-indigo); color: #fff;
  transition: transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast) var(--kh-ease), background var(--kh-dur-fast);
}
.kh-btn:hover { transform: translateY(-2px); box-shadow: var(--kh-glow); }
.kh-btn:active { transform: translateY(0); }
.kh-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.kh-btn--secondary { background: var(--kh-mist); color: var(--kh-indigo); width: auto!important;}
.kh-btn--accent { background: var(--kh-blue); color: #fff; }
.kh-cta__links .kh-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.kh-cta__links .kh-btn--ghost-light:hover { border-color: #fff; box-shadow: none; }
.kh-btn--lg { height: 50px; padding: 0 36px; }

.kh-cta__links .kh-link--light { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- motion ---------- */

.kh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--kh-ease), transform .6s var(--kh-ease); }
.kh-reveal.is-in { opacity: 1; transform: none; }
.kh-card.is-new { animation: kh-in .5s var(--kh-ease) both; }
@keyframes kh-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .kh-reveal { transform: none; transition: opacity .3s; }
  .kh-card.is-new { animation: none; }
  .kh-btn, .kh-card, .kh-featured, .kh-card__media .kh-ph { transition: none; }
  .kh-btn:hover, .kh-card:hover, .kh-featured:hover, .kh-catlist__item:hover, .kh-card__read:hover { transform: none; }
  .kh-card__read svg { transition: none; }
  .kh-trending__bar i { transition: none; }
  .kh-chart .kh-viz-anim { animation: none !important; }
}

@media (max-width: 900px) {
  :root { --nk-section: 72px; --nk-section-hero: 56px; --nk-stack: var(--nk-sp-8); --nk-cols: var(--nk-sp-10); }
}

@media (max-width: 767px) {
    :root { --nk-section: 56px; --nk-section-hero: 40px; --nk-head: var(--nk-sp-6); --nk-stack: 28px; --nk-grid: var(--nk-sp-4); --nk-cols: var(--nk-sp-8); --nk-card-pad: var(--nk-sp-5); --nk-gutter: var(--nk-sp-4); }
  .kh-container { padding-inline: 0; }
  .kh-section { padding-block: 56px; }
  .kh-h1 { font-size: 32px; }
  .kh-h2 { font-size: 28px; }
  .kh-lead { font-size: 16px; }
  .kh-btn { padding: 0 24px; }
  
}

.kh-body.lang-he {
  direction: rtl;
  text-align: right;
}

.nkl { position: relative; padding-block: var(--nk-section, 96px); background: #fff; font-family: var(--kh-font); color: var(--kh-text); overflow: clip; }
.nkl__head { margin-block-end: var(--nk-head, 32px); max-width: 720px; }
.kh-main .nkl__title { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; color: var(--kh-indigo); }
.kh-main .nkl__lead { margin: 10px 0 0; font-size: 17px; color: var(--kh-text-2); }
.nkl__group[hidden] { display: none; }
.nkl__group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 16px; }
.kh-main .nkl__group-title { margin: 0; font-size: 20px; font-weight: 600; color: var(--kh-indigo); }
.kh-main a.nkl__all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--kh-blue); white-space: nowrap; }
.nkl__all .nk-icon { --nk-icon-box: 18px; --nk-icon-size: 16px; transition: transform var(--kh-dur-fast) var(--kh-ease); }
.kh-main a.nkl__all:hover .nk-icon { transform: translateX(3px); }
.lang-he .nkl__all .nk-icon, .lang-he .nkl-tile__arrow .nk-icon, .lang-he .nkl-tile__arrow svg { transform: scaleX(-1); }
.lang-he .kh-main a.nkl__all:hover .nk-icon { transform: scaleX(-1) translateX(3px); }

/* links are built from <span>s (valid inside <a>): the text parts stack as blocks */
.nkl a > span:not(.nk-icon), .nkl-proj__thumb, .nkl-proj__body, .nkl-art__thumb, .nkl-city__photo, .nkl-tile__img, .nkl-tile__shade { display: block; min-width: 0; }
.nkl a > span:not(.nk-icon) > span:not(.nk-icon) { display: block; }
.nkl-proj__logo, .nkl-proj__badge, .nkl-tile__count { display: inline-flex; }
.nkl a > span.nkl-tile__count, .nkl a > span.nkl-proj__thumb > span.nkl-proj__logo, .nkl a > span.nkl-proj__thumb > span.nkl-proj__badge { display: inline-flex; }
.nkl a > span.nkl-tile__count > span { display: inline; white-space: nowrap; }

/* ---------- 1. collections: bento grid ---------- */
.nkl__bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--nk-grid, 20px); margin: 0; padding: 0; list-style: none; }
.nkl__bento > li { margin: 0; padding: 0; min-width: 0; }
.nkl__bento > li[hidden] { display: none; }
.nkl__bento > .nkl-span-2 { grid-column: span 2; }
.nkl__bento > .nkl-tall { grid-row: span 2; }
.kh-main a.nkl-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 20px; border-radius: 20px; overflow: hidden; background: var(--kh-indigo); color: #fff; isolation: isolate; box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.kh-main a.nkl-tile:hover, .kh-main a.nkl-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--kh-sh-lg); color: #fff; }
.nkl-tile__img { position: absolute; inset: 0; z-index: -2; background: var(--kh-indigo); }
.nkl-tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .6s var(--kh-ease-out); }
.nkl-tile__img .kh-ph { position: absolute; inset: 0; }
.kh-main a.nkl-tile:hover .nkl-tile__img img { transform: scale(1.05); }
.nkl-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,3,4,0) 30%, rgba(2,3,4,.45) 65%, rgba(2,3,4,.82) 100%); }
.nkl-tile__icon { --nk-icon-box: 40px; --nk-icon-size: 22px; position: absolute; inset-block-start: 16px; inset-inline-start: 16px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--kh-indigo); }
.nkl-tile__count { gap: 4px; white-space: nowrap; position: absolute; inset-block-start: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--kh-r-pill); background: rgba(255,255,255,.92); color: var(--kh-indigo); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kh-main .nkl-tile__name { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.nkl-tall .nkl-tile__name { font-size: 26px; }
.kh-main .nkl-tile__sub { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.85); }
.nkl-tile__arrow { position: absolute; inset-block-end: 16px; inset-inline-end: 16px; --nk-icon-box: 36px; --nk-icon-size: 18px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--kh-indigo); transition: transform var(--kh-dur-fast) var(--kh-ease), background var(--kh-dur-fast); }
.kh-main a.nkl-tile:hover .nkl-tile__arrow { transform: translateX(4px); background: var(--kh-blue); color: #fff; }
.lang-he .kh-main a.nkl-tile:hover .nkl-tile__arrow { transform: translateX(-4px); }
.nkl-tile__name-with-arrow { padding-inline-end: 48px; }

/* ---------- 2. districts: chips with counts ---------- */
.nkl__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nkl__chips li { margin: 0; padding: 0; }
.nkl__chips li[hidden] { display: none; }
.kh-main a.nkl-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 16px; border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-indigo); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }
.nkl-chip b { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #fff; color: var(--kh-indigo); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kh-main a.nkl-chip:hover { background: var(--kh-blue); color: #fff; }

/* ---------- 3. latest projects: compact cards (thumb per BRAND §13 ratio) ---------- */
.nkl__projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nk-grid, 20px); margin: 0; padding: 0; list-style: none; }
.nkl__projects li { margin: 0; padding: 0; }
.kh-main a.nkl-proj { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--kh-mist); background: #fff; color: var(--kh-indigo); box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.kh-main a.nkl-proj:hover { transform: translateY(-3px); box-shadow: var(--kh-sh-md); }
.nkl-proj__thumb { position: relative; aspect-ratio: var(--nk-card-ratio, 16 / 10); overflow: hidden; background: var(--kh-indigo); }
.nkl-proj__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--kh-ease-out); }
.nkl-proj__thumb .kh-ph { position: absolute; inset: 0; }
.kh-main a.nkl-proj:hover .nkl-proj__thumb img { transform: scale(1.05); }
.nkl-proj__logo { position: absolute; inset-inline-start: 8px; inset-block-start: 8px; height: 26px; padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.94); display: flex; align-items: center; }
.nkl-proj__logo img { position: static; width: auto; height: 20px; max-width: 64px; object-fit: contain; }
.nkl-proj__badge { position: absolute; inset-inline-end: 8px; inset-block-start: 8px; height: 24px; padding: 0 9px; border-radius: var(--kh-r-pill); background: var(--kh-blue); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; }
.nkl-proj__body { padding: 12px 14px 14px; }
.kh-main .nkl-proj__name { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--kh-indigo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-main .nkl-proj__meta { margin: 4px 0 0; font-size: 13px; color: var(--kh-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 4+5+6. two columns: cities / developers + tools ---------- */
.nkl__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--nk-cols, 64px); align-items: start; }
.nkl__cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nkl__cities li { margin: 0; padding: 0; }
.kh-main a.nkl-city { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; border: 1px solid var(--kh-mist); background: #fff; color: var(--kh-indigo); box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.kh-main a.nkl-city:hover { transform: translateY(-3px); box-shadow: var(--kh-sh-md); }
.nkl-city__photo { position: relative; flex: none; width: 96px; aspect-ratio: var(--nk-card-ratio, 16 / 10); border-radius: 10px; overflow: hidden; background: var(--kh-indigo); }
.nkl-city__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nkl-city__photo .kh-ph { position: absolute; inset: 0; }
.kh-main .nkl-city__name { margin: 0; font-size: 16px; font-weight: 600; color: var(--kh-indigo); }
.kh-main .nkl-city__meta { margin: 2px 0 0; font-size: 13px; color: var(--kh-text-2); font-variant-numeric: tabular-nums; }
.nkl-city__arrow { --nk-icon-box: 28px; --nk-icon-size: 16px; margin-inline-start: auto; color: var(--kh-blue); transition: transform var(--kh-dur-fast) var(--kh-ease); }
.kh-main a.nkl-city:hover .nkl-city__arrow { transform: translateX(3px); }
.lang-he .nkl-city__arrow { transform: scaleX(-1); }
.lang-he .kh-main a.nkl-city:hover .nkl-city__arrow { transform: scaleX(-1) translateX(3px); }

.nkl__devs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nkl__devs li { margin: 0; padding: 0; }
.kh-main a.nkl-dev { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--kh-mist); background: #fff; color: var(--kh-indigo); transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast); }
.kh-main a.nkl-dev:hover { border-color: var(--kh-blue); box-shadow: var(--kh-sh-sm); }
.nkl-dev__logo { flex: none; width: 56px; height: 32px; display: flex; align-items: center; }
.nkl-dev__logo.Yes img {filter: invert(1);}
.nkl-dev__logo img { max-width: 56px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.kh-main .nkl-dev__name { margin: 0; font-size: 14px; font-weight: 500; color: var(--kh-indigo); line-height: 1.25; }
.kh-main .nkl-dev__meta { margin: 2px 0 0; font-size: 12px; color: var(--kh-text-2); }

.nkl__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nkl__tools li { margin: 0; padding: 0; }
.nkl-tool { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--kh-sky-050); color: var(--kh-indigo); border: 1px solid transparent; transition: border-color var(--kh-dur-fast), background var(--kh-dur-fast); }
.nkl-tool:hover { border-color: var(--kh-blue); background: var(--kh-sky); }
.nkl-tool__icon { --nk-icon-box: 40px; --nk-icon-size: 22px; border-radius: 12px; background: #fff; color: var(--kh-blue); }
.kh-main .nkl-tool__name { margin: 0; font-size: 15px; font-weight: 600; color: var(--kh-indigo); }
.kh-main .nkl-tool__meta { margin: 2px 0 0; font-size: 13px; color: var(--kh-text-2); }

/* ---------- 7. articles ---------- */
.nkl__articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nk-grid, 20px); margin: 0; padding: 0; list-style: none; }
.nkl__articles li { margin: 0; padding: 0; }
.kh-main a.nkl-art { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--kh-mist); background: #fff; color: var(--kh-indigo); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.kh-main a.nkl-art:hover { transform: translateY(-3px); box-shadow: var(--kh-sh-md); }
.nkl-art__thumb { position: relative; aspect-ratio: var(--nk-card-ratio, 16 / 10); border-radius: 10px; overflow: hidden; background: var(--kh-indigo); }
.nkl-art__thumb .kh-ph { position: absolute; inset: 0; }
.kh-main .nkl-art__cat { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kh-blue); }
.kh-main .nkl-art__name { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--kh-indigo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-main .nkl-art__meta { margin: 4px 0 0; font-size: 12px; color: var(--kh-text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nkl__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .nkl__projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nkl__cols { grid-template-columns: 1fr; gap: var(--nk-stack, 40px); }
  .nkl__articles { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .kh-main .nkl__title { font-size: 26px; }
  .nkl__bento { grid-template-columns: 1fr; grid-auto-rows: 190px; gap: 12px; }
  .nkl__group-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nkl__bento > .nkl-span-2 { grid-column: auto; }
  .nkl__bento > .nkl-tall { grid-row: auto; }
  .nkl-tall .nkl-tile__name, .kh-main .nkl-tile__name { font-size: 18px; }
  /* districts: one horizontal row, scrolls inside the container (page never scrolls sideways) */
  .nkl__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--nk-gutter, 16px)); padding-inline: var(--nk-gutter, 16px); padding-block-end: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .nkl__chips::-webkit-scrollbar { display: none; }
  .nkl__projects { grid-template-columns: 1fr; gap: 12px; }
  .kh-main a.nkl-proj { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .nkl-proj__body { padding: 10px 12px; }
  .nkl__cities { grid-template-columns: 1fr; gap: 10px; }
  .nkl__devs, .nkl__tools { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .kh-main a.nkl-tile, .kh-main a.nkl-proj, .kh-main a.nkl-city, .kh-main a.nkl-art, .nkl-tile__img img, .nkl-proj__thumb img, .nkl-tile__arrow, .nkl-city__arrow, .nkl__all .nk-icon { transition: none; }
  .kh-main a.nkl-tile:hover, .kh-main a.nkl-proj:hover, .kh-main a.nkl-city:hover, .kh-main a.nkl-art:hover { transform: none; }
  .kh-main a.nkl-tile:hover .nkl-tile__img img, .kh-main a.nkl-proj:hover .nkl-proj__thumb img { transform: none; }
}
/* ============================================================
   NEWKEY LINKS (nkl) — RTL OVERRIDES
   Add AFTER the original nkl stylesheet.
   ============================================================ */

/* 1. Section direction and text alignment */
body.lang-he .nkl,
body.dir-rtl .nkl,
.lang-he .nkl {
    direction: rtl;
    text-align: right;
}

/* 2. Explicit alignments of group headings and text blocks */
body.lang-he .nkl__head,
body.lang-he .nkl__group-head,
body.lang-he .nkl-proj__body,
body.lang-he .nkl-art__body,
body.lang-he .nkl-city__body,
body.dir-rtl .nkl__head,
body.dir-rtl .nkl__group-head,
body.dir-rtl .nkl-proj__body,
body.dir-rtl .nkl-art__body,
body.dir-rtl .nkl-city__body,
.lang-he .nkl__head,
.lang-he .nkl__group-head,
.lang-he .nkl-proj__body,
.lang-he .nkl-art__body,
.lang-he .nkl-city__body {
    text-align: right;
}

/* 3. District chips: original CSS uses physical padding */
body.lang-he .kh-main a.nkl-chip,
body.dir-rtl .kh-main a.nkl-chip,
.lang-he .kh-main a.nkl-chip {
    padding: 0 16px 0 6px;
}

/* 4. 'View all' and city arrows: mirrored for RTL */
body.lang-he .nkl__all .nk-icon,
body.dir-rtl .nkl__all .nk-icon,
.lang-he .nkl__all .nk-icon,
body.lang-he .nkl-city__arrow,
body.dir-rtl .nkl-city__arrow,
.lang-he .nkl-city__arrow,
body.lang-he .nkl-tile__arrow .nk-icon,
body.dir-rtl .nkl-tile__arrow .nk-icon,
.lang-he .nkl-tile__arrow .nk-icon {
    transform: scaleX(-1);
}

/* 5. Hover: preserve mirroring and animate toward the left */
body.lang-he .kh-main a.nkl__all:hover .nk-icon,
body.dir-rtl .kh-main a.nkl__all:hover .nk-icon,
.lang-he .kh-main a.nkl__all:hover .nk-icon,
body.lang-he .kh-main a.nkl-city:hover .nkl-city__arrow,
body.dir-rtl .kh-main a.nkl-city:hover .nkl-city__arrow,
.lang-he .kh-main a.nkl-city:hover .nkl-city__arrow {
    transform: scaleX(-1) translateX(3px);
}

/* 6. Bento tile's round arrow moves left on hover */
body.lang-he .kh-main a.nkl-tile:hover .nkl-tile__arrow,
body.dir-rtl .kh-main a.nkl-tile:hover .nkl-tile__arrow,
.lang-he .kh-main a.nkl-tile:hover .nkl-tile__arrow {
    transform: translateX(-4px);
}

/* 7. Numeric count stays readable inside RTL chips */
body.lang-he .nkl-chip b,
body.dir-rtl .nkl-chip b,
.lang-he .nkl-chip b {
    direction: ltr;
    unicode-bidi: isolate;
}

/* 8. Mobile group headers keep right alignment */
@media (max-width: 767px) {
    body.lang-he .nkl__group-head,
    body.dir-rtl .nkl__group-head,
    .lang-he .nkl__group-head {
        align-items: flex-start;
    }
}

/* ================================================================
   09. BRAND PATTERN — CLUSTERS
   ================================================================ */


/* ------------------------------------------------
   09.1. Base
   ------------------------------------------------ */

.nk-cluster-zone {
    position: relative;
    overflow: clip;
}

.nk-cluster,
.nk-cluster[data-nk-cluster] {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.nk-cluster {
    --nk-cluster-ink: var(--kh-sky);
    --nk-cluster-glow: rgba(40, 142, 255, .55);
}


/* ------------------------------------------------
   09.2. Positioning
   ------------------------------------------------ */

.nk-cluster--tl {
    inset-block-start: var(--y, 0);
    inset-inline-start: var(--x, 0);
}

.nk-cluster--tr {
    inset-block-start: var(--y, 0);
    inset-inline-end: var(--x, 0);
}

.nk-cluster--bl {
    inset-block-end: var(--y, 0);
    inset-inline-start: var(--x, 0);
}

.nk-cluster--br {
    inset-block-end: var(--y, 0);
    inset-inline-end: var(--x, 0);
}


/* ------------------------------------------------
   09.3. SVG & Tiles
   ------------------------------------------------ */

.nk-cluster__svg {
    display: block;
    overflow: visible;
}

.nk-cluster__tile {
    fill: var(--nk-cluster-ink);
    opacity: 1;

    transition:
        fill .9s var(--kh-ease),
        opacity .9s var(--kh-ease);
}

.nk-cluster__tile.is-edge {
    opacity: .55;
}

.nk-cluster__tile.is-lit {
    fill: var(--nk-cluster-glow);
    opacity: 1;
    filter: url(#nk-cluster-glow);
}


/* ------------------------------------------------
   09.4. Surface Variants
   ------------------------------------------------ */

/* Light blue background */
.nk-cluster--on-sky {
    --nk-cluster-ink: #bfe1f4;
}

/* White background */
.nk-cluster--on-white {
    --nk-cluster-ink: var(--kh-sky);
}

/* Light gray background */
.nk-cluster--on-mist {
    --nk-cluster-ink: #dcdce8;
}

/* Dark background */
.nk-cluster--on-dark {
    --nk-cluster-ink: rgba(255, 255, 255, .06);
    --nk-cluster-glow: rgba(40, 142, 255, .5);
}

/* Indigo background */
.nk-cluster--on-indigo {
    --nk-cluster-ink: rgba(255, 255, 255, .07);
    --nk-cluster-glow: rgba(40, 142, 255, .5);
}


/* ------------------------------------------------
   09.5. Static Variant
   ------------------------------------------------ */

.nk-cluster--static .nk-cluster__tile {
    transition: none;
}


/* ------------------------------------------------
   09.6. RTL
   ------------------------------------------------ */

/*
   No additional RTL overrides required.

   Logical properties:
   inset-inline-start / inset-inline-end
   automatically follow the document direction.
*/


/* ------------------------------------------------
   09.7. Responsive
   ------------------------------------------------ */

@media (max-width: 767px) {

    .nk-cluster--hide-mobile {
        display: none;
    }

}


/* ------------------------------------------------
   09.8. Reduced Motion
   ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .nk-cluster__tile {
        transition: none;
    }

    .nk-cluster__tile.is-lit {
        fill: var(--nk-cluster-ink);
        filter: none;
    }

}

/* ================================================================
   NEWKEY BASE ADDITIONS — quiz integration
   Paste into the corresponding sections of the existing base.css.
   The shared .kh-* classes are opt-in; page-specific styles stay local.
   ================================================================ */

/* 03. TYPOGRAPHY — reused by dialogs, quizzes and future forms */
:root {
    --kh-dialog-title-size: 26px;
    --kh-dialog-title-mobile-size: 22px;
    --kh-text-sm-size: 15px;
}
.lang-he {
    --kh-dialog-title-size: 28px;
    --kh-dialog-title-mobile-size: 24px;
    --kh-text-sm-size: 16px;
}
.kh-dialog-title {
    font-size: var(--kh-dialog-title-size);
    line-height: 1.2;
    font-weight: 600;
    color: var(--kh-indigo);
}
.kh-text--sm { font-size: var(--kh-text-sm-size); line-height: 1.5; }
@media (max-width: 900px) {
    .kh-dialog-title { font-size: var(--kh-dialog-title-mobile-size); }
}

/* 05. FORMS — input wrapper with a leading icon */
.kh-input-wrap {
    display: flex;
    position: relative;
    align-items: center;
    height: 52px;
    border: 1px solid var(--kh-mist);
    border-radius: var(--kh-r-field);
    background: var(--kh-surface);
    transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast);
}
.kh-input-wrap > input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: var(--kh-input-size);
    color: var(--kh-text);
}
.kh-input-wrap > input::placeholder { color: #a0a4b3; }
.kh-input-wrap:focus-within {
    border-color: var(--kh-blue);
    box-shadow: 0 0 0 3px var(--kh-focus-ring);
}
.kh-input-wrap.is-invalid,
.kh-field.is-invalid .kh-input-wrap,
.kh-input-wrap:has(> input.is-invalid),
.kh-input-wrap:has(> input.error) { border-color: var(--kh-danger); }
/* RTL: layout follows inline direction automatically. */

/* 06. UI COMPONENTS — medium badge */
.kh-badge--md { min-height: 28px; padding-inline: 12px; font-size: var(--kh-eyebrow-size); font-weight: 600; }



/* CSS source: new-style/global/account.css */
/* Account bundle: nk-pattern + knowledge-hub primitives + nk-tokens + ORIGINAL account.css */
/* ===== nk-pattern.css ===== */
/* ============================================================
   NewKey — nk-pattern.css
   Brand pattern as clusters (BRAND.md §6). Pairs with nk-pattern.js.
   One cluster = one .nk-cluster host inside a .nk-cluster-zone section.
   Tile ink is one tone off the surface: pick a --on-* modifier.
   Cells are always 48px on a 52px lattice; never scale a cluster.
   ============================================================ */

.nk-cluster-zone { position: relative; overflow: clip; } /* side-anchored clusters may run off the side edge (BRAND §6 4a) */

.nk-cluster,
.nk-cluster[data-nk-cluster] { /* attribute form outranks page-level `> *` rules */
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* default ink: pattern on white. Overridden by modifiers below. */
  --nk-cluster-ink: #DBECFF;
  --nk-cluster-glow: rgba(40,142,255,.55);
}

/* anchor corner: the host is a point, the fragment grows from it */
.nk-cluster--tl { inset-block-start: var(--y, 0); inset-inline-start: var(--x, 0); }
.nk-cluster--tr { inset-block-start: var(--y, 0); inset-inline-end: var(--x, 0); }
.nk-cluster--bl { inset-block-end: var(--y, 0); inset-inline-start: var(--x, 0); }
.nk-cluster--br { inset-block-end: var(--y, 0); inset-inline-end: var(--x, 0); }

.nk-cluster__svg { display: block; overflow: visible; }

.nk-cluster__tile {
  fill: var(--nk-cluster-ink);
  opacity: 1;
  transition: fill .9s cubic-bezier(.22,.61,.36,1), opacity .9s cubic-bezier(.22,.61,.36,1);
}
/* the fragment dissolves at its outline */
.nk-cluster__tile.is-edge { opacity: .55; }

/* soft glow, not a solid fill: the accent bleeds through the SVG blur filter */
.nk-cluster__tile.is-lit {
  fill: var(--nk-cluster-glow);
  opacity: 1;
  filter: url(#nk-cluster-glow);
}

/* surface modifiers: ink one step from the background, contrast ≤ 1.2:1 */
.nk-cluster--on-sky    { --nk-cluster-ink: #BFE1F4; }
.nk-cluster--on-white  { --nk-cluster-ink: #DBECFF; }
.nk-cluster--on-mist   { --nk-cluster-ink: #DCDCE8; }
.nk-cluster--on-dark   { --nk-cluster-ink: rgba(255,255,255,.06); --nk-cluster-glow: rgba(40,142,255,.5); }
.nk-cluster--on-indigo { --nk-cluster-ink: rgba(255,255,255,.07); --nk-cluster-glow: rgba(40,142,255,.5); }

/* near text the pattern stays still (BRAND §6 5a); glow is skipped by the scheduler */
.nk-cluster--static .nk-cluster__tile { transition: none; }

/* keep clusters out of the reading column on small screens; opt in per host */
@media (max-width: 767px) {
  .nk-cluster--hide-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nk-cluster__tile { transition: none; }
  .nk-cluster__tile.is-lit { fill: var(--nk-cluster-ink); filter: none; }
}



/* ===== knowledge-hub.css ===== */
/* ============================================================
   NewKey.cy — knowledge-hub.css
   Public blog home: hero + search, category tabs / subcategory
   chips, market snapshot charts, article feed, sidebar, CTA.
   Header/footer come from brief/main-style.css (same as about.html);
   everything here is scoped under .kh-* and never leaks outside.
   Tokens follow newkey_brand-style_v1.md.
   ============================================================ */

:root {
  --kh-indigo: #2f2963;
  --kh-blue:   #288eff;
  --kh-sky:    #dbecff;
  --kh-sky-050:#eef5ff;
  --kh-mist:   #e9e9f2;
  --kh-ink:    #020304;
  --kh-text:   #14151a;
  --kh-text-2: #585857;
  --kh-text-3: #8b90a0;
  --kh-line:   #e8e9ee;
  --kh-surface:#ffffff;
  --kh-bg:     #f6f7f9;
  --kh-success:#12a150;
  --kh-danger: #e5484d;

  --kh-font: 'Rubik','Segoe UI',system-ui,sans-serif;
  --kh-r-card: 24px;
  --kh-r-field: 12px;
  --kh-r-pill: 999px;
  --kh-sh-sm: 0 2px 8px rgba(47,41,99,.06);
  --kh-sh-md: 0 4px 16px rgba(47,41,99,.08);
  --kh-sh-lg: 0 16px 40px rgba(47,41,99,.14);
  --kh-glow:  0 8px 24px rgba(40,142,255,.35);
  --kh-ease:  cubic-bezier(.22,.61,.36,1);
  --kh-ease-out: cubic-bezier(.16,1,.3,1);
  --kh-dur-fast: .18s;
  --kh-dur-base: .32s;

  /* chart tokens: single hue for magnitude, text always in ink tokens */
  --viz-1: #288eff;
  --viz-1-soft: rgba(40,142,255,.14);
  --viz-ink: #14151a;
  --viz-ink-2: #585857;
  --viz-muted: #8b90a0;
  --viz-grid: #e8e9ee;
}

/* ---------- base ---------- */

.kh-body {
  margin: 0;
  padding-top: var(--header-height, 62px);
  font-family: var(--kh-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kh-text);
  background: var(--kh-surface);
  -webkit-font-smoothing: antialiased;
}

.kh-body *, .kh-body *::before, .kh-body *::after { box-sizing: border-box; }
/* the hidden attribute must win over component display values (flex/grid) */
.kh-body [hidden] { display: none !important; }

.kh-main { position: relative; z-index: 1; }
.kh-main a { color: var(--kh-indigo); text-decoration: none; }
.kh-main img, .kh-main svg { display: block; max-width: 100%; }
.kh-main button, .kh-main input { font: inherit; color: inherit; }
.kh-main ul, .kh-main ol { list-style: none; margin: 0; padding: 0; }
.kh-main h1, .kh-main h2, .kh-main h3, .kh-main p, .kh-main dl, .kh-main dd { margin: 0; }

.kh-container { padding-inline: 24px; }

.kh-skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--kh-r-pill);
  background: var(--kh-indigo); color: #fff;
}
.kh-skip:focus { inset-block-start: 12px; }

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

.kh-main :focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 3px; }

.kh-num { font-variant-numeric: tabular-nums; }

/* ---------- icon box utility (use on every page) ----------
   <span class="nk-icon"><svg viewBox="0 0 24 24">…</svg></span>
   --nk-icon-box = container size, --nk-icon-size = glyph size.
   Specificity (.kh-main .nk-icon) beats page-level "container span" rules
   that would otherwise turn the box back into display:block. */
.kh-main .nk-icon, .nk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; box-sizing: border-box; margin: 0; padding: 0; line-height: 0;
  width: var(--nk-icon-box, 40px); height: var(--nk-icon-box, 40px);
}
.kh-main .nk-icon > svg, .nk-icon > svg {
  display: block; flex: none; margin: 0;
  width: var(--nk-icon-size, 22px); height: var(--nk-icon-size, 22px);
}

/* ---------- typography ---------- */

.kh-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kh-blue); margin-block-end: 12px;
}
.kh-eyebrow--light { color: #9fd0ff; }

.kh-h1 { font-size: 50px; line-height: 1.15; font-weight: 700; color: var(--kh-indigo); }
.kh-h2 { font-size: 36px; line-height: 1.2; font-weight: 500; color: var(--kh-indigo); }
.kh-h2--light { color: #fff; }
.kh-lead { font-size: 18px; color: var(--kh-text-2); max-width: 520px; margin-block-start: 16px; }

/* ---------- buttons ---------- */

.kh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px; border: 0; border-radius: 24px;
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
  background: var(--kh-indigo); color: #fff;
  transition: transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast) var(--kh-ease), background var(--kh-dur-fast);
}
.kh-btn:hover { transform: translateY(-2px); box-shadow: var(--kh-glow); }
.kh-btn:active { transform: translateY(0); }
.kh-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.kh-btn--secondary { background: var(--kh-mist); color: var(--kh-indigo); }
.kh-btn--accent { background: var(--kh-blue); color: #fff; }
.kh-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.kh-btn--ghost-light:hover { border-color: #fff; box-shadow: none; }
.kh-btn--lg { height: 56px; padding: 0 36px; }

.kh-link--light { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
/* buttons rendered as <a>: keep their own colour over the generic .kh-main a rule */
.kh-main a.kh-btn { color: #fff; }
.kh-main a.kh-btn--secondary { color: var(--kh-indigo); }
.kh-main a.kh-card__read { color: var(--kh-blue); }
.kh-main a.kh-card__read:hover, .kh-main a.kh-card__read:focus-visible { color: #fff; }

/* ---------- header nav: same rules as about.html (they live inline there) ---------- */

.ab-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.ab-nav a { display: inline-flex; align-items: center; border-radius: 20px; padding: 6px 16px; font-size: 15px; font-weight: 500; color: var(--kh-indigo); transition: background .2s, color .2s; }
.ab-nav a:hover { background: var(--kh-indigo); color: #fff; }
.ab-nav a.active { background: var(--kh-mist); }
.ab-hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ab-hdr-cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 22px; background: var(--kh-indigo); color: #fff; border-radius: 19px; font-size: 14px; font-weight: 500; transition: background .2s; white-space: nowrap; }
.ab-hdr-cta:hover { background: var(--kh-blue); color: #fff; }
.ab-burger { display: none; width: 40px; height: 40px; background: var(--kh-mist); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; }
.ab-burger svg { display: block; }
@media (max-width: 767px) { .ab-nav { display: none; } .ab-burger { display: flex; } }

/* ---------- header additions: mobile menu ---------- */

@media (max-width: 767px) {
  .kh-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-inline: 0; inset-block-start: 100%;
    padding: 12px 16px 16px; background: #fff;
    border-block-end: 1px solid var(--kh-line); box-shadow: var(--kh-sh-md);
  }
  .kh-nav.is-open a { padding: 10px 16px; border-radius: 12px; }
}

/* ---------- 1. hero ---------- */

.kh-hero {
  position: relative; overflow: hidden;
  padding-block: 72px 64px;
  background: linear-gradient(180deg, var(--kh-sky) 0%, #eef5ff 70%, #fff 100%);
}
.kh-hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}

/* search */
.kh-search { margin-block-start: 28px; max-width: 520px; }
.kh-search__label { display: block; font-size: 14px; font-weight: 500; color: var(--kh-text-2); margin-block-end: 12px; }
.kh-search__field {
  position: relative; display: flex; align-items: center;
  height: 52px; border-radius: var(--kh-r-field); background: #fff;
  border: 1px solid var(--kh-line); box-shadow: var(--kh-sh-sm);
  transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast);
}
.kh-search__field:focus-within { border-color: var(--kh-blue); box-shadow: 0 0 0 3px rgba(40,142,255,.18); }
.kh-search__icon { margin-inline-start: 16px; color: var(--kh-text-3); flex-shrink: 0; }
.kh-search__input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  padding-inline: 12px; font-size: 16px; color: var(--kh-text); outline: none;
}
.kh-search__input::placeholder { color: #999; }
.kh-search__input::-webkit-search-cancel-button { display: none; }
.kh-search__clear {
  width: 36px; height: 36px; margin-inline-end: 8px; border: 0; border-radius: 50%;
  background: var(--kh-mist); color: var(--kh-indigo); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.kh-search__hint { min-height: 22px; margin-block-start: 8px; font-size: 14px; color: var(--kh-text-2); }

/* counters */
.kh-counters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-block-start: 32px; max-width: 560px;
}
.kh-counter dt { font-size: 13px; font-weight: 500; color: var(--kh-text-2); order: 2; }
.kh-counter dd { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--kh-indigo); }
.kh-counter { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 12px; border-inline-start: 2px solid var(--kh-blue); }

/* featured article */
.kh-featured {
  position: relative; display: block; min-height: 420px; border-radius: var(--kh-r-card); overflow: hidden;
  color: #fff; box-shadow: var(--kh-sh-lg);
  transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease);
}
.kh-featured:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(47,41,99,.22); }
.kh-featured__media { position: absolute; inset: 0; }
.kh-featured__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,3,4,0) 20%, rgba(2,3,4,.82) 100%);
}
.kh-featured__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 420px; padding: 84px 28px 28px; }
.kh-featured__title { font-size: 26px; line-height: 1.25; font-weight: 600; color: #fff; margin-block: 12px 8px; }
.kh-featured__excerpt { font-size: 15px; color: rgba(255,255,255,.82); max-width: 460px; }
.kh-featured__meta { color: rgba(255,255,255,.7); }
.kh-featured__stat {
  position: absolute; z-index: 2; inset-block-start: 20px; inset-inline-end: 20px;
  padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.92); color: var(--kh-indigo);
  font-size: 13px; font-weight: 500; line-height: 1.2; box-shadow: var(--kh-sh-sm);
}
.kh-featured__stat b { display: block; font-size: 20px; font-weight: 600; }

/* placeholder image: gradient + pattern, replaced by <img> when url is set */
.kh-ph {
  position: absolute; inset: 0; background-color: var(--kh-indigo);
  background-image: linear-gradient(160deg, var(--ph-a, #2f2963) 0%, var(--ph-b, #288eff) 100%);
}
.kh-ph--1 { --ph-a: #2f2963; --ph-b: #288eff; }
.kh-ph--2 { --ph-a: #1f3f78; --ph-b: #5db2ff; }
.kh-ph--3 { --ph-a: #241f4e; --ph-b: #6a5ed1; }
.kh-ph--4 { --ph-a: #0f4c81; --ph-b: #2fb8c9; }
.kh-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 2. category filters ---------- */

.kh-filters {
  position: sticky; inset-block-start: var(--header-height, 62px); z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--kh-line);
}
.kh-tabs { display: flex; gap: 4px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kh-tabs::-webkit-scrollbar { display: none; }
.kh-tab {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: var(--kh-r-pill);
  font-size: 15px; font-weight: 500; color: var(--kh-indigo); background: transparent; cursor: pointer;
  transition: background var(--kh-dur-fast), color var(--kh-dur-fast);
}
.kh-tab:hover { background: var(--kh-mist); }
.kh-tab[aria-selected="true"] { background: var(--kh-indigo); color: #fff; }
.kh-tab__icon { width: 20px; height: 20px; flex-shrink: 0; margin-inline-end: 8px; color: var(--kh-blue); }
.kh-tab__icon .kh-ic-fill { fill: #a8d3ff; fill-opacity: .55; }
.kh-tab[aria-selected="true"] .kh-tab__icon { color: #fff; }
.kh-tab[aria-selected="true"] .kh-tab__icon .kh-ic-fill { fill: #fff; fill-opacity: .28; }
.kh-tab__count {
  min-width: 24px; height: 24px; padding-inline: 7px; border-radius: 12px; margin-inline-start: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; line-height: 1; background: var(--kh-sky); color: var(--kh-indigo);
}
.kh-tab[aria-selected="true"] .kh-tab__count { background: rgba(255,255,255,.2); color: #fff; }

.kh-chips { display: flex; gap: 8px; padding-block: 0 12px; overflow-x: auto; scrollbar-width: none; }
.kh-chips::-webkit-scrollbar { display: none; }
.kh-chips:empty { display: none; }
.kh-chip {
  flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: var(--kh-r-pill);
  border: 1px solid var(--kh-line); background: #fff; color: var(--kh-text-2);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color var(--kh-dur-fast), color var(--kh-dur-fast), background var(--kh-dur-fast);
}
.kh-chip:hover { border-color: var(--kh-blue); color: var(--kh-indigo); }
.kh-chip[aria-pressed="true"] { background: var(--kh-sky); border-color: var(--kh-sky); color: var(--kh-indigo); }

/* ---------- sections ---------- */

.kh-section { padding-block: 80px; }
.kh-market { overflow: hidden; }
.kh-market > .kh-container { position: relative; z-index: 1; }
.kh-section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-block-end: 32px;
}
.kh-section__note { font-size: 14px; color: var(--kh-text-2); display: inline-flex; align-items: center; gap: 8px; }

.kh-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--kh-r-pill);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.kh-badge--demo { background: #fff4e0; color: #9a5b00; }
.kh-badge--cat { background: var(--kh-sky); color: var(--kh-indigo); }
.kh-badge--cat-light { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- 3. market charts ---------- */

.kh-market { background: var(--kh-bg); }
.kh-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kh-chart-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: #fff; border: 1px solid var(--kh-mist); border-radius: var(--kh-r-card); box-shadow: var(--kh-sh-md);
  min-width: 0;
}
.kh-chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kh-chart-card__title { font-size: 17px; font-weight: 500; color: var(--kh-text); }
.kh-chart-card__sub { font-size: 13px; color: var(--kh-text-2); margin-block-start: 2px; }
.kh-chart-card__toggle {
  flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: var(--kh-r-pill);
  border: 1px solid var(--kh-line); background: #fff; color: var(--kh-indigo); font-size: 13px; font-weight: 500; cursor: pointer;
}
.kh-chart-card__toggle[aria-pressed="true"] { background: var(--kh-indigo); color: #fff; border-color: var(--kh-indigo); }
.kh-chart-card__hero { display: flex; align-items: baseline; gap: 10px; }
.kh-chart-card__value { font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--kh-indigo); }
.kh-chart-card__delta { font-size: 14px; font-weight: 500; color: var(--kh-text-2); }
.kh-chart-card__delta.is-up { color: var(--kh-success); }
.kh-chart-card__delta.is-down { color: var(--kh-danger); }
.kh-chart { position: relative; width: 100%; min-height: 200px; }
.kh-chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--kh-font); }
.kh-chart text { font-size: 12px; fill: var(--viz-muted); }
.kh-chart .kh-viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.kh-chart .kh-viz-line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kh-chart .kh-viz-area { fill: var(--viz-1-soft); }
.kh-chart .kh-viz-dot { fill: #fff; stroke: var(--viz-1); stroke-width: 2; }
.kh-chart .kh-viz-bar { fill: var(--viz-1); }
.kh-chart .kh-viz-bar--muted { fill: #bfe1f4; }
.kh-chart .kh-viz-label { fill: var(--viz-ink-2); font-weight: 500; }
.kh-chart .kh-viz-value { fill: var(--viz-ink); font-weight: 500; }
.kh-chart .kh-viz-hit { fill: transparent; cursor: crosshair; }
.kh-chart .kh-viz-cross { stroke: var(--viz-muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }

.kh-chart-table { overflow-x: auto; }
.kh-chart-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kh-chart-table th, .kh-chart-table td { padding: 8px 6px; text-align: start; border-block-end: 1px solid var(--kh-line); }
.kh-chart-table th { font-weight: 500; color: var(--kh-text-2); font-size: 13px; }
.kh-chart-table td:last-child { font-variant-numeric: tabular-nums; }

.kh-tip {
  position: fixed; z-index: 3000; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; background: var(--kh-ink); color: #fff;
  font-size: 13px; line-height: 1.4; box-shadow: var(--kh-sh-lg); white-space: nowrap;
}
.kh-tip b { font-weight: 600; }

/* ---------- 4. feed + sidebar ---------- */

.kh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.kh-layout__side { position: sticky; inset-block-start: calc(var(--header-height, 62px) + 96px); display: grid; gap: 16px; }

.kh-feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
.kh-feed__count { font-size: 14px; color: var(--kh-text-2); }

.kh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kh-grid[aria-busy="true"] { min-height: 320px; }

.kh-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kh-mist);
  border-radius: var(--kh-r-card); overflow: hidden; box-shadow: var(--kh-sh-sm);
  transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease);
}
.kh-card:hover { transform: translateY(-4px); box-shadow: var(--kh-sh-lg); }
.kh-card:focus-within { box-shadow: 0 0 0 3px rgba(40,142,255,.25); }
.kh-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.kh-card__media .kh-ph { transition: transform var(--kh-dur-base) var(--kh-ease); }
.kh-card:hover .kh-card__media .kh-ph { transform: scale(1.03); }
.kh-card__badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; }
.kh-card__stat {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px;
  padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--kh-indigo);
  font-size: 12px; font-weight: 500; line-height: 1.2;
}
.kh-card__stat b { font-size: 15px; font-weight: 600; margin-inline-end: 4px; }
.kh-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.kh-card__sub { font-size: 12px; font-weight: 500; color: var(--kh-blue); text-transform: uppercase; letter-spacing: .04em; }
.kh-card__title { font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--kh-indigo); }
.kh-card__title a { color: inherit; }
.kh-card__title a:hover { color: var(--kh-blue); }
.kh-card { position: relative; }
.kh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: auto; padding-block-start: 12px; }
.kh-card__read {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 20px;
  border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-blue);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background var(--kh-dur-fast), color var(--kh-dur-fast), transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast);
}
.kh-card__read svg { transition: transform var(--kh-dur-fast) var(--kh-ease); }
.kh-card__read:hover, .kh-card__read:focus-visible { background: var(--kh-blue); color: #fff; transform: translateY(-2px); box-shadow: var(--kh-glow); }
.kh-card__read:hover svg { transform: translateX(4px); }
.kh-card__excerpt {
  font-size: 15px; color: var(--kh-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-block-start: 4px; font-size: 13px; color: var(--kh-text-3); }
.kh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kh-meta svg { flex-shrink: 0; }
.kh-card__author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kh-text-2); min-width: 0; }
.kh-card__author span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--kh-indigo); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}

.kh-feed__more { display: flex; justify-content: center; margin-block-start: 32px; }

.kh-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 56px 24px; border: 1px dashed var(--kh-line); border-radius: var(--kh-r-card); background: var(--kh-bg);
}
.kh-empty__icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--kh-sh-sm); }
.kh-empty__title { font-size: 20px; font-weight: 500; color: var(--kh-indigo); }
.kh-empty__text { font-size: 15px; color: var(--kh-text-2); max-width: 360px; }

/* sidebar cards */
.kh-side-card { padding: 22px 22px 24px; background: #fff; border: 1px solid var(--kh-mist); border-radius: var(--kh-r-card); box-shadow: var(--kh-sh-sm); }
.kh-side-card--dark { background: linear-gradient(160deg, #2f2963 0%, #241f4e 100%); border-color: rgba(72,63,148,.6); color: #fff; }
.kh-main .kh-side-card--dark .kh-side-card__title { color: #fff; }
.kh-main .kh-side-card__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--kh-indigo); margin: 0 0 16px; } /* .kh-main h3 resets margins: match its specificity */
.kh-side-card__title svg { color: var(--kh-blue); }
.kh-side-card__text { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); margin-block-end: 20px; }

.kh-trending { display: grid; gap: 4px; counter-reset: rank; }
.kh-trending li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-block-end: 1px solid var(--kh-line); }
.kh-trending li:last-child { border-block-end: 0; }
.kh-trending__rank { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--kh-blue); font-variant-numeric: tabular-nums; }
.kh-trending__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--kh-indigo); }
.kh-trending__title:hover { color: var(--kh-blue); }
.kh-trending__views { font-size: 12px; color: var(--kh-text-3); margin-block-start: 2px; }
.kh-trending__bar { height: 4px; border-radius: 2px; background: var(--kh-sky); margin-block-start: 6px; overflow: hidden; }
.kh-trending__bar i { display: block; height: 100%; width: 0; background: var(--kh-blue); transition: width .9s var(--kh-ease-out); }

.kh-minilist { display: grid; gap: 10px; }
.kh-minilist li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.kh-minilist__thumb { position: relative; width: 56px; height: 44px; border-radius: 10px; overflow: hidden; }
.kh-minilist__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--kh-indigo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-minilist__title:hover { color: var(--kh-blue); }
.kh-minilist__meta { font-size: 12px; color: var(--kh-text-3); }

.kh-side-card--cats { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--kh-sky-050) 100%); border-color: var(--kh-sky); }
.kh-side-card--cats > :not(.nk-cluster) { position: relative; z-index: 1; }
.kh-catlist { display: grid; gap: 8px; }
.kh-catlist__item {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 12px 8px 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--kh-sky); box-shadow: var(--kh-sh-sm);
  font-size: 14px; font-weight: 500; color: var(--kh-indigo);
  transition: transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast), border-color var(--kh-dur-fast);
}
.kh-catlist__item:hover { transform: translateY(-2px); box-shadow: var(--kh-sh-md); border-color: var(--kh-blue); }
.kh-catlist__item[aria-current="true"] { border-color: var(--kh-blue); box-shadow: 0 0 0 3px rgba(40,142,255,.16); }
.kh-catlist__icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--kh-sky); color: var(--kh-blue); }
.kh-catlist__icon svg { width: 20px; height: 20px; }
.kh-catlist__icon .kh-ic-fill { fill: #fff; fill-opacity: .9; }
.kh-catlist__name { flex: 1; min-width: 0; }
.kh-catlist__sub { display: block; font-size: 12px; font-weight: 400; color: var(--kh-text-3); }
.kh-catlist__count { min-width: 26px; height: 26px; padding-inline: 8px; border-radius: 13px; background: var(--kh-indigo); color: #fff; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }

.kh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-side-card > .kh-tags { padding-block-start: 4px; } /* 20px from the card title to the first row */
/* works for <button> and <a>: explicit flex box, fixed height, centred text */
.kh-tag {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 32px; padding: 6px 14px; margin: 0; border-radius: var(--kh-r-pill); border: 0;
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--kh-dur-fast), color var(--kh-dur-fast);
}
/* BRAND §12: one base style for every tag, colour only marks the selected one */
.kh-tag { background: var(--kh-sky); color: var(--kh-indigo); }
.kh-tag:hover { background: #cfe4fb; }
.kh-tag[aria-pressed="true"] { background: var(--kh-blue); color: #fff; }
.kh-tag[aria-pressed="true"]:hover { background: #1f7fe8; }

/* forms */
.kh-input {
  display: block; width: 100%; height: 48px; padding-inline: 16px; border-radius: var(--kh-r-field);
  border: 1px solid var(--kh-line); background: #fff; color: var(--kh-text); font-size: 15px; outline: none;
  transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast);
}
.kh-input::placeholder { color: #999; }
.kh-input:focus { border-color: var(--kh-blue); box-shadow: 0 0 0 3px rgba(40,142,255,.18); }
.kh-input[aria-invalid="true"] { border-color: var(--kh-danger); }
.kh-input--lg { height: 56px; font-size: 16px; }
.kh-input { font-family: inherit; }
/* select: same box as .kh-input + chevron; textarea: same box, auto height */
.kh-select { padding-inline-end: 44px; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2963' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
html[dir="rtl"] .kh-select { background-position: left 14px center; }
.kh-select:invalid, .kh-select option[value=""] { color: #999; }
.kh-textarea { height: auto; min-height: 96px; padding-block: 13px; line-height: 1.5; resize: vertical; }
/* field: label + control + error slot (login.css .lg-field and article.css .ar-field follow the same recipe) */
.kh-field { display: grid; gap: 8px; margin-block-end: 16px; min-width: 0; border: 0; padding: 0; }
.kh-field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 500; color: var(--kh-text-2); }
.kh-field__label small { font-weight: 400; color: var(--kh-text-3); }
.kh-field__err { min-height: 0; font-size: 13px; color: var(--kh-danger); }
.kh-field__err:empty { display: none; }
.kh-field.is-invalid .kh-input { border-color: var(--kh-danger); }
.kh-field.is-invalid .kh-input:focus { box-shadow: 0 0 0 3px rgba(229,72,77,.16); }
.kh-check { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--kh-text-2); cursor: pointer; }
.kh-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kh-check span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #d9dbe3; background: #fff; margin-block-start: 1px; position: relative; transition: background var(--kh-dur-fast), border-color var(--kh-dur-fast); }
.kh-check span::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.kh-check input:checked + span { background: var(--kh-blue); border-color: var(--kh-blue); }
.kh-check input:checked + span::after { opacity: 1; }
.kh-check input:focus-visible + span { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
.kh-check i { font-style: normal; }
.kh-check a { color: var(--kh-indigo); text-decoration: underline; text-underline-offset: 3px; }
.kh-field--check { gap: 6px; }
.kh-field--check.is-invalid .kh-check span { border-color: var(--kh-danger); }
/* radio pills */
.kh-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-choice label { position: relative; cursor: pointer; }
.kh-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kh-choice span { display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: var(--kh-r-pill); border: 1px solid var(--kh-line); background: #fff; color: var(--kh-indigo); font-size: 14px; font-weight: 500; transition: background var(--kh-dur-fast), border-color var(--kh-dur-fast), color var(--kh-dur-fast); }
.kh-choice label:hover span { border-color: var(--kh-blue); }
.kh-choice input:checked + span { background: var(--kh-indigo); border-color: var(--kh-indigo); color: #fff; }
.kh-choice input:focus-visible + span { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
/* submit with spinner + status message */
.kh-submit { position: relative; width: 100%; height: 52px; }
.kh-submit__spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: kh-spin .8s linear infinite; }
.kh-submit.is-busy .kh-submit__spin { display: block; }
.kh-submit[disabled] { opacity: .75; cursor: progress; }
@keyframes kh-spin { to { transform: rotate(360deg); } }
.kh-msg { min-height: 0; margin-block-start: 12px; font-size: 14px; line-height: 1.5; }
.kh-msg:empty { display: none; }
.kh-msg.is-error { padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #a12a2e; }
.kh-msg.is-ok { padding: 12px 14px; border-radius: 12px; background: #e6f6ec; color: #0b6b34; }
.kh-subscribe { display: grid; gap: 12px; }
.kh-subscribe .kh-btn { width: 100%; }
.kh-form__msg { font-size: 13px; min-height: 18px; margin-block-start: -4px; color: rgba(255,255,255,.8); }
.kh-form__msg:empty { display: none; }
.kh-form__msg.is-error { color: #ffb4b7; }
.kh-form__msg.is-ok { color: #9ee6b8; }

/* ---------- breadcrumbs (shared: FAQ categories; article.css .ar-crumbs is the same recipe) ---------- */
.kh-crumbs { font-size: 14px; color: var(--kh-text-2); }
.kh-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.kh-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.kh-crumbs li + li::before { content: ''; width: 5px; height: 5px; margin-inline: 10px; border-block-start: 1.5px solid var(--kh-text-3); border-inline-end: 1.5px solid var(--kh-text-3); transform: rotate(45deg); flex-shrink: 0; }
.kh-crumbs a { color: var(--kh-indigo); font-weight: 500; }
.kh-crumbs a:hover { color: var(--kh-blue); }
.kh-crumbs [aria-current] { color: var(--kh-text-2); }

/* ---------- 5. CTA ---------- */

.kh-cta { position: relative; overflow: hidden; padding-block: 96px; background: linear-gradient(165deg, #00121f 0%, #001f2e 45%, #012b42 100%); color: #fff; }
.kh-cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kh-cta__text { font-size: 17px; color: rgba(255,255,255,.75); margin-block-start: 16px; max-width: 520px; }
.kh-cta__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.kh-cta__form .kh-form__msg { grid-column: 1 / -1; }
.kh-cta__form .kh-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.kh-cta__form .kh-input::placeholder { color: rgba(255,255,255,.5); }
.kh-cta__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-block-start: 8px; }

/* footer form spacing (brief/main-style.css defaults are tight); page-scoped */
.kh-body .footer-sub .large.less { margin-bottom: 4px; }
.kh-body .footer-sub-row { margin-top: 20px; }
.kh-body .footer-sub-checkboxes { margin-top: 18px; }
.kh-body .footer-sub-checkboxes label { margin-bottom: 10px; }

/* ---------- motion ---------- */

.kh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--kh-ease), transform .6s var(--kh-ease); }
.kh-reveal.is-in { opacity: 1; transform: none; }
.kh-card.is-new { animation: kh-in .5s var(--kh-ease) both; }
@keyframes kh-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .kh-reveal { transform: none; transition: opacity .3s; }
  .kh-card.is-new { animation: none; }
  .kh-btn, .kh-card, .kh-featured, .kh-card__media .kh-ph { transition: none; }
  .kh-btn:hover, .kh-card:hover, .kh-featured:hover, .kh-catlist__item:hover, .kh-card__read:hover { transform: none; }
  .kh-card__read svg { transition: none; }
  .kh-trending__bar i { transition: none; }
  .kh-chart .kh-viz-anim { animation: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .kh-charts { grid-template-columns: 1fr 1fr; }
  .kh-charts .kh-chart-card:last-child { grid-column: 1 / -1; }
  .kh-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}

@media (max-width: 900px) {
  .kh-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .kh-layout { grid-template-columns: 1fr; }
  .kh-layout__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-layout__side .kh-side-card--dark { grid-column: 1 / -1; }
  .kh-cta__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .kh-container { padding-inline: 16px; }
  .kh-hero { padding-block: 40px 40px; }
  .kh-h1 { font-size: 32px; }
  .kh-h2 { font-size: 28px; }
  .kh-lead { font-size: 16px; }
  .kh-section { padding-block: 56px; }
  .kh-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-counter dd { font-size: 24px; }
  .kh-featured, .kh-featured__body { min-height: 320px; }
  .kh-featured__body { padding: 72px 20px 20px; }
  .kh-featured__title { font-size: 21px; }
  .kh-charts { grid-template-columns: 1fr; }
  .kh-grid { grid-template-columns: 1fr; }
  .kh-layout__side { grid-template-columns: 1fr; }
  .kh-cta { padding-block: 56px; }
  .kh-cta__form { grid-template-columns: 1fr; }
  .kh-cta__form .kh-btn { width: 100%; }
  .kh-btn { padding: 0 24px; }
}

@media (max-width: 480px) {
  .kh-counters { max-width: none; }
  .kh-featured__stat { inset-block-start: 12px; inset-inline-end: 12px; }
}



/* ===== nk-tokens.css ===== */
/* ============================================================
   NewKey.cy — nk-tokens.css
   Shared SPACING tokens (BRAND §5: section padding ~100px desktop, less on
   mobile). Load before the page stylesheet. Used by: services.html,
   to-add-an-advert-simple.html. Colour / radius / shadow / motion tokens still
   live in knowledge-hub.css (:root --kh-*) — candidates to move here once the
   owner approves a site-wide rollout.
   ============================================================ */

:root {
  /* base scale (4px step) */
  --nk-sp-1: 4px;  --nk-sp-2: 8px;   --nk-sp-3: 12px; --nk-sp-4: 16px;
  --nk-sp-5: 20px; --nk-sp-6: 24px;  --nk-sp-8: 32px; --nk-sp-10: 40px;
  --nk-sp-12: 48px; --nk-sp-16: 64px; --nk-sp-24: 96px;

  /* semantic rhythm (desktop) */
  --nk-section: var(--nk-sp-24);   /* padding-block of every section (BRAND §5: ~100px) */
  --nk-section-hero: 72px;         /* hero top only: it already sits under the fixed header */
  --nk-head: var(--nk-sp-8);       /* section head → its content */
  --nk-stack: var(--nk-sp-10);     /* sub-blocks inside a section: buttons → facts, steps → footnote, copy → photo */
  --nk-grid: var(--nk-sp-5);       /* gap between cards in a grid */
  --nk-cols: var(--nk-sp-16);      /* gap between the two columns of a split layout */
  --nk-card-pad: var(--nk-sp-6);   /* inner padding of cards and form cards */
  --nk-gutter: var(--nk-sp-6);     /* container side padding (= .kh-container) */
}
@media (max-width: 900px) {
  :root { --nk-section: 72px; --nk-section-hero: 56px; --nk-stack: var(--nk-sp-8); --nk-cols: var(--nk-sp-10); }
}
@media (max-width: 767px) {
  :root { --nk-section: 56px; --nk-section-hero: 40px; --nk-head: var(--nk-sp-6); --nk-stack: 28px; --nk-grid: var(--nk-sp-4); --nk-cols: var(--nk-sp-8); --nk-card-pad: var(--nk-sp-5); --nk-gutter: var(--nk-sp-4); }
}




/* ============================================================
   NewKey.cy — account.css
   Buyer account, shared by every account-*.html page (overview, matching,
   favourites, recommendations, map, settings). Builds on nk-tokens.css
   (spacing), knowledge-hub.css (colour / radius / shadow tokens, buttons,
   fields, .nk-icon, .kh-ph, .kh-tag). Scoped under .ac-*.

   Shell (rendered by account.js on every page):
     .ac-side     left panel: account nav + profile card with its menu; sticky, collapses to icons
     .ac-band     page header block (sky, rounded) above the content column: title + description + actions
     .ac-bottom   mobile tab bar (≤900px)
   A workspace: no pattern near data, one static cluster in the band only.
   ============================================================ */

.ac-page { --z-content: 1; --z-sticky: 100; --z-pop: 1000; --z-modal: 2000; --z-toast: 2100; } /* BRAND §15: one scale for the whole account */
.ac-page .kh-container { padding-inline: var(--nk-gutter); }
.ac-page .kh-lead { margin-block-start: var(--nk-sp-2); }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-ic-fill { fill: #a8d3ff; fill-opacity: .55; }

/* ---------- contrast fix (systemic) ----------
   knowledge-hub.css has `.kh-main button { color: inherit }` (0,1,1), which outranks `.kh-btn` (0,1,0):
   every <button class="kh-btn"> inside .kh-main inherited the dark page colour on a dark fill.
   Links (<a class="kh-btn">) were already protected by `.kh-main a.kh-btn`. Same rule, for buttons,
   scoped to the account until the owner approves the one-line rollout in knowledge-hub.css. */
.ac-page .kh-main button.kh-btn, .ac-page .kh-main button.kh-btn:hover { color: #fff; }
.ac-page .kh-main button.kh-btn--secondary, .ac-page .kh-main button.kh-btn--secondary:hover { color: var(--kh-indigo); }
.ac-page .kh-main button.kh-btn--danger, .ac-page .kh-main button.kh-btn--danger:hover { color: #a12a2e; }
.ac-page .kh-main button.kh-btn--ghost-light { color: #fff; }
.ac-page .kh-main .kh-btn--secondary:hover { background: #dedff0; box-shadow: none; }
.kh-btn--danger { background: #fdecec; color: #a12a2e; }
.kh-main a.kh-btn--danger, .kh-btn--danger:hover { color: #a12a2e; box-shadow: none; background: #fbdcdc; }

/* ---------- page header block (sky, inside the content column) ---------- */
.ac-band { position: relative; padding: var(--nk-sp-6) var(--nk-sp-8); border-radius: 20px; background: linear-gradient(180deg, var(--kh-sky) 0%, var(--kh-sky-050) 100%); border: 1px solid #cfe4fb; box-shadow: var(--kh-sh-sm); }
.ac-band__title { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--nk-sp-3) var(--nk-sp-6); }
.kh-main .ac-h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--kh-indigo); }
.kh-main .ac-sub { margin: var(--nk-sp-1) 0 0; font-size: 15px; color: var(--kh-text-2); max-width: 640px; }
.ac-band__title .ac-actions .kh-btn { height: 44px; padding-inline: var(--nk-sp-6); font-size: 15px; }
.ac-actions .kh-btn svg, .ac-empty .kh-btn svg { width: 18px; height: 18px; flex: none; }

.ac-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--kh-indigo); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; flex-shrink: 0; }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- layout ---------- */
/* menu and header block start on the same line, right under the site header */
.ac-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--nk-sp-10); align-items: start; padding-block: var(--nk-sp-6) var(--nk-section); }
.ac-col { min-width: 0; display: grid; gap: var(--nk-sp-6); }
.ac-content { min-width: 0; }
.ac-content:focus { outline: none; }
.ac-panel { display: grid; gap: var(--nk-sp-6); }
.ac-actions { display: flex; flex-wrap: wrap; gap: var(--nk-sp-2); }
.kh-main .ac-btn-sm, .kh-btn.ac-btn-sm { height: 38px; padding: 0 var(--nk-sp-4); font-size: 14px; }
.ac-oc__foot .kh-btn { height: 34px; padding: 0 14px; font-size: 13px; flex: none; }
.kh-main .ac-panel__sub { margin: var(--nk-sp-1) 0 0; font-size: 15px; color: var(--kh-text-2); }

/* ---------- side panel — collapses to icons ---------- */
.ac-side { position: sticky; z-index: var(--z-sticky); inset-block-start: calc(var(--header-height, 62px) + var(--nk-sp-6)); width: 248px; transition: width var(--kh-dur-base) var(--kh-ease); }
.ac-side.is-collapsed { width: 64px; }
.ac-nav { display: grid; gap: 4px; padding: var(--nk-sp-2); background: #fff; border: 1px solid var(--kh-mist); border-radius: 20px; box-shadow: var(--kh-sh-sm); }
.ac-nav__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 4px 0 12px; margin-block-end: 4px; }
.ac-nav__brand { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--kh-blue); white-space: nowrap; transition: opacity var(--kh-dur-fast); }
.ac-nav__toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--kh-text-2); cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }
.ac-nav__toggle:hover { background: var(--kh-sky-050); color: var(--kh-indigo); }
.ac-nav__toggle svg { width: 18px; height: 18px; }
.ac-nav__toggle svg { transition: transform var(--kh-dur-base) var(--kh-ease); }
.ac-nav__item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--nk-sp-3); height: 44px; padding: 0 6px; border: 0; border-radius: 14px; background: transparent; color: var(--kh-indigo); font: inherit; font-size: 15px; font-weight: 500; text-align: start; cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }
.kh-main a.ac-nav__item { color: var(--kh-indigo); }
.ac-nav__item .nk-icon { --nk-icon-box: 32px; --nk-icon-size: 20px; border-radius: 10px; background: var(--kh-sky-050); color: var(--kh-blue); }
.ac-nav__item:hover { background: var(--kh-sky-050); }
.kh-main a.ac-nav__item[aria-current="page"], .ac-nav__item[aria-current="page"] { background: var(--kh-indigo); color: #fff; }
.ac-nav__item[aria-current="page"] .nk-icon { background: rgba(255,255,255,.14); color: #fff; }
.ac-nav__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--kh-dur-fast); }
.ac-nav__badge { min-width: 22px; height: 22px; padding-inline: 7px; border-radius: 11px; background: var(--kh-blue); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ac-nav__badge:empty { display: none; }
.ac-nav__item[aria-current="page"] .ac-nav__badge { background: #fff; color: var(--kh-indigo); }
/* collapsed: icons only, labels fade out, badges become a corner dot, tooltips carry the names */
.is-collapsed .ac-nav__head { padding-inline: 0; justify-content: center; }
.is-collapsed .ac-nav__brand { position: absolute; opacity: 0; pointer-events: none; }
.is-collapsed .ac-nav__toggle svg { transform: rotate(180deg); }
.is-collapsed .ac-nav__item { grid-template-columns: auto; justify-content: center; padding: 0; }
.is-collapsed .ac-nav__label { position: absolute; opacity: 0; pointer-events: none; }
.is-collapsed .ac-nav__badge { position: absolute; inset-block-start: 4px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding-inline: 4px; font-size: 10px; }

/* profile card at the bottom of the panel (replaces the "Profile & settings" row) */
.ac-me { position: relative; margin-block-start: 4px; padding-block-start: 8px; border-block-start: 1px solid var(--kh-line); }
.ac-me__btn { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 14px; background: transparent; color: var(--kh-indigo); font: inherit; text-align: start; cursor: pointer; transition: background var(--kh-dur-fast); }
.ac-me__btn:hover, .ac-me__btn[aria-expanded="true"] { background: var(--kh-sky-050); }
.ac-me__btn.is-current { background: var(--kh-sky); }
.ac-me__meta { display: grid; gap: 1px; min-width: 0; font-size: 12px; line-height: 1.25; color: var(--kh-text-2); transition: opacity var(--kh-dur-fast); }
.ac-me__meta b { font-size: 14px; font-weight: 500; color: var(--kh-indigo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-me__meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-me__gear { --nk-icon-box: 32px; --nk-icon-size: 20px; border-radius: 10px; color: var(--kh-blue); transition: background var(--kh-dur-fast), transform var(--kh-dur-base) var(--kh-ease); }
.ac-me__btn:hover .ac-me__gear { background: #fff; transform: rotate(30deg); }
.ac-me__menu { position: absolute; z-index: var(--z-pop); inset-inline-start: 8px; inset-inline-end: 8px; inset-block-start: calc(100% + 6px); padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--kh-mist); box-shadow: var(--kh-sh-lg); opacity: 0; transform: translateY(-6px); transition: opacity var(--kh-dur-fast), transform var(--kh-dur-fast) var(--kh-ease); }
.ac-me__menu.is-open { opacity: 1; transform: none; }
.ac-me__menu[hidden] { display: none; }
.kh-main a.ac-menu__item { color: var(--kh-indigo); }
.ac-menu__item .ac-nav__badge { margin-inline-start: auto; }
.is-collapsed .ac-me { padding-inline: 0; }
.is-collapsed .ac-me__btn { grid-template-columns: auto; justify-content: center; padding: 6px 0; }
.is-collapsed .ac-me__meta, .is-collapsed .ac-me__gear { position: absolute; opacity: 0; pointer-events: none; }
.is-collapsed .ac-me__menu { inset-inline-start: calc(100% + 10px); inset-inline-end: auto; inset-block-start: auto; inset-block-end: 0; min-width: 220px; }

/* tooltips — brand bubble with an arrow, ~300 ms delay, hover AND keyboard focus (class .is-tip is set by account.js:
   nav items + profile card only while the panel is collapsed; the collapse toggle always, it is icon-only). */
.ac-tip { position: relative; }
.ac-tip::after, .ac-tip::before { position: absolute; z-index: var(--z-pop); pointer-events: none; opacity: 0; transition: opacity var(--kh-dur-fast) var(--kh-ease) 0s, transform var(--kh-dur-fast) var(--kh-ease) 0s; }
.ac-tip::after { content: attr(data-tip); padding: 7px 11px; border-radius: 9px; background: var(--kh-indigo); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; box-shadow: var(--kh-sh-md); }
.ac-tip::before { content: ''; width: 0; height: 0; border: 6px solid transparent; }
/* placement: to the right of the icon (default) */
.ac-tip::after { inset-inline-start: calc(100% + 12px); inset-block-start: 50%; transform: translate(-6px, -50%); }
.ac-tip::before { inset-inline-start: calc(100% + 1px); inset-block-start: 50%; transform: translate(-6px, -50%); border-inline-end-color: var(--kh-indigo); }
/* placement: below (the collapse toggle while the panel is expanded) */
.ac-tip--b::after { inset-inline-start: 50%; inset-block-start: calc(100% + 10px); transform: translate(-50%, -4px); }
.ac-tip--b::before { inset-inline-start: 50%; inset-block-start: calc(100% - 1px); transform: translate(-50%, -4px); border-inline-end-color: transparent; border-block-end-color: var(--kh-indigo); }
/* collapsed panel: everything goes to the right, the toggle included */
.is-collapsed .ac-tip--b::after { inset-inline-start: calc(100% + 12px); inset-block-start: 50%; transform: translate(-6px, -50%); }
.is-collapsed .ac-tip--b::before { inset-inline-start: calc(100% + 1px); inset-block-start: 50%; transform: translate(-6px, -50%); border-block-end-color: transparent; border-inline-end-color: var(--kh-indigo); }
/* shown */
.ac-tip.is-tip::after, .ac-tip.is-tip::before { opacity: 1; transition-delay: .3s; transform: translate(0, -50%); }
.ac-tip--b.is-tip::after, .ac-tip--b.is-tip::before { transform: translate(-50%, 0); }
.is-collapsed .ac-tip--b.is-tip::after, .is-collapsed .ac-tip--b.is-tip::before { transform: translate(0, -50%); }
/* touch devices: no hover, no tooltips → the toggle is hidden and the panel never collapses */
@media (hover: none) { .ac-nav__toggle { display: none; } .ac-side.is-collapsed { width: 248px; } }

/* ---------- reusable: card box, stat tiles, chips ---------- */
.ac-box { padding: var(--nk-card-pad); background: #fff; border: 1px solid var(--kh-mist); border-radius: 20px; box-shadow: var(--kh-sh-sm); }
.ac-box--sky { background: var(--kh-sky-050); border-color: var(--kh-sky); box-shadow: none; }
.kh-main .ac-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--nk-sp-3); font-size: 17px; font-weight: 500; color: var(--kh-indigo); }
.ac-box__title .nk-icon { --nk-icon-box: 28px; --nk-icon-size: 18px; border-radius: 8px; background: var(--kh-sky); color: var(--kh-blue); }
.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nk-grid); }
.ac-stat { display: grid; gap: 6px; padding: var(--nk-card-pad); border-radius: 20px; background: #fff; border: 1px solid var(--kh-mist); box-shadow: var(--kh-sh-sm); color: inherit; text-align: start; font: inherit; cursor: pointer; transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.kh-main a.ac-stat { color: inherit; }
.ac-stat:hover { transform: translateY(-3px); box-shadow: var(--kh-sh-md); }
.ac-stat .nk-icon { --nk-icon-box: 40px; --nk-icon-size: 22px; border-radius: 12px; background: var(--kh-sky); color: var(--kh-blue); }
.ac-stat b { font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--kh-indigo); }
.ac-stat span { font-size: 14px; color: var(--kh-text-2); }
.ac-stat--ok b { color: var(--kh-success); }
.ac-chips { display: flex; flex-wrap: wrap; gap: var(--nk-sp-2); }
.ac-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-indigo); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ac-chip .nk-icon { --nk-icon-box: 16px; --nk-icon-size: 14px; color: var(--kh-blue); }

/* ---------- overview ---------- */
.ac-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--nk-grid); align-items: start; }
.ac-quick { display: grid; gap: var(--nk-sp-2); }
.ac-quick .kh-btn { justify-content: space-between; width: 100%; }
.ac-quick .kh-btn svg { width: 18px; height: 18px; }
.ac-feed { display: grid; gap: 0; }
.ac-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: start; padding: var(--nk-sp-3) 0; border-block-start: 1px solid var(--kh-line); }
.ac-feed li:first-child { border-block-start: 0; padding-block-start: 0; }
.ac-feed .nk-icon { --nk-icon-box: 36px; --nk-icon-size: 18px; border-radius: 10px; background: var(--kh-sky-050); color: var(--kh-blue); }
.ac-feed b { display: block; font-size: 15px; font-weight: 500; color: var(--kh-indigo); }
.ac-feed i { font-style: normal; color: var(--kh-indigo); }
.ac-ok { color: var(--kh-success); font-weight: 600; }
.ac-feed span { display: block; font-size: 13px; color: var(--kh-text-2); margin-block-start: 2px; }
.ac-feed time { font-size: 12px; color: var(--kh-text-3); white-space: nowrap; }
.ac-delta { font-weight: 600; color: var(--kh-success); }
.ac-delta--up { color: var(--kh-danger); }

/* ---------- matching: profile cards ---------- */
.ac-mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-grid); }
.ac-mp { position: relative; display: grid; gap: var(--nk-sp-4); padding: var(--nk-card-pad); background: #fff; border: 1px solid var(--kh-mist); border-radius: 20px; box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.ac-mp:hover { box-shadow: var(--kh-sh-md); }
.ac-mp.is-paused { background: var(--kh-bg); }
.ac-mp__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: center; }
.ac-mp__head .nk-icon { --nk-icon-box: 40px; --nk-icon-size: 22px; border-radius: 12px; background: var(--kh-sky); color: var(--kh-blue); }
.is-paused .ac-mp__head .nk-icon { background: var(--kh-mist); color: var(--kh-text-3); }
.kh-main .ac-mp__name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; color: var(--kh-indigo); overflow-wrap: anywhere; }
.ac-mp__goal { display: block; margin-block-start: 2px; font-size: 13px; color: var(--kh-text-2); }
.ac-mp__tools { display: flex; align-items: center; gap: 4px; }
.ac-mp__status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-indigo); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ac-mp__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--kh-success); }
.ac-mp__status--paused { background: var(--kh-mist); color: var(--kh-text-2); }
.ac-mp__status--paused::before { background: var(--kh-text-3); }
.ac-mp__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nk-sp-2) var(--nk-sp-4); font-size: 13px; color: var(--kh-text-2); }
.ac-mp__facts b { font-weight: 600; color: var(--kh-indigo); }
.kh-main a.ac-mp__link { color: var(--kh-blue); font-weight: 500; }
.ac-mp__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: center; padding-block-start: var(--nk-sp-4); border-block-start: 1px solid var(--kh-line); }
.ac-mp__freq { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--kh-line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2963' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; font: inherit; font-size: 13px; font-weight: 500; color: var(--kh-indigo); appearance: none; -webkit-appearance: none; cursor: pointer; }
.ac-mp__freq:disabled { opacity: .5; cursor: default; }
.ac-mp__add { display: grid; place-items: center; gap: var(--nk-sp-2); min-height: 100%; padding: var(--nk-card-pad); border: 1px dashed var(--kh-line); border-radius: 20px; background: transparent; color: var(--kh-text-2); font: inherit; font-size: 15px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color var(--kh-dur-fast), color var(--kh-dur-fast), background var(--kh-dur-fast); }
.ac-mp__add:hover { border-color: var(--kh-blue); color: var(--kh-indigo); background: var(--kh-sky-050); }
.ac-mp__add .nk-icon { --nk-icon-box: 44px; --nk-icon-size: 22px; border-radius: 50%; background: var(--kh-sky); color: var(--kh-blue); }
.ac-mp-hint { margin: 0; font-size: 13px; color: var(--kh-text-3); }
/* matching card: criteria grouped Where / What / Budget / Timing (one grid, one rhythm) */
.ac-mp__gs { display: grid; gap: var(--nk-sp-2); }
.ac-mp__g { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--nk-sp-2); align-items: start; }
.ac-mp__gl { display: inline-flex; align-items: center; gap: 6px; padding-block-start: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kh-text-3); }
.ac-mp__gl .nk-icon { --nk-icon-box: 16px; --nk-icon-size: 14px; color: var(--kh-blue); }
.ac-mp__state b { font-size: 13px; }
.ac-mp__state .ac-switch__track { width: 40px; height: 24px; }
.ac-mp__state .ac-switch__track::after { width: 18px; height: 18px; }
.ac-mp__state input:checked + .ac-switch__track::after { transform: translateX(16px); }
.ac-mp__add { border-width: 1.5px; border-color: var(--kh-blue); background: var(--kh-sky-050); color: var(--kh-indigo); }
.ac-mp__add .nk-icon { background: var(--kh-blue); color: #fff; }
.ac-mp__add-t { font-size: 16px; font-weight: 600; }
/* empty state with an illustration */
.ac-empty__art { position: relative; width: 200px; height: 150px; margin-block-end: var(--nk-sp-3); border-radius: 24px; background: var(--kh-sky-050); border: 1px solid var(--kh-sky); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ac-empty__art .nk-cluster { inset-inline-end: -12px; inset-block-start: -12px; }
.ac-empty--mp .ac-empty__art .nk-icon { position: relative; z-index: 1; --nk-icon-box: 64px; --nk-icon-size: 30px; background: #fff; box-shadow: var(--kh-sh-md); }
/* matching form: sections, searchable multi-select dropdown, mortgage hint, live summary */
.ac-sec + .ac-sec { margin-block-start: var(--nk-sp-5); padding-block-start: var(--nk-sp-5); border-block-start: 1px solid var(--kh-line); }
.ac-sec__title { margin: 0 0 var(--nk-sp-4); font-size: 17px; font-weight: 600; color: var(--kh-indigo); }
.ac-sec__title small { display: block; margin-block-start: 2px; font-size: 13px; font-weight: 400; color: var(--kh-text-3); }
.ac-sec__title--sub { margin-block-start: var(--nk-sp-5); padding-block-start: var(--nk-sp-4); border-block-start: 1px solid var(--kh-line); }
.ac-field-pills .kh-field__label small { font-weight: 400; color: var(--kh-text-3); margin-inline-start: 4px; }
.ac-dd { position: relative; }
.ac-dd__btn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 6px 10px 6px 12px; border: 1px solid var(--kh-line); border-radius: 12px; background: #fff; text-align: start; font: inherit; font-size: 14px; color: var(--kh-indigo); cursor: pointer; }
.ac-dd__btn:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
.ac-dd__btn > .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 16px; margin-inline-start: auto; color: var(--kh-text-3); }
.ac-dd__ph { color: var(--kh-text-3); }
.ac-dd__tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--kh-r-pill); background: var(--kh-blue); color: #fff; font-size: 12.5px; font-weight: 500; }
.ac-dd__pop { position: absolute; inset-inline: 0; z-index: var(--z-pop); margin-block-start: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--kh-line); box-shadow: var(--kh-sh-md); overflow: hidden; }
.ac-dd__pop[hidden] { display: none; }
.ac-dd__q { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-block-end: 1px solid var(--kh-line); }
.ac-dd__q .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 16px; color: var(--kh-text-3); }
.ac-dd__q input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--kh-indigo); outline: none; }
.ac-dd__list { max-height: 220px; overflow-y: auto; }
.ac-dd__opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; background: none; text-align: start; font: inherit; font-size: 14px; color: var(--kh-indigo); cursor: pointer; }
.ac-dd__opt + .ac-dd__opt { border-block-start: 1px solid var(--kh-line); }
.ac-dd__opt:hover { background: var(--kh-sky-050); }
.ac-dd__opt[hidden] { display: none; }
.ac-dd__opt i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--kh-line); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ac-dd__opt i svg { width: 12px; height: 12px; opacity: 0; }
.ac-dd__opt[aria-selected="true"] i { background: var(--kh-blue); box-shadow: none; }
.ac-dd__opt[aria-selected="true"] i svg { opacity: 1; }
.ac-dd__none { padding: 14px; text-align: center; font-size: 13px; color: var(--kh-text-3); }
.ac-dd__sel { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.ac-dd__sel:empty { display: none; }
.ac-dd__reset { background: #fff; box-shadow: inset 0 0 0 1px var(--kh-line); }
.ac-hint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--nk-sp-3); margin-block-start: var(--nk-sp-2); padding: 10px 12px; border-radius: 14px; background: var(--kh-sky-050); border: 1px solid var(--kh-sky); color: inherit; text-decoration: none; }
.ac-hint[hidden] { display: none; }
.ac-hint:hover { border-color: var(--kh-blue); }
.ac-hint .nk-icon { --nk-icon-box: 36px; --nk-icon-size: 18px; border-radius: 10px; background: #fff; color: var(--kh-blue); }
.ac-hint .ac-hint__arrow { --nk-icon-box: 20px; --nk-icon-size: 16px; background: none; color: var(--kh-text-3); }
.ac-hint b { display: block; font-size: 14px; font-weight: 600; color: var(--kh-indigo); }
.ac-hint span span { display: block; font-size: 12.5px; color: var(--kh-text-2); }
.ac-sum { position: sticky; inset-block-end: 0; margin-block-start: var(--nk-sp-5); padding: 10px 14px; border-radius: 12px; background: var(--kh-sky); color: var(--kh-indigo); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.ac-sum small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kh-text-3); }
@media (max-width: 640px) { .ac-mp__g { grid-template-columns: 1fr; gap: 4px; } .ac-mp__gl { padding-block-start: 0; } }

/* switch */
.ac-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--nk-sp-3); align-items: center; cursor: pointer; }
.ac-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-switch__track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--kh-mist); transition: background var(--kh-dur-fast); flex-shrink: 0; }
.ac-switch__track::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--kh-dur-base) var(--kh-ease); }
.ac-switch input:checked + .ac-switch__track { background: var(--kh-blue); }
.ac-switch input:checked + .ac-switch__track::after { transform: translateX(18px); }
.ac-switch input:focus-visible + .ac-switch__track { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
.ac-switch input:disabled + .ac-switch__track { opacity: .45; }
.ac-switch b { display: block; font-size: 14px; font-weight: 500; color: var(--kh-indigo); }
.ac-switch span { display: block; font-size: 12px; color: var(--kh-text-2); }
.ac-switch--lg b { font-size: 15px; }
.ac-switch--lg span { font-size: 13px; }

/* dropdown menu (profile actions) */
.ac-menu { position: absolute; z-index: var(--z-pop); min-width: 200px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--kh-mist); box-shadow: var(--kh-sh-lg); opacity: 0; transform: translateY(-6px); transition: opacity var(--kh-dur-fast), transform var(--kh-dur-fast) var(--kh-ease); }
.ac-menu.is-open { opacity: 1; transform: none; }
.ac-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--kh-indigo); font: inherit; font-size: 14px; font-weight: 500; text-align: start; cursor: pointer; }
.ac-menu__item:hover, .ac-menu__item:focus-visible { background: var(--kh-sky-050); outline: none; }
.ac-menu__item svg { width: 16px; height: 16px; color: var(--kh-blue); flex-shrink: 0; }
.ac-menu__item--danger { color: #a12a2e; }
.ac-menu__item--danger svg { color: #a12a2e; }
.ac-menu__item--danger:hover, .ac-menu__item--danger:focus-visible { background: #fdecec; }
.ac-menu__sep { height: 1px; margin: 4px 6px; background: var(--kh-line); }

/* profile form (modal): steps for the quiz-style creation, sections at once for editing */
.ac-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--nk-sp-4); }
.ac-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-pills .kh-tag { height: 34px; }
.ac-field-pills { margin-block-end: var(--nk-sp-4); }
.ac-field-pills > .kh-field__label { margin-block-end: 8px; }
.ac-steps { display: flex; gap: 6px; margin-block-end: var(--nk-sp-5); }
.ac-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--kh-mist); }
.ac-steps span.is-done { background: var(--kh-blue); }
.kh-main .ac-step__title, .ac-step__title { margin: 0 0 var(--nk-sp-4); font-size: 16px; font-weight: 600; color: var(--kh-indigo); }
.ac-step[hidden] { display: none; }
.ac-form-alerts { display: grid; gap: var(--nk-sp-3); padding: var(--nk-sp-4); border-radius: 14px; background: var(--kh-sky-050); }

/* ---------- favourites / recommendations cards ---------- */
.ac-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--nk-sp-4); border: 0; border-radius: var(--kh-r-pill); background: transparent; color: var(--kh-text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ac-tab b { font-weight: 500; color: var(--kh-text-3); }
.ac-tab:hover { background: var(--kh-mist); color: var(--kh-indigo); }
.ac-tab[aria-selected="true"] { background: var(--kh-indigo); color: #fff; }
.ac-tab[aria-selected="true"] b { color: rgba(255,255,255,.7); }
.ac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nk-grid); }
.ac-card__kind { position: absolute; inset-inline-start: var(--nk-sp-3); inset-block-start: var(--nk-sp-3); z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--kh-r-pill); background: rgba(255,255,255,.94); color: var(--kh-indigo); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ac-card__note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--kh-sky-050); font-size: 13px; line-height: 1.5; color: var(--kh-text-2); }
.ac-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--kh-line); border-radius: 50%; background: #fff; color: var(--kh-indigo); cursor: pointer; transition: border-color var(--kh-dur-fast), background var(--kh-dur-fast), color var(--kh-dur-fast); }
.ac-ibtn svg { width: 18px; height: 18px; }
.ac-ibtn:hover { border-color: var(--kh-blue); color: var(--kh-blue); }
.ac-ibtn.is-on, .ac-ibtn[aria-expanded="true"] { background: var(--kh-blue); border-color: var(--kh-blue); color: #fff; }
.ac-ibtn--danger:hover { border-color: var(--kh-danger); color: var(--kh-danger); }
.ac-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nk-sp-3); }
.ac-compare-bar { position: sticky; inset-block-end: var(--nk-sp-4); z-index: var(--z-sticky); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nk-sp-3); padding: var(--nk-sp-3) var(--nk-sp-4); border-radius: 18px; background: var(--kh-indigo); color: #fff; box-shadow: var(--kh-sh-lg); }
.ac-compare-bar[hidden] { display: none; }
.ac-compare-bar b { font-weight: 500; }
.ac-empty { display: grid; justify-items: center; gap: var(--nk-sp-2); padding: var(--nk-sp-12) var(--nk-sp-4); text-align: center; border: 1px dashed var(--kh-line); border-radius: 20px; }
.ac-empty[hidden] { display: none; }
.ac-empty .nk-icon { --nk-icon-box: 56px; --nk-icon-size: 26px; border-radius: 50%; background: var(--kh-sky); color: var(--kh-blue); }
.kh-main .ac-empty h3 { margin: var(--nk-sp-2) 0 0; font-size: 20px; font-weight: 600; color: var(--kh-indigo); }
.kh-main .ac-empty p { margin: 0; font-size: 15px; color: var(--kh-text-2); max-width: 420px; }
.ac-empty .kh-btn { margin-block-start: var(--nk-sp-2); }
.ac-cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-cmp th, .ac-cmp td { padding: 10px 12px; border-block-end: 1px solid var(--kh-line); text-align: start; vertical-align: top; }
.ac-cmp th { font-weight: 500; color: var(--kh-text-2); width: 140px; }
.ac-cmp td { color: var(--kh-text); }
.ac-cmp td b { color: var(--kh-indigo); }
.ac-cmp .is-best { color: var(--kh-success); font-weight: 600; }
.ac-rec-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nk-sp-2) var(--nk-sp-3); }
.ac-rec-pick .kh-field__label { margin: 0; }
.ac-rec-pick .kh-tag[aria-pressed="true"] { background: var(--kh-indigo); }
.ac-rec-pick .kh-tag b { margin-inline-start: 6px; font-weight: 600; opacity: .75; }

/* ---------- object card — ONE component for every section (BRAND §13): .ac-oc ---------- */
.ac-oc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kh-mist); border-radius: 20px; overflow: hidden; box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease); }
.ac-oc:hover { transform: translateY(-3px); box-shadow: var(--kh-sh-md); }
.ac-oc.is-selected { box-shadow: 0 0 0 2px var(--kh-blue), var(--kh-sh-md); }
.ac-oc__media { position: relative; aspect-ratio: 16 / 10; background: var(--kh-indigo); overflow: hidden; }
.ac-oc__media .kh-ph { position: absolute; inset: 0; }
/* same overlay as the live catalogue cards (.ShopTPL-Gal): indigo fading in from the bottom — dense enough for light photos */
.ac-oc__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(47,41,99,.08) 50%, rgba(47,41,99,.86) 100%); }
.ac-oc__heart { position: absolute; inset-inline-end: var(--nk-sp-3); inset-block-start: var(--nk-sp-3); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--kh-indigo); cursor: pointer; box-shadow: var(--kh-sh-sm); transition: transform var(--kh-dur-fast) var(--kh-ease), color var(--kh-dur-fast), background var(--kh-dur-fast); }
.ac-oc__heart svg { width: 18px; height: 18px; }
.ac-oc__heart:hover { transform: scale(1.08); color: var(--kh-blue); }
.ac-oc__heart.is-on { background: var(--kh-blue); color: #fff; }
.ac-oc__logo { position: absolute; inset-inline-end: var(--nk-sp-3); inset-block-end: var(--nk-sp-3); z-index: 2; display: flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 10px; background: #fff; box-shadow: var(--kh-sh-sm); }
.ac-oc__logo img { display: block; height: 26px; width: auto; max-width: 96px; }
.ac-oc__cap { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; padding: var(--nk-sp-8) 120px var(--nk-sp-4) var(--nk-sp-4); color: #fff; }
.kh-main .ac-oc__title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 600; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-main .ac-oc__title a { color: #fff; }
.kh-main .ac-oc__title a:hover { color: #cfe4fb; }
.kh-main .ac-oc__city { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.85); }
.ac-oc__city .nk-icon { --nk-icon-box: 16px; --nk-icon-size: 14px; color: #fff; }
.ac-oc__body { display: grid; gap: var(--nk-sp-2); padding: var(--nk-sp-3) var(--nk-sp-4) var(--nk-sp-4); flex: 1; align-content: start; }
.ac-oc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nk-sp-2); }
.kh-main .ac-card__price { margin: 0; font-size: 17px; font-weight: 600; color: var(--kh-indigo); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ac-card__price small { font-size: 12px; font-weight: 500; }
.ac-oc__noprice { font-size: 14px; font-weight: 500; color: var(--kh-text-2); }
.ac-card__score { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--kh-r-pill); background: var(--kh-blue); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kh-main .ac-oc__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ac-oc__facts li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--kh-r-pill); background: var(--kh-bg); color: var(--kh-text-2); font-size: 12px; font-weight: 500; }
.kh-main .ac-oc__why { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ac-oc__why li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: start; font-size: 13px; color: var(--kh-text-2); }
.ac-oc__why .nk-icon { --nk-icon-box: 18px; --nk-icon-size: 14px; color: var(--kh-success); }
.ac-oc__foot { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: var(--nk-sp-2); border-block-start: 1px solid var(--kh-line); }
.ac-oc__foot .ac-dev { margin-inline-end: auto; min-width: 0; flex: 1 1 auto; font-size: 12px; color: var(--kh-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-oc__foot .ac-ibtn { width: 32px; height: 32px; flex: none; }
.ac-oc__foot .ac-ibtn svg { width: 17px; height: 17px; }
.ac-oc__cmp { gap: 5px; font-size: 12px; align-items: center; margin-inline-end: 2px; flex: none; white-space: nowrap; }
.ac-oc__cmp span { width: 18px; height: 18px; margin: 0; }
.ac-oc__cmp span::after { inset-block-start: 2px; inset-inline-start: 5px; }
.kh-main a.ac-ibtn { color: var(--kh-indigo); }
.kh-main a.ac-ibtn--go { background: var(--kh-indigo); border-color: var(--kh-indigo); color: #fff; }
.kh-main a.ac-ibtn--go:hover { background: var(--kh-blue); border-color: var(--kh-blue); color: #fff; }
.ac-ibtn--sm { width: 30px; height: 30px; }
.ac-ibtn--sm svg { width: 15px; height: 15px; }
.ac-card__note { margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--kh-sky-050); font-size: 12px; line-height: 1.5; color: var(--kh-text-2); }
/* compact variant for the map popup */
.ac-oc--pop { box-shadow: none; border: 0; }
.ac-oc--pop:hover { transform: none; }
.ac-oc--pop .ac-oc__media { aspect-ratio: 16 / 7; }
.ac-oc--pop .ac-oc__cap { padding-block-start: var(--nk-sp-6); }

/* ---------- map — full-size, floating glass panels over it ---------- */
.ac-panel--map { gap: 0; }
.ac-map { position: relative; height: 560px; border-radius: 20px; overflow: hidden; border: 1px solid var(--kh-mist); background: #eef2fa; isolation: isolate; }
.ac-map--full { height: calc(100vh - var(--header-height, 62px) - 236px); min-height: 560px; }
.ac-map__gm { position: absolute; inset: 0; z-index: var(--z-content); }
.ac-map__schem { position: absolute; inset: 0; z-index: var(--z-content); background: linear-gradient(135deg, #e9eef7, #dbe4f2); overflow: hidden; }
.ac-map__schem[hidden] { display: none; }
.ac-map__zoom { position: absolute; inset: 0; transform: scale(var(--mz, 1)); transform-origin: 50% 50%; transition: transform var(--kh-dur-base) var(--kh-ease); }
.ac-map__schem svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-map__schem .land { fill: #f2f5fb; stroke: #c9d2e6; stroke-width: 1.2; }
.ac-map__city { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--mz, 1))); font-size: 11px; font-weight: 500; color: #66708f; text-shadow: 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; pointer-events: none; }
.ac-map.is-adding .ac-map__schem { cursor: crosshair; }
/* glass */
.ac-glass { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 6px 20px rgba(47,41,99,.12); border-radius: 16px; }
.ac-map__ui { position: absolute; z-index: var(--z-sticky); display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--nk-sp-2); }
.ac-map__ui--tl { inset-inline-start: var(--nk-sp-4); inset-block-start: var(--nk-sp-4); }
.ac-map__ui--tr { inset-inline-end: var(--nk-sp-4); inset-block-start: var(--nk-sp-4); justify-content: flex-end; }
.ac-map__ui--br { inset-inline-end: var(--nk-sp-4); inset-block-end: var(--nk-sp-4); flex-direction: column; align-items: flex-end; }
.ac-layers { display: flex; gap: 2px; padding: 4px; }
.ac-layers__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border: 0; border-radius: 12px; background: transparent; color: var(--kh-indigo); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }
.ac-layers__btn .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 16px; color: var(--kh-blue); }
.ac-layers__btn:hover { background: rgba(255,255,255,.9); }
.ac-layers__btn[aria-pressed="true"] { background: var(--kh-indigo); color: #fff; }
.ac-layers__btn[aria-pressed="true"] .nk-icon { color: #fff; }
.ac-map__btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; color: var(--kh-indigo); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }
.ac-map__btn .nk-icon { --nk-icon-box: 22px; --nk-icon-size: 18px; color: var(--kh-blue); }
.ac-map__btn:hover, .ac-map__btn[aria-expanded="true"] { background: #fff; }
.ac-map__btn--accent, .ac-map__btn[aria-pressed="true"] { background: var(--kh-blue); border-color: var(--kh-blue); color: #fff; }
.ac-map__btn--accent .nk-icon, .ac-map__btn[aria-pressed="true"] .nk-icon { color: #fff; }
.ac-map__btn--accent:hover { background: #1f7fe8; }
.ac-map__btn--ic { width: 44px; padding: 0; justify-content: center; }
.ac-map__btn .ac-nav__badge { min-width: 18px; height: 18px; font-size: 11px; padding-inline: 5px; }
.ac-map__zoomctl { display: grid; }
.ac-map__zoomctl button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 0; background: transparent; color: var(--kh-indigo); cursor: pointer; }
.ac-map__zoomctl button + button { border-block-start: 1px solid rgba(47,41,99,.1); }
.ac-map__zoomctl button:hover { background: #fff; }
.ac-map__zoomctl .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 18px; }
/* panels (filters, pins) — collapsible, inside the map */
.ac-map__panel { position: absolute; z-index: var(--z-pop); display: flex; flex-direction: column; max-height: calc(100% - var(--nk-sp-8)); width: 340px; border-radius: 18px; }
.ac-map__panel[hidden] { display: none; }
.ac-map__panel--filters { inset-inline-end: var(--nk-sp-4); inset-block-start: calc(var(--nk-sp-4) + 52px); }
.ac-map__panel--pins { inset-inline-end: calc(var(--nk-sp-4) + 52px); inset-block-end: var(--nk-sp-4); }
.ac-map__panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 16px; border-block-end: 1px solid rgba(47,41,99,.1); font-size: 15px; font-weight: 600; color: var(--kh-indigo); }
.ac-map__panel-b { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.ac-map__panel-f { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 12px; border-block-start: 1px solid rgba(47,41,99,.1); }
.ac-map__panel .ac-field-pills { margin-block-end: var(--nk-sp-3); }
.ac-map__panel .ac-pills .kh-tag { height: 30px; font-size: 12px; padding-inline: 12px; }
.ac-map__panel .kh-input { height: 40px; font-size: 14px; }
/* popup card over the map */
.ac-map__pop { position: absolute; z-index: var(--z-pop); inset-inline-start: var(--nk-sp-4); inset-block-end: var(--nk-sp-4); width: 320px; max-width: calc(100% - var(--nk-sp-8)); border-radius: 20px; background: #fff; box-shadow: var(--kh-sh-lg); opacity: 0; transform: translateY(10px); transition: opacity var(--kh-dur-base) var(--kh-ease-out), transform var(--kh-dur-base) var(--kh-ease-out); }
.ac-map__pop[hidden] { display: none; }
.ac-map__pop.is-on { opacity: 1; transform: none; }
.ac-map__pop-x { position: absolute; z-index: 3; inset-inline-end: -10px; inset-block-start: -10px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--kh-indigo); color: #fff; cursor: pointer; box-shadow: var(--kh-sh-md); }
.ac-map__pop-x svg { width: 16px; height: 16px; }
.ac-map__pop-x:hover { background: var(--kh-blue); }
.ac-map__pop .ac-oc__heart { inset-inline-end: 44px; }
.ac-map__hint { position: absolute; inset-inline: 0; inset-block-end: var(--nk-sp-4); z-index: var(--z-sticky); display: flex; justify-content: center; pointer-events: none; }
.ac-map__hint[hidden] { display: none; }
.ac-map__hint span { padding: 8px 14px; border-radius: var(--kh-r-pill); background: var(--kh-indigo); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--kh-sh-md); }
.ac-map__note { position: absolute; inset-inline-start: var(--nk-sp-4); inset-block-end: var(--nk-sp-4); z-index: var(--z-sticky); max-width: 280px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; line-height: 1.5; color: var(--kh-text-2); }
.ac-map__note[hidden] { display: none; }
.ac-map__note code { padding: 1px 5px; border-radius: 5px; background: var(--kh-bg); border: 1px solid var(--kh-line); color: var(--kh-indigo); font-size: 11px; }
.ac-map__pop:not([hidden]) ~ .ac-map__note { display: none; }
/* markers (counter-scaled so they keep their size while the schematic zooms) */
.ac-marker { position: absolute; transform: translate(-50%, -100%) scale(calc(1 / var(--mz, 1))); transform-origin: 50% 100%; display: grid; justify-items: center; cursor: pointer; z-index: 2; border: 0; background: transparent; padding: 0; font: inherit; }
.ac-marker__pin { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--kh-blue)); color: #fff; box-shadow: 0 4px 10px rgba(47,41,99,.25); border: 2px solid #fff; }
.ac-marker__pin svg { width: 14px; height: 14px; transform: rotate(45deg); }
.ac-marker__pin--fav { border-radius: 50%; transform: none; width: 26px; height: 26px; background: var(--kh-indigo); }
.ac-marker__pin--fav svg { transform: none; }
.ac-marker__pin--rec { border-radius: 50%; transform: none; width: 22px; height: 22px; background: #fff; color: var(--kh-blue); border-color: var(--kh-blue); }
.ac-marker__pin--rec svg { transform: none; width: 12px; height: 12px; }
.ac-marker__label { margin-block-start: 4px; padding: 2px 8px; border-radius: var(--kh-r-pill); background: rgba(255,255,255,.95); color: var(--kh-indigo); font-size: 11px; font-weight: 500; white-space: nowrap; box-shadow: var(--kh-sh-sm); }
.ac-marker.is-active .ac-marker__pin { outline: 3px solid rgba(40,142,255,.35); }
.ac-marker:focus-visible { outline: none; }
.ac-marker:focus-visible .ac-marker__pin { outline: 3px solid var(--kh-blue); }
.ac-marker--me { transform: translate(-50%, -50%) scale(calc(1 / var(--mz, 1))); transform-origin: 50% 50%; cursor: default; }
.ac-marker--me i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--kh-blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(40,142,255,.25); }
/* pins list + distances inside the panel */
.ac-pins { display: grid; gap: 6px; }
.ac-pin { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: center; padding: 8px 8px 8px 10px; border-radius: 14px; border: 1px solid var(--kh-line); background: #fff; }
.ac-pin.is-active { border-color: var(--kh-blue); background: var(--kh-sky-050); }
.ac-pin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.ac-pin__name { display: block; font-size: 14px; font-weight: 500; color: var(--kh-indigo); cursor: pointer; border: 0; background: none; padding: 0; font-family: inherit; text-align: start; }
.ac-pin__type { display: block; font-size: 12px; color: var(--kh-text-3); }
.ac-pin__acts { display: flex; gap: 4px; }
.ac-pin__acts .ac-ibtn { width: 30px; height: 30px; }
.ac-pin__acts .ac-ibtn svg { width: 15px; height: 15px; }
.ac-dist { display: grid; gap: 6px; margin-block-start: var(--nk-sp-4); }
.ac-dist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: center; padding: 8px 0; border-block-start: 1px solid var(--kh-line); font-size: 13px; color: var(--kh-text-2); }
.ac-dist li:first-child { border: 0; padding-block-start: 0; }
.ac-dist li.ac-dist__from { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--kh-text-3); }
.ac-dist__from b { color: var(--kh-indigo); }
.ac-dist b { display: block; font-weight: 500; color: var(--kh-indigo); font-size: 14px; }
.ac-dist span { white-space: nowrap; font-weight: 500; color: var(--kh-blue); }
.ac-dist__hint { margin: var(--nk-sp-3) 0 0; font-size: 12px; color: var(--kh-text-3); }

/* ---------- settings: tabs + panels ---------- */
.ac-tabs--accent .ac-tab { text-decoration: none; }
.kh-main a.ac-tab { color: var(--kh-text-2); }
.kh-main a.ac-tab:hover { color: var(--kh-indigo); }
.kh-main a.ac-tab[aria-selected="true"], .ac-tabs--accent .ac-tab[aria-selected="true"] { background: var(--kh-blue); color: #fff; }
.ac-tabpanel { display: grid; gap: var(--nk-sp-6); animation: ac-tab-in var(--kh-dur-base) var(--kh-ease-out); }
.ac-tabpanel[hidden] { display: none; }
@keyframes ac-tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ac-soon { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-inline-start: 6px; border-radius: var(--kh-r-pill); background: var(--kh-mist); color: var(--kh-text-2); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
/* ---------- settings ---------- */
.ac-set { display: grid; gap: var(--nk-grid); }
.ac-check-list { display: grid; gap: var(--nk-sp-3); }
.ac-danger { border-color: #f5c6c8; }
.kh-main .ac-danger .ac-box__title { color: #a12a2e; }
.ac-danger .ac-box__title .nk-icon { background: #fdecec; color: #a12a2e; }
.ac-avatar-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--nk-sp-5); align-items: center; }
.ac-avatar--lg { width: 88px; height: 88px; font-size: 28px; }
.ac-avatar-row .ac-actions { margin-block-start: var(--nk-sp-3); }
.ac-avatar-row input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kh-main .ac-avatar-row p { margin: 0; font-size: 13px; color: var(--kh-text-2); }
.ac-pw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--nk-sp-4); }
.ac-pw-hint { margin: 0 0 var(--nk-sp-4); font-size: 13px; color: var(--kh-text-2); }
.ac-pw-hint b { color: var(--kh-indigo); font-weight: 500; }
.kh-main .ac-form-msg { margin: 0 0 var(--nk-sp-3); font-size: 13px; color: var(--kh-danger); }
.ac-form-msg[hidden] { display: none; }

/* ---------- modal + toast ---------- */
.ac-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--nk-sp-4); }
.ac-modal[hidden] { display: none !important; }
.ac-modal__bg { position: absolute; inset: 0; background: rgba(2,3,4,.55); opacity: 0; transition: opacity var(--kh-dur-base) var(--kh-ease); }
.ac-modal__box { position: relative; width: min(640px, 100%); max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; background: #fff; border-radius: var(--kh-r-card); box-shadow: var(--kh-sh-lg); opacity: 0; transform: translateY(16px) scale(.985); transition: opacity var(--kh-dur-base) var(--kh-ease-out), transform .4s var(--kh-ease-out); }
.ac-modal.is-open .ac-modal__bg { opacity: 1; }
.ac-modal.is-open .ac-modal__box { opacity: 1; transform: none; }
.ac-modal--wide .ac-modal__box { width: min(880px, 100%); }
.ac-modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--nk-sp-3); padding: var(--nk-sp-5) var(--nk-sp-6); border-block-end: 1px solid var(--kh-line); }
.kh-main .ac-modal__title, .ac-modal__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--kh-indigo); }
.ac-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kh-mist); color: var(--kh-indigo); cursor: pointer; }
.ac-modal__close svg { width: 18px; height: 18px; }
.ac-modal__close:hover { background: var(--kh-indigo); color: #fff; }
.ac-modal__body { flex: 1; overflow-y: auto; padding: var(--nk-sp-5) var(--nk-sp-6); overscroll-behavior: contain; }
.ac-modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--nk-sp-2); padding: var(--nk-sp-4) var(--nk-sp-6); border-block-start: 1px solid var(--kh-line); }
.ac-modal__foot .ac-spacer { margin-inline-end: auto; }
.ac-toast { position: fixed; inset-inline: 0; inset-block-end: var(--nk-sp-6); z-index: var(--z-toast); display: flex; justify-content: center; pointer-events: none; }
.ac-toast span { padding: 12px 18px; border-radius: var(--kh-r-pill); background: var(--kh-indigo); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--kh-sh-lg); opacity: 0; transform: translateY(12px); transition: opacity var(--kh-dur-base), transform var(--kh-dur-base) var(--kh-ease-out); }
.ac-toast.is-on span { opacity: 1; transform: none; }

/* ---------- mobile bottom nav ---------- */
.ac-bottom { display: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ac-stat, .ac-oc, .ac-oc__heart, .ac-map__zoom, .ac-map__pop, .ac-mp, .ac-switch__track::after, .ac-modal__bg, .ac-modal__box, .ac-toast span, .ac-side, .ac-nav__label, .ac-nav__brand, .ac-nav__toggle svg, .ac-menu, .ac-me__menu, .ac-me__meta, .ac-me__gear, .ac-tip::after, .ac-tip::before { transition: none; }
  .ac-tabpanel { animation: none; }
  .ac-me__btn:hover .ac-me__gear { transform: none; }
  .ac-stat:hover, .ac-oc:hover, .ac-oc__heart:hover { transform: none; }
  .ac-map__pop { transform: none; }
  .ac-modal__box, .ac-menu, .ac-me__menu { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-map--full { min-height: 520px; }
}
@media (max-width: 900px) {
  .ac-layout { grid-template-columns: minmax(0, 1fr); gap: var(--nk-sp-4); padding-block: var(--nk-sp-4) calc(var(--nk-section) + 72px); }
  /* the panel folds to just the profile card (a compact row); sections live in the bottom tab bar */
  .ac-side, .ac-side.is-collapsed { position: static; width: auto; }
  .ac-nav { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .ac-nav__head, .ac-nav__item { display: none; }
  .ac-me { margin: 0; padding: 0; border: 0; }
  .ac-me__btn { padding: 4px 10px 4px 4px; border-radius: var(--kh-r-pill); background: #fff; border: 1px solid var(--kh-mist); box-shadow: var(--kh-sh-sm); }
  .ac-me__menu { inset-inline: 0; }
  .ac-band { padding: var(--nk-sp-5); }
  .ac-grid-2, .ac-mp-grid { grid-template-columns: 1fr; }
  .ac-pw-row { grid-template-columns: 1fr; }
  /* bottom tab bar */
  .ac-bottom { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px var(--nk-sp-2) calc(6px + env(safe-area-inset-bottom)); background: #fff; border-block-start: 1px solid var(--kh-line); box-shadow: 0 -6px 20px rgba(47,41,99,.08); }
  .ac-bottom__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--kh-text-2); font: inherit; font-size: 9px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
  .kh-main a.ac-bottom__item { color: var(--kh-text-2); }
  .ac-bottom__item .nk-icon { --nk-icon-box: 26px; --nk-icon-size: 20px; }
  .kh-main a.ac-bottom__item[aria-current="page"], .ac-bottom__item[aria-current="page"] { color: var(--kh-blue); }
  .ac-bottom__item .ac-nav__badge { position: absolute; inset-block-start: 0; inset-inline-end: calc(50% - 20px); min-width: 16px; height: 16px; font-size: 10px; padding-inline: 4px; }
}
@media (max-width: 767px) {
  .kh-main .ac-h1 { font-size: 24px; }
  .ac-band { padding: var(--nk-sp-4); }
  .ac-tabs--accent { margin-inline: calc(-1 * var(--nk-gutter)); padding-inline: var(--nk-gutter); }
  .ac-band__title .ac-actions { width: 100%; }
  .ac-band__title .ac-actions .kh-btn { flex: 1; }
  .ac-cards, .ac-stats { grid-template-columns: 1fr; }
  .ac-oc__cap { padding-inline-end: var(--nk-sp-4); }
  .ac-oc__logo { inset-block-end: auto; inset-block-start: 56px; }
  .ac-form-row { grid-template-columns: 1fr; }
  /* map: full screen height, panels become bottom sheets */
  .ac-map--full { height: calc(100dvh - var(--header-height, 62px) - 88px); min-height: 480px; border-radius: 16px; }
  .ac-map__note { display: none; }
  .ac-map__ui--tl { inset-inline-end: var(--nk-sp-3); inset-inline-start: var(--nk-sp-3); inset-block-start: var(--nk-sp-3); }
  .ac-layers { width: 100%; }
  .ac-layers__btn { flex: 1; justify-content: center; padding-inline: 6px; font-size: 12px; white-space: nowrap; }
  .ac-layers__btn .ac-layers__lbl { display: none; }
  .ac-layers__btn[aria-pressed="true"] .ac-layers__lbl { display: inline; }
  /* the profile card row never collapses on mobile, even when the page starts with a collapsed panel (map) */
  .is-collapsed .ac-me__btn { grid-template-columns: auto minmax(0, 1fr) auto; padding: 4px 10px 4px 4px; }
  .is-collapsed .ac-me__meta, .is-collapsed .ac-me__gear { position: static; opacity: 1; pointer-events: auto; }
  .ac-map__ui--tr { inset-block-start: calc(var(--nk-sp-3) + 52px); inset-inline-end: var(--nk-sp-3); }
  .ac-map__ui--br { inset-inline-end: var(--nk-sp-3); inset-block-end: var(--nk-sp-3); }
  .ac-map__panel { position: fixed; inset-inline: 0; inset-block-start: auto; inset-block-end: 72px; width: auto; max-height: 70dvh; border-radius: 20px 20px 0 0; }
  .ac-map__pop { inset-inline: var(--nk-sp-3); inset-block-end: var(--nk-sp-3); width: auto; max-width: none; }
  .ac-mp__foot { grid-template-columns: 1fr; }
  .ac-avatar-row { grid-template-columns: 1fr; justify-items: start; }
  .ac-modal { padding: 0; align-items: end; }
  .ac-modal__box { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .ac-modal__head, .ac-modal__body, .ac-modal__foot { padding-inline: var(--nk-gutter); }
  .ac-modal__foot .kh-btn { flex: 1; }
  .ac-cmp { min-width: 520px; }
}

/* ============================================================ exclusions, currency line, criteria row, channels (Oct 2026) */
/* include / exclude segmented toggle in the matching form */
.ac-seg { display: inline-flex; padding: 4px; margin-block-end: var(--nk-sp-3); border-radius: var(--kh-r-pill); background: var(--kh-mist); }
.ac-seg__b { height: 36px; padding: 0 16px; border: 0; border-radius: var(--kh-r-pill); background: transparent; color: var(--kh-indigo); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ac-seg__b[aria-pressed="true"] { background: #fff; box-shadow: var(--kh-sh-sm); }
.ac-seg__b:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
/* exclusion chips: muted, with a minus — never confused with the blue include chips */
.ac-chips__lbl { align-self: center; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--kh-text-3); margin-inline-start: 4px; }
.ac-chip--excl { background: var(--kh-mist); color: var(--kh-text-2); text-decoration: line-through; text-decoration-color: rgba(88,88,87,.5); }
.ac-chip--excl .nk-icon { --nk-icon-box: 14px; --nk-icon-size: 12px; color: var(--kh-text-2); }
.kh-tag--excl, .kh-main .kh-tag--excl[aria-pressed="true"] { background: var(--kh-mist); color: var(--kh-text-2); text-decoration: line-through; text-decoration-color: rgba(88,88,87,.5); display: inline-flex; align-items: center; gap: 4px; }
.kh-tag--excl svg { width: 12px; height: 12px; }
.ac-excl .ac-dd__btn { border-style: dashed; }
/* approximate price in the user's currency: helper line under the original price (BRAND: original is primary) */
.ac-oc__row .ac-card__price { flex: 1 1 150px; min-width: 0; }
.ac-oc__row .ac-card__score { flex: none; }
.ac-approx { display: block; margin-block-start: 2px; font-size: 12px; font-weight: 400; color: var(--kh-text-3); }
.ac-approx .ac-tip { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; color: var(--kh-text-2); cursor: help; border-radius: 4px; }
.ac-approx .ac-tip svg, .ac-tip--i svg { width: 14px; height: 14px; color: var(--kh-blue); }
.ac-tip--i { display: inline-flex; align-items: center; vertical-align: middle; cursor: help; }
.ac-tip--i::after { white-space: normal; width: max-content; max-width: 260px; line-height: 1.35; }
.ac-tip--i:hover::after, .ac-tip--i:hover::before, .ac-tip--i:focus-visible::after, .ac-tip--i:focus-visible::before { opacity: 1; transition-delay: .15s; transform: translate(0, -50%); }
.ac-tip--i.ac-tip--b:hover::after, .ac-tip--i.ac-tip--b:hover::before, .ac-tip--i.ac-tip--b:focus-visible::after, .ac-tip--i.ac-tip--b:focus-visible::before { transform: translate(-50%, 0); }
.ac-tip--i:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
/* recommendations: criteria row + sort */
.ac-crit { margin-block-start: var(--nk-sp-3); }
.ac-crit__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nk-sp-2) var(--nk-sp-4); }
.ac-crit__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--kh-text-2); cursor: pointer; border-radius: 8px; }
.ac-crit__btn b { font-weight: 600; color: var(--kh-indigo); }
.ac-crit__btn .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 16px; color: var(--kh-blue); transition: transform var(--kh-dur-base) var(--kh-ease); }
.ac-crit__btn[aria-expanded="true"] .nk-icon { transform: rotate(180deg); }
.ac-crit__btn:hover b { color: var(--kh-blue); }
.ac-crit__btn:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 2px; }
.ac-crit__panel { margin-block-start: var(--nk-sp-3); padding-block-start: var(--nk-sp-3); border-block-start: 1px solid rgba(47,41,99,.12); }
.ac-crit__panel .ac-mp-hint a { color: var(--kh-blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ac-sort { display: inline-flex; align-items: center; gap: 8px; }
.ac-sort .nk-icon { --nk-icon-box: 20px; --nk-icon-size: 16px; color: var(--kh-indigo); }
.ac-sort__lbl { font-size: 13px; font-weight: 500; color: var(--kh-text-2); }
.ac-sort .kh-select { height: 36px; padding-block: 0; font-size: 14px; min-width: 180px; }
/* Enquire: hover + focus states (colour stays white on the accent button) */
.kh-main .ac-oc__foot a.kh-btn--accent { color: #fff; transition: background var(--kh-dur-fast), transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast); }
.kh-main .ac-oc__foot a.kh-btn--accent:hover { background: var(--kh-indigo); color: #fff; transform: translateY(-2px); box-shadow: var(--kh-glow); cursor: pointer; }
.kh-main .ac-oc__foot a.kh-btn--accent:focus-visible { outline: 2px solid var(--kh-indigo); outline-offset: 3px; color: #fff; }
/* toast with an action (Undo) */
.ac-toast { display: flex; align-items: center; gap: 14px; }
.ac-toast__act { height: 30px; padding: 0 12px; border: 0; border-radius: var(--kh-r-pill); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ac-toast__act:hover { background: var(--kh-blue); }
.ac-toast__act[hidden] { display: none; }
/* notification channels */
.ac-chs { display: grid; gap: var(--nk-sp-3); }
.ac-ch { padding: var(--nk-sp-4); border: 1px solid var(--kh-mist); border-radius: 16px; background: var(--kh-bg); }
.ac-ch--soon { opacity: .75; }
.ac-ch__head { display: flex; align-items: center; gap: var(--nk-sp-3); }
.ac-ch__head > div { flex: 1; min-width: 0; }
.ac-ch__head > div > b { display: block; font-size: 15px; font-weight: 600; color: var(--kh-indigo); }
.ac-ch__head > div > span { display: block; font-size: 13px; color: var(--kh-text-2); }
.ac-ch__head > div > span b { font-weight: 600; color: var(--kh-indigo); }
.ac-ch__ic { --nk-icon-box: 40px; --nk-icon-size: 22px; flex: none; border-radius: 12px; background: #fff; color: var(--kh-blue); box-shadow: var(--kh-sh-sm); }
.ac-ch__sw { flex: none; }
.ac-ch__acts { display: flex; gap: 8px; flex: none; }
.ac-ch__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--nk-sp-4); margin-block-start: var(--nk-sp-3); padding-block-start: var(--nk-sp-3); border-block-start: 1px solid var(--kh-mist); }
.ac-ch__col { display: grid; gap: 6px; align-content: start; }
.ac-ch__col .kh-field__label { margin: 0 0 2px; }
.ac-ch .kh-check--sm { font-size: 13px; }
.ac-ch .kh-check input:disabled + span { opacity: .5; }
.ac-ch .ac-form-row { margin-block-start: var(--nk-sp-3); }
.ac-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-quiet { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px; gap: var(--nk-sp-3); align-items: end; }
.ac-quiet--tz { grid-template-columns: minmax(0, 1fr) 130px 130px 200px; }
@media (max-width: 767px) { .ac-ch__body { grid-template-columns: 1fr; } .ac-quiet { grid-template-columns: 1fr 1fr; } .ac-quiet .ac-switch { grid-column: 1 / -1; } .ac-crit__row { flex-direction: column; align-items: stretch; } .ac-sort .kh-select { flex: 1; } }

/* ============================================================ notifications: channel cards, matrix, history (Oct 2026) */
.ac-chs--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-sp-4); }
.ac-ch { display: grid; gap: var(--nk-sp-3); align-content: start; }
.ac-ch__head { flex-wrap: wrap; }
.ac-ch__ic svg { width: var(--nk-icon-size); height: var(--nk-icon-size); }
.ac-ch__acts { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.ac-ch__acts .kh-btn svg, .ac-ch__head .kh-btn svg { width: 16px; height: 16px; flex: none; }
.ac-ch__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nk-sp-2); }
.ac-ch__extra { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--kh-indigo); }
.ac-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--kh-text-2); }
.ac-status svg { width: 14px; height: 14px; color: var(--kh-blue); }
.ac-status--on { color: #1f7a3d; } .ac-status--on svg { color: #1f7a3d; }
.ac-status--wait { color: var(--kh-blue); }
.ac-status--err { color: var(--kh-danger, #c0392b); }
.ac-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--kh-sky); border-block-start-color: var(--kh-blue); animation: ac-spin 1s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
.kh-main .ac-link, .ac-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--kh-blue); cursor: pointer; text-decoration: none; }
.kh-main .ac-link:hover, .ac-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ac-link svg { width: 16px; height: 16px; flex: none; }
.ac-link--lg { font-size: 15px; }
.ac-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--kh-text-2); cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); } /* icon button, 16px glyph (BRAND §14) */
.ac-ib svg { width: 16px; height: 16px; }
.ac-ib:hover, .ac-ib:focus-visible { background: var(--kh-sky); color: var(--kh-indigo); outline: none; }
.ac-actions--split { justify-content: space-between; align-items: center; }
.ac-actions .kh-btn--accent { color: #fff; }
.ac-actions .nk-icon--key svg { width: 22px; height: 12px; }
/* telegram: QR + link */
.ac-tg { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--nk-sp-4); align-items: start; padding: var(--nk-sp-3); border-radius: 14px; background: #fff; border: 1px solid var(--kh-mist); }
.ac-tg__qr { padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--kh-mist); }
.ac-qr { display: block; width: 100%; height: auto; }
.ac-tg__txt > b { display: block; font-size: 15px; color: var(--kh-indigo); }
.kh-main .ac-tg__txt p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--kh-text-2); }
.kh-main .ac-tg__link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 10px; padding: 6px 10px; border-radius: 8px; background: var(--kh-sky-050); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--kh-indigo); word-break: break-all; }
.ac-tg__link svg { width: 14px; height: 14px; flex: none; color: var(--kh-blue); }
/* whatsapp steps */
.ac-wa { display: grid; gap: var(--nk-sp-3); }
.ac-wa__phone { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--nk-sp-3); }
.ac-wa .kh-field { margin: 0; }
.ac-code { max-width: 180px; letter-spacing: .3em; font-size: 20px; text-align: center; }
/* matrix */
.ac-mx { display: grid; gap: 4px; }
.ac-mx__row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) 150px; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.ac-mx__row:nth-child(even) { background: var(--kh-bg); }
.ac-mx__row--head { background: none; padding-block: 0 6px; }
.ac-mx__row--head [role="columnheader"] { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kh-text-3); }
.ac-mx__ch { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ac-mx__ch .nk-icon { --nk-icon-box: 18px; --nk-icon-size: 16px; }
.ac-mx__ch small { width: 100%; font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--kh-text-3); }
.ac-mx__ev b { display: block; font-size: 14px; font-weight: 500; color: var(--kh-indigo); }
.ac-mx__ev small { display: block; font-size: 12px; color: var(--kh-text-3); line-height: 1.4; }
.ac-mx__cell { display: flex; justify-content: center; }
.ac-mx__cell .kh-check--box { grid-template-columns: auto; gap: 0; }
.ac-mx__cell .kh-check--box span { margin: 0; }
.ac-mx__cell .kh-check.is-locked { cursor: not-allowed; position: relative; }
.ac-mx__cell .kh-check.is-locked input:disabled + span { opacity: .55; }
.ac-mx__lock { position: absolute; inset-block-start: -6px; inset-inline-end: -8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--kh-indigo); color: #fff; }
.ac-mx__lock svg { width: 10px; height: 10px; }
.kh-main .ac-mx__hint, .ac-mx__hint { font-size: 11px; font-weight: 500; color: var(--kh-text-3); text-decoration: underline dotted; text-underline-offset: 3px; text-align: center; }
.ac-mx__hint:hover { color: var(--kh-blue); }
.ac-mx__freq .kh-select { height: 36px; font-size: 13px; padding-inline: 10px 28px; }
.ac-mx__row--mk { outline: 1px dashed var(--kh-mist); }
/* history page */
.ac-panel--nt { gap: var(--nk-sp-4); }
.ac-nt-bar { display: grid; gap: var(--nk-sp-3); padding: var(--nk-sp-4); }
.ac-tabs--count .ac-tab b { margin-inline-start: 2px; font-size: 12px; } .ac-tabs--count .ac-tab b:empty { display: none; }
.ac-nt-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--nk-sp-2); }
.ac-nt-q { position: relative; display: block; }
.ac-nt-q .nk-icon { position: absolute; inset-inline-start: 10px; inset-block-start: 50%; transform: translateY(-50%); --nk-icon-box: 20px; --nk-icon-size: 16px; color: var(--kh-text-3); pointer-events: none; }
.ac-nt-q .kh-input { padding-inline-start: 36px; }
.ac-nt-filters .kh-input, .ac-nt-filters .kh-select { height: 42px; font-size: 14px; }
.ac-nt-bulk { position: sticky; inset-block-start: calc(var(--header-height, 62px) + 8px); z-index: var(--z-sticky); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nk-sp-2); padding: 10px 14px; border-radius: 14px; background: var(--kh-indigo); color: #fff; box-shadow: var(--kh-sh-md); }
.ac-nt-bulk b { font-size: 14px; }
.ac-nt-bulk .ac-link { color: #fff; }
.ac-nt-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ac-nt__group { display: flex; align-items: center; gap: 6px; margin: var(--nk-sp-3) 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kh-text-3); }
.ac-nt__group svg { width: 14px; height: 14px; color: var(--kh-blue); }
.ac-nt__group:first-child { margin-block-start: 0; }
.ac-nt { position: relative; display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto; gap: var(--nk-sp-3); align-items: start; padding: 14px 16px 14px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--kh-mist); transition: box-shadow var(--kh-dur-fast), border-color var(--kh-dur-fast); }
.ac-nt:hover { box-shadow: var(--kh-sh-sm); }
.ac-nt.is-unread { background: var(--kh-sky-050); border-color: var(--kh-sky); }
.ac-nt.is-imp { border-inline-start: 4px solid var(--kh-blue); padding-inline-start: 11px; }
.ac-nt.is-sel { border-color: var(--kh-blue); box-shadow: 0 0 0 2px rgba(40,142,255,.18); }
.ac-nt__sel { grid-template-columns: auto; gap: 0; margin-block-start: 9px; }
.ac-nt__sel span { margin: 0; }
.ac-nt__ic { --nk-icon-box: 40px; --nk-icon-size: 20px; border-radius: 12px; background: var(--kh-sky); color: var(--kh-blue); }
.ac-nt__ic--security { background: var(--kh-indigo); color: #fff; } .ac-nt__ic--price { background: #e6f6ec; color: #1f7a3d; } .ac-nt__ic--newsletter { background: var(--kh-mist); color: var(--kh-indigo); }
.ac-nt__main { display: grid; gap: 4px; min-width: 0; }
.ac-nt__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--kh-text-3); }
.ac-nt__type { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ac-nt__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--kh-indigo); line-height: 1.35; }
.ac-nt__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kh-blue); }
.kh-main .ac-nt__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--kh-text-2); }
.ac-nt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 6px; }
.ac-nt__via { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--kh-text-3); }
.ac-nt__chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 5px; border-radius: var(--kh-r-pill); background: #fff; border: 1px solid var(--kh-mist); font-size: 12px; font-weight: 500; color: var(--kh-indigo); }
.ac-nt__chip .nk-icon { --nk-icon-box: 16px; --nk-icon-size: 14px; }
.kh-main .ac-nt__obj, .ac-nt__obj { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--kh-mist); color: var(--kh-indigo); text-decoration: none; font-size: 13px; }
.ac-nt__obj b { display: block; font-weight: 600; line-height: 1.2; } .ac-nt__obj small { display: block; font-size: 11px; color: var(--kh-text-3); }
.ac-nt__thumb { position: relative; width: 48px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--kh-indigo); flex: none; } /* same photo format as the cards (BRAND §13) */
.ac-nt__thumb .kh-ph { position: absolute; inset: 0; }
.ac-nt__acts { display: flex; gap: 2px; }
.ac-nt-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--nk-sp-3); }
.ac-nt-count { font-size: 13px; color: var(--kh-text-3); }
.ac-nt__empty { grid-column: 1 / -1; }
.ac-nt__empty .nk-icon { --nk-icon-box: 56px; --nk-icon-size: 28px; }
.ac-nl__meta { margin: 0 0 10px; font-size: 13px; color: var(--kh-text-3); }
.ac-nl { display: block; width: 100%; height: min(70vh, 640px); border: 1px solid var(--kh-mist); border-radius: 12px; background: #f3f4f8; }
@media (max-width: 1100px) { .ac-mx__row { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) 130px; } }
@media (max-width: 900px) {
  .ac-chs--grid { grid-template-columns: 1fr; }
  .ac-quiet--tz { grid-template-columns: 1fr 1fr; } .ac-quiet--tz .ac-switch, .ac-quiet--tz .kh-field:last-child { grid-column: 1 / -1; }
  .ac-nt-filters { grid-template-columns: 1fr 1fr; } .ac-nt-q { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* matrix → list of events with channel toggles inside */
  .ac-mx__row--head { display: none; }
  .ac-mx__row { grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px solid var(--kh-mist); background: #fff; }
  .ac-ch__head .kh-btn, .ac-ch__acts { flex-basis: 100%; } .ac-ch__acts .kh-btn { flex: 1; }
  .kh-main .ac-mx__hint, .ac-mx__hint { text-align: end; }
  .ac-mx__ev { grid-column: 1 / -1; }
  .ac-mx__cell { justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--kh-bg); font-size: 13px; color: var(--kh-indigo); }
  .ac-mx__cell::before { content: attr(data-lbl); font-weight: 500; }
  .ac-mx__freq { grid-column: 1 / -1; background: none; padding: 0; } .ac-mx__freq::before { content: none; } .ac-mx__freq .kh-select { width: 100%; }
  .ac-tg { grid-template-columns: 120px minmax(0, 1fr); }
  .ac-wa__phone { grid-template-columns: 1fr; }
  .ac-nt { grid-template-columns: auto 36px minmax(0, 1fr); }
  .ac-nt__acts { grid-column: 2 / -1; justify-content: flex-end; }
  .ac-nt__ic { --nk-icon-box: 36px; --nk-icon-size: 18px; }
  .ac-actions--split { flex-direction: column; align-items: stretch; } .ac-actions--split .kh-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ac-spin { animation: none; border-color: var(--kh-blue); } }


/* ============================================================
   MODX account integration — RTL mirrors the ORIGINAL layout only.
   No component dimensions / spacing / card styles are changed here.
   ============================================================ */
.ac-page .ac-main { direction: ltr; }
html[dir="rtl"] .ac-page .ac-main { direction: rtl; }

/* Keep data that must read LTR stable inside an RTL page. */
html[dir="rtl"] .ac-page .kh-num,
html[dir="rtl"] .ac-page .ac-card__price,
html[dir="rtl"] .ac-page .ac-delta,
html[dir="rtl"] .ac-page [data-js="hd-email"],
html[dir="rtl"] .ac-page input[type="email"],
html[dir="rtl"] .ac-page input[type="tel"],
html[dir="rtl"] .ac-page time {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

/* Directional arrows only. Do not mirror ordinary icons. */
html[dir="rtl"] .ac-page .ac-ibtn--go svg,
html[dir="rtl"] .ac-page .ac-nt__meta .ac-link > svg:last-child,
html[dir="rtl"] .ac-page .ac-back svg {
  transform: scaleX(-1);
}

/* Native/select arrow belongs on the opposite side in Hebrew. */
html[dir="rtl"] .ac-page .kh-select {
  background-position: left 14px center;
  padding-inline-start: 38px;
  padding-inline-end: 14px;
}


/* ===== MODX account fixes: RTL switches + uploaded avatars ===== */
html[dir="rtl"] .ac-page .ac-switch input:checked + .ac-switch__track::after {
  transform: translateX(-18px);
}
html[dir="rtl"] .ac-page .ac-mp__state input:checked + .ac-switch__track::after {
  transform: translateX(-16px);
}
.ac-page .ac-avatar.has-photo {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}
.ac-page .ac-avatar.has-photo::before,
.ac-page .ac-avatar.has-photo::after { display:none !important; }
.ac-modx-alert {
  margin: 0 0 var(--nk-sp-4); padding: 12px 16px; border-radius: 12px;
  background: #eaf7ef; color: #176b3a; border: 1px solid #ccebd8;
}
.ac-modx-alert.is-error { background:#fff0f0; color:#a1262d; border-color:#f3c7ca; }


/* =============================================================
   NewKey Account responsive repair — 2026-10-11
   Keep original design; fix narrow desktop/tablet and phone grids.
   ============================================================= */
.ac-page, .ac-page .ac-layout, .ac-page .ac-col,
.ac-page .ac-content, .ac-page .ac-grid-2,
.ac-page .ac-grid-2 > *, .ac-page .ac-box,
.ac-page .ac-feed, .ac-page .ac-feed li,
.ac-page .ac-feed li > * { min-width: 0; }
.ac-page .ac-stat { min-width: 0; overflow-wrap: break-word; }
.ac-page .ac-stat span { line-height: 1.45; }
.ac-page .ac-feed b, .ac-page .ac-feed span { overflow-wrap: break-word; }
.ac-page .ac-feed li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.ac-page .ac-feed time { font-variant-numeric: tabular-nums; }

/* A 248px side menu + two content columns cannot fit at 901–1100px. */
@media (min-width: 901px) and (max-width: 1199px) {
  .ac-page .ac-layout { gap: clamp(16px, 2vw, 28px); }
  .ac-page .ac-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Switch to the existing compact sidebar / bottom navigation earlier. */
@media (min-width: 901px) and (max-width: 1050px) {
  .ac-page .ac-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nk-sp-4, 16px);
    padding-block: var(--nk-sp-4, 16px) calc(var(--nk-section, 64px) + 72px);
  }
  .ac-page .ac-side, .ac-page .ac-side.is-collapsed { position: static; width: auto; }
  .ac-page .ac-nav { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .ac-page .ac-nav__head, .ac-page .ac-nav__item { display: none; }
  .ac-page .ac-me { margin: 0; padding: 0; border: 0; }
  .ac-page .ac-me__btn { padding: 4px 10px 4px 4px; border-radius: var(--kh-r-pill, 999px); background: #fff; border: 1px solid var(--kh-mist); box-shadow: var(--kh-sh-sm); }
  .ac-page .ac-me__menu { inset-inline: 0; }
  .ac-page .ac-band { padding: var(--nk-sp-5, 20px); }
  .ac-page .ac-grid-2, .ac-page .ac-mp-grid { grid-template-columns: 1fr; }
  .ac-page .ac-pw-row { grid-template-columns: 1fr; }
  .ac-page .ac-bottom {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky, 100);
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 6px var(--nk-sp-2, 8px) calc(6px + env(safe-area-inset-bottom));
    background: #fff; border-block-start: 1px solid var(--kh-line);
    box-shadow: 0 -6px 20px rgba(47,41,99,.08);
  }
  .ac-page .ac-bottom__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--kh-text-2); font: inherit; font-size: 9px; font-weight: 500; }
  .ac-page .ac-bottom__item .nk-icon { --nk-icon-box: 26px; --nk-icon-size: 20px; }
  .ac-page .ac-bottom__item .ac-nav__badge { position: absolute; inset-block-start: 0; inset-inline-end: calc(50% - 20px); min-width: 16px; height: 16px; font-size: 10px; padding-inline: 4px; }
}

@media (min-width: 768px) and (max-width: 1050px) {
  .ac-page .ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-page .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ac-page .ac-layout { min-width: 0; }
  .ac-page .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ac-page .ac-stat { padding: clamp(12px, 3.5vw, 20px); border-radius: 16px; }
  .ac-page .ac-stat b { font-size: clamp(22px, 6vw, 28px); }
  .ac-page .ac-stat span { font-size: 13px; }
  .ac-page .ac-feed li { gap: 8px; }
  .ac-page .ac-feed time { font-size: 11px; }
  .ac-page .ac-box { padding: clamp(14px, 4vw, 22px); }
}

@media (max-width: 390px) {
  .ac-page .ac-stats { gap: 8px; }
  .ac-page .ac-stat { padding: 11px; }
  .ac-page .ac-stat .nk-icon { --nk-icon-box: 34px; --nk-icon-size: 18px; }
  .ac-page .ac-feed li { grid-template-columns: 30px minmax(0, 1fr); }
  .ac-page .ac-feed time { grid-column: 2; white-space: normal; }
  .ac-page .ac-quick .kh-btn { padding-inline: 14px; }
}

/* Mobile RTL overflow correction: preserve menus instead of clipping .ac-main */
@media (max-width: 900px) {
  html[dir="rtl"] .ac-page .ac-main,
  .ac-page .ac-main { overflow: visible; min-width: 0; max-width: 100%; }
  .ac-page .kh-container,
  .ac-page .ac-layout,
  .ac-page .ac-col,
  .ac-page .ac-content,
  .ac-page .ac-panel,
  .ac-page .ac-band,
  .ac-page .ac-grid-2,
  .ac-page .ac-stats { box-sizing: border-box; min-width: 0; max-width: 100%; }
  .ac-page .ac-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-layout > * { min-width: 0; max-width: 100%; }
  .ac-page .ac-side,
  .ac-page .ac-side.is-collapsed { width: 100%; min-width: 0; max-width: 100%; }
  .ac-page .ac-me__btn { box-sizing: border-box; max-width: 100%; min-width: 0; }
  .ac-page .ac-me__meta { min-width: 0; overflow-wrap: anywhere; }
  .ac-page .ac-band__title > * { min-width: 0; max-width: 100%; }
}
@media (max-width: 767px) {
  .ac-page .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-page .ac-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-stat { min-width: 0; }
  .ac-page .ac-stat span { overflow-wrap: anywhere; }
}

/* =============================================================
   MOBILE RTL: contain intrinsic widths and horizontal overflow.
   Added 2026-10-11; preserves vertical popovers/dropdowns.
   ============================================================= */
@media (max-width: 900px) {
  html, body { max-width: 100%; }
  .ac-page { width: 100%; max-width: 100%; min-width: 0; }
  .ac-page .kh-main,
  .ac-page .ac-main,
  .ac-page .kh-container,
  .ac-page .ac-layout,
  .ac-page .ac-col,
  .ac-page .ac-content,
  .ac-page .ac-panel,
  .ac-page .ac-side,
  .ac-page .ac-nav,
  .ac-page .ac-me,
  .ac-page .ac-stats,
  .ac-page .ac-grid-2,
  .ac-page .ac-grid-2 > *,
  .ac-page .ac-band,
  .ac-page .ac-box {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  .ac-page .kh-main,
  .ac-page .ac-main,
  .ac-page .kh-container,
  .ac-page .ac-layout,
  .ac-page .ac-col,
  .ac-page .ac-content,
  .ac-page .ac-panel,
  .ac-page .ac-side,
  .ac-page .ac-nav,
  .ac-page .ac-stats,
  .ac-page .ac-grid-2 { width: 100%; }
  .ac-page .ac-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-col, .ac-page .ac-panel { grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-page .ac-me__btn { width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; }
  .ac-page .ac-me__meta { min-width: 0; overflow-wrap: anywhere; }
  .ac-page .ac-me__menu { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; inset-inline: 0; }
  .ac-page .ac-side.is-collapsed .ac-me__menu { inset-inline: 0; min-width: 0; }
  .ac-page .ac-stat { box-sizing: border-box; width: 100%; min-width: 0; }
  .ac-page .ac-stat span { overflow-wrap: anywhere; }
  .ac-page .ac-band__title { min-width: 0; }
  .ac-page .ac-h1 { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .ac-page .ac-stats { gap: 8px; }
  .ac-page .ac-stat { padding: 10px; }
}

@media (max-width: 900px) {
    html[dir="rtl"] .ac-page .ac-main,
    html[dir="rtl"] .ac-page .ac-main * {
        min-width: 0;
    }

    html[dir="rtl"] .ac-page .ac-main {
        max-width: 100%;
        overflow: hidden !important;
    }
}

/* Нижнее меню аккаунта — мобильная версия */
@media (max-width: 900px) {
    html[dir="rtl"] .ac-bottom,
    html[dir="ltr"] .ac-bottom {
        position: fixed !important;
        inset: auto 0 0 0 !important;

        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;

        margin: 0 !important;
        transform: none !important;

        box-sizing: border-box !important;
        z-index: 9999 !important;

        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .ac-bottom > * {
        min-width: 0;
    }

    .ac-page {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}


/* CSS source: new-style/global/faq.css */
/* NEWKEY FAQ — component-only CSS.
   Shared palette and optical typography are defined in global/base.css.
   Order: component > states > RTL > responsive/print. */

.nk-faq {
  --nkg-measure: var(--nk-content-measure, 740px);          /* reading column, BRAND: long-form comfort */
  --nkg-toc: 240px;
  --nkg-gap: var(--nk-sp-16, 64px);
  --nkg-r: 16px;                 /* media / call-out radius */
  --nkg-size: 18px;              /* BRAND §4 body 18px */
  --nkg-lh: 1.65;
  position: relative;
  font-family: var(--kh-font);
  color: var(--kh-text);
}

.nk-faq   { padding-block: var(--nk-section, 96px); background: linear-gradient(180deg, #fff 0, var(--kh-sky-050) 120px, var(--kh-sky-050) 100%); }
.nk-faq__inner { max-width: var(--nkg-measure); margin-inline: auto; }
.nk-faq__head { margin: 0 0 var(--nk-head, 32px); }
.nk-faq .nk-faq__title { margin: 0; font-size: var(--kh-faq-title-size, 32px); line-height: 1.2; font-weight: 600; color: var(--kh-indigo); }
.nk-faq .nk-faq__lead { margin: 12px 0 0; font-size: var(--kh-faq-lead-size, 17px); color: var(--kh-text-2); }
.nk-faq .nk-faq__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nk-faq .nk-faq__item { border: 1px solid var(--kh-mist); border-radius: var(--nkg-r); background: #fff; transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast); }
.nk-faq .nk-faq__item.is-open { border-color: var(--kh-blue); box-shadow: var(--kh-sh-md); }
.nk-faq .nk-faq__q { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; margin: 0; border: 0; background: transparent; text-align: start; font: inherit; font-size: var(--kh-faq-question-size, 17px); font-weight: 500; line-height: 1.4; color: var(--kh-indigo); cursor: pointer; border-radius: var(--nkg-r); }
.nk-faq .nk-faq__q:hover { color: var(--kh-blue); }
.nk-faq .nk-faq__q .nk-icon { --nk-icon-box: 32px; --nk-icon-size: 18px; flex: none; margin-inline-start: auto; border-radius: 50%; background: var(--kh-sky); color: var(--kh-indigo); transition: transform var(--kh-dur-base) var(--kh-ease), background var(--kh-dur-fast), color var(--kh-dur-fast); }
.nk-faq .nk-faq__item.is-open .nk-faq__q .nk-icon { transform: rotate(180deg); background: var(--kh-blue); color: #fff; }
/* smooth open: grid rows 0fr → 1fr; the answer is in the HTML at load (no display:none) */
.nk-faq .nk-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--kh-dur-base) var(--kh-ease); }
.nk-faq .nk-faq__a > div { overflow: hidden; min-height: 0; }
.nk-faq .nk-faq__item.is-open .nk-faq__a { grid-template-rows: 1fr; }
.nk-faq .nk-faq__a .nk-prose { padding: 0 20px 20px; font-size: var(--kh-faq-answer-size, 16px); line-height: 1.6; }
.nk-faq .nk-faq__a .nk-prose p { margin: 0 0 .8em; }
.nk-faq .nk-faq__a .nk-prose > :last-child { margin-block-end: 0; }
.nk-faq .nk-faq__a .nk-prose a { color: var(--kh-blue); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.nk-faq .nk-faq__a .nk-prose a:hover { text-decoration-color: currentColor; }
.nk-faq .nk-faq__a .nk-prose ul { margin: 0 0 .8em; padding: 0; list-style: none; }
.nk-faq .nk-faq__a .nk-prose li { position: relative; padding-inline-start: 22px; margin: 0 0 .35em; }
.nk-faq .nk-faq__a .nk-prose li::before { content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--kh-blue); }
/* no-JS: every answer visible */
.nk-faq.no-js .nk-faq__a { grid-template-rows: 1fr; }
.nk-faq .nk-faq__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block-start: var(--nk-stack, 40px); padding: 24px 28px; border-radius: 20px; background: var(--kh-indigo); color: #fff; position: relative; overflow: clip; }
.nk-faq .nk-faq__cta p { margin: 0; font-size: 18px; font-weight: 500; color: #fff; }
.nk-faq .nk-faq__cta p small { display: block; margin-block-start: 2px; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.72); }
.nk-faq .nk-faq__cta .kh-btn { position: relative; z-index: 1; }
.nk-faq .nk-faq__cta .nk-cluster { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .nk-faq .nk-faq__a, .nk-faq .nk-faq__q .nk-icon, .nk-faq .nk-faq__item { transition: none; }
}

.lang-he .nk-faq {direction: rtl;}

@media (max-width: 767px) {
  .nk-faq { --nkg-size: 17px; --nkg-lh: 1.6; }
  .nk-faq .nk-faq__q { padding: 16px; gap: 12px; }
  .nk-faq .nk-faq__a .nk-prose { padding: 0 16px 16px; }
  .nk-faq .nk-faq__cta { padding: 20px; }
}

@media print {
  .nk-faq .nk-faq__a { grid-template-rows: 1fr; }
}


/* CSS source: new-style/global/guide.css */
/* NEWKEY SEO GUIDE — scoped rich content remains unique to this page.
   Shares brand tokens and section heading scales with global/base.css.
   Load AFTER global/base.css. */

/* ============================================================
   NewKey — SEO Guide
   ============================================================ */

.nk-guide {
    --nkg-measure: var(--nk-content-measure, 740px);
    --nkg-toc: 240px;
    --nkg-gap: var(--nk-sp-16, 64px);
    --nkg-size: 18px;
    --nkg-lh: 1.65;

    position: relative;
    padding-block: var(--nk-section, 96px);
    background: #fff;

    font-family: var(--kh-font);
    color: var(--kh-text);
}


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.nk-guide__head {
    position: relative;

    max-width: var(--nkg-measure);
    margin-inline: auto;

    text-align: start;
}

.nk-guide__head .kh-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nk-guide__head .kh-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--kh-blue);
    border-radius: 2px;
}

.nk-guide .nk-guide__title {
    margin: 0;

    font-size: var(--kh-guide-title-size, 36px);
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -.01em;

    color: var(--kh-indigo);
}

.nk-guide .nk-guide__lead {
    margin: 16px 0 0;

    font-size: var(--kh-guide-lead-size, 20px);
    line-height: 1.55;

    color: var(--kh-text-2);
}


/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.nk-guide__layout {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nk-sp-8, 32px);

    margin-block-start: var(--nk-stack, 40px);
}

@media (min-width: 1024px) {

    .nk-guide__layout {
        grid-template-columns:
            var(--nkg-toc)
            minmax(0, var(--nkg-measure));

        justify-content: center;

        column-gap: var(--nkg-gap);
    }

}


/* ------------------------------------------------------------
   TOC
   ------------------------------------------------------------ */

.nk-guide__toc {
    font-size: 14px;
}

.nk-guide__toc[hidden] {
    display: none;
}

@media (min-width: 1024px) {

    .nk-guide__toc {
        position: sticky;
        top: calc(var(--header-height, 62px) + 24px);

        align-self: start;

        max-height:
            calc(100vh - var(--header-height, 62px) - 48px);

        overflow: auto;
    }

}

.nk-guide .nk-guide__toc summary {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 4px 0;

    list-style: none;
    cursor: pointer;

    font-weight: 500;

    color: var(--kh-indigo);
}

.nk-guide .nk-guide__toc summary::-webkit-details-marker {
    display: none;
}

.nk-guide .nk-guide__toc summary .nk-icon {
    --nk-icon-box: 24px;
    --nk-icon-size: 18px;

    color: var(--kh-blue);
}

.nk-guide .nk-guide__toc summary .nk-toc__chev {
    margin-inline-start: auto;

    transition:
        transform var(--kh-dur-base) var(--kh-ease);
}

.nk-guide .nk-guide__toc[open] summary .nk-toc__chev {
    transform: rotate(180deg);
}

.nk-guide .nk-toc__list,
.nk-guide .nk-toc__list ol {
    margin: 0;
    padding: 0;

    list-style: none;
}

.nk-guide .nk-toc__list {
    margin-block-start: 8px;

    border-inline-start:
        2px solid var(--kh-mist);
}

.nk-guide .nk-toc__list a {
    display: block;

    margin-inline-start: -2px;
    padding: 6px 0 6px 14px;

    border-inline-start:
        2px solid transparent;

    color: var(--kh-text-2);

    line-height: 1.35;
    text-decoration: none;

    transition:
        color var(--kh-dur-fast),
        border-color var(--kh-dur-fast);
}

.nk-guide .nk-toc__list li li a {
    padding-inline-start: 26px;

    font-size: 13px;
}

.nk-guide .nk-toc__list a:hover {
    color: var(--kh-indigo);
}

.nk-guide .nk-toc__list a.is-active {
    color: var(--kh-blue);
    border-color: var(--kh-blue);

    font-weight: 500;
}

@media (min-width: 1024px) {

    .nk-guide .nk-guide__toc summary {
        pointer-events: none;
    }

    .nk-guide .nk-guide__toc summary .nk-toc__chev {
        display: none;
    }

}

@media (max-width: 1023px) {

    .nk-guide__toc {
        padding: 10px 16px;

        border: 1px solid var(--kh-mist);
        border-radius: 16px;

        background: #fff;
    }

    .nk-guide .nk-toc__list {
        margin-block: 6px 4px;
    }

}


/* ------------------------------------------------------------
   SEO content
   ------------------------------------------------------------ */

.nk-guide .nk-prose {
    min-width: 0;

    font-size: var(--nkg-size);
    line-height: var(--nkg-lh);

    color: var(--kh-text);

    overflow-wrap: anywhere;
}

.nk-guide .nk-prose > :first-child {
    margin-block-start: 0 !important;
}

.nk-guide .nk-prose > :last-child {
    margin-block-end: 0 !important;
}


/* Headings */

.nk-guide .nk-prose h2,
.nk-guide .nk-prose h3,
.nk-guide .nk-prose h4 {
    margin: 0;

    font-weight: 600;
    line-height: 1.25;

    color: var(--kh-indigo);

    scroll-margin-block-start:
        calc(var(--header-height, 62px) + 24px);
}

.nk-guide .nk-prose h2 {
    position: relative;

    margin-block: 56px 20px;
    padding-block-start: 20px;

    font-size: 28px;
}

.nk-guide .nk-prose h2::before {
    content: "";

    position: absolute;

    inset-block-start: 0;
    inset-inline-start: 0;

    width: 44px;
    height: 3px;

    border-radius: 3px;

    background: var(--kh-blue);
}

.nk-guide .nk-prose h3 {
    margin-block: 40px 14px;

    font-size: 22px;
}

.nk-guide .nk-prose h4 {
    margin-block: 28px 10px;

    font-size: 18px;
    font-weight: 500;
}


/* Paragraphs */

.nk-guide .nk-prose p {
    margin: 0 0 1.2em;
}

.nk-guide .nk-prose .nk-lead,
.nk-guide .nk-prose p.nk-lead {
    font-size: 21px;
    line-height: 1.5;

    color: var(--kh-text-2);
}

.nk-guide .nk-prose strong,
.nk-guide .nk-prose b {
    font-weight: 600;

    color: var(--kh-indigo);
}


/* Links */

.nk-guide .nk-prose a {
    color: var(--kh-blue);

    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;

    transition:
        text-decoration-color var(--kh-dur-fast),
        color var(--kh-dur-fast);
}

.nk-guide .nk-prose a:hover,
.nk-guide .nk-prose a:focus-visible {
    text-decoration-color: currentColor;
}


/* Lists */

.nk-guide .nk-prose ul,
.nk-guide .nk-prose ol {
    margin: 0 0 1.3em;
    padding-inline-start: 0;

    list-style: none;
}

.nk-guide .nk-prose li {
    position: relative;

    margin-block: 0 .55em;
    padding-inline-start: 28px;
}

.nk-guide .nk-prose ul > li::before {
    content: "";

    position: absolute;

    inset-inline-start: 6px;
    inset-block-start:
        calc(var(--nkg-lh) * .5em - 4px);

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--kh-blue);

    box-shadow:
        0 0 0 3px var(--kh-sky);
}


/* Ordered list */

.nk-guide .nk-prose ol {
    counter-reset: nkg;
}

.nk-guide .nk-prose ol > li {
    padding-inline-start: 40px;

    counter-increment: nkg;
}

.nk-guide .nk-prose ol > li::before {
    content: counter(nkg);

    position: absolute;

    inset-inline-start: 0;
    inset-block-start:
        calc(var(--nkg-lh) * .5em - 13px);

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: var(--kh-sky);
    color: var(--kh-indigo);

    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}


/* ------------------------------------------------------------
   Clamp
   ------------------------------------------------------------ */

.nk-guide .nk-prose.is-clamped {
    position: relative;

    max-height: var(--nkg-clamp, 1200px);

    overflow: hidden;
}

.nk-guide .nk-prose.is-clamped::after {
    content: "";

    position: absolute;

    inset-inline: 0;
    inset-block-end: 0;

    height: 220px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0),
            #fff 78%
        );

    pointer-events: none;
}

.nk-guide__more {
    display: flex;
    justify-content: center;

    margin: -8px 0 0;
}

.nk-guide__more[hidden] {
    display: none;
}

.nk-guide__more .kh-btn .nk-icon {
    --nk-icon-box: 20px;
    --nk-icon-size: 16px;
}

@media (min-width: 1024px) {

    .nk-guide__more {
        grid-column: 2;

        justify-content: flex-start;
    }

    .nk-guide.nk-guide--no-toc .nk-guide__layout {
        grid-template-columns: minmax(0, var(--nkg-measure));
        justify-content: center;
    }

    .nk-guide.nk-guide--no-toc .nk-guide__more {
        grid-column: 1;
    }

}


/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .nk-guide {
        --nkg-size: 17px;
        --nkg-lh: 1.6;
    }

    .nk-guide .nk-prose h2 {
        margin-block: 44px 16px;

        font-size: 24px;
    }

    .nk-guide .nk-prose h3 {
        margin-block: 32px 12px;

        font-size: 20px;
    }

    .nk-guide .nk-prose.is-clamped {
        --nkg-clamp: 1000px;
    }

}


/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .nk-guide .nk-guide__toc summary .nk-toc__chev {
        transition: none;
    }

}


/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */

@media print {

    .nk-guide .nk-prose.is-clamped {
        max-height: none;
    }

    .nk-guide .nk-prose.is-clamped::after,
    .nk-guide__more,
    .nk-guide__toc {
        display: none;
    }

}

/* Additional variables needed by the imported components */
.nk-guide {
    --nkg-r: 16px;
}

.nk-guide .nk-prose ol > li::before {
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   00. Shared variables and buttons (ported only where absent)
   ------------------------------------------------------------ */

.nk-guide button.kh-btn {
    color: #fff;
}

.nk-guide button.kh-btn--secondary,
.nk-guide button.kh-btn--outline {
    color: var(--kh-indigo);
}

.nk-guide .kh-btn--outline {
    background: #fff;
    border: 1px solid var(--kh-mist);
}

.nk-guide .kh-btn--outline:hover {
    border-color: var(--kh-blue);
    box-shadow: none;
}


/* ------------------------------------------------------------
   01. Guide header meta and cover (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-guide__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--kh-text-3);
}

.nk-guide .nk-guide__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nk-guide .nk-guide__meta .nk-icon {
    --nk-icon-box: 20px;
    --nk-icon-size: 16px;
    color: var(--kh-blue);
}

.nk-guide .nk-guide__meta time {
    color: var(--kh-text-2);
}

.nk-guide .nk-guide__cover {
    margin: var(--nk-head, 32px) 0 0;
}

.nk-guide .nk-guide__cover img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--kh-r-card, 24px);
    box-shadow: var(--kh-sh-md);
    background: var(--kh-sky);
}

.nk-guide .nk-guide__cover figcaption {
    margin: 10px 4px 0;
    font-size: 14px;
    font-style: italic;
    color: var(--kh-text-3);
}


/* ------------------------------------------------------------
   02. Key facts (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-guide__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: var(--nk-grid, 20px);
    margin: var(--nk-stack, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.nk-guide .nk-fact {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--kh-mist);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--kh-sh-sm);
}

.nk-guide .nk-fact .nk-icon {
    --nk-icon-box: 44px;
    --nk-icon-size: 22px;
    grid-row: span 2;
    border-radius: 50%;
    background: var(--kh-sky);
    color: var(--kh-indigo);
}

.nk-guide .nk-fact__value {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--kh-indigo);
    font-variant-numeric: tabular-nums;
}

.nk-guide .nk-fact__label {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--kh-text-2);
}

.nk-guide .nk-fact__src {
    display: block;
    margin: 0;
    font-size: 11px;
    color: var(--kh-text-3);
}


/* ------------------------------------------------------------
   04. Rich CMS prose (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-prose h5,
.nk-guide .nk-prose h6 {
    color: var(--kh-indigo);
    font-weight: 600;
    line-height: 1.25;
    scroll-margin-block-start: calc(var(--header-height, 62px) + 24px);
    margin: 0;
}

.nk-guide .nk-prose h5,
.nk-guide .nk-prose h6 {
    font-size: 16px;
    margin-block: 22px 8px;
    font-weight: 500;
}

.nk-guide .nk-prose h1 {
    font-size: 28px;
    color: var(--kh-indigo);
    margin-block: 56px 20px;
}

.nk-guide .nk-prose em,
.nk-guide .nk-prose i {
    font-style: italic;
}

.nk-guide .nk-prose small {
    font-size: 14px;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose mark {
    background: var(--kh-sky);
    color: inherit;
    padding: 0 .2em;
    border-radius: 4px;
}

.nk-guide .nk-prose code {
    font-family: ui-monospace, Menlo, monospace;
    font-size: .9em;
    background: var(--kh-bg);
    padding: .1em .4em;
    border-radius: 6px;
}

.nk-guide .nk-prose pre {
    overflow: auto;
    padding: 16px 20px;
    border-radius: var(--nkg-r);
    background: var(--kh-bg);
    font-size: 14px;
}

.nk-guide .nk-prose hr {
    border: 0;
    height: 1px;
    margin: 48px 0;
    background: linear-gradient(90deg, var(--kh-blue) 0, var(--kh-blue) 44px, var(--kh-mist) 44px);
}

.nk-guide .nk-prose abbr {
    text-decoration: underline dotted;
    cursor: help;
}

.nk-guide .nk-prose a.nk-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px 2px 12px;
    margin-inline: 1px;
    border-radius: var(--kh-r-pill);
    background: var(--kh-sky);
    color: var(--kh-indigo);
    font-weight: 500;
    font-size: .92em;
    line-height: 1.6;
    text-decoration: none;
    vertical-align: baseline;
    white-space: nowrap;
    transition: background var(--kh-dur-fast), color var(--kh-dur-fast);
}

.nk-guide .nk-prose a.nk-go::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--kh-dur-fast) var(--kh-ease);
}

.nk-guide .nk-prose a.nk-go:hover {
    background: var(--kh-blue);
    color: #fff;
}

.nk-guide .nk-prose a.nk-go:hover::after {
    transform: translateX(2px);
}

.nk-guide .nk-prose p.nk-go-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nk-guide .nk-prose li > p {
    margin-block-end: .55em;
}

.nk-guide .nk-prose ol > li::marker,
.nk-guide .nk-prose ul > li::marker {
    content: "";
}

.nk-guide .nk-prose li ul,
.nk-guide .nk-prose li ol {
    margin-block: .5em 0;
}

.nk-guide .nk-prose li li::before {
    width: 6px;
    height: 6px;
    inset-inline-start: 7px;
    box-shadow: none;
    background: var(--kh-indigo);
    opacity: .55;
}

.nk-guide .nk-prose ul.nk-check > li::before {
    width: 18px;
    height: 18px;
    inset-inline-start: 0;
    inset-block-start: calc(var(--nkg-lh) * .5em - 9px);
    border-radius: 6px;
    box-shadow: none;
    background: var(--kh-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.nk-guide .nk-prose dl {
    margin: 0 0 1.3em;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
}

.nk-guide .nk-prose dt {
    font-weight: 600;
    color: var(--kh-indigo);
}

.nk-guide .nk-prose dd {
    margin: 0;
}

.nk-guide .nk-prose blockquote {
    margin: 32px 0;
    padding: 22px 28px;
    border-inline-start: 4px solid var(--kh-blue);
    border-radius: 0 var(--nkg-r) var(--nkg-r) 0;
    background: var(--kh-sky);
    color: var(--kh-indigo);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.nk-guide .nk-prose blockquote p {
    margin: 0 0 .6em;
}

.nk-guide .nk-prose blockquote p:last-child {
    margin: 0;
}

.nk-guide .nk-prose blockquote cite,
.nk-guide .nk-prose blockquote footer {
    display: block;
    margin-block-start: 10px;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: var(--kh-text-2);
}

.nk-guide .nk-prose blockquote cite::before {
    content: "— ";
}

.nk-guide .nk-prose .nk-tip,
.nk-guide .nk-prose .nk-note,
.nk-guide .nk-prose .nk-warn {
    position: relative;
    margin: 32px 0;
    padding-block: 20px;
    padding-inline: 64px 24px;
    border: 1px solid var(--kh-mist);
    border-radius: var(--nkg-r);
    background: #fff;
    box-shadow: var(--kh-sh-sm);
    font-size: 17px;
}

.nk-guide .nk-prose .nk-note {
    background: var(--kh-sky-050);
    border-color: transparent;
    box-shadow: none;
}

.nk-guide .nk-prose .nk-warn {
    border-color: var(--kh-indigo);
}

.nk-guide .nk-prose .nk-tip > :last-child,
.nk-guide .nk-prose .nk-note > :last-child,
.nk-guide .nk-prose .nk-warn > :last-child {
    margin-block-end: 0;
}

.nk-guide .nk-prose .nk-callout__icon {
    position: absolute;
    inset-inline-start: 18px;
    inset-block-start: 18px;
    --nk-icon-box: 32px;
    --nk-icon-size: 20px;
    border-radius: 50%;
    background: var(--kh-sky);
    color: var(--kh-indigo);
}

.nk-guide .nk-prose .nk-warn .nk-callout__icon {
    background: var(--kh-indigo);
    color: #fff;
}

.nk-guide .nk-prose .nk-callout__title {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--kh-blue);
}

.nk-guide .nk-prose .nk-warn .nk-callout__title {
    color: var(--kh-indigo);
}


/* ------------------------------------------------------------
   05. Media and gallery (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--nkg-r);
    background: var(--kh-sky);
}

.nk-guide .nk-prose p > img:only-child,
.nk-guide .nk-prose > img {
    margin: 32px auto;
}

.nk-guide .nk-prose figure {
    margin: 36px 0;
}

.nk-guide .nk-prose figure img {
    width: 100%;
}

.nk-guide .nk-prose figcaption {
    margin: 10px 4px 0;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose .nk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 36px 0;
}

.nk-guide .nk-prose .nk-gallery figure,
.nk-guide .nk-prose .nk-gallery img {
    margin: 0;
}

.nk-guide .nk-prose .nk-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.nk-guide .nk-prose .nk-gallery figcaption {
    font-size: 13px;
}

.nk-guide .nk-prose .nk-gallery > :first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

.nk-guide .nk-prose .nk-gallery > :first-child:nth-last-child(3) img {
    aspect-ratio: 16 / 9;
}

.nk-guide .nk-prose iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--nkg-r);
    background: var(--kh-indigo);
    margin: 36px 0;
}

.nk-guide .nk-prose figure > iframe {
    margin: 0;
}

.nk-guide .nk-prose video {
    display: block;
    width: 100%;
    border-radius: var(--nkg-r);
    margin: 36px 0;
}


/* ------------------------------------------------------------
   06. Tables (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 16px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.nk-guide .nk-prose caption {
    caption-side: top;
    text-align: start;
    padding: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kh-indigo);
    position: sticky;
    inset-inline-start: 0;
    overflow-wrap: normal;
}

.nk-guide .nk-prose th,
.nk-guide .nk-prose td {
    padding: 12px 14px;
    text-align: start;
    vertical-align: top;
    border-block-end: 1px solid var(--kh-mist);
}

.nk-guide .nk-prose thead th {
    background: var(--kh-sky);
    color: var(--kh-indigo);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    border-block-end: 0;
}

.nk-guide .nk-prose thead th:first-child {
    border-start-start-radius: 12px;
}

.nk-guide .nk-prose thead th:last-child {
    border-start-end-radius: 12px;
}

.nk-guide .nk-prose tbody th {
    font-weight: 500;
    color: var(--kh-indigo);
}

.nk-guide .nk-prose tbody tr:hover td,
.nk-guide .nk-prose tbody tr:hover th {
    background: var(--kh-sky-050);
}

.nk-guide .nk-prose tfoot td,
.nk-guide .nk-prose tfoot th {
    font-weight: 500;
    border-block-end: 0;
    border-block-start: 2px solid var(--kh-mist);
}

.nk-guide .nk-prose td.is-num,
.nk-guide .nk-prose th.is-num {
    text-align: end;
    white-space: nowrap;
}

.nk-guide .nk-prose .nk-table--compact th,
.nk-guide .nk-prose .nk-table--compact td {
    padding: 8px 10px;
    font-size: 14px;
}

.nk-guide .nk-prose table small {
    display: block;
    font-size: 12px;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose .nk-table-wrap {
    margin: 32px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 40px 100% local no-repeat, linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 40px 100% local no-repeat, linear-gradient(to right, rgba(47,41,99,.14), rgba(47,41,99,0)) left / 16px 100% scroll no-repeat, linear-gradient(to left, rgba(47,41,99,.14), rgba(47,41,99,0)) right / 16px 100% scroll no-repeat;
    background-color: #fff;
    border-radius: 12px;
}

.nk-guide .nk-prose .nk-table-wrap > table {
    margin: 0;
    width: max-content;
    min-width: 100%;
}

.nk-guide .nk-prose th,
.nk-guide .nk-prose td {
    overflow-wrap: normal;
    word-break: normal;
    min-width: 96px;
    max-width: 320px;
}

.nk-guide .nk-prose .nk-table-wrap > table th,
.nk-guide .nk-prose .nk-table-wrap > table td {
    background-clip: padding-box;
}

.nk-guide .nk-prose .nk-table-wrap:focus-visible {
    outline: 2px solid var(--kh-blue);
    outline-offset: 2px;
}

.nk-guide .nk-prose .nk-table-hint {
    display: none;
    margin: -24px 0 24px;
    font-size: 12px;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose .nk-table-hint .nk-icon {
    --nk-icon-box: 16px;
    --nk-icon-size: 14px;
    vertical-align: -3px;
    color: var(--kh-blue);
}

.nk-guide .nk-prose .nk-table-wrap.is-scrollable + .nk-table-hint {
    display: block;
}

.nk-guide .nk-prose > table {
    display: block;
    overflow-x: auto;
}


/* ------------------------------------------------------------
   07. Charts (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-prose .nk-chart {
    margin: 36px 0;
    padding: 20px 20px 16px;
    border: 1px solid var(--kh-mist);
    border-radius: var(--nkg-r);
    background: #fff;
    box-shadow: var(--kh-sh-sm);
}

.nk-guide .nk-prose .nk-chart__title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--kh-indigo);
}

.nk-guide .nk-prose .nk-chart__sub {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose .nk-chart__canvas {
    position: relative;
    height: 260px;
}

.nk-guide .nk-prose .nk-chart canvas {
    max-width: 100%;
}

.nk-guide .nk-prose .nk-chart__note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--kh-text-3);
}

.nk-guide .nk-prose .nk-chart__fallback {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.nk-guide .nk-prose .nk-chart__fallback li {
    display: grid;
    grid-template-columns: minmax(80px, 160px) 1fr max-content;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.nk-guide .nk-prose .nk-chart__fallback li::before {
    display: none;
}

.nk-guide .nk-prose .nk-chart__fallback i {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: var(--kh-sky);
    overflow: hidden;
}

.nk-guide .nk-prose .nk-chart__fallback i b {
    display: block;
    height: 100%;
    width: var(--w, 0%);
    background: var(--viz-1, var(--kh-blue));
}

.nk-guide .nk-prose .nk-chart__fallback span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--kh-indigo);
    font-weight: 500;
}

.nk-guide .nk-prose .nk-chart.is-ready .nk-chart__fallback {
    display: none;
}


/* ------------------------------------------------------------
   08. Projects carousel and cards (ported only where absent)
   ------------------------------------------------------------ */
.nk-guide .nk-projects {
    margin: 48px 0;
    padding: 28px 0 0;
    border-block-start: 1px solid var(--kh-mist);
}

.nk-guide .nk-projects__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.nk-guide .nk-projects__head h3,
.nk-guide .nk-prose .nk-projects__head h3 {
    margin: 0;
    font-size: 22px;
}

.nk-guide .nk-projects__head p,
.nk-guide .nk-prose .nk-projects__head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--kh-text-2);
}

.nk-guide .nk-projects__nav {
    display: flex;
    gap: 8px;
    flex: none;
}

.nk-guide .nk-projects__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--kh-mist);
    background: #fff;
    color: var(--kh-indigo);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--kh-dur-fast), color var(--kh-dur-fast), border-color var(--kh-dur-fast);
}

.nk-guide .nk-projects__btn .nk-icon {
    --nk-icon-box: 24px;
    --nk-icon-size: 18px;
}

.nk-guide .nk-projects__btn:hover {
    background: var(--kh-indigo);
    color: #fff;
    border-color: var(--kh-indigo);
}

.nk-guide .nk-projects__btn:disabled {
    opacity: .35;
    cursor: default;
    background: #fff;
    color: var(--kh-indigo);
    border-color: var(--kh-mist);
}

.nk-guide .nk-projects__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 4px 2px 12px;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.nk-guide .nk-projects__track::-webkit-scrollbar {
    display: none;
}

.nk-guide .nk-projects__track > li {
    scroll-snap-align: start;
    padding: 0;
    margin: 0;
}

.nk-guide .nk-projects__track > li::before {
    display: none;
}

.nk-guide .nk-projects__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 6px;
    font-weight: 500;
    color: var(--kh-indigo) !important;
    text-decoration: none !important;
}

.nk-guide .nk-projects__all .nk-icon {
    --nk-icon-box: 24px;
    --nk-icon-size: 18px;
    color: var(--kh-blue);
    transition: transform var(--kh-dur-fast) var(--kh-ease);
}

.nk-guide .nk-projects__all:hover .nk-icon {
    transform: translateX(3px);
}

.nk-guide .nk-pcard,
.nkm .nk-pcard,
.nkm-pop .nk-pcard,
.iv .nk-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--kh-mist);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--kh-sh-sm);
    transition: transform var(--kh-dur-base) var(--kh-ease), box-shadow var(--kh-dur-base) var(--kh-ease);
}

.nk-guide .nk-pcard:hover,
.nkm .nk-pcard:hover,
.nkm-pop .nk-pcard:hover,
.iv .nk-pcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--kh-sh-lg);
}

.nk-guide .nk-pcard__media,
.nkm .nk-pcard__media,
.nkm-pop .nk-pcard__media,
.iv .nk-pcard__media {
    position: relative;
    display: block;
    aspect-ratio: var(--nk-card-ratio);
    overflow: hidden;
    background: var(--kh-indigo);
}

.nk-guide .nk-pcard__media img,
.nkm .nk-pcard__media img,
.nkm-pop .nk-pcard__media img,
.iv .nk-pcard__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin: 0;
}

.nk-guide .nk-pcard__media .kh-ph,
.nkm .nk-pcard__media .kh-ph,
.nkm-pop .nk-pcard__media .kh-ph,
.iv .nk-pcard__media .kh-ph {
    position: absolute;
    inset: 0;
}

.nk-guide .nk-pcard__shade,
.nkm .nk-pcard__shade,
.nkm-pop .nk-pcard__shade,
.iv .nk-pcard__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,3,4,0) 38%, rgba(2,3,4,.42) 68%, rgba(2,3,4,.82) 100%);
}

.nk-guide .nk-pcard__cap,
.nkm .nk-pcard__cap,
.nkm-pop .nk-pcard__cap,
.iv .nk-pcard__cap {
    position: absolute;
    inset-inline: 14px;
    inset-block-end: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.nk-guide .nk-pcard__name,
.nkm .nk-pcard__name,
.nkm-pop .nk-pcard__name,
.iv .nk-pcard__name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-guide .nk-pcard__city,
.nkm .nk-pcard__city,
.nkm-pop .nk-pcard__city,
.iv .nk-pcard__city {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 3px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,.88);
}

.nk-guide .nk-pcard__city .nk-icon,
.nkm .nk-pcard__city .nk-icon,
.nkm-pop .nk-pcard__city .nk-icon,
.iv .nk-pcard__city .nk-icon {
    --nk-icon-box: 16px;
    --nk-icon-size: 14px;
}

.nk-guide .nk-pcard__logo,
.nkm .nk-pcard__logo,
.nkm-pop .nk-pcard__logo,
.iv .nk-pcard__logo {
    position: absolute;
    inset-inline-start: 10px;
    inset-block-start: 10px;
    height: 30px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    display: flex;
    align-items: center;
}

.nk-guide .nk-pcard__logo img,
.nkm .nk-pcard__logo img,
.nkm-pop .nk-pcard__logo img,
.iv .nk-pcard__logo img {
    position: static;
    width: auto;
    height: 22px;
    max-width: 72px;
    object-fit: contain;
}

.nk-guide .nk-pcard__fav,
.nkm .nk-pcard__fav,
.nkm-pop .nk-pcard__fav,
.iv .nk-pcard__fav {
    position: absolute;
    inset-inline-end: 10px;
    inset-block-start: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.94);
    color: var(--kh-indigo);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: var(--kh-sh-sm);
}

.nk-guide .nk-pcard__fav::after,
.nkm .nk-pcard__fav::after,
.nkm-pop .nk-pcard__fav::after,
.iv .nk-pcard__fav::after {
    content: "";
    position: absolute;
    inset: -4px;
}

.nk-guide .nk-pcard__fav .nk-icon,
.nkm .nk-pcard__fav .nk-icon,
.nkm-pop .nk-pcard__fav .nk-icon,
.iv .nk-pcard__fav .nk-icon {
    --nk-icon-box: 24px;
    --nk-icon-size: 18px;
}

.nk-guide .nk-pcard__fav.is-on,
.nkm .nk-pcard__fav.is-on,
.nkm-pop .nk-pcard__fav.is-on,
.iv .nk-pcard__fav.is-on {
    color: var(--kh-blue);
}

.nk-guide .nk-pcard__fav.is-on svg path,
.nkm .nk-pcard__fav.is-on svg path,
.nkm-pop .nk-pcard__fav.is-on svg path,
.iv .nk-pcard__fav.is-on svg path {
    fill: currentColor;
}

.nk-guide .nk-pcard__body,
.nkm .nk-pcard__body,
.nkm-pop .nk-pcard__body,
.iv .nk-pcard__body {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
    flex: 1;
    align-content: start;
}

.nk-guide .nk-pcard__price,
.nkm .nk-pcard__price,
.nkm-pop .nk-pcard__price,
.iv .nk-pcard__price {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--kh-indigo);
    font-variant-numeric: tabular-nums;
}

.nk-guide .nk-pcard__price--ask,
.nkm .nk-pcard__price--ask,
.nkm-pop .nk-pcard__price--ask,
.iv .nk-pcard__price--ask {
    font-size: 15px;
    font-weight: 500;
    color: var(--kh-text-2);
}

.nk-guide .nk-pcard__facts,
.nkm .nk-pcard__facts,
.nkm-pop .nk-pcard__facts,
.iv .nk-pcard__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nk-guide .nk-pcard__facts li,
.nkm .nk-pcard__facts li,
.nkm-pop .nk-pcard__facts li,
.iv .nk-pcard__facts li {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    margin: 0;
    border-radius: var(--kh-r-pill);
    background: var(--kh-bg);
    color: var(--kh-text-2);
    font-size: 12px;
    font-weight: 500;
}

.nk-guide .nk-pcard__facts li::before,
.nkm .nk-pcard__facts li::before,
.nkm-pop .nk-pcard__facts li::before,
.iv .nk-pcard__facts li::before {
    display: none;
}

.nk-guide .nk-pcard__foot,
.nkm .nk-pcard__foot,
.nkm-pop .nk-pcard__foot,
.iv .nk-pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-block-start: auto;
    padding-block-start: 4px;
}

.nk-guide .nk-pcard__dev,
.nkm .nk-pcard__dev,
.nkm-pop .nk-pcard__dev,
.iv .nk-pcard__dev {
    font-size: 13px;
    color: var(--kh-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nk-guide .nk-prose a.nk-pcard__go,
.nk-guide a.nk-pcard__go,
.nkm a.nk-pcard__go,
.nkm-pop a.nk-pcard__go,
.iv a.nk-pcard__go {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    text-decoration: none;
    color: var(--kh-indigo);
}

.nk-guide .nk-prose .nk-pcard__price,
.nk-guide .nk-prose .nk-pcard__facts {
    margin: 0;
}

.nk-guide .nk-prose .nk-pcard__media img,
.nk-guide .nk-prose .nk-pcard__logo img {
    border-radius: 0;
    background: transparent;
    margin: 0;
}

.nk-guide .nk-prose a.nk-pcard__media {
    text-decoration: none;
}


/* ------------------------------------------------------------
   09. Clamp (ported only where absent)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .nk-pcard,
    .nk-pcard:hover,
    .nk-guide .nk-projects__all .nk-icon,
    .nk-guide .nk-prose a.nk-go::after {
        transition: none;
        transform: none;
    }

    .nk-guide .nk-projects__track {
        scroll-behavior: auto;
    }

}

/* ------------------------------------------------------------
   11. Responsive (ported only where absent)
   ------------------------------------------------------------ */
@media (max-width: 767px) {

    .nk-guide .nk-guide__cover img {
        aspect-ratio: 16 / 10;
        border-radius: var(--nkg-r);
    }

    .nk-guide .nk-guide__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nk-guide .nk-fact {
        grid-template-columns: 36px 1fr;
        gap: 0 10px;
        padding: 14px;
        border-radius: 14px;
    }

    .nk-guide .nk-fact .nk-icon {
        --nk-icon-box: 36px;
        --nk-icon-size: 18px;
    }

    .nk-guide .nk-fact__value {
        font-size: 18px;
    }

    .nk-guide .nk-prose blockquote {
        padding: 18px 20px;
        font-size: 18px;
    }

    .nk-guide .nk-prose .nk-tip,
    .nk-guide .nk-prose .nk-note,
    .nk-guide .nk-prose .nk-warn {
        padding-block: 18px;
        padding-inline: 58px 18px;
        font-size: 16px;
    }

    .nk-guide .nk-prose .nk-callout__icon {
        inset-inline-start: 14px;
        inset-block-start: 16px;
    }

    .nk-guide .nk-prose table {
        font-size: 14px;
    }

    .nk-guide .nk-prose th,
    .nk-guide .nk-prose td {
        padding: 10px 12px;
    }

    .nk-guide .nk-prose .nk-chart__canvas {
        height: 220px;
    }

    .nk-guide .nk-projects__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nk-guide .nk-projects__nav {
        display: none;
    }
}

/* ------------------------------------------------------------
   12. Print (ported only where absent)
   ------------------------------------------------------------ */
@media print {
    .nk-guide .nk-projects__nav {
        display: none;
    }
}

/* Small-screen card width (Compass-safe replacement for min(78%, 300px)) */
@media (max-width: 420px) {
    .nk-guide .nk-projects__track {
        grid-auto-columns: 78%;
    }
}

/* ============================================================
   RTL — Hebrew
   body.lang-he
   ============================================================ */

.lang-he .nk-guide {
    direction: rtl;
}


/* Header */

.lang-he .nk-guide__head {
    text-align: right;
}

.lang-he .nk-guide__head .kh-eyebrow {
    flex-direction: row;
}

.lang-he .nk-guide__head .kh-eyebrow::before {
    margin-left: 0;
    margin-right: 0;
}


/* TOC */

.lang-he .nk-guide .nk-guide__toc summary {
    text-align: right;
}

.lang-he .nk-guide .nk-toc__list {
    border-inline-start: 2px solid var(--kh-mist);
    border-inline-end: 0;
}

.lang-he .nk-guide .nk-toc__list a {
    margin-inline-start: -2px;
    margin-inline-end: 0;

    padding-block: 6px;
    padding-inline: 14px 0;

    border-inline-start: 2px solid transparent;
    border-inline-end: 0;

    text-align: right;
}

.lang-he .nk-guide .nk-toc__list li li a {
    padding-inline-start: 26px;
    padding-inline-end: 0;
}

.lang-he .nk-guide .nk-toc__list a.is-active {
    border-inline-start-color: var(--kh-blue);
    border-inline-end: 0;
}


/* Content */

.lang-he .nk-guide .nk-prose {
    direction: rtl;
    text-align: right;
}


/* H2 accent line */

.lang-he .nk-guide .nk-prose h2::before {
    inset-inline-start: 0;
    inset-inline-end: auto;
}

/* Internal link chips */

.lang-he .nk-guide .nk-prose a.nk-go::after {
    transform: scaleX(-1);
}

.lang-he .nk-guide .nk-prose a.nk-go:hover::after {
    transform: scaleX(-1) translateX(2px);
}


/* Callouts */

.lang-he .nk-guide .nk-prose .nk-tip,
.lang-he .nk-guide .nk-prose .nk-note,
.lang-he .nk-guide .nk-prose .nk-warn {
    padding:
        20px
        64px
        20px
        24px;
}

.lang-he .nk-guide .nk-prose .nk-callout__icon {
    inset-inline-start: 18px;
    inset-inline-end: auto;
}


/* Tables */

.lang-he .nk-guide .nk-prose table,
.lang-he .nk-guide .nk-prose th,
.lang-he .nk-guide .nk-prose td,
.lang-he .nk-guide .nk-prose caption {
    text-align: right;
}


/* "Read more" */

.lang-he .nk-guide__more {
    justify-content: flex-start;
}

@media (min-width: 1024px) {
    .lang-he .nk-guide__more {
        justify-content: flex-start;
    }
}


/* Mobile */

@media (max-width: 767px) {

    .lang-he .nk-guide .nk-prose .nk-tip,
    .lang-he .nk-guide .nk-prose .nk-note,
    .lang-he .nk-guide .nk-prose .nk-warn {
        padding:
            18px
            58px
            18px
            18px;
    }

    .lang-he .nk-guide .nk-prose .nk-callout__icon {
        inset-inline-start: 14px;
        inset-inline-end: auto;
    }

}

/* ------------------------------------------------------------
   RTL: Header meta, cover, key facts
   ------------------------------------------------------------ */

.lang-he .nk-guide .nk-guide__meta,
.lang-he .nk-guide .nk-guide__cover figcaption,
.lang-he .nk-guide .nk-fact,
.lang-he .nk-guide .nk-fact__label,
.lang-he .nk-guide .nk-fact__src {
    direction: rtl;
    text-align: right;
}

.lang-he .nk-guide .nk-guide__meta time,
.lang-he .nk-guide .nk-fact__value {
    unicode-bidi: isolate;
}

/* ------------------------------------------------------------
   RTL: Rich content, quotations, tables and charts
   ------------------------------------------------------------ */

.lang-he .nk-guide .nk-prose blockquote {
    border-radius: var(--nkg-r) 0 0 var(--nkg-r);
}

.lang-he .nk-guide .nk-prose hr {
    background: linear-gradient(270deg, var(--kh-blue) 0, var(--kh-blue) 44px, var(--kh-mist) 44px);
}

.lang-he .nk-guide .nk-prose .nk-table-wrap {
    direction: rtl;
    background:
        linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 40px 100% local no-repeat,
        linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 40px 100% local no-repeat,
        linear-gradient(to left, rgba(47,41,99,.14), rgba(47,41,99,0)) right / 16px 100% scroll no-repeat,
        linear-gradient(to right, rgba(47,41,99,.14), rgba(47,41,99,0)) left / 16px 100% scroll no-repeat;
    background-color: #fff;
}

.lang-he .nk-guide .nk-prose .nk-chart,
.lang-he .nk-guide .nk-prose .nk-table-hint,
.lang-he .nk-guide .nk-prose figcaption {
    text-align: right;
}

.lang-he .nk-guide .nk-prose .nk-chart__fallback i {
    direction: rtl;
}

/* ------------------------------------------------------------
   RTL: Project slider and shared project cards
   ------------------------------------------------------------ */

.lang-he .nk-guide .nk-projects__head,
.lang-he .nk-guide .nk-projects__all,
.lang-he .nk-guide .nk-projects__track {
    direction: rtl;
    text-align: right;
}

.lang-he .nk-guide .nk-projects__btn .nk-icon,
.lang-he .nk-guide .nk-projects__all .nk-icon {
    transform: scaleX(-1);
}

.lang-he .nk-guide .nk-projects__all:hover .nk-icon {
    transform: scaleX(-1) translateX(3px);
}

.lang-he .nk-guide .nk-pcard,
.lang-he .nkm .nk-pcard,
.lang-he .nkm-pop .nk-pcard,
.lang-he .iv .nk-pcard,
.lang-he .nk-guide .nk-pcard__body,
.lang-he .nk-guide .nk-pcard__cap {
    direction: rtl;
    text-align: right;
}

@media (max-width: 767px) {
    .lang-he .nk-guide .nk-projects__head {
        align-items: flex-start;
    }
}

/* Accessibility: prevent hover motion while retaining RTL arrow direction */
@media (prefers-reduced-motion: reduce) {
    .nk-guide .nk-pcard:hover,
    .nkm .nk-pcard:hover,
    .nkm-pop .nk-pcard:hover,
    .iv .nk-pcard:hover {
        transform: none;
    }

    .lang-he .nk-guide .nk-projects__all:hover .nk-icon {
        transform: scaleX(-1);
    }
}



/* CSS source: new-style/global/nk-quiz.css */
/* Requires /assets/css/new-style/global/base.css BEFORE this file.
   Preserve existing HTML/JS: all .nkq-* selectors remain compatible.
   If the separate cluster.css was retired, base.css must contain clusters. */

/* ============================================================
   QUIZ DESIGN TOKENS
   Uses NewKey base.css for brand colors, motion, fields and buttons.
   Local tokens retain the quiz's compact layout and can be tuned alone.
   ============================================================ */
.nkq {
    --nkq-choice-size: 16px;
    --nkq-small-size: 13px;
}

/* ============================================================
   HEBREW / RTL TYPOGRAPHY
   Directions and mirrored arrows are handled by the existing RTL rules.
   Use local size tokens only; never scale the complete dialog.
   ============================================================ */
.lang-he .nkq,
.nkq.lang-he {
    --nkq-choice-size: 17px;
    --nkq-small-size: 14px;
}
.lang-he .nkq__brand,
.lang-he .nkq__badge {
    letter-spacing: normal;
    text-transform: none;
}
.lang-he .nkq__step,
.lang-he .nkq__step-label,
.lang-he .nkq__hintline,
.lang-he .nkq__err {
    font-size: var(--nkq-small-size);
}

/* ============================================================
   NEWKEY QUIZ
   Base styles
   ============================================================ */

.nkq { position: fixed; inset: 0; z-index: 99993; display: none; font-family: var(--kh-font); color: var(--kh-text); }

.nkq.is-open { display: block; }

.nkq__bg { position: absolute; inset: 0; background: var(--kh-overlay); opacity: 0; transition: opacity var(--kh-dur-base) var(--kh-ease); }

.nkq.is-in .nkq__bg { opacity: 1; }

.nkq__box { position: absolute; top: 50%; left: 50%; width: 960px; max-width:calc(100% - 32px);  height: 680px; max-height:calc(100% - 32px);  transform: translate(-50%, -50%) scale(.97); opacity: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); border-radius: var(--kh-r-card); overflow: hidden; background: var(--kh-surface); box-shadow: 0 30px 80px rgba(2,3,4,.4); transition: transform var(--kh-dur-base) var(--kh-ease-out), opacity var(--kh-dur-base) var(--kh-ease); }

.nkq.is-in .nkq__box { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.nkq__side { position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: var(--kh-indigo); color: #fff; overflow: clip; }

.nkq__side .nk-cluster { z-index: 0; opacity: .7; }

.nkq__brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #9fd0ff; }

.nkq__art { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }

.nkq__art-icon { --nk-icon-box: 128px; --nk-icon-size: 56px; border-radius: 40px; background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform var(--kh-dur-base) var(--kh-ease-out), opacity var(--kh-dur-base); }

.nkq__art-icon.is-swap { transform: scale(.85); opacity: 0; }

.nkq__mood { position: relative; z-index: 1; margin: 0 0 20px; font-size: 18px; line-height: 1.4; font-weight: 500; color: #fff; min-height: 2.8em; }

/* ------------------------------------------------------------
   STEP PROGRESS
   ------------------------------------------------------------ */

.nkq__progress { position: relative; z-index: 1; }

.nkq__bar { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

.nkq__bar li { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }

.nkq__bar li i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--kh-blue); transition: width var(--kh-dur-base) var(--kh-ease); }

.nkq__bar li.is-done i, .nkq__bar li.is-current i { width: 100%; }

.nkq__bar li.is-current i { background: var(--kh-surface); }

.nkq__step { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }

.nkq__main { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }

.nkq__close { position: absolute; z-index: 5; inset-block-start: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kh-mist); color: var(--kh-indigo); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }

.nkq__close::after { content: ""; position: absolute; inset: -2px; }

/* 44px hit area (BRAND §16) */

.nkq__close .nk-icon { --nk-icon-box: 24px; --nk-icon-size: 18px; }

.nkq__close:hover { background: var(--kh-indigo); color: #fff; }

.nkq__head { padding: 36px 72px 8px 40px; }
.lang-he .nkq__head {padding: 36px 40px 8px 72px;}

.nkq__badge { gap: 6px; margin-block-end: 12px; }
.nkq__badge .nk-icon { --nk-icon-box: 18px; --nk-icon-size: 14px; }

.nkq__title { margin: 0; }

.nkq__hint { margin: 8px 0 0; }

.nkq__body { position: relative; overflow: auto; padding: 16px 40px 24px; min-height: 0; overscroll-behavior: contain; }

.nkq__body:focus-visible { outline: none; }

/* step transitions: the step container fades + slides, the box height never changes */

.nkq__panel { transition: opacity var(--kh-dur-base) var(--kh-ease), transform var(--kh-dur-base) var(--kh-ease-out); }

.nkq__panel.is-out-next { opacity: 0; transform: translateX(-24px); }

.nkq__panel.is-out-prev { opacity: 0; transform: translateX(24px); }

.nkq__panel.is-in-next { opacity: 0; transform: translateX(24px); }

.nkq__panel.is-in-prev { opacity: 0; transform: translateX(-24px); }

.nkq__head.is-swap, .nkq__step.is-swap, .nkq__mood.is-swap { opacity: 0; }

.nkq__head, .nkq__mood, .nkq__step { transition: opacity var(--kh-dur-fast); }

.nkq__zones { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.nkq__zone { padding: 14px 16px 16px; border: 1px solid var(--kh-mist); border-radius: 16px; background: var(--kh-surface); transition: border-color var(--kh-dur-fast), box-shadow var(--kh-dur-fast); }

.nkq__zone.is-some, .nkq__zone.is-all { border-color: var(--kh-blue); box-shadow: 0 0 0 1px var(--kh-blue); }

.nkq__zone-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; cursor: pointer; }

.nkq__zone-head b { font-size: 16px; font-weight: 600; color: var(--kh-indigo); }

.nkq__zone-head small { margin-inline-start: auto; font-size: 12px; color: var(--kh-text-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   CHECKBOX: custom 3-state input (quiz-specific)
   ------------------------------------------------------------ */

.nkq__cb { position: relative; flex: none; width: 22px; height: 22px; }

.nkq__cb input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.nkq__cb i { position: absolute; inset: 0; border: 2px solid var(--kh-indigo); border-radius: 7px; background: var(--kh-surface); transition: background var(--kh-dur-fast), border-color var(--kh-dur-fast); }

.nkq__cb i::after { content: ""; position: absolute; inset: 0; opacity: 0; background: var(--kh-surface); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; transition: opacity var(--kh-dur-fast); }

.nkq__cb input:checked + i { background: var(--kh-blue); border-color: var(--kh-blue); }

.nkq__cb input:checked + i::after { opacity: 1; }

.nkq__cb input:indeterminate + i { background: var(--kh-blue); border-color: var(--kh-blue); }

.nkq__cb input:indeterminate + i::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); opacity: 1; }

.nkq__cb input:focus-visible + i { outline: 2px solid var(--kh-blue); outline-offset: 3px; }

/* ------------------------------------------------------------
   CHIPS / ANSWER CARDS
   ------------------------------------------------------------ */

.nkq__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.nkq__chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-indigo); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background var(--kh-dur-fast), color var(--kh-dur-fast), transform var(--kh-dur-fast); }

.nkq__chip:hover { background: #c9e2ff; }

.nkq__chip .nk-icon { --nk-icon-box: 18px; --nk-icon-size: 14px; display: none; }

.nkq__chip[aria-pressed="true"] { background: var(--kh-blue); color: #fff; padding-inline-start: 12px; }

.nkq__chip[aria-pressed="true"] .nk-icon { display: inline-flex; }

.nkq__chip:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 3px; }

.nkq__chips--lg .nkq__chip { min-height: 48px; padding: 0 20px; font-size: 16px; }

.nkq__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }

.nkq__card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px solid var(--kh-mist); border-radius: 16px; background: var(--kh-surface); color: var(--kh-indigo); font: inherit; text-align: start; cursor: pointer; transition: border-color var(--kh-dur-fast), background var(--kh-dur-fast), transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast); }

.nkq__card .nk-icon { --nk-icon-box: 44px; --nk-icon-size: 22px; flex: none; border-radius: 12px; background: var(--kh-sky); color: var(--kh-indigo); transition: background var(--kh-dur-fast), color var(--kh-dur-fast); }

.nkq__card b { display: block; font-size: var(--nkq-choice-size); font-weight: 600; line-height: 1.25; }

.nkq__card small { display: block; margin-block-start: 2px; font-size: 13px; color: var(--kh-text-2); }

.nkq__card:hover { border-color: var(--kh-blue); transform: translateY(-2px); box-shadow: var(--kh-sh-md); }

.nkq__card[aria-pressed="true"] { border-color: var(--kh-blue); background: var(--kh-sky-050); box-shadow: 0 0 0 1px var(--kh-blue); }

.nkq__card[aria-pressed="true"] .nk-icon { background: var(--kh-blue); color: #fff; }

.nkq__card:focus-visible { outline: 2px solid var(--kh-blue); outline-offset: 3px; }

.nkq__summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }

.nkq__summary li { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--kh-r-pill); background: var(--kh-sky); color: var(--kh-indigo); font-size: 13px; font-weight: 500; }

.nkq__summary li.is-edit { background: transparent; padding: 0; }

.nkq__summary button { height: 28px; padding: 0 8px; border: 0; border-radius: var(--kh-r-pill); background: transparent; color: var(--kh-blue); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.nkq__form { display: grid; gap: 14px; }

.nkq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.nkq__input .nk-icon { --nk-icon-box: 44px; --nk-icon-size: 20px; flex: none; color: var(--kh-text-3); }

.nkq__input input { padding-inline-start: 0; padding-inline-end: 14px; }

.nkq__field.is-invalid .nkq__input { border-color: var(--kh-danger); }

.nkq__field.is-invalid .nkq__input .nk-icon { color: var(--kh-danger); }

.nkq__err { display: none; }

.nkq__field.is-invalid .nkq__err { display: block; }

.nkq__consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--kh-text-2); cursor: pointer; }

.nkq__consent .nkq__cb { margin-block-start: 1px; }

.nkq__consent a { color: var(--kh-blue); text-decoration: underline; text-underline-offset: 3px; }

.nkq__consent.is-invalid { color: var(--kh-danger); }

.nkq__consent.is-invalid .nkq__cb i { border-color: var(--kh-danger); }

.nkq__sent-err { display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--kh-danger-bg, #fdecec); color: #9b1c1c; font-size: 14px; }

.nkq__sent-err.is-on { display: flex; }

.nkq__sent-err .nk-icon { --nk-icon-box: 22px; --nk-icon-size: 18px; flex: none; }

.nkq__foot { display: flex; align-items: center; gap: 12px; padding: 16px 40px 24px; border-block-start: 1px solid var(--kh-line); background: var(--kh-surface); }

.nkq__foot .nkq__consult { margin-inline-end: auto; font-size: 14px; font-weight: 500; color: var(--kh-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: color var(--kh-dur-fast), text-decoration-color var(--kh-dur-fast); }

.nkq__foot .nkq__consult:hover { color: var(--kh-blue); text-decoration-color: currentColor; }

.nkq__foot .kh-btn { padding-inline: 26px; }

.nkq__foot .kh-btn .nk-icon { --nk-icon-box: 22px; --nk-icon-size: 18px; }

.nkq__foot .kh-btn[hidden] { display: none; }

.nkq__foot .kh-btn.is-busy { pointer-events: none; opacity: .85; }

.nkq__foot .kh-btn.is-busy .nkq__spin { display: block; }

.nkq__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-block-start-color: #fff; animation: nkq-spin .8s linear infinite; }

@keyframes nkq-spin { to { transform: rotate(360deg); } }

.nkq__confirm { position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); }

.nkq__confirm.is-on { display: flex; }

.nkq__confirm-box { max-width: 360px; text-align: center; }

.nkq__confirm-box b { display: block; font-size: 20px; color: var(--kh-indigo); margin: 0 0 6px; }

.nkq__confirm-box p { margin: 0; font-size: 15px; color: var(--kh-text-2); }

.nkq__confirm-box div { display: flex; justify-content: center; gap: 10px; margin-block-start: 18px; }

.nkq__confirm-box .kh-btn { height: 44px; padding: 0 20px; color: #fff; }

.nkq__confirm-box .kh-btn--secondary { color: var(--kh-indigo); }

.nkq__success { display: grid; align-content: center; justify-items: center; text-align: center; min-height: 100%; padding: 8px 0; }

.nkq__tick { width: 96px; height: 96px; margin: 0 0 18px; }

.nkq__tick circle { fill: var(--kh-sky); }

.nkq__tick path { fill: none; stroke: var(--kh-blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: nkq-tick .6s var(--kh-ease-out) .25s forwards; }

@keyframes nkq-tick { to { stroke-dashoffset: 0; } }

.nkq__success p { margin: 10px 0 0; max-width: 420px; font-size: 16px; color: var(--kh-text-2); }

.nkq__next { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; text-align: start; }

.nkq__next li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--kh-text); }

.nkq__next .nk-icon { --nk-icon-box: 28px; --nk-icon-size: 16px; flex: none; border-radius: 50%; background: var(--kh-sky); color: var(--kh-indigo); }

.nkq__success .kh-btn { margin-block-start: 24px; color: #fff; }

.nkq__success small { display: block; margin-block-start: 12px; font-size: 13px; color: var(--kh-text-3); }

.nkq__nums { display: grid; gap: 14px; }

.nkq__affix { display: inline-flex; align-items: center; height: 100%; padding-inline: 14px 4px; font-size: 16px; font-weight: 500; color: var(--kh-text-3); flex: none; }

.nkq__affix--end { padding-inline: 4px 14px; }

.nkq__hintline { font-size: 12px; color: var(--kh-text-3); }

/* Legacy key icon sizing: keep until the HTML gains .kh-btn--brand.
   The shared button modifier in base.css uses the same dimensions. */
.nkq[hidden] { display: none !important; }

.nkq__form-shell {
    display: grid;
    grid-column: 1;
    grid-row: 1 / -1;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.nkq__viewport {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.nkq__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.nkq__panel[hidden] {
    display: none;
}

.nkq__body {
    overflow: auto;
}

.nkq__chip-label,
.nkq__card-label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.nkq__chip-label > input,
.nkq__card-label > input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.nkq__chip-label.is-selected .nkq__chip {
    background: var(--kh-blue);
    color: #fff;
}

.nkq__chip-label > input:focus-visible + .nkq__chip,
.nkq__card-label > input:focus-visible + .nkq__card {
    outline: 2px solid var(--kh-blue);
    outline-offset: 3px;
}

.nkq__card-label.is-selected .nkq__card {
    border-color: var(--kh-blue);
    background: var(--kh-sky-050);
    box-shadow: 0 0 0 1px var(--kh-blue);
}

.nkq__step-error {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--kh-danger);
}

.nkq__info-block {
    margin-block-start: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--kh-sky-050);
}

.nkq__info-block .site-list {
    margin: 0;
}

.nkq__contact-form {
    display: grid;
    gap: 14px;
}

.nkq__messages:empty {
    display: none;
}

.nkq__step-label {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,.72);
    font-variant-numeric: tabular-nums;
}

.nkq__foot [data-nkq-submit].is-busy .nkq__spin {
    display: block;
}

/* Mortgage benefits: visible only after choosing "Yes". */

.nkq__info-block[hidden] {
    display: none !important;
}

.nkq__info-block {
    margin-block-start: 16px;
    padding: 16px 18px;
}

.nkq__info-block .site-list {
    margin: 0;
    padding-inline-start: 24px;
}

.nkq__info-block .site-list li + li {
    margin-block-start: 8px;
}

.nkq__zone-head {
    position: relative;
}

.nkq__zone-count {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--kh-text-3);
    font-variant-numeric: tabular-nums;
}

.nkq__zone.is-some,
.nkq__zone.is-all {
    border-color: var(--kh-blue);
    box-shadow: 0 0 0 1px var(--kh-blue);
}

.nkq__cb input:indeterminate + i {
    background: var(--kh-blue);
    border-color: var(--kh-blue);
}

.nkq__cb input:indeterminate + i::after {
    opacity: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

.nkq__consult {
    margin-inline-end: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kh-text-2);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color var(--kh-dur-fast), text-decoration-color var(--kh-dur-fast);
}

.nkq__consult:hover {
    color: var(--kh-blue);
    text-decoration-color: currentColor;
}

.nkq__card {
    gap: 14px;
}

.nkq__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--kh-sky);
    color: var(--kh-indigo);
}

.nkq__card-icon svg {
    width: 22px;
    height: 22px;
}

.nkq__card-label.is-selected .nkq__card-icon {
    background: var(--kh-blue);
    color: #fff;
}

.nkq__badge-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.nkq__badge-icon svg {
    width: 100%;
    height: 100%;
}

.nkq__summary-wrap {
    margin-block-end: 24px;
}

.nkq__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nkq__summary li {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: var(--kh-r-pill);
    background: var(--kh-sky);
    color: var(--kh-indigo);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.nkq__edit-answers {
    margin-block-start: 8px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--kh-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nkq__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nkq__input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 100%;
    color: var(--kh-text-3);
}

.nkq__input-icon svg {
    width: 20px;
    height: 20px;
}

.nkq__card-icon--currency {
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
}

.nkq__art-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    line-height: 1;
    font-weight: 500;
}

.nkq__foot .kh-btn[data-nkq-next]:disabled,
.nkq__foot .kh-btn[data-nkq-next].is-disabled {
    opacity: .42;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.nkq__card-icon--currency {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.nkq__success-screen {
    position: relative;
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    background: var(--kh-surface);
}

.nkq__success-screen[hidden] {
    display: none !important;
}

.nkq__success-head {
    padding: 36px 72px 8px 40px;
}

.nkq__success-body {
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 30px 40px 40px;
    text-align: center;
}

.nkq__success-check {
    width: 96px;
    height: 96px;
    margin-block-end: 18px;
}

.nkq__success-check svg {
    width: 100%;
    height: 100%;
}

.nkq__success-check circle {
    fill: var(--kh-sky);
}

.nkq__success-check path {
    fill: none;
    stroke: var(--kh-blue);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: nkq-success-tick .6s var(--kh-ease-out) .2s forwards;
}

@keyframes nkq-success-tick {
    to { stroke-dashoffset: 0; }
}

.nkq__success-text {
    max-width: 500px;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--kh-text-2);
}

.nkq__success-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    text-align: start;
}

.nkq__success-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--kh-text);
}

.nkq__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kh-sky);
    color: var(--kh-indigo);
}

.nkq__success-icon svg {
    width: 16px;
    height: 16px;
}

.nkq__success-btn {
    margin-block-start: 28px;
    min-width: 320px;
    justify-content: center;
    color: #fff;
}

.nkq__success-btn .nk-icon {
    --nk-icon-box: 22px;
    --nk-icon-size: 18px;
}

.nkq [data-success][hidden],
.nkq [data-validation-error][hidden] {
    display: none !important;
}

.nkq [data-error]:empty {
    display: none;
}

.nkq .nkq__field.is-invalid [data-error],
.nkq [data-error]:not(:empty) {
    display: block;
}

/* FetchIt may apply its configured invalid class directly to input. */

.nkq__input input.is-invalid,
.nkq__input input.error {
    color: inherit;
}

.nkq__input:has(input.is-invalid),
.nkq__input:has(input.error) {
    border-color: var(--kh-danger);
}

.nkq__card-icon--currency {
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
}

/* ============================================================
   RTL / Hebrew
   ============================================================ */
.lang-he .nkq__box {direction: rtl;}
.lang-he .nkq__panel.is-out-next, .lang-he .nkq__panel.is-in-prev { transform: translateX(24px); }

.lang-he .nkq__panel.is-out-prev, .lang-he .nkq__panel.is-in-next { transform: translateX(-24px); }



[dir="rtl"] .nkq__success-btn .nk-icon--arrow {
    transform: scaleX(-1);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .nkq__main {position: unset;}
}

@media (max-width: 900px) {
  .nkq__box { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-width: 100%; max-height: 100%; height: 100%; width: 100%; inset: 0; transform: none; border-radius: 0; }
  .lang-he .nkq__box, .nkq.is-in .nkq__box, .lang-he .nkq.is-in .nkq__box { transform: none; }
  .nkq__side { flex-direction: row; align-items: center; gap: 14px; padding: 14px 72px 14px 16px; }
  .nkq__brand, .nkq__art { display: none; }
  .nkq__mood { flex: 1; margin: 0; font-size: 15px; min-height: 0; }
  .nkq__progress { width: 120px; flex: none; }
  .nkq__step { margin-block-start: 6px; font-size: 12px; }
  .nkq__close { inset-block-start: 12px; inset-inline-end: 12px; background: rgba(255,255,255,.14); color: #fff; }
  .nkq__close:hover { background: var(--kh-surface); color: var(--kh-indigo); }
  .nkq__head { padding: 20px 20px 4px; }
  .nkq__body { padding: 12px 20px 20px; }
  .nkq__foot { position: sticky; inset-block-end: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .nkq__foot .nkq__consult { order: 3; flex-basis: 100%; text-align: center; margin: 4px 0 0; }
  .nkq__foot { flex-wrap: wrap; }
  .nkq__foot .kh-btn {padding: 0 15px;}
  .nkq__foot .kh-btn--accent, .nkq__foot .kh-btn--brand { flex: 1; }
  .nkq__row { grid-template-columns: 1fr; }
  .nkq__cards { grid-template-columns: 1fr; }

   .lang-he {
   	.nkq__side {padding: 14px 16px 14px 72px; }
   }
}

@media (max-width: 900px) {
    .nkq__form-shell {
        min-height: 0;
    }

    .nkq__viewport {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .nkq__consult {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        margin: 4px 0 0;
    }

    .nkq__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .nkq__success-head {
        padding: 20px 56px 4px 20px;
    }

    .nkq__success-body {
        padding: 24px 20px 32px;
    }

    .nkq__success-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .nkq__bg, .nkq__box, .nkq__panel, .nkq__head, .nkq__mood, .nkq__step, .nkq__art-icon, .nkq__card, .nkq__chip, .nkq__bar li i { transition: none; }
  .nkq__panel.is-out-next, .nkq__panel.is-out-prev, .nkq__panel.is-in-next, .nkq__panel.is-in-prev { transform: none; }
  .nkq__card:hover { transform: none; }
  .nkq__tick path { animation: none; stroke-dashoffset: 0; }
  .nkq__spin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nkq__success-check path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Global typography on the standalone success title. */
.nkq__success-body h3 { margin: 0; }



