/* Call Sandwich site. Visual system matches QA Sandwich: Geist, emerald, the orb, light and dark.
   The theme follows the system unless <html data-theme="light|dark"> pins it. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --side: #f7f7f8;
  --surface: #f3f3f5;
  --line: #e6e6ea;
  --text: #111113;
  --muted: #5f5f68;
  --faint: #8e8e96;
  --accent: #0b7f4a;
  --primary: #0b7f4a;
  --primary-hover: #096c3f;
  --on-primary: #ffffff;
  --nav-active-bg: #e4f5ec;
  --nav-active-text: #0a6b3e;
  --pass: #146c41;
  --pass-bg: #e6f5ec;
  --fail: #b3261e;
  --fail-bg: #fdeceb;
  --glow: rgba(52, 209, 127, 0.22);
  --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.07);
  --shadow-lg: 0 22px 60px rgba(17, 17, 19, 0.14);
  --em-1: #b9f7d2;
  --em-2: #34d17f;
  --em-3: #0c8a52;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;
  --r: 10px;
  --r-lg: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0f;
  --side: #121215;
  --surface: #1a1a1e;
  --line: #2a2a30;
  --text: #f3f3f5;
  --muted: #a4a4ae;
  --faint: #74747e;
  --accent: #4fe08f;
  --primary: #0c8552;
  --primary-hover: #0e9a5f;
  --on-primary: #ffffff;
  --nav-active-bg: #10281c;
  --nav-active-text: #86f2b6;
  --pass: #55d998;
  --pass-bg: #11281c;
  --fail: #ff8d83;
  --fail-bg: #2f1614;
  --glow: rgba(52, 209, 127, 0.25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0f;
    --side: #121215;
    --surface: #1a1a1e;
    --line: #2a2a30;
    --text: #f3f3f5;
    --muted: #a4a4ae;
    --faint: #74747e;
    --accent: #4fe08f;
    --primary: #0c8552;
    --primary-hover: #0e9a5f;
    --on-primary: #ffffff;
    --nav-active-bg: #10281c;
    --nav-active-text: #86f2b6;
    --pass: #55d998;
    --pass-bg: #11281c;
    --fail: #ff8d83;
    --fail-bg: #2f1614;
    --glow: rgba(52, 209, 127, 0.25);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--glow); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Orb logo — the QA Sandwich mark, used as the Call Sandwich logo. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 50%; }
  33% { border-radius: 58% 42% 53% 47% / 45% 47% 53% 55%; }
  66% { border-radius: 44% 56% 47% 53% / 56% 52% 48% 44%; }
}
@keyframes lid { 0%, 55%, 100% { transform: none; } 72% { transform: translateY(-.7em) rotate(-7deg); } 86% { transform: translateY(.05em); } }
@keyframes glowf { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
.orb { position: relative; flex: none; width: 10em; height: 10em; }
.orb div { position: absolute; box-sizing: border-box; }
.orb-layer { inset: 0; filter: brightness(.7) saturate(1.35); }
:root[data-theme="dark"] .orb-layer { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .orb-layer { filter: none; } }
.orb-spin { animation: spin 10s linear infinite; }
.orb-morph { animation: morph 5s ease-in-out infinite; }
.orb-lid { animation: lid 4.5s ease-in-out infinite; }
.orb-sandwich { inset: 0; transform: scale(1.12); }
.orb-ring, .orb-bun-top, .orb-bun-bottom {
  border: 0 solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.orb-ring { inset: .45em; border-radius: 50%; background: conic-gradient(from 0deg, var(--em-1), var(--em-2), var(--em-3), var(--em-2), var(--em-1)) border-box; }
.orb-bun-top { width: 4.6em; height: 1.9em; left: 2.7em; border-radius: 2.3em 2.3em .4em .4em; background: linear-gradient(90deg, var(--em-1), var(--em-2), var(--em-3)) border-box; }
.orb-bun-bottom { width: 4.6em; left: 2.7em; top: 6.3em; border-radius: .3em .3em .9em .9em; background: linear-gradient(90deg, var(--em-1), var(--em-2), var(--em-3)) border-box; }
.orb-fill { border-radius: 1em; animation: glowf 5s ease-in-out infinite; }
.orb-fill-1 { background: var(--em-1); box-shadow: 0 0 .8em var(--em-1); }
.orb-fill-2 { background: var(--em-2); box-shadow: 0 0 .8em var(--em-2); animation-delay: -.25s; }
.orb-fill-3 { background: var(--em-3); box-shadow: 0 0 .8em var(--em-3); animation-delay: -.5s; }
.orb-small .orb-ring { border-width: .7em; }
.orb-small .orb-bun-top { top: 2.45em; border-width: .42em; }
.orb-small .orb-bun-bottom { height: 1.3em; border-width: .42em; }
.orb-small .orb-fill-1 { width: 5.2em; height: .42em; left: 2.4em; top: 4.65em; }
.orb-small .orb-fill-3 { width: 4.8em; height: .42em; left: 2.6em; top: 5.4em; }

.theme-btn {
  width: 38px; height: 38px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  cursor: pointer; flex-shrink: 0;
}
.theme-btn:hover { background: var(--surface); color: var(--text); }
.theme-btn svg { display: block; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

.cs-nav-link { color: var(--muted); }
.cs-nav-link.is-on { color: var(--text); }
.cs-nav-sip.is-on { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
