/* dzchess.app: the site's styles. Load ../tokens/tokens.css first; this file reads only --dz-* tokens.
   - Standalone, the tokens' fallbacks apply (light or dark from the visitor's setting). Inside an MCP
     App view, the host's variables apply wherever a token maps to one.
   - Layout follows the .page container (@container page), never the viewport, so the same markup fits
     a phone, a desktop and a host's card. No vh units (they loop under a host's auto-resize).
   - Direction-agnostic: logical properties throughout. dir="rtl" needs only .icon-flip on arrows.
   - Generic element rules sit in :where() so a component class always wins.
   - Nothing here needs a script. The copy button is the one enhancement (NOTES.md). */

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--dz-page); }
.page {
  container: page / inline-size;
  position: relative;
  background: var(--dz-page);
  color: var(--dz-text);
  font-family: var(--dz-font);
  font-size: var(--dz-text-body);
  line-height: var(--dz-leading-body);
  -webkit-font-smoothing: antialiased;
}
:where(.page) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre, blockquote) { margin: 0; }
:where(.page) :where(h1, h2, h3, h4) { font-weight: 600; line-height: var(--dz-leading-head); text-wrap: balance; }
:where(.page) :where(p, li, dd) { text-wrap: pretty; }
:where(.page) :where(img, svg) { max-width: 100%; }
:where(.page) a { color: var(--dz-link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:where(.page) a:hover { color: var(--dz-link-hover); text-decoration-thickness: 2px; }
:where(.page) :focus-visible { outline: 3px solid var(--dz-focus); outline-offset: 2px; border-radius: 4px; }
:where(.page) :where(code, kbd, pre, samp) { font-family: var(--dz-font-mono); }
:where(.page) :not(pre) > code { padding: .12em .38em; border-radius: 5px; background: var(--dz-surface-2); font-size: .88em; overflow-wrap: anywhere; }
:where(.page) strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* The brand, inline: mark and wordmark take their colours from the tokens */
.mk-b { fill: var(--dz-mark-bubble); }
.mk-s { fill: var(--dz-mark-square); }
.wm { fill: none; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.wm-accent { stroke: var(--dz-word-accent); }
.wm-ink { stroke: var(--dz-word-ink); }
.wm-dot { fill: var(--dz-word-accent); }

/* ── Frame: skip link, wrap, header, footer ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: 8px; z-index: 10;
  padding: 10px 16px; border-radius: var(--dz-radius-md);
  background: var(--dz-text); color: var(--dz-page); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--dz-page); }
.wrap { width: 100%; max-width: calc(var(--dz-wrap) + 2 * var(--dz-gutter-x)); margin-inline: auto; padding-inline: var(--dz-gutter-x); }

.site-header { border-block-end: 1px solid var(--dz-border); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--dz-space-5); min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-inline-end: auto; direction: ltr; color: inherit; text-decoration: none; }
.lockup svg { display: block; flex: none; }
.lockup__svg { width: auto; height: 26px; }   /* the mark about 28 px; in Hebrew it sits on the right (D-0028) */
.site-nav { order: 1; }
.site-nav ul { display: flex; flex-wrap: wrap; column-gap: var(--dz-space-5); margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--dz-text); font-size: var(--dz-text-ui); font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--dz-link-hover); text-decoration: underline; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { text-decoration: underline 2px var(--dz-accent); text-underline-offset: 8px; }
.lang-switch {
  order: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding-inline: 10px; margin-inline-end: -10px; border-radius: 999px;
  color: var(--dz-muted); font-size: var(--dz-text-ui); text-decoration: none;
}
.lang-switch:hover { background: var(--dz-surface-2); color: var(--dz-text); text-decoration: none; }
@container page (max-width: 639px) {
  .site-header__in { padding-block: 4px; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { column-gap: var(--dz-space-4); }
}

.site-footer { padding-block: 40px 44px; border-block-start: 1px solid var(--dz-border); background: var(--dz-surface); color: var(--dz-muted); font-size: var(--dz-text-ui); }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.site-footer__brand { display: grid; gap: 8px; justify-items: start; }
.site-footer__brand .lockup { margin: 0; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; column-gap: var(--dz-space-5); margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; color: var(--dz-text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--dz-link-hover); text-decoration: underline; }
.site-footer__nav a[aria-current="page"] { text-decoration: underline 2px var(--dz-accent); text-underline-offset: 6px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__by { font-size: var(--dz-text-fine); }
.site-footer__fine { grid-column: 1 / -1; padding-block-start: 18px; border-block-start: 1px solid var(--dz-border); font-size: var(--dz-text-fine); line-height: 1.55; }
.site-footer__fine p + p { margin-block-start: 4px; }
@container page (max-width: 639px) { .site-footer__in { grid-template-columns: minmax(0, 1fr); } }

/* ── Type blocks ──────────────────────────────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(36px, 6cqi, 72px) clamp(20px, 3cqi, 36px); }
.eyebrow { margin-block-end: 10px; color: var(--dz-link); font-size: var(--dz-text-fine); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-title { max-width: 22ch; font-family: var(--dz-font-display); font-size: var(--dz-display-2); font-weight: var(--dz-weight-display); letter-spacing: -.01em; }
.lede { max-width: 60ch; margin-block-start: 14px; color: var(--dz-muted); font-size: 1.1875rem; line-height: 1.55; }
.meta { margin-block-start: 12px; color: var(--dz-muted); font-size: var(--dz-text-ui); }
:lang(he) :is(.eyebrow, .page-title, .hero__title) { letter-spacing: 0; }
:lang(he) :is(.page-title, .hero__title, .section__title, .band__title) { font-weight: 700; }

.prose { max-width: var(--dz-measure); }
.prose > * + * { margin-block-start: 1.05em; }
.prose h2 { margin-block-start: 2.1em; font-family: var(--dz-font-display); font-size: var(--dz-heading-2); }
.prose h3 { margin-block-start: 1.7em; font-size: var(--dz-heading-3); }
.prose :is(h2, h3) + * { margin-block-start: .6em; }
.prose :is(ul, ol) { padding-inline-start: 1.35em; }
.prose li + li { margin-block-start: .45em; }
.prose li::marker { color: var(--dz-muted); }
.prose > :is(.callout, .table-wrap, .code, figure, .copy-field) { margin-block: 1.5em; }
.prose hr { margin-block: 2.4em; border: 0; border-block-start: 1px solid var(--dz-border); }
:lang(he) .prose { line-height: 1.7; }

/* ── Controls ─────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--dz-radius-md);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color var(--dz-dur-fast) var(--dz-ease), border-color var(--dz-dur-fast) var(--dz-ease);
}
.btn--primary { background: var(--dz-accent); color: var(--dz-on-accent); }
.btn--primary:hover { background: var(--dz-accent-hover); color: var(--dz-on-accent); text-decoration: none; }
.btn--secondary { background: transparent; color: var(--dz-text); border-color: var(--dz-border-strong); }
.btn--secondary:hover { background: var(--dz-surface-2); color: var(--dz-text); text-decoration: none; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: var(--dz-text-ui); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@container page (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

/* A two- or three-way switch between sibling pages (the guides: Claude | ChatGPT). Links, not a script. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-block-start: 22px; padding: 4px; border: 1px solid var(--dz-border); border-radius: 999px; background: var(--dz-surface); }
.seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--dz-text); font-size: var(--dz-text-ui); font-weight: 600; text-decoration: none; }
.seg a:hover { background: var(--dz-surface-2); color: var(--dz-text); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--dz-text); color: var(--dz-page); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px;
  background: var(--dz-surface-2); color: var(--dz-muted); font-size: var(--dz-text-fine); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.badge--ok { background: var(--dz-tip-bg); color: var(--dz-tip-ink); }
.badge--soon { background: var(--dz-warn-bg); color: var(--dz-warn-ink); }

/* The copy field: a read-only input and a button. The button needs the script; without it the input
   is still selectable. data-state="copied" swaps the label. */
.copy-field { display: grid; gap: 8px; max-width: 34rem; }
.copy-field__label { font-size: var(--dz-text-ui); font-weight: 600; }
.copy-field__row { display: flex; gap: 8px; }
.copy-field__input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-md);
  background: var(--dz-page); color: var(--dz-text); font-family: var(--dz-font-mono); font-size: .9375rem; text-align: left;
}
.copy-field__btn { flex: none; }
.copy-field__btn[hidden] { display: none; }   /* copy.js reveals it; without a script the input stays selectable */
.copy-field__idle { display: inline-flex; align-items: center; gap: 8px; }
.copy-field__done { display: none; }
.copy-field[data-state="copied"] .copy-field__idle { display: none; }
.copy-field[data-state="copied"] .copy-field__done { display: inline-flex; align-items: center; gap: 8px; }
.copy-field[data-state="copied"] .copy-field__btn { border-color: var(--dz-tip-line); background: var(--dz-tip-bg); color: var(--dz-tip-ink); }
.copy-field__hint { color: var(--dz-muted); font-size: var(--dz-text-fine); }
@container page (max-width: 379px) { .copy-field__row { flex-direction: column; } }

/* ── Content parts ────────────────────────────────────────────────────────────────────────────── */
.callout {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px; padding: 16px 18px;
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); background: var(--dz-surface); color: var(--dz-text);
}
.callout > .icon { width: 24px; height: 24px; margin-block-start: 1px; color: var(--dz-muted); }
.callout__body > * + * { margin-block-start: 6px; }
.callout__title { font-weight: 700; }
.callout--tip { border-color: var(--dz-tip-line); background: var(--dz-tip-bg); }
.callout--tip > .icon, .callout--tip .callout__title { color: var(--dz-tip-ink); }
.callout--warn { border-color: var(--dz-warn-line); background: var(--dz-warn-bg); }
.callout--warn > .icon, .callout--warn .callout__title { color: var(--dz-warn-ink); }

.steps { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding-inline-start: 54px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: -3px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--dz-accent); color: var(--dz-on-accent); font-weight: 700; font-variant-numeric: tabular-nums;
}
.step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17px; inset-block: 42px -24px; width: 2px; border-radius: 1px; background: var(--dz-border); }
.step > * + * { margin-block-start: 10px; }
.step__title { font-size: var(--dz-heading-3); line-height: 1.3; }

.shot { display: grid; gap: 8px; }
.shot__frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); box-shadow: var(--dz-shadow-card);
  background: repeating-linear-gradient(135deg, transparent 0 10px, light-dark(rgba(60,40,20,.04), rgba(255,255,255,.03)) 10px 20px), var(--dz-surface-2);
}
.shot__frame img { display: block; }
.shot__frame:not(.shot__frame--fit) img { width: 100%; height: 100%; object-fit: cover; }
.shot__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: var(--dz-muted); font-size: var(--dz-text-fine); text-align: center; }
.shot--phone .shot__frame { max-width: 240px; aspect-ratio: 9 / 19.5; border-radius: 26px; }
/* A cropped piece of a host's screen, shown at its own size and shape on the frame's dark surface. */
.shot__frame--fit { display: block; width: fit-content; max-width: 100%; aspect-ratio: auto; padding: clamp(8px, 1.6cqi, 14px); background: #16140f; }
/* Its width and height attributes size it, so its room is kept before it loads: no width may be set on it
   in CSS, which would override them (T100: the last screenshot of a guide moved the page as it loaded). */
.shot__frame--fit img { max-width: 100%; height: auto; border-radius: 8px; object-fit: contain; }
.step .shot { max-width: 40rem; }
.step .shot--wide { max-width: 100%; }   /* a wide screenshot keeps its text readable */
.shot figcaption { color: var(--dz-muted); font-size: var(--dz-text-fine); }

.table-wrap { overflow-x: auto; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--dz-text-ui); line-height: 1.45; }
.table :is(th, td) { padding: 10px 14px; border-block-start: 1px solid var(--dz-border); text-align: start; vertical-align: top; }
.table thead th { border-block-start: 0; background: var(--dz-surface); color: var(--dz-muted); font-size: var(--dz-text-fine); font-weight: 700; }
.table tbody th { font-weight: 600; }
.table .icon { width: 18px; height: 18px; vertical-align: -3px; }
.table .yes { color: var(--dz-tip-ink); }
.table .no { color: var(--dz-muted); }
@container page (max-width: 479px) { .table :is(th, td) { padding: 8px 10px; } }

.code {
  padding: 14px 16px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-md); background: var(--dz-surface);
  font-size: .875rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.code[dir="ltr"], .licence { text-align: left; }
.code:lang(he):not([dir="ltr"]) { font-family: var(--dz-font); font-size: .9375rem; }   /* Hebrew sample messages: monospace faces lack good Hebrew */
:where(.page) kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; border: 1px solid var(--dz-border-strong); border-block-end-width: 2px;
  border-radius: 6px; background: var(--dz-page); font-size: .82em; line-height: 1.5; text-align: center; white-space: nowrap;
}
.licence {
  padding: 16px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-md); background: var(--dz-surface);
  font-size: .8125rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ── Home ─────────────────────────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(36px, 7cqi, 88px) var(--dz-section-y); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5cqi, 72px); }
.hero__title { font-family: var(--dz-font-display); font-size: var(--dz-display-1); font-weight: var(--dz-weight-display); line-height: 1.04; letter-spacing: -.02em; }
:lang(he) .hero__title { line-height: 1.12; }
.hero__lede { max-width: 34em; margin-block-start: 20px; color: var(--dz-muted); font-size: clamp(1.125rem, 1.05rem + .35cqi, 1.3125rem); line-height: 1.55; }
.hero__brand { display: block; width: auto; height: clamp(30px, 1.5rem + 1.2cqi, 44px); margin-block-end: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-block-start: 28px; }
.hero__attitude { font-size: 1.0625rem; font-weight: 700; }
.hero__by { margin-block-start: 16px; color: var(--dz-muted); font-size: var(--dz-text-fine); }
.hero__note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--dz-muted); font-size: var(--dz-text-ui); }
.hero__note li { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .icon { width: 18px; height: 18px; color: var(--dz-tip-ink); }
@container page (max-width: 899px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }

/* The still: a plain chat-like frame around the board, drawn from the board's own parts */
.chat { padding: clamp(14px, 2.4cqi, 22px); border: 1px solid var(--dz-border); border-radius: 20px; background: var(--dz-surface); box-shadow: var(--dz-shadow-card); }
.chat__you { display: flex; justify-content: flex-end; margin-block-end: 14px; }
.chat__you p { max-width: 82%; padding: 9px 14px; border-radius: 16px; border-end-end-radius: 4px; background: var(--dz-surface-2); font-size: var(--dz-text-ui); line-height: 1.45; }
.board-card { padding: clamp(10px, 2cqi, 16px); border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); background: var(--dz-page); }
.board-card__status { display: flex; align-items: center; min-height: 32px; margin-block-end: 8px; font-size: 1rem; font-weight: 600; }
.board-card__board { display: block; width: 100%; height: auto; }
.board-card__talk { display: grid; gap: 6px; margin-block-start: 10px; font-size: var(--dz-text-ui); line-height: 1.45; }
.board-card__talk p { padding: 6px 2px; }
.talk-move { margin-inline-end: 6px; font-family: var(--dz-font-serif); font-weight: 700; }
.board-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-md); font-size: var(--dz-text-fine); font-weight: 600; white-space: nowrap; }
.board-card__stamp { margin-block-start: 6px; color: var(--dz-muted); font-family: var(--dz-font-mono); font-size: 11px; text-align: end; }
.still-board .l { fill: light-dark(#ecead2, #d9d6bd); }
.still-board .d { fill: light-dark(#73945a, #627f4c); }
.still-board .hl { fill: rgba(214, 168, 40, .42); }
.still-board .co { fill: var(--dz-muted); font: 600 10px var(--dz-font); }

.section { padding-block: var(--dz-section-y); }
.section--alt { border-block: 1px solid var(--dz-border); background: var(--dz-surface); }
.section__head { max-width: 46rem; margin-block-end: clamp(24px, 4cqi, 40px); }
.section__title { font-family: var(--dz-font-display); font-size: clamp(1.75rem, 1.4rem + 1.4cqi, 2.5rem); font-weight: var(--dz-weight-display); }
.section__lede { margin-block-start: 12px; color: var(--dz-muted); font-size: 1.125rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3cqi, 28px); border: 1px solid var(--dz-border); border-radius: var(--dz-radius-xl); background: var(--dz-page); }
.card__icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--dz-brick-soft); color: var(--dz-link); }
.card__title { font-size: 1.25rem; line-height: 1.3; }
.card__text { color: var(--dz-muted); }
.card__tag { margin-block-start: auto; padding-block-start: 6px; color: var(--dz-link); font-size: var(--dz-text-fine); font-weight: 700; }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card__btn { align-self: start; margin-block-start: auto; }
@container page (max-width: 767px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; align-content: start; }
.feature__icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--dz-brick-soft); color: var(--dz-link); }
.feature__title { padding-block-start: 1px; font-size: 1.0625rem; line-height: 1.35; }
.feature__text { color: var(--dz-muted); font-size: var(--dz-text-ui); line-height: 1.55; }
@container page (max-width: 899px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 559px) { .features { grid-template-columns: minmax(0, 1fr); } }

.band { padding-block: clamp(36px, 6cqi, 72px); border-block: 1px solid var(--dz-border); background: var(--dz-surface); }
.band__in { display: flex; align-items: center; gap: clamp(20px, 4cqi, 40px); }
.band__mark { flex: none; width: clamp(56px, 9cqi, 88px); height: auto; }
.band__title { font-family: var(--dz-font-display); font-size: var(--dz-heading-2); }
.band__text { margin-block-start: 8px; color: var(--dz-muted); }
@container page (max-width: 479px) { .band__in { flex-direction: column; align-items: flex-start; } }

/* ── Install guides ───────────────────────────────────────────────────────────────────────────── */
.install { display: grid; gap: clamp(40px, 6cqi, 64px); max-width: 52rem; padding-block: 4px clamp(56px, 8cqi, 96px); }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.path { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); background: var(--dz-surface); color: var(--dz-text); text-decoration: none; }
.path:hover { border-color: var(--dz-border-strong); color: var(--dz-text); text-decoration: none; }
.path__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; }
.path__text { color: var(--dz-muted); font-size: var(--dz-text-ui); }
@container page (max-width: 559px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.install-path__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-end: 8px; }
.install-path__title { font-family: var(--dz-font-display); font-size: var(--dz-heading-2); }
.install-path__lede { margin-block-end: 24px; color: var(--dz-muted); }
.next { display: grid; gap: 16px; }

/* ── Docs ─────────────────────────────────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(32px, 5cqi, 72px); padding-block: clamp(28px, 5cqi, 56px) clamp(56px, 8cqi, 96px); }
.docs-nav__title { margin-block-end: 10px; color: var(--dz-muted); font-size: var(--dz-text-fine); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
:lang(he) .docs-nav__title { letter-spacing: 0; }
.docs-nav ul { display: grid; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--dz-border); }
.docs-nav a {
  display: flex; align-items: center; min-height: 44px; margin-inline-start: -1px; padding-block: 6px; padding-inline: 14px 8px;
  border-inline-start: 2px solid transparent; color: var(--dz-text); font-size: var(--dz-text-ui); line-height: 1.35; text-decoration: none;
}
.docs-nav a:hover { border-inline-start-color: var(--dz-border-strong); color: var(--dz-link-hover); }
.docs-nav a[aria-current="page"] { border-inline-start-color: var(--dz-accent); font-weight: 700; }
.docs-article { min-width: 0; }
.docs-article .page-title { margin-block-start: 0; }
.docs-jump { display: none; align-items: center; min-height: 44px; margin-block-start: 4px; font-size: var(--dz-text-ui); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: var(--dz-measure); margin-block-start: 48px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); color: var(--dz-text); text-decoration: none; }
.pager a:hover { border-color: var(--dz-border-strong); text-decoration: none; }
.pager__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--dz-muted); font-size: var(--dz-text-fine); }
.pager__title { color: var(--dz-link); font-weight: 700; }
.pager__next { grid-column: 2; text-align: end; justify-items: end; }
@container page (max-width: 899px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { order: 2; padding-block-start: 28px; border-block-start: 1px solid var(--dz-border); }
  .docs-jump { display: inline-flex; }
}
@container page (max-width: 479px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager__next { grid-column: auto; } }

/* ── Legal, credits, support, not found ───────────────────────────────────────────────────────── */
.doc-body { padding-block: 4px clamp(56px, 8cqi, 96px); }
.summary { max-width: var(--dz-measure); padding: 20px 22px; border: 1px solid var(--dz-paper-rule); border-radius: var(--dz-radius-lg); background: var(--dz-paper); }
.summary__title { margin-block-end: 8px; font-family: var(--dz-font-display); font-size: 1.25rem; }
.summary ul { margin: 0; padding-inline-start: 1.2em; }
.summary li + li { margin-block-start: 4px; }
.toc { max-width: var(--dz-measure); margin-block-start: 20px; padding: 16px 22px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-lg); }
.toc__title { margin-block-end: 6px; font-size: var(--dz-text-ui); font-weight: 700; }
.toc ol { margin: 0; padding-inline-start: 1.4em; columns: 2 15rem; column-gap: 32px; font-size: var(--dz-text-ui); }
.toc li { break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }   /* a 44 px touch target (the brief) */
.doc-body .prose { margin-block-start: 8px; }

.doc-body > .prose:first-child > :first-child { margin-block-start: 0; }
.credits { max-width: var(--dz-measure); margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--dz-border); }
.prose + .credits { margin-block-start: 16px; }
.credits + .prose { margin-block-start: 28px; }
.credit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 14px; border-block-end: 1px solid var(--dz-border); }
.credit__name { font-weight: 700; }
.credit__what { grid-column: 1 / -1; color: var(--dz-muted); font-size: var(--dz-text-ui); }
.credit .badge { align-self: start; }

.contact { display: grid; gap: 10px; max-width: 40rem; padding: clamp(20px, 4cqi, 32px); border: 1px solid var(--dz-border); border-radius: var(--dz-radius-xl); background: var(--dz-surface); }
.contact__label { color: var(--dz-muted); font-size: var(--dz-text-ui); font-weight: 600; }
.contact__email { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; font-size: clamp(1.25rem, 1.1rem + 1cqi, 1.75rem); font-weight: 700; overflow-wrap: anywhere; }
.contact__note { color: var(--dz-muted); font-size: var(--dz-text-ui); }

.notfound { padding-block: clamp(40px, 8cqi, 104px); }
.notfound__in { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5cqi, 56px); align-items: start; }
.notfound__art { width: clamp(112px, 16cqi, 176px); height: auto; clip-path: inset(0 round 10px); }
.notfound__block { display: grid; gap: 12px; }
.notfound__title { font-family: var(--dz-font-display); font-size: var(--dz-heading-2); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.notfound__links a { display: inline-flex; align-items: center; min-height: 44px; }
@container page (max-width: 767px) { .notfound__in { grid-template-columns: minmax(0, 1fr); } }

/* ── Print and forced colours ─────────────────────────────────────────────────────────────────── */
@media print {
  .site-nav, .lang-switch, .skip-link, .docs-nav, .pager, .site-footer__nav { display: none; }
  .page { background: #fff; color: #000; }
}
@media (forced-colors: active) {
  .btn, .chip, .path, .card, .callout { border-color: CanvasText; }
  .step::before { border: 1px solid CanvasText; }
}
