/*
 * Shared theme layer.
 * Color tokens are supplied by design-system.js and are consumed by both the
 * main application and the academic-guide renderer.
 */
:root{
  --theme-header:#183f44;
  --theme-hero-start:#102a43;
  --theme-hero-end:#164e5d;
  --surface:#fff;
  --surface-subtle:color-mix(in srgb,var(--paper) 72%,var(--surface));
  --on-accent:#fff;
  --on-danger:#fff;
  --on-dark-soft:color-mix(in srgb,var(--teal) 21%,white);
  --accent-border:color-mix(in srgb,var(--teal) 32%,var(--line));
  --accent-hover:color-mix(in srgb,var(--teal) 85%,black);
  --warning-ink:#805118;
  --danger-line:color-mix(in srgb,var(--red) 30%,var(--line))
}
.literature-detail-head{background:var(--theme-header)}

[data-color-scheme="dark"]{
  color-scheme:dark;
  --surface:color-mix(in srgb,var(--paper) 93%,var(--ink));
  --on-accent:#102a2a;
  --on-danger:#331620;
  --accent-hover:color-mix(in srgb,var(--teal) 86%,white);
  --shadow:0 12px 30px #0004;
  --red:#ffaab4;
  --red-bg:#462630;
  --amber:#f5c172;
  --amber-bg:#423324;
  --warning-ink:#f5c172;
  --blue:#aacbff;
  --blue-bg:#243a59;
  --status-progress:var(--amber);
  --status-progress-bg:var(--amber-bg);
  --status-review:var(--blue);
  --status-review-bg:var(--blue-bg);
  --status-complete:#85dcbb;
  --status-complete-bg:#22423b;
  --status-danger:var(--red);
  --status-danger-bg:var(--red-bg)
}
[data-color-scheme="dark"] :is(.segment.active,.page-button.active){
  background:var(--teal-2);
  border-color:var(--accent-border);
  color:var(--teal)
}
[data-color-scheme="dark"] :is(.type-journal,.type-conference,.type-patent,.type-software,.type-project,.type-award,.type-other){
  --type-soft:color-mix(in srgb,var(--type-color) 16%,var(--surface));
}
[data-color-scheme="dark"] .type-journal{--type-color:#b8beff}
[data-color-scheme="dark"] .type-conference{--type-color:#8bd2f6}
[data-color-scheme="dark"] .type-patent{--type-color:#d4aff7}
[data-color-scheme="dark"] .type-software{--type-color:#88d9bf}
[data-color-scheme="dark"] .type-project{--type-color:#f6b5b1}
[data-color-scheme="dark"] .type-award{--type-color:#f4ca86}
[data-color-scheme="dark"] .type-other{--type-color:#b7cadc}

/* The preview uses the same white page and readable ink as the A4 export. */
[data-color-scheme="dark"] .resume-sheet{
  color-scheme:light;
  --ink:#173448;
  --muted:#526677;
  --line:#dae4e9;
  --teal:#18786f;
  --teal-2:#e7f3ef
}
