/*
 * The site's navy skin for a page of the app (the same skin as the home and every page of the site,
 * site/src/styles/v3/skin.css). A page wears it by carrying the class skin-navy on its body and loading this sheet
 * after the Grid v3 ones: the checkout (checkout-skin.css adds what is the checkout's own), the partner door and the
 * partner space (partner-skin.css). The trader space and the terminal keep Grid v3. Ground: deep navy ink, not black,
 * with one blue light from the top. Faces (OFL, vendor/fonts): Anybody for headings, Mona Sans for text and for
 * figures (level numerals). Plates are glass with a round corner; keys are navy on a dark ledge; the one blue key
 * keeps its laser. NO green and NO violet: what is confirmed reads in azure. The blues still derive from the brand
 * accent (brand.js). Logical properties, never italic, hover only under (hover: hover).
 */
@font-face { font-family: "Anybody V3"; src: url("vendor/fonts/anybody-latin-wdth-wght.woff2") format("woff2"); font-weight: 200 850; font-stretch: 75% 135%; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona V3"; src: url("vendor/fonts/mona-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

/* the tokens of style.css and v3.css, in navy (brand.js writes --bg, --up and --focus on the element itself: hence !important) */
:root:has(> body.skin-navy) {
  --g0: #04070f; --g1: #070c1a; --g2: #0b1328; --g3: #121d3a;
  --ice: #b8dcff; --azure: #4cc6ff;
  --bg: var(--g1) !important;
  --ink: #eef3ff; --ink-2: #b2bfdc; --ink-3: #8593b6; --silver: #c6d2e6; --white: #f5f9ff;
  --hair: rgba(150, 180, 255, 0.11); --hair-2: rgba(150, 180, 255, 0.18); --hair-3: rgba(170, 200, 255, 0.32);
  --tick: transparent; --grid-1: transparent; --grid-2: transparent;
  --silver-track: rgba(184, 220, 255, 0.13); --silver-share: rgba(184, 220, 255, 0.2);
  --plate-top: rgba(20, 33, 68, 0.7); --plate-bottom: rgba(8, 13, 28, 0.86);
  --well-top: rgba(4, 7, 15, 0.96); --well-bottom: rgba(9, 15, 32, 0.96);
  --cell: rgba(14, 23, 46, 0.62); --cell-solid: #0c1429; --chip-bg: rgba(18, 29, 58, 0.8);
  --card-top: rgba(23, 35, 67, 0.92); --card-bottom: rgba(15, 24, 47, 0.92);
  --key-top: #172343; --key-bottom: #0f182f; --key-top-hi: #1c2b52; --key-bottom-hi: #131d3a;
  --thumb-top: #1e2e5c; --thumb-bottom: #141f40;
  --ledge: #03060d; --ledge-2: #03060d; --halo: #0b1226; --shade: rgba(1, 3, 10, 0.82);
  --plate-bg: radial-gradient(ellipse 70% 60% at 0 0, color-mix(in srgb, var(--blue-hi) 20%, transparent), transparent 70%), linear-gradient(170deg, var(--plate-top), var(--plate-bottom));
  --plate-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--hair-2), 0 40px 90px -50px var(--glow), 0 30px 60px -40px rgba(1, 3, 10, 0.9);
  --bg-2: rgba(4, 7, 15, 0.62); --surface-2: rgba(18, 29, 58, 0.8);
  --up: var(--azure) !important; --mood-ok: var(--ice);
  --f-display: "Anybody V3", "Readex Pro Arabic Var", "Mona V3", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Mona V3", "Readex Pro Arabic Var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: var(--f-sans);
  --r-lg: 20px; --r: 12px; --r-sm: 10px;
  scrollbar-color: #24345e #070c1a; background: #070c1a;
}
.skin-navy { line-height: 1.55; background: radial-gradient(ellipse 46% 520px at 76% 0, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%) no-repeat var(--g1); }
[dir="rtl"] .skin-navy { background-position-x: -52vw; }
.skin-navy::before { display: none; }
.skin-navy :focus-visible { outline-color: var(--ice); }
.skin-navy :is(.num, .mono) { font-stretch: 100%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-weight: 500; }

/* ---------- header and footer: glass over the page ---------- */
.skin-navy .sp-top { background: color-mix(in srgb, var(--g1) 72%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.skin-navy :is(.sp-brand, .brand-login) .brand-name { font-family: var(--f-display); font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; }
.skin-navy .sp-foot { border-block-start-color: var(--hair); }

/* ---------- fields ---------- */
.skin-navy :is(.text-input, select) { border-radius: 12px; border-color: var(--hair-2); background-color: var(--bg-2); font-family: var(--f-sans); transition: border-color 160ms, box-shadow 160ms; }
.skin-navy :is(.text-input, select):focus-visible { outline: 0; border-color: var(--link); box-shadow: 0 0 0 3px var(--tint); }
.skin-navy input[type="checkbox"] { accent-color: var(--acc); }

/* ---------- keys: the site's blue key (lit face, deep ledge, a long glow); the laser keeps its round frame ---------- */
.skin-navy :is(.key, .btn) { border-radius: 12px; font-family: var(--f-sans); font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.skin-navy .key--lg { border-radius: 14px; }
.skin-navy .key--blue {
  color: #fff; background: linear-gradient(180deg, color-mix(in oklab, var(--acc) 82%, #fff) 0%, var(--acc) 55%, color-mix(in oklab, var(--acc) 90%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 3px 0 var(--blue-deep), 0 16px 34px -14px color-mix(in srgb, var(--acc) 85%, transparent);
}
.skin-navy .key--blue:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 var(--blue-deep), 0 8px 18px -8px color-mix(in srgb, var(--acc) 70%, transparent); }
.skin-navy .key--blue:is(:disabled, [aria-disabled="true"]) { opacity: 1; filter: none; color: var(--ink-2); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 24%, var(--g3)), color-mix(in srgb, var(--acc) 14%, var(--g2))); box-shadow: inset 0 0 0 1px var(--hair-2), 0 3px 0 var(--ledge); }   /* not yet: a calm navy key, never a grey slab */
.skin-navy .key--laser::before, .skin-navy .key--laser::after { border-radius: 17px; }
.skin-navy .key--lg.key--laser::before, .skin-navy .key--lg.key--laser::after { border-radius: 19px; }
@media (hover: hover) {
  .skin-navy .key--blue:not(:disabled):not([aria-disabled="true"]):hover { background: linear-gradient(180deg, color-mix(in oklab, var(--acc) 72%, #fff) 0%, color-mix(in oklab, var(--acc) 92%, #fff) 55%, var(--acc) 100%); }
}
