﻿/* Atlas-inspired, independently authored from rendered releases/8.0 references.
 * LAS provides complete defaults; only this design receives these overrides.
 * Semantic status colors, content documents and map tiles keep their own roles.
 * The reference cyan is darkened for normal white button text (>= 4.5:1).
 */
@media screen {
  @font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
  @font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
  @font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/AtkinsonHyperlegible-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
  @font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/AtkinsonHyperlegible-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
  @font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
  @font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
  @font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

  html[data-theme="atlas"][data-color-scheme="light"] {
    --atlas-action: #007f9c;
    --atlas-action-hover: #00677f;
    --atlas-accent: #009ec1;
    --atlas-navigation: #397ec3;
    --atlas-ink: #303234;
    --atlas-muted: #596168;
    --atlas-line: #e4e8ea;
    --atlas-field-border: #d5dadd;
    --atlas-subtle: #f2f4f5;
    --atlas-selected: #e7f4f7;
    --atlas-focus: #005e78;
    --font-body: 'Aptos', 'Segoe UI', sans-serif;
    --font-heading: 'Lexend', 'Segoe UI', sans-serif;
    --title-page: 2rem;
    --title-section: 1.5rem;
    --title-card: 1.5rem;
    --title-detail: 1.25rem;
    --text-body: 1rem;
    --text-small: var(--text-body);
    --text-meta: .875rem;
    --button-surface: #edf0f2;
    --button-text: var(--atlas-ink);
    --button-border: transparent;
    --button-hover-surface: #dde4e7;
    --button-hover-text: var(--atlas-ink);
    --button-hover-border: transparent;
    --connection-notice-font: 400 var(--text-body)/1.5 var(--font-body);
    --surface-subtle: var(--atlas-subtle);
    --surface-selected: var(--atlas-selected);
    --control-border: var(--atlas-field-border);
    --role-school: var(--atlas-action);
    --role-ministry: var(--atlas-ink);
    --blue: var(--atlas-action);
    --platform-primary-surface: var(--atlas-action);
    --ai-enable-confirm-surface: var(--atlas-action);
    --navy: var(--atlas-ink);
    --text: var(--atlas-ink);
    --muted: var(--atlas-muted);
    --line: var(--atlas-line);
    --ai-panel-border: var(--atlas-line);
    --ai-entry-mark-border: var(--atlas-line);
    --ai-entry-mark-surface: var(--atlas-subtle);
    --ai-entry-hover-surface: var(--atlas-subtle);
    --ai-body-border-top: var(--atlas-line);
    --ai-boundary-text: var(--atlas-muted);
    --ai-question-text: var(--atlas-ink);
    --ai-question-textarea-text: var(--atlas-ink);
    --ai-question-textarea-border: var(--atlas-field-border);
    --ai-question-textarea-surface: var(--atlas-subtle);
    --ai-processing-text: var(--atlas-muted);
    --ai-primary-hover-enabled-surface: var(--atlas-action-hover);
    --ai-cancel-text: var(--atlas-muted);
    --ai-cancel-border: var(--atlas-line);
    --ai-status-text: var(--atlas-muted);
    --ai-unavailable-surface: var(--atlas-subtle);
    --ai-unavailable-text: var(--atlas-muted);
    --ai-unavailable-strong-text: var(--atlas-ink);
    --ai-result-border-top: var(--atlas-line);
    --ai-statements-li-p-text: var(--atlas-ink);
    --ai-source-p-text: var(--atlas-muted);
    --ai-classification-surface: var(--atlas-subtle);
    --ai-review-button-border: var(--atlas-field-border);
    --ai-review-button-disabled-text: var(--atlas-muted);
    --ai-review-button-disabled-border: var(--atlas-line);
    --ai-settings-dd-text: var(--atlas-ink);
    --version-category-surface: var(--atlas-selected);
    --case-progress-stages-summary-text: var(--atlas-action);
    --case-progress-stages-summary-focus-visible-outline: var(--atlas-action);
    --help-center-where-input-not-type-checkbox-not-type-radio-text: var(--atlas-ink);
    --help-center-where-input-not-type-checkbox-not-type-radio-surface: var(--atlas-subtle);
    --help-center-where-input-not-type-checkbox-not-type-radio-border: var(--atlas-field-border);
    --help-center-where-label-text: var(--atlas-ink);
    --feedback-panel-input-text: var(--atlas-ink);
    --feedback-list-button-pressed-true-surface: var(--atlas-selected);
    --platform-menu-panel-hr-border-top: var(--atlas-line);
    --brand-mark-surface: var(--atlas-subtle);
    --role-button-hover-surface: var(--atlas-selected);
    --form-description-text: var(--atlas-muted);
    --form-field-label-text: var(--atlas-ink);
    --ui-input-text: var(--atlas-ink);
    --ui-input-surface: var(--atlas-subtle);
    --ui-input-border: var(--atlas-field-border);
    --detail-prose-detail-prose-border-top: var(--atlas-line);
    --detail-disclosure-border-top: var(--atlas-line);
    --selection-reason-border-top: var(--atlas-line);
    --secondary-action-hover-surface: var(--atlas-subtle);
    --participation-detail-list-border-top: var(--atlas-line);
    --participation-detail-list-detail-prose-border-top: var(--atlas-line);
    --additional-card-border: var(--atlas-line);
    --job-board-empty-surface: var(--atlas-subtle);
    --job-result-footer-border-top: var(--atlas-line);
    --preset-note-surface: var(--atlas-subtle);
    --swal2-styled-swal2-cancel-surface: #69737b;
    --dark-masthead-surface: var(--atlas-ink);
    --dark-prototype-banner-surface: var(--atlas-ink);
    --link: var(--atlas-action);
    --surface: #fff;
    --app-surface: #f4f6f7;
    --card-radius: 18px;
    --heading-weight: 500;
    --theme-control-text: var(--atlas-muted);
    --theme-control-value: var(--atlas-action);
    --theme-control-hover: var(--atlas-selected);
    --theme-control-focus: var(--atlas-focus);
    --button-focus-visible-outline: var(--atlas-focus);
    --ui-input-focus-outline: var(--atlas-focus);
    --ui-button-ui-button-primary-hover-not-disabled-surface: var(--atlas-action-hover);
    --ui-button-ui-button-primary-hover-not-disabled-border: var(--atlas-action-hover);
    --primary-action-hover-surface: var(--atlas-action-hover);
    --swal2-styled-swal2-confirm-hover-surface: var(--atlas-action-hover);
    --workbench-brand-text: var(--atlas-action);
    --workbench-brand-small-text: var(--atlas-muted);
    --workbench-brand-application-demo-badge-text: var(--atlas-muted);
    --role-header-text: var(--atlas-ink);
    --role-context-person-text: var(--atlas-ink);
    --role-context-menu-summary-focus-visible-outline: var(--atlas-focus);
    --workbench-role-text: var(--atlas-ink);
    --workbench-role-span-text: var(--atlas-muted);
    --header-menu-text: var(--atlas-ink);
    --header-menu-surface: var(--atlas-subtle);
    --header-menu-border: transparent;
    --header-menu-hover-surface: var(--atlas-selected);
    --header-demo-badge-text: var(--atlas-muted);
    --header-demo-badge-border: var(--atlas-line);
    --portal-app-brand-text: var(--atlas-action);
    --portal-app-brand-small-text: var(--atlas-muted);
    --portal-app-brand-application-demo-badge-text: var(--atlas-muted);
    --portal-app-actions-a-text: var(--atlas-action);
    --portal-app-actions-a-border-bottom: var(--atlas-action);
    --masthead-brand-text: var(--atlas-action);
    --masthead-brand-small-text: var(--atlas-muted);
    --masthead-brand-mark-surface: var(--atlas-subtle);
    --masthead-brand-mark-border: var(--atlas-line);
    --masthead-brand-mark-text: var(--atlas-action);
    --masthead-comfort-search-button-text: var(--atlas-muted);
    --masthead-comfort-search-button-hover-text: var(--atlas-action);
    --masthead-comfort-search-button-kbd-text: var(--atlas-muted);
    --masthead-comfort-search-button-kbd-border: var(--atlas-line);
    --masthead-platform-role-indicator-surface: var(--atlas-subtle);
    --masthead-platform-role-indicator-border: var(--atlas-line);
    --masthead-platform-role-indicator-text: var(--atlas-muted);
    --masthead-platform-role-indicator-strong-text: var(--atlas-ink);
    --masthead-platform-menu-summary-text: var(--atlas-ink);
    --masthead-platform-menu-summary-surface: var(--atlas-subtle);
    --masthead-platform-menu-summary-border: var(--atlas-line);
    --masthead-platform-menu-summary-hover-surface: var(--atlas-selected);
    --masthead-platform-menu-summary-hover-border: var(--atlas-action);
    --masthead-is-a-button-summary-focus-visible-focus: var(--atlas-focus);
    --application-menu-panel-shadow: #1c1d2f14;
    --login-action: var(--atlas-action);
    --login-action-hover: var(--atlas-action-hover);
    --login-page: #f6f9fa;
    --login-text: var(--atlas-ink);
    --login-banner: #1c1d2f;
    --login-banner-text: #fff;
    --login-eyebrow: var(--atlas-muted);
    --login-intro-text: var(--atlas-muted);
    --login-steps: var(--atlas-muted);
    --login-step-arrow: var(--atlas-action);
    --login-card: #fff;
    --login-card-border: var(--atlas-line);
    --login-card-accent: var(--atlas-action);
    --login-card-shadow: #1c1d2f08;
    --login-card-text: var(--atlas-muted);
    --login-input-border: var(--atlas-field-border);
    --login-input: var(--atlas-subtle);
    --login-focus: var(--atlas-focus);
    --login-footer: var(--atlas-muted);
    --offline-heading: var(--atlas-ink);
    --offline-illustration-ink: var(--atlas-action);
    --offline-muted: var(--atlas-muted);
    --offline-text: var(--atlas-ink);
    --offline-page: #f6f9fa;
    --offline-banner: #1c1d2f;
    --offline-banner-text: #fff;
    --offline-action: var(--atlas-action);
    --offline-action-border: var(--atlas-action);
    --offline-action-hover: var(--atlas-action-hover);
    --offline-action-hover-border: var(--atlas-action-hover);
    --offline-focus: var(--atlas-focus);
    --offline-brand: #fff;
    --offline-brand-border: var(--atlas-line);
    --offline-header-border: var(--atlas-line);
    --offline-notice-border: var(--atlas-line);
    --offline-illustration: var(--atlas-selected);
    --offline-illustration-mask: var(--atlas-selected);
    --offline-illustration-border: var(--atlas-line);
    --offline-eyebrow: var(--atlas-muted);
    --offline-status: var(--atlas-muted);
    --offline-footnote: var(--atlas-muted);
    --offline-footer: var(--atlas-muted);
  }
  /* Existing header and navigation structure; no reordering or extra UI. */
  html[data-theme="atlas"] .masthead {
    background: var(--surface);
    border-bottom-color: var(--line);
    box-shadow: 0 2px 10px #1c1d2f06;
  }
  html[data-theme="atlas"] .workbench-sidebar nav a[aria-current="page"] {
    color: var(--atlas-action-hover);
    box-shadow: inset 3px 0 var(--atlas-navigation);
  }
  html[data-theme="atlas"] .application-panel,
  html[data-theme="atlas"] .portal-job-card {
    border-color: transparent;
    box-shadow: none;
  }
  html[data-theme="atlas"] :is(.workbench-brand-mark, .brand-mark) {
    border-color: transparent;
    background: var(--atlas-subtle);
    color: var(--atlas-action);
  }
  html[data-theme="atlas"] :is(.need-table, .school-application-table) th {
    background: var(--surface);
    font-weight: 600;
  }
  /* Filled selection surfaces; semantic component states remain explicit. */
  html[data-theme="atlas"] .ui-button[aria-pressed="true"],
  html[data-theme="atlas"] .ui-button[aria-pressed="true"]:hover:not(:disabled) {
    background: var(--atlas-selected); color: var(--atlas-action-hover); border-color: transparent;
  }
  html[data-theme="atlas"] :is(.work-task-states, .m6-mode-buttons) .ui-button[aria-pressed="true"],
  html[data-theme="atlas"] .work-task-views [aria-current="page"] {
    background: var(--atlas-action); color: #fff; border-color: transparent;
  }
  html[data-theme="atlas"] :is(.work-task-states, .m6-mode-buttons) .ui-button[aria-pressed="true"]:hover:not(:disabled) {
    background: var(--atlas-action-hover); color: #fff;
  }
  html[data-theme="atlas"] :is(.role-context-menu > summary, .work-navigation-count) {
    border-color: transparent; background: var(--atlas-subtle);
  }
  html[data-theme="atlas"] :is(.role-context-menu > summary, .application-menu > summary):hover {
    background: var(--button-hover-surface);
  }
  html[data-theme="atlas"] :is(h1, h2, h3, h4, .swal2-title) { font-family: var(--font-heading); hyphens: auto; }
  html[data-theme="atlas"] :is(.workbench-brand, .portal-app-brand) { font-family: var(--font-heading); }
  html[data-theme="atlas"] :is(.workbench-brand small, .portal-app-brand small) { font-family: var(--font-body); }
  html[data-theme="atlas"] :is(.ui-input, .form-field input, .form-field textarea, .form-field select):not(:focus):not([aria-invalid="true"]):not(:disabled) {
    border-color: transparent; border-bottom-color: #86939a;
  }
  html[data-theme="atlas"] :is(.application-panel-heading, .work-task-result) { border-bottom-color: transparent; }
  html[data-theme="atlas"] .work-task-main h3 a { text-decoration: none; }
  html[data-theme="atlas"] .work-task-main h3 a:hover { text-decoration: underline; }
  html[data-theme="atlas"] .application-menu-panel { border-color: transparent; }
  html[data-theme="atlas"] .application-footer { background: #1c1d2f; color: #fff; border-color: transparent; }
  html[data-theme="atlas"] .theme-control .theme-picker { font-family: var(--font-body); }
  html[data-theme="atlas"] body { font-size: var(--text-body); }
  html[data-theme="atlas"] .swal2-styled.swal2-cancel { color: #fff; }
  html[data-theme="atlas"] .swal2-styled.swal2-cancel:hover { background: #535d65; color: #fff; }
  html[data-theme="atlas"][data-standalone] { font-family: var(--font-body); }
  html[data-theme="atlas"][data-standalone] :is(body, button, input, select, textarea, .brand, .brand-mark, .brand-title) { font-family: var(--font-body); }
  html[data-theme="atlas"][data-standalone] h1 { font-size: var(--title-page); }
  html[data-theme="atlas"][data-standalone] h2 { font-size: var(--title-card); }
  html[data-theme="atlas"][data-standalone] :is(h1, h2) { font-family: var(--font-heading); }
  html[data-theme="atlas"][data-standalone="login"] .card { border-color: transparent; border-top-color: var(--atlas-action); }
  html[data-theme="atlas"][data-standalone="login"] .card {
    border-radius: var(--card-radius);
  }
  html[data-theme="atlas"][data-standalone] h1 {
    font-weight: var(--heading-weight);
  }
}
