/* ytadvisors.com dark layer v1: the YT Advisors design system (#1703) over v4.css. Load AFTER v4.css.
   Dark hero with the blueprint grid on top; a grey lower half (ground-raised) that rises in a curve; dark cards and interface frames. */
:root {
  --bg: #070b12; --ink: #eef4fb; --text: #c4d3e6; --mute: #8ea3bd; --soft: #8ea3bd;
  --card: #181f28; --card-2: #141a22; --line: #242e3c; --ui-line: #242e3c;
  --accent: #1b6fc2; --accent-hover: #2a7fd4; --accent-soft: #10243b;
  --raised: #11161d; --glow: #59b4ff; --surface: #181f28; --surface-2: #0d1218;
  color-scheme: dark;
}
html, body { background: var(--raised); }
body { color: var(--text); }
a { color: var(--glow); }
:focus-visible { outline: 3px solid var(--glow); }
.skip:focus { background: var(--surface); color: var(--ink); }

/* nav and hero: the dark top half with the blueprint grid */
.nav { background: rgba(7, 11, 18, .88) !important; border-bottom-color: rgba(89, 180, 255, .12); }
.logo img { filter: brightness(0) invert(1); }
.links a { color: var(--text); } .links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.link-quiet { color: var(--text); }
.hero { position: relative; background-color: #070b12;
  background-image: linear-gradient(rgba(89,180,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(89,180,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; padding-bottom: 120px !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.hero > * { max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 C300,40 520,0 720,0 C920,0 1140,40 1440,120 Z' fill='%2311161d'/%3E%3Cpath d='M0,120 C300,40 520,0 720,0 C920,0 1140,40 1440,120' fill='none' stroke='%2359b4ff' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.eyebrow { color: var(--glow) !important; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { color: var(--ink); }
.hero h1 span, h2 span, h3 span { color: var(--mute); }
.lede, .muted { color: var(--mute); }

/* buttons: one blue primary, quiet ghosts */
.btn.primary { background: var(--accent) !important; color: #fff !important; }
.btn.primary:hover { background: var(--accent-hover) !important; }
.btn.ghost, .btn.soft { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px rgba(238, 244, 251, .25) !important; }

/* cards and product frames on the grey half */
.card, .ui, .ui.board .tk, .formcard, .sf, .fbody, .stack-tabs { background: var(--surface) !important; box-shadow: 0 0 0 1px var(--line) !important; }
.stage, .stage-wrap .stage { background-color: var(--surface-2) !important; }
.st { color: var(--mute); } .st[aria-pressed="true"] { background: var(--accent) !important; color: #fff !important; }
.answer { background: rgba(47, 163, 107, .12) !important; color: var(--text); }
.ai { background: rgba(224, 162, 43, .15) !important; color: #f2c063 !important; }
.mk { background-color: rgba(89, 180, 255, .1) !important; }
.done-i { background: rgba(47, 163, 107, .15) !important; }
.form-err:not(:empty) { background: rgba(214, 69, 69, .15) !important; }
.err { color: #f08a8a; }
input, select, textarea { background: var(--surface-2) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px #6f8bab !important; }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--glow) !important; }
img[src*="stack-"], .sf img, .fbody img { border-radius: 10px; }

/* footer stays on the grey half */
.foot, footer { background: var(--raised); color: var(--mute); border-top: 1px solid var(--line); }
.foot a, footer a { color: var(--text); }
@media (max-width: 640px) { .hero::after { height: 48px; } .hero { padding-bottom: 64px !important; } .hero > * { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }

/* network maps: dark nodes, glowing wires */
.node, .mnode { background: var(--surface-2) !important; box-shadow: 0 0 0 1px #6f8bab !important; }
.node b, .mnode b { color: var(--ink) !important; }
.node small, .mnode small, .mnode span { color: var(--mute) !important; }
.mnode.hub, .node.hub { box-shadow: 0 0 0 1px var(--glow), 0 0 14px rgba(89, 180, 255, .35) !important; }
.wires path, .nm-wires path, .nm-wires line { stroke: rgba(89, 180, 255, .55) !important; }
.mk { background-color: rgba(89, 180, 255, .1) !important; box-shadow: inset 0 0 0 1px rgba(89, 180, 255, .35) !important; }

/* page header: a centred block with left-aligned text (Yomi 2026-12-04: "left aligned by the div should be centered", "with should align with header and base content": same 1200px column and 24px gutter as the nav and the sections) */
.hero.split-h { display: flex !important; flex-direction: column; align-items: stretch; text-align: left; gap: 20px !important; }
.hero.split-h .hl, .hero.split-h .hr { align-items: flex-start; width: 100%; max-width: 1200px; margin-left: auto !important; margin-right: auto !important; padding-bottom: 0; }
.hero.split-h .lede { max-width: 640px; text-align: left; }
.hero.split-h .cta-row { justify-content: flex-start !important; }

/* the hairline frame: both side lines run the page BELOW the header; the header covers them, as on the homepage
   (Yomi 2026-12-04: "lets remove the left and right borders on the headers for non homepages") */
main::before, main::after { display: none !important; } /* no side lines anywhere, as on the homepage (Yomi 2026-12-04: "remove the left and right border on the content section") */
main > .hero { position: relative; z-index: 1; }

/* legal pages: the inline light notice box in dark (no text change) */
.legal p[style*="#F5F7FA"] { background: #181f28 !important; border-color: #242e3c !important; color: #c4d3e6 !important; }
.legal p[style*="#F5F7FA"] strong { color: #eef4fb; }
