@charset "utf-8";
/* ==========================================================================
   Lighthouse Services - modern layout and form styles
   Targets WCAG 2.1 AA, specifically 1.4.10 Reflow (320 CSS px, no 2D scroll),
   1.4.4 Resize Text, 2.4.7 Focus Visible, 2.5.5 Target Size.

   Load LAST in <head>, after styles.css and IncidentReporting.css and after
   any page-level <style> block.

   Every rule is scoped to .lh-modern on <body>. A page opts in by adding that
   class, so pages not yet migrated are completely unaffected by this file.
   ========================================================================== */

.lh-modern {
	/* Palette carried over from the legacy design */
	--lh-frame: #b4d6fe;
	--lh-frame-fill: #d9ddfd;
	--lh-surface: #fff;
	--lh-backdrop: #111;
	--lh-bar: #d9ddfd; /* light: the Mitratech logo is dark artwork */
	--lh-ink: #1a1a1a;
	--lh-ink-muted: #55555f;
	--lh-link: #2a2a80;
	--lh-link-hover: #14144d;
	--lh-required: #c30000;
	--lh-error: #b00020;
	--lh-notice: maroon;
	--lh-reveal: #f1f2f8;
	--lh-rule: #cfd2e3;

	/* Type and rhythm */
	--lh-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--lh-radius: 6px;
	--lh-gap: 1.25rem;
	--lh-target: 2.75rem; /* 44px minimum interactive height */
	--lh-measure: 60rem;
}

/* --------------------------------------------------------------------------
   1. Reset and base
   -------------------------------------------------------------------------- */

.lh-modern *,
.lh-modern *::before,
.lh-modern *::after {
	box-sizing: border-box;
}

body.lh-modern {
	margin: 0;
	padding: clamp(0px, 1.5vw, 1.25rem);
	background-color: var(--lh-backdrop);
	color: var(--lh-ink);
	font-family: var(--lh-font);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

.lh-modern img {
	max-width: 100%;
	height: auto;
	border: 0;
}

.lh-modern hr {
	height: 1px;
	margin: var(--lh-gap) 0;
	border: 0;
	background-color: var(--lh-rule);
}

.lh-modern a {
	color: var(--lh-link);
	font-family: inherit;
	font-size: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.lh-modern a:hover {
	color: var(--lh-link-hover);
}

/* Legacy class neutralizer. These classes are sprinkled through the markup and
   all hardcode 10px to 14px. Reset them so a migrated page inherits the modern
   scale without having to strip every span. */
.lh-modern .style1,
.lh-modern .style2,
.lh-modern .style4,
.lh-modern .style41,
.lh-modern .text,
.lh-modern .L2_body,
.lh-modern .L3_body,
.lh-modern .headingText,
.lh-modern .divline,
.lh-modern .style4 a:link,
.lh-modern .style4 a:visited,
.lh-modern .style41 a:link,
.lh-modern .style41 a:visited,
.lh-modern a:visited {
	font-family: inherit;
	font-size: inherit;
}

.lh-modern a:visited {
	color: var(--lh-link);
}

.lh-modern .style5 {
	color: var(--lh-required);
	font-weight: 600;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Page shell. Replaces the nested 800px / 750px layout tables.
   -------------------------------------------------------------------------- */

.lh-shell {
	max-width: var(--lh-measure);
	margin-inline: auto;
	background-color: var(--lh-frame-fill);
	border: 0.5rem solid var(--lh-frame);
	border-radius: var(--lh-radius);
	box-shadow: 0 1px 6px rgb(0 0 0 / 45%);
	overflow: hidden;
}

/* Header: wraps to a stack below 40rem instead of holding three table cells. */
.lh-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem clamp(0.75rem, 3vw, 2rem);
	padding: clamp(0.75rem, 2.5vw, 1.25rem);
	border-bottom: 1px solid var(--lh-frame);
	background-color: var(--lh-bar);
}

.lh-header__logo {
	display: inline-block;
	flex: 0 1 22.5rem; /* 360px natural width, free to shrink */
	line-height: 0;
}

/* The logo is an SVG, so max-height guards against a file with no intrinsic
   size scaling to fill the header. */
.lh-header__logo img {
	width: 100%;
	max-width: 22.5rem;
	max-height: 4.5rem;
	object-fit: contain;
	object-position: left center;
}

.lh-secure-badge {
	flex: 1 1 auto;
	color: var(--lh-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: right;
	text-transform: uppercase;
}

@media (max-width: 40rem) {
	.lh-secure-badge {
		text-align: left;
	}
}

.lh-main {
	padding: clamp(1rem, 3vw, 2.25rem);
	background-color: var(--lh-surface);
}

.lh-main > :first-child {
	margin-top: 0;
}

.lh-footer {
	padding: clamp(1rem, 3vw, 1.5rem);
	border-top: 1px solid var(--lh-rule);
	background-color: var(--lh-surface);
	color: var(--lh-ink-muted);
	font-size: 0.875rem;
}

.lh-footer a {
	color: var(--lh-ink-muted);
}

/* <address> carries the contact block. Drop the browser default italics. */
.lh-footer address {
	margin-bottom: 0.5rem;
	font-style: normal;
}

.lh-footer p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Headings, prose, notices
   -------------------------------------------------------------------------- */

.lh-modern h1,
.lh-modern h2,
.lh-modern h3 {
	margin: 0 0 0.5em;
	color: var(--lh-ink);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.lh-modern h1 {
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
}

.lh-modern h2 {
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
}

.lh-modern h3 {
	font-size: 1.0625rem;
}

.lh-modern p {
	margin: 0 0 1em;
	max-width: 72ch;
}

.lh-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.lh-brand img {
	max-height: 7rem;
	width: auto;
}

/* Language switcher row above the page heading */
.lh-langbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: var(--lh-gap);
	text-align: center;
}

.lh-langbar [aria-current="true"] {
	font-weight: 700;
}

.lh-langbar .lh-btn img {
	max-height: 2.5rem;
	width: auto;
}

/* Client tagline, injected as HTML from the database */
.lh-tagline {
	margin: var(--lh-gap) 0;
}

.lh-tagline > :last-child {
	margin-bottom: 0;
}

/* Company policy PDF link */
.lh-policy {
	padding: 0.75rem 1rem;
	border: 2px solid var(--lh-rule);
	border-radius: var(--lh-radius);
	text-align: center;
}

.lh-policy img {
	vertical-align: middle;
	margin-right: 0.25rem;
}

.lh-notice {
	margin: var(--lh-gap) 0;
	padding: 0.875rem 1rem;
	border-left: 4px solid var(--lh-notice);
	border-radius: var(--lh-radius);
	background-color: #fdf4f4;
	color: var(--lh-notice);
	font-weight: 600;
}

.lh-notice p:last-child {
	margin-bottom: 0;
}

.lh-callout {
	margin: var(--lh-gap) 0;
	padding: 1rem;
	border: 1px solid var(--lh-rule);
	border-radius: var(--lh-radius);
	background-color: var(--lh-reveal);
}

/* Case number and PIN: figures the reporter has to copy down accurately */
.lh-code {
	display: inline-block;
	padding: 0.125rem 0.375rem;
	border-radius: 4px;
	background-color: var(--lh-reveal);
	color: var(--lh-required);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.lh-callout > :last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Forms. Replaces the fixed cols="80" / size="80" controls and the
      two-column contact-info layout table.
   -------------------------------------------------------------------------- */

.lh-form {
	display: grid;
	gap: clamp(1.25rem, 3vw, 1.75rem);
	margin: 0;
}

.lh-field {
	display: grid;
	gap: 0.375rem;
}

.lh-field > label,
.lh-fieldset > legend {
	display: block;
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.lh-field__hint {
	color: var(--lh-ink-muted);
	font-size: 0.9375rem;
}

.lh-modern input[type="text"],
.lh-modern input[type="email"],
.lh-modern input[type="tel"],
.lh-modern input[type="password"],
.lh-modern input[type="file"],
.lh-modern select,
.lh-modern textarea {
	width: 100%;
	max-width: 46rem;
	min-height: var(--lh-target);
	padding: 0.5rem 0.625rem;
	border: 1px solid #767683;
	border-radius: var(--lh-radius);
	background-color: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
}

.lh-modern textarea {
	min-height: 5.5rem;
	line-height: 1.5;
	resize: vertical;
}

/* A plain select is a native dropdown. Keep it narrower than a text field so it
   does not stretch the full measure. */
.lh-modern select:not([size]) {
	max-width: 30rem;
}

/* size turns a select into a multi-line list box, which nests a scroll region
   inside the page at 320px. Avoid it; this rule only keeps any leftover usable. */
.lh-modern select[size] {
	min-height: 8rem;
}

/* Short controls keep a sensible width instead of relying on the size attribute */
.lh-input--pin {
	max-width: 7rem;
}

.lh-input--short {
	max-width: 16rem;
}

.lh-input--medium {
	max-width: 26rem;
}

/* Radio and checkbox groups. Replaces &nbsp; runs for spacing. */
.lh-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0; /* lets a fieldset shrink below its content at 320px */
}

.lh-fieldset > legend {
	margin-bottom: 0.5rem;
}

.lh-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

.lh-choices--stacked {
	flex-direction: column;
	gap: 0.25rem;
}

.lh-choice {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	min-height: var(--lh-target);
	padding: 0.25rem 0;
	font-weight: 400;
	cursor: pointer;
}

.lh-choice input[type="radio"],
.lh-choice input[type="checkbox"] {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.25rem 0 0;
	accent-color: var(--lh-link);
}

/* One rendered form variant. Shown or hidden by the workAtCompany answer. */
.lh-variant[hidden] {
	display: none;
}

/* Conditional follow-up questions. Replaces .showQuestion. */
.lh-reveal {
	margin-top: 0.75rem;
	padding: 1rem;
	border-left: 4px solid var(--lh-link);
	border-radius: var(--lh-radius);
	background-color: var(--lh-reveal);
	display: grid;
	gap: var(--lh-gap);
}

.lh-reveal[hidden] {
	display: none;
}

/* Read-only incident type definition. Replaces the readonly textarea. */
.lh-definition {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--lh-rule);
	border-radius: var(--lh-radius);
	background-color: var(--lh-reveal);
	min-height: 3.5rem;
	max-width: 46rem;
}

/* Contact block. Replaces the 20% / 80% layout table. */
.lh-grid-2 {
	display: grid;
	gap: var(--lh-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* --------------------------------------------------------------------------
   5. Validation
   -------------------------------------------------------------------------- */

.lh-modern [aria-invalid="true"] {
	border: 2px solid var(--lh-error);
	background-color: #fff8f8;
}

.lh-error {
	display: flex;
	align-items: flex-start;
	gap: 0.375rem;
	color: var(--lh-error);
	font-size: 0.9375rem;
	font-weight: 600;
}

.lh-error[hidden] {
	display: none;
}

.lh-error::before {
	content: "\26A0";
	font-weight: 700;
}

.lh-error-summary {
	margin: 0 0 var(--lh-gap);
	padding: 1rem;
	border: 2px solid var(--lh-error);
	border-radius: var(--lh-radius);
	background-color: #fff8f8;
}

.lh-error-summary[hidden] {
	display: none;
}

.lh-error-summary h2 {
	margin-top: 0;
	color: var(--lh-error);
	font-size: 1.0625rem;
}

.lh-error-summary ul {
	margin: 0;
	padding-left: 1.25rem;
}

.lh-error-summary a {
	color: var(--lh-error);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Buttons and actions
   -------------------------------------------------------------------------- */

.lh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
}

.lh-actions--center {
	justify-content: center;
}

.lh-modern .lh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--lh-target);
	min-width: 12rem;
	max-width: 100%;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--lh-link);
	border-radius: var(--lh-radius);
	background-color: var(--lh-link);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.lh-modern .lh-btn:hover {
	background-color: var(--lh-link-hover);
	border-color: var(--lh-link-hover);
	color: #fff;
}

.lh-modern .lh-btn--secondary {
	background-color: #fff;
	color: var(--lh-link);
}

.lh-modern .lh-btn--secondary:hover {
	background-color: var(--lh-reveal);
	color: var(--lh-link-hover);
}

.lh-modern .lh-btn--quiet {
	min-width: 0;
	border-color: var(--lh-rule);
	background-color: #fff;
	color: var(--lh-ink-muted);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Focus, skip link, utilities
   -------------------------------------------------------------------------- */

.lh-modern :focus-visible {
	outline: 3px solid var(--lh-link);
	outline-offset: 2px;
	border-radius: 2px;
}

/* The filled buttons are dark, so a white ring with a coloured halo reads on
   them. The header is light, so it keeps the default ring. */
.lh-modern .lh-btn:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px var(--lh-link);
}

.lh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 0.625rem 1rem;
	background-color: #fff;
	border: 2px solid var(--lh-link);
	border-radius: var(--lh-radius);
	font-weight: 700;
	text-decoration: none;
}

.lh-skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

.lh-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Any genuine data table that survives migration scrolls inside its own box
   so the page itself never scrolls sideways. */
.lh-table-wrap {
	overflow-x: auto;
	margin-bottom: var(--lh-gap);
}

.lh-table {
	width: 100%;
	border-collapse: collapse;
}

.lh-table th,
.lh-table td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--lh-rule);
	text-align: left;
	vertical-align: top;
}

/* --------------------------------------------------------------------------
   8. Preferences and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.lh-modern *,
	.lh-modern *::before,
	.lh-modern *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.lh-modern :focus-visible {
		outline: 3px solid CanvasText;
	}

	.lh-modern .lh-btn {
		border: 1px solid ButtonText;
	}

	.lh-modern [aria-invalid="true"] {
		border: 2px solid CanvasText;
	}
}

@media print {
	body.lh-modern {
		padding: 0;
		background: #fff;
		color: #000;
	}

	.lh-shell {
		max-width: none;
		border: 0;
		box-shadow: none;
	}

	.lh-header,
	.lh-skip-link {
		display: none;
	}

	.lh-main {
		padding: 0;
	}
}
