/* SKYLARK Design System — documentation site and components. Concept by Libra Intelligence.
   Palette from the SKYLARK brand: midnight, white, greys; status colours only for status. */
:root {
  /* primitives */
  --midnight: #0B1A2E; --midnight-2: #13253D; --midnight-3: #1C3150;
  --ink: #0E1116; --graphite: #1D232B; --steel: #5E6773; --steel-2: #8A929C; --cloud: #C9CED5; --line-p: #E3E6EA; --mist: #EEF0F2; --paper: #F6F7F8; --white: #FFFFFF;
  --ok: #2F7D55; --ok-bg: #E6F2EC; --fly: #2F5AA8; --fly-bg: #E7EDF8; --warn: #9A6A12; --warn-bg: #F6EEDC; --mx: #8A3B3B; --mx-bg: #F5E7E7;
  /* semantic, light */
  --bg: #FFFFFF; --bg-sub: #F6F7F8; --surface: #FFFFFF; --surface-2: #F6F7F8; --surface-3: #EEF0F2;
  --text: #0E1116; --text-2: #3A424C; --text-3: #5E6773; --border: #E3E6EA; --border-2: #C9CED5;
  --primary: #0B1A2E; --primary-hover: #1C3150; --on-primary: #FFFFFF; --focus: #0B1A2E;
  --danger: #8A3B3B; --danger-hover: #6F2E2E;
  --ok-t: #2F7D55; --ok-s: #E6F2EC; --fly-t: #2F5AA8; --fly-s: #E7EDF8; --warn-t: #9A6A12; --warn-s: #F6EEDC; --mx-t: #8A3B3B; --mx-s: #F5E7E7;
  --code-bg: #0B1A2E; --code-t: #D8DEE7;
  --e1: 0 1px 2px rgba(11, 26, 46, .06), 0 0 0 1px rgba(11, 26, 46, .04);
  --e2: 0 8px 24px -10px rgba(11, 26, 46, .18), 0 0 0 1px rgba(11, 26, 46, .05);
  --e3: 0 24px 48px -18px rgba(11, 26, 46, .28), 0 0 0 1px rgba(11, 26, 46, .05);
  --e4: 0 40px 80px -24px rgba(11, 26, 46, .4), 0 0 0 1px rgba(11, 26, 46, .06);
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --disp: "Archivo", "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-in: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.7, 0, .84, 0);
  --side: 264px; --top: 60px;
  color-scheme: light;
}
html[data-theme=dark] {
  --bg: #07111F; --bg-sub: #0A1524; --surface: #0F1C2F; --surface-2: #13233A; --surface-3: #1A2C46;
  --text: #E9EDF2; --text-2: #BAC4D1; --text-3: #8E9AAC; --border: #1F2F46; --border-2: #2E4262;
  --primary: #E9EDF2; --primary-hover: #FFFFFF; --on-primary: #0B1A2E; --focus: #9FB6DA;
  --danger: #D97C7C; --danger-hover: #E89595;
  --ok-t: #7CC7A0; --ok-s: rgba(124, 199, 160, .12); --fly-t: #93B4EC; --fly-s: rgba(147, 180, 236, .13); --warn-t: #E0B566; --warn-s: rgba(224, 181, 102, .13); --mx-t: #E29A9A; --mx-s: rgba(226, 154, 154, .13);
  --code-bg: #040A14; --code-t: #D8DEE7;
  --e1: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .04);
  --e2: 0 8px 24px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
  --e3: 0 24px 48px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  --e4: 0 40px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  color-scheme: dark;
}
html[lang=he] { --sans: "Heebo", -apple-system, Arial, sans-serif; --disp: "Heebo", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
html.motion { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s var(--ease), color .3s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--primary); color: var(--on-primary); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir=rtl] .flip { transform: scaleX(-1); }
.lk--light { display: none; }
[data-theme=dark] .lk--dark { display: none; }
[data-theme=dark] .lk--light { display: block; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; height: var(--top); padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.top__menu { display: none; width: 40px; height: 40px; margin-inline-start: -8px; border: 0; background: none; border-radius: 8px; place-items: center; }
.top__logo { flex: none; }
.top__logo img { width: 112px; height: auto; }
.top__name { font: 500 14px/1 var(--disp); font-stretch: 110%; color: var(--text); padding-inline-start: 14px; border-inline-start: 1px solid var(--border); white-space: nowrap; }
.top__ver { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); }
.search { position: relative; display: flex; align-items: center; gap: 8px; width: min(340px, 30vw); height: 36px; margin-inline-start: auto; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-3); transition: border-color .2s var(--ease), background .2s var(--ease); }
.search:focus-within { border-color: var(--border-2); background: var(--surface); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font-size: 13px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 500 11px/1 var(--mono); padding: 3px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-3); }
.top__end { display: flex; align-items: center; gap: 10px; }
.theme { position: relative; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); display: grid; place-items: center; color: var(--text-2); transition: background .2s var(--ease); }
.theme:hover { background: var(--surface-2); }
.theme svg { grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.theme__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme=dark] .theme__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme=dark] .theme__moon { opacity: 1; transform: none; }
.lang { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.lang button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 12px; font-weight: 600; color: var(--text-3); transition: background .2s var(--ease), color .2s var(--ease); }
.lang button[lang=he] { font-family: "Heebo", sans-serif; }
.lang button[aria-pressed=true] { background: var(--primary); color: var(--on-primary); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.side { position: sticky; top: var(--top); height: calc(100svh - var(--top)); overflow-y: auto; border-inline-end: 1px solid var(--border); overscroll-behavior: contain; }
.side__in { padding: 24px 16px 60px 20px; display: grid; }
[dir=rtl] .side__in { padding: 24px 20px 60px 16px; }
.side__g { margin: 20px 0 6px; padding-inline-start: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.side__g:first-child { margin-top: 0; }
[lang=he] .side__g { letter-spacing: .02em; }
.side a { position: relative; display: block; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--text-2); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a.is-on { background: var(--surface-3); color: var(--text); font-weight: 500; }
.side a.is-hidden, .side__g.is-hidden { display: none; }
.side__empty { padding: 8px 10px; font-size: 13px; color: var(--text-3); }
.scrim { display: none; }

/* ---------------------------------------------------------------- doc */
.doc { min-width: 0; padding: 0 clamp(20px, 5vw, 72px) 40px; }
.sec { max-width: 880px; padding: 64px 0; border-bottom: 1px solid var(--border); }
.sec--hero { padding-top: 72px; }
.eyebrow { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
[lang=he] .eyebrow { letter-spacing: .02em; }
.h1 { font: 500 clamp(34px, 4.6vw, 56px)/1.05 var(--disp); font-stretch: 112%; letter-spacing: -.02em; max-width: 16ch; color: var(--text); }
[lang=he] .h1, [lang=he] .h2 { letter-spacing: -.01em; line-height: 1.12; }
.h2 { font: 500 clamp(28px, 3vw, 38px)/1.1 var(--disp); font-stretch: 110%; letter-spacing: -.015em; }
.h3 { margin: 36px 0 14px; font: 600 15px/1.3 var(--sans); }
.lede { margin-top: 14px; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.p { max-width: 64ch; color: var(--text-2); margin-bottom: 16px; }
.note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--end { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 620px; }

.ov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--border); }
.ov > div { padding: 18px 16px 0 0; }
.ov > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--border); }
.ov dt { font: 500 36px/1 var(--disp); font-stretch: 110%; color: var(--text); }
.ov dd { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.ov__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pr3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.pr3 article { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.pr3__n { font: 500 12px/1 var(--mono); color: var(--text-3); }
.pr3 h3 { margin: 24px 0 8px; font: 500 18px/1.25 var(--disp); font-stretch: 108%; }
.pr3 p:last-child { font-size: 14px; color: var(--text-2); }

/* swatches */
.sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swc { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.swc__c { height: 84px; display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 10px; font: 500 11px/1 var(--mono); }
.swc__b { padding: 10px 10px 12px; display: grid; gap: 2px; }
.swc__b b { font-size: 13px; font-weight: 600; }
.swc__b code { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.swc__cr { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cr { font: 500 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }
.cr--fail { background: transparent; color: var(--text-3); text-decoration: line-through; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.tt { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt th, .tt td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tt th { font-weight: 600; font-size: 12px; color: var(--text-3); background: var(--surface-2); }
.tt tr:last-child td { border-bottom: 0; }
.tt code { font: 400 12px/1 var(--mono); }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); }
.chip i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .3); }

/* type scale */
.ts { border-top: 1px solid var(--border); margin-top: 24px; }
.ts__r { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.ts__m { display: grid; gap: 2px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.ts__m b { font: 600 13px/1.4 var(--sans); color: var(--text); }
.ts__s { min-width: 0; overflow-wrap: anywhere; }

/* spacing / radius / elevation */
.sp { margin-top: 24px; display: grid; gap: 8px; }
.sp__r { display: grid; grid-template-columns: 90px 64px minmax(0, 1fr); gap: 16px; align-items: center; font: 400 12px/1 var(--mono); color: var(--text-3); }
.sp__r b { color: var(--text); font-weight: 500; }
.sp__bar { height: 16px; background: var(--primary); border-radius: 3px; opacity: .85; transform-origin: 0 50%; }
[dir=rtl] .sp__bar { transform-origin: 100% 50%; }
.ra, .el { margin-top: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.el { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ra__i, .el__i { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 10px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.ra__i b, .el__i b { font: 600 13px/1.3 var(--sans); color: var(--text); }
.ra__box { aspect-ratio: 1; border: 1.5px solid var(--primary); background: var(--surface-2); }
.el__box { height: 110px; border-radius: var(--r-lg); background: var(--surface); }
.el__i:first-child .el__box { border: 1px solid var(--border); }

/* motion */
.mo { margin: 24px 0 16px; display: grid; gap: 14px; }
.mo__r { display: grid; grid-template-columns: 170px 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.mo__m { display: grid; gap: 2px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.mo__m b { font: 600 13px/1.3 var(--sans); color: var(--text); }
.mo__curve { width: 96px; height: 60px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.mo__curve path { fill: none; stroke: var(--primary); stroke-width: 1.6; }
.mo__curve line { stroke: var(--border-2); stroke-dasharray: 2 3; }
.mo__track { position: relative; height: 40px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); direction: ltr; }
.mo__dot { position: absolute; top: 5px; left: 5px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); }
.mo__track.go .mo__dot { left: calc(100% - 33px); }

/* demo frame */
.demo { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.demo__bar { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.demo__bar button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; font-weight: 500; color: var(--text-3); }
.demo__bar button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: var(--e1); }
.demo__p { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px 32px; min-height: 180px; justify-content: center; background-image: radial-gradient(color-mix(in srgb, var(--text-3) 22%, transparent) 1px, transparent 1px); background-size: 16px 16px; background-position: -8px -8px; }
.demo__p--tall { min-height: 320px; justify-content: flex-start; }
.demo__p--stack { align-items: stretch; }
.demo__p--flush { padding: 0; background: none; min-height: 0; align-items: stretch; }
.demo__p--flush .tbl-wrap { border: 0; border-radius: 0; }
.demo__c { position: relative; }
.demo__c[hidden] { display: none; }
.code { margin: 0; padding: 24px 28px; max-height: 420px; overflow: auto; background: var(--code-bg); color: var(--code-t); font: 400 12.5px/1.7 var(--mono); direction: ltr; text-align: left; tab-size: 2; }
.code .t { color: #8FB4F0; } .code .a { color: #C9B37E; } .code .s { color: #9FD3B5; } .code .c { color: #6E7B8F; }
.copy { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 7px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 12px; font-weight: 500; transition: background .2s var(--ease); }
.copy:hover { background: rgba(255, 255, 255, .14); }
.copy.is-done { background: #2F7D55; border-color: #2F7D55; }

/* states */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.states figure { min-width: 0; display: grid; justify-items: center; gap: 12px; padding: 22px 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.states figcaption { font-size: 12px; color: var(--text-3); text-align: center; }
.states figcaption.is-err { color: var(--mx-t); }
.states--fields figure { justify-items: stretch; }
.states .sk-btn { pointer-events: none; }

/* do / don't */
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.dd figure { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.dd__ex { display: flex; align-items: center; justify-content: center; min-height: 128px; padding: 24px; background: var(--surface-2); border-top: 3px solid var(--ok); }
.dd__dont .dd__ex { border-top-color: var(--mx); }
.dd__ex > * { pointer-events: none; }
.dd__ex .sk-field { width: 100%; max-width: 240px; }
.dd__ex--list { flex-direction: column; gap: 6px; align-items: stretch; }
.dd figcaption { padding: 14px 16px 16px; font-size: 13px; color: var(--text-2); }
.dd figcaption b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--ok-t); }
.dd__dont figcaption b { color: var(--mx-t); }
.mini-opt { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; }
.mini-opt.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.mini-price { text-align: center; }
.mini-price .num { display: block; font: 500 28px/1 var(--disp); font-stretch: 108%; }
.mini-price small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }

.a11y { margin-top: 12px; }
.a11y ul { display: grid; gap: 8px; }
.a11y li { position: relative; padding-inline-start: 18px; max-width: 72ch; font-size: 14px; color: var(--text-2); }
.a11y li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }

.foot { max-width: 880px; padding: 48px 0 110px; display: grid; gap: 14px; font-size: 13px; color: var(--text-3); }
.foot__links { display: flex; gap: 18px; }
.foot__links a { color: var(--text-2); }

/* ================================================================ COMPONENTS */
/* button */
.sk-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-md); font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.sk-btn:active, .sk-btn.is-active { transform: scale(.98); }
.sk-btn:focus-visible, .sk-btn.is-focus { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); }
.sk-btn--primary { background: var(--primary); color: var(--on-primary); }
.sk-btn--primary:hover, .sk-btn--primary.is-hover { background: var(--primary-hover); }
.sk-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.sk-btn--secondary:hover, .sk-btn--secondary.is-hover { background: var(--surface-2); border-color: var(--text-3); }
.sk-btn--ghost { background: transparent; color: var(--text); }
.sk-btn--ghost:hover { background: var(--surface-3); }
.sk-btn--danger { background: var(--danger); color: var(--bg); }
.sk-btn--danger:hover { background: var(--danger-hover); }
.sk-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.sk-btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.sk-btn--block { width: 100%; }
.sk-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sk-btn__spin { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.sk-btn.is-loading { pointer-events: none; }
.sk-btn.is-loading .sk-btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* field */
.sk-field { display: grid; gap: 6px; }
.sk-field--w { width: 100%; max-width: 320px; }
.sk-label { font-size: 13px; font-weight: 500; color: var(--text); }
.sk-help { font-size: 12px; color: var(--text-3); }
.sk-field.is-err .sk-help { color: var(--mx-t); }
.sk-input { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); color: var(--text-3); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.sk-input input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; outline: none; color: var(--text); font-size: 15px; }
.sk-input input::placeholder { color: var(--text-3); }
.sk-input:hover, .sk-input.is-hover { border-color: var(--text-3); }
.sk-input:focus-within, .sk-input.is-focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.sk-input.is-error, .sk-field.is-err .sk-input { border-color: var(--mx-t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mx-t) 14%, transparent); }
.sk-input.is-disabled { background: var(--surface-3); opacity: .6; }

/* select */
.sk-select { position: relative; }
.sk-select__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); text-align: start; font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.sk-select__btn:hover { border-color: var(--text-3); }
.sk-select__btn[aria-expanded=true] { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.sk-select__btn svg { color: var(--text-3); transition: transform .25s var(--ease); }
.sk-select__btn[aria-expanded=true] svg { transform: rotate(180deg); }
.sk-select__list { position: absolute; z-index: 10; top: calc(100% + 6px); inset-inline: 0; padding: 6px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e3); outline: none; transform-origin: top center; animation: pop .22s var(--ease-in); }
.sk-select__list li { display: grid; gap: 1px; padding: 9px 10px 9px 34px; border-radius: 8px; cursor: pointer; position: relative; }
[dir=rtl] .sk-select__list li { padding: 9px 34px 9px 10px; }
.sk-select__list li b { font-size: 14px; font-weight: 500; }
.sk-select__list li span { font-size: 12px; color: var(--text-3); }
.sk-select__list li.is-act { background: var(--surface-3); }
.sk-select__list li[aria-selected=true]::before { content: ""; position: absolute; inset-inline-start: 12px; top: 15px; width: 10px; height: 6px; border-inline-start: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
[dir=rtl] .sk-select__list li[aria-selected=true]::before { transform: rotate(45deg) scaleX(-1); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* calendar */
.sk-cal { width: 100%; max-width: 340px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e2); }
.sk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sk-cal__m { font: 500 16px/1 var(--disp); font-stretch: 108%; }
.sk-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-2); transition: background .2s var(--ease); }
.sk-icon-btn:hover { background: var(--surface-3); }
.sk-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sk-cal__grid th { padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--text-3); }
.sk-cal__grid td { padding: 1px; text-align: center; }
.sk-day { width: 100%; aspect-ratio: 1; max-width: 42px; border: 0; border-radius: 50%; background: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); transition: background .15s var(--ease), color .15s var(--ease); }
.sk-day:hover { background: var(--surface-3); }
.sk-day.is-today { box-shadow: inset 0 0 0 1px var(--border-2); }
.sk-day[aria-selected=true] { background: var(--primary); color: var(--on-primary); }
.sk-day[aria-disabled=true] { color: var(--text-3); opacity: .45; cursor: not-allowed; }
.sk-day[aria-disabled=true]:hover { background: none; }
.sk-cal__sel { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* flight card */
.sk-fc { display: grid; gap: 12px; }
.sk-flight { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: stretch; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-align: start; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.sk-flight:hover { border-color: var(--border-2); box-shadow: var(--e2); }
.sk-flight img { width: 100%; height: 100%; min-height: 112px; object-fit: cover; background: var(--surface-3); }
.sk-flight__b { display: grid; align-content: center; gap: 4px; padding: 14px 18px; }
.sk-flight__b b { font: 500 18px/1.15 var(--disp); font-stretch: 110%; }
.sk-flight__s { font-size: 13px; color: var(--text-3); }
.sk-flight__tag { justify-self: start; margin-top: 4px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); }
.sk-flight__tag--ok { background: var(--ok-s); color: var(--ok-t); }
.sk-flight__tag--mx { background: var(--mx-s); color: var(--mx-t); }
.sk-flight__p { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; padding: 14px 44px 14px 18px; border-inline-start: 1px solid var(--border); min-width: 170px; }
[dir=rtl] .sk-flight__p { align-items: flex-start; padding: 14px 18px 14px 44px; }
.price { font: 500 24px/1 var(--disp); font-stretch: 108%; direction: ltr; }
.sk-flight__p small { font-size: 12px; color: var(--text-3); }
.sk-flight__ck { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border-2); color: transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.sk-flight[aria-checked=true] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sk-flight[aria-checked=true] .sk-flight__ck { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sk-flight.is-off { cursor: not-allowed; }
.sk-flight.is-off img, .sk-flight.is-off .sk-flight__b b, .sk-flight.is-off .price { opacity: .45; }
.sk-flight.is-off:hover { box-shadow: none; border-color: var(--border); }

/* quote */
.sk-quote { width: 100%; max-width: 380px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--e2); }
.sk-quote__route { display: flex; align-items: center; gap: 10px; font: 500 22px/1 var(--disp); font-stretch: 110%; }
.sk-quote__route svg { color: var(--text-3); }
.sk-quote__t { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.sk-quote__l { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.sk-quote__l div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.sk-quote__l dt { color: var(--text-2); }
.sk-quote__l dt .num { color: var(--text-3); }
.sk-quote__l dd { direction: ltr; }
.sk-quote__tot { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 600; }
.sk-quote__tot b { font: 500 28px/1 var(--disp); font-stretch: 108%; direction: ltr; }
.sk-quote__note { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; }

/* table */
.sk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sk-table th, .sk-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sk-table th { padding: 0; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2); }
.sk-table th button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 11px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: start; }
.sk-table th button:hover { color: var(--text); }
.sk-table th[aria-sort] button { color: var(--text); }
.sk-table th svg { opacity: .5; }
.sk-table th[aria-sort] svg { opacity: 1; }
.sk-table .n { text-align: end; }
.sk-table th.n button { justify-content: flex-end; }
.sk-table tbody tr { transition: background .15s var(--ease); }
.sk-table tbody tr:hover { background: var(--surface-2); }
.sk-table tbody tr:last-child td { border-bottom: 0; }
.sk-table .ref { font: 500 12.5px/1 var(--mono); color: var(--text-2); }
.sk-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.sk-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sk-badge--new { background: var(--surface-3); color: var(--text); }
.sk-badge--ok { background: var(--ok-s); color: var(--ok-t); }
.sk-badge--fly { background: var(--fly-s); color: var(--fly-t); }
.sk-badge--warn { background: var(--warn-s); color: var(--warn-t); }
.sk-badge--mx { background: var(--mx-s); color: var(--mx-t); }

/* toast */
.toasts { position: fixed; z-index: 120; bottom: 20px; inset-inline-start: 20px; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); pointer-events: none; }
.sk-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--primary); color: var(--on-primary); box-shadow: var(--e3); pointer-events: auto; font-size: 13.5px; }
.sk-toast div { display: grid; gap: 2px; min-width: 0; }
.sk-toast b { font-weight: 600; }
.sk-toast span { opacity: .75; }
.sk-toast svg { margin-top: 2px; }
.sk-toast--ok svg { color: #7CC7A0; }
.sk-toast--err svg { color: #F0A3A3; }
.sk-toast--info svg { color: #A9C1EA; }
[data-theme=dark] .sk-toast--ok svg { color: #2F7D55; } [data-theme=dark] .sk-toast--err svg { color: #8A3B3B; } [data-theme=dark] .sk-toast--info svg { color: #2F5AA8; }
.toasts .sk-toast { animation: toastIn .4s var(--ease-in); }
.toasts .sk-toast.out { animation: toastOut .25s var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.toast-static { width: 100%; max-width: 360px; }

/* modal */
.sk-modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--e4); }
.sk-modal::backdrop { background: rgba(7, 17, 31, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sk-modal[open] { animation: modalIn .32s var(--ease-in); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.sk-modal__in { padding: 24px; }
.sk-modal__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--mx-s); color: var(--mx-t); margin-bottom: 16px; }
.sk-modal h3 { font: 500 20px/1.25 var(--disp); font-stretch: 108%; }
.sk-modal p { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.sk-modal__b { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* tabs */
.sk-tabs { width: 100%; max-width: 520px; }
.sk-tabs__list { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-3); }
.sk-tabs__list button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 500; color: var(--text-3); transition: color .25s var(--ease); }
.sk-tabs__list button[aria-selected=true] { color: var(--text); }
.sk-tabs__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--surface); box-shadow: var(--e1); transition: left .32s var(--ease-in), width .32s var(--ease-in); }
.sk-tabs__p { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.sk-tabs__p p { font-size: 14px; color: var(--text-2); }
.tp-route { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 4px; font: 500 20px/1.2 var(--disp); font-stretch: 110%; color: var(--text) !important; }
.tp-route span { color: var(--text-3); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .search { width: 220px; }
  .top__ver { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .top__menu { display: grid; }
  .search { display: none; }
  .top__end { margin-inline-start: auto; }
  .side { position: fixed; z-index: 90; top: var(--top); bottom: 0; inset-inline-start: 0; width: min(300px, 86vw); height: auto; background: var(--bg); transform: translateX(-100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; border-inline-end: 1px solid var(--border); }
  [dir=rtl] .side { transform: translateX(100%); }
  .side.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .scrim { display: block; position: fixed; z-index: 80; inset: var(--top) 0 0; background: rgba(7, 17, 31, .35); }
  .scrim[hidden] { display: none; }
  .pr3 { grid-template-columns: 1fr; }
  .el { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top { gap: 10px; padding: 0 12px; }
  .top__logo img { width: 96px; }
  .top__name { font-size: 13px; padding-inline-start: 10px; }
  .sec { padding: 48px 0; }
  .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .ov > div:nth-child(n+3) { margin-top: 18px; }
  .grid2, .dd { grid-template-columns: 1fr; }
  .states, .sw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra { grid-template-columns: 1fr; gap: 10px; }
  .ra__i { grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; }
  .ra__box { grid-row: span 2; }
  .states figure { padding: 18px 10px 12px; }
  .states .sk-btn { padding: 0 12px; font-size: 13px; }
  .demo__p { padding: 28px 18px; }
  .demo__p--flush { padding: 0; }
  .ts__r { grid-template-columns: 1fr; gap: 8px; }
  .sp__r { grid-template-columns: 70px 50px minmax(0, 1fr); gap: 10px; }
  .mo__r { grid-template-columns: 1fr 80px; }
  .mo__track { grid-column: 1 / -1; }
  .mo__curve { width: 80px; }
  .sk-flight { grid-template-columns: 112px minmax(0, 1fr); }
  .sk-flight img { grid-row: span 2; min-height: 0; }
  .sk-flight__b { padding: 12px 40px 6px 14px; }
  [dir=rtl] .sk-flight__b { padding: 12px 14px 6px 40px; }
  .sk-flight__p { flex-direction: row; justify-content: space-between; align-items: baseline; min-width: 0; padding: 6px 14px 12px; border-inline-start: 0; }
  [dir=rtl] .sk-flight__p { align-items: baseline; padding: 6px 14px 12px; }
  .sk-flight__b b { font-size: 16px; }
  .price { font-size: 20px; }
  .sk-tabs__list { display: flex; }
  .sk-tabs__list button { flex: 1; padding: 0 8px; }
  .code { padding: 56px 18px 20px; }
}
@media (max-width: 400px) {
  .top__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .12s !important; }
}
.mo__m span:last-child, .ra__i span, .el__i span { font-family: var(--sans); }

/* QA: hex values read left to right in Hebrew */
.swc__c span, .chip { unicode-bidi: isolate; }
.swc__c span:last-child, #semTable .chip { direction: ltr; }
code { direction: ltr; unicode-bidi: isolate; }
