/*
 * Shared design tokens of the whole site: public pages, the MUN Portal (portal layout, sign-in pages) and the error
 * pages. Loaded first by every frame (PublicContentFrame, PortalFrame, the static error pages), so every later
 * stylesheet can read them. The values are the public site's: its colours, card radius and shadow, its display face
 * and its button. The older per-area names map onto these tokens instead of holding their own values:
 * --portal-* (modules/MUNPortal/css/portal-v2.css), --site-nav-* (public-navigation.css) and --poo-* (error-page.css).
 * The editable content colours (--content-*, public-content.css) keep literal defaults on .public-content, because the
 * site theme (PublicContentThemeService) overrides them there and its smoke compares them; they equal the values here.
 *
 * Breakpoints (custom properties cannot be used in media queries, so this is the one list every stylesheet uses):
 *   phone      max-width: 575.98px   (min-width: 576px)
 *   tablet     max-width: 767.98px   (min-width: 768px)   the portal's phone frame below it
 *   desktop    max-width: 991.98px   (min-width: 992px)   the site navbar collapses below it
 *   wide       max-width: 1199.98px  (min-width: 1200px)
 * (rem forms in the public stylesheets: 36rem / 35.98rem, 48rem / 47.98rem, 62rem, 75rem.)
 * Phone frame (the floating navbar controls of public-navigation.css, the portal's bottom bar and sheets in portal-v2.css;
 * scripts read it from --olmun-phone-frame-query below: js/sidebar-state.js as window.olmunPortalPhoneFrameQuery for the
 * portal scripts, js/public-navigation.js for its hide-on-scroll): the tablet breakpoint plus landscape phones,
 *   (max-width: 767.98px), (pointer: coarse) and (max-height: 500px)
 * Its complement (the portal's desktop sidebar frame):
 *   (min-width: 768px) and (pointer: fine), (min-width: 768px) and (pointer: none), (min-width: 768px) and (min-height: 500.02px)
 * Two deliberate exceptions: the content editor's bottom sheet (1024.98px, shared with its script) and the hero
 * countdown's narrow-phone step (23rem).
 */
:root {
	/* The phone frame condition of the header for scripts (window.matchMedia(), read with getComputedStyle) and its
	   landscape phone height (the content editor's desktop preview stays taller). Keep both in step with the header. */
	--olmun-phone-frame-query: "(max-width: 767.98px), (pointer: coarse) and (max-height: 500px)";
	--olmun-phone-landscape-max-height: 500;
	--olmun-primary: #0a3caa;
	--olmun-primary-hover: #083088;
	--olmun-primary-soft: #eaf0fb;
	--olmun-primary-rgb: 10, 60, 170;
	--olmun-navy: #041844;
	--olmun-accent: #d41324;
	--olmun-accent-hover: #a80f1c;

	/* Text, lines and surfaces. Muted text is the lightest text colour (4.5:1 or more on every surface below). */
	--olmun-text: #202a36;
	--olmun-text-secondary: #4d5a6b;
	--olmun-text-muted: #5b6878;
	--olmun-border: #dde3ec;
	--olmun-border-strong: #cfd6df;
	--olmun-surface: #fff;
	--olmun-surface-muted: #f5f6f8;
	--olmun-surface-hover: #f1f4f8;
	--olmun-surface-page: #f5f8fd;

	/* Status tones: a dark foreground and its light tint (portal status pills, alerts, toasts, Bootstrap's semantic colours). */
	--olmun-tone-neutral: #4d5a6b;
	--olmun-tone-neutral-bg: #f1f4f8;
	--olmun-tone-info: #0a3caa;
	--olmun-tone-info-bg: #e7edf9;
	--olmun-tone-success: #1e7a46;
	--olmun-tone-success-bg: #e6f4ec;
	--olmun-tone-warning: #8a5a00;
	--olmun-tone-warning-bg: #fff4dc;
	--olmun-tone-danger: #b02a37;
	--olmun-tone-danger-bg: #fbeaec;
	--olmun-tone-accent: #6b3fa0;
	--olmun-tone-accent-bg: #f1ebf8;

	/* Shape: one corner radius for cards, buttons, fields and dialogs (the public card radius); pills only for chips,
	   status pills and switches. */
	--olmun-radius: .25rem;
	--olmun-radius-pill: 999px;
	--olmun-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	--olmun-shadow-overlay: 0 1rem 3rem rgba(15, 30, 55, .3);
	/* Controls that float over the page (the phone navbar's round buttons): readable over light, dark and photo content. */
	--olmun-shadow-float: 0 1px 2px rgba(16, 24, 40, .16), 0 .25rem .75rem rgba(16, 24, 40, .18);
	--olmun-focus-ring: 0 0 0 .25rem rgba(10, 60, 170, .18);

	/* Type: the display face for page titles (Anton, uppercase; @font-face in public-navigation.css) and a six-step
	   size scale for everything else (labels and meta, small text, body, small headings, card titles, section titles). */
	--olmun-font-display: "Anton", "Anton Fallback Impact", "Anton Fallback Arial", Impact, sans-serif;
	--olmun-font-xs: .75rem;
	--olmun-font-sm: .875rem;
	--olmun-font-md: 1rem;
	--olmun-font-lg: 1.125rem;
	--olmun-font-xl: 1.375rem;
	--olmun-font-2xl: 1.75rem;
	/* Page title (h1 of a portal page, the sign-in card and the error page) in the display face. */
	--olmun-font-title: clamp(2rem, 4vw, 2.75rem);

	/* The one button (Bootstrap .btn in olmun-bootstrap-theme.css and the public call-to-action links): the public
	   site's bold uppercase label with a little tracking, the shared corner radius. */
	--olmun-btn-radius: var(--olmun-radius);
	--olmun-btn-font-size: .85rem;
	--olmun-btn-font-size-sm: var(--olmun-font-xs);
	--olmun-btn-font-weight: 700;
	--olmun-btn-letter-spacing: .06em;
	--olmun-btn-text-transform: uppercase;
	--olmun-btn-padding-y: .65rem;
	--olmun-btn-padding-x: 1.25rem;
	--olmun-btn-padding-y-sm: .35rem;
	--olmun-btn-padding-x-sm: .75rem;
}
