/* Shared design tokens. Subject layouts use these through study-theme.css. */
:root {
  --study-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans CJK TC", "Noto Sans CJK SC", sans-serif;
  --study-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --study-size-xs: 0.75rem;
  --study-size-sm: 0.8125rem;
  --study-size-ui: 0.875rem;
  --study-size-body: 1rem;
  --study-size-h3: 1.125rem;
  --study-size-h2: 1.375rem;
  --study-size-lg: 1.75rem;
  --study-size-h1: 2rem;
  --study-size-hero: 2.25rem;
  --study-bg: #f5f7f4;
  --study-surface: #ffffff;
  --study-surface-alt: #edf2ee;
  --study-text: #243730;
  --study-muted: #617269;
  --study-line: #dce5de;
  --study-primary: #286650;
  --study-primary-hover: #1c503e;
  --study-on-primary: #ffffff;
  --study-primary-soft: #e7f1e9;
  --study-primary-strong: #cce3d2;
  --study-success: #286650;
  --study-success-bg: #e7f1e9;
  --study-warning: #805b20;
  --study-warning-bg: #fbf2df;
  --study-danger: #a33f35;
  --study-danger-bg: #fbece8;
  --study-info-bg: #e9eff9;
  --study-lavender: #eeebf7;
  --study-peach: #f8ede3;
  --study-inverse: #1c4939;
  --study-on-inverse: #f3f8f4;
  --study-inverse-muted: #c7ddcf;
  --study-focus: #47846a;
  --study-shadow: 0 8px 28px #193c2b0a;
  --study-radius-card: 16px;
  --study-radius-control: 9px;
  --study-backdrop: #10281f99;
  color-scheme: light;
  --study-scrollbar-thumb: #adbbb3;
  --study-scrollbar-hover: #839b8d;
}
:root[data-theme="dark"] {
  --study-bg: #151e19;
  --study-surface: #1d2a22;
  --study-surface-alt: #26372c;
  --study-text: #e5eee7;
  --study-muted: #a6b8ac;
  --study-line: #384b3e;
  --study-primary: #a4d5b7;
  --study-primary-hover: #c4e7d0;
  --study-on-primary: #183527;
  --study-primary-soft: #2b4333;
  --study-primary-strong: #3c5a45;
  --study-success: #a4d5b7;
  --study-success-bg: #2b4333;
  --study-warning: #e6c58c;
  --study-warning-bg: #3c3424;
  --study-danger: #f0aaa0;
  --study-danger-bg: #432d29;
  --study-info-bg: #29394b;
  --study-lavender: #373247;
  --study-peach: #423529;
  --study-inverse: #223d2e;
  --study-on-inverse: #edf7ef;
  --study-inverse-muted: #bed6c6;
  --study-focus: #a4d5b7;
  --study-shadow: 0 8px 28px #0002;
  --study-backdrop: #07120dcc;
  color-scheme: dark;
  --study-scrollbar-thumb: #61796c;
  --study-scrollbar-hover: #8da497;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--study-scrollbar-thumb) transparent;
}
/* Fallback for engines without the standard scrollbar properties. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--study-scrollbar-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--study-scrollbar-hover); }
::-webkit-scrollbar-corner { background: transparent; }
@media (forced-colors: active) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
}
