/* GBC UI Brand Standard, version 1 (15 October 2026). The reusable style for every GBC screen (ServiceM8 add-ons,
   tools, internal pages). Read with C:\GBC\brand\GBC_UI_Brand_Standard.md. Source: GBCo_Brand_Blueprint.pdf
   (colours pages 29 to 32; logo pages 26, 33 and 47; type pages 48 to 52). The Blueprint wins wherever this differs.
   Fonts: Lexend Light (300), Regular (400) and Medium (500), bundled with each build as @font-face (never loaded from
   the internet; never Organetto, which is a paid licence). Logo: only the official files in C:\GBC\brand\Logo. */

:root {
	/* Brand colours (Blueprint page 29): Midnight Green leads; Cinnabar is the accent, used sparingly. */
	--gbc-green: #003B3F;
	--gbc-green-hover: #0B4E53;
	--gbc-green-tint: #E8EFEF;
	--gbc-green-wash: #F3F7F7;
	--gbc-cinnabar: #F05730;
	--gbc-cinnabar-tint: #FDE6DE;
	/* Neutrals: ink for text (the Blueprint's body text is black), soft greys for done or inactive. */
	--gbc-ink: #1A1A1A;
	--gbc-ink-soft: #3F4A4C;
	--gbc-muted: #6B7678;
	--gbc-line: #E3E8E8;
	--gbc-line-strong: #C9D3D3;
	--gbc-surface: #FFFFFF;
	--gbc-canvas: #F6F8F8;
	/* Status colours: amber only for something still needing action; green for done; red for a stop. */
	--gbc-amber: #7A4F00;
	--gbc-amber-bg: #FFF6E3;
	--gbc-amber-line: #F0D394;
	--gbc-amber-edge: #E0A800;
	--gbc-red: #A4231B;
	--gbc-red-bg: #FDEDEB;
	--gbc-red-line: #F2C3BE;
	--gbc-ok: #1E7034;
	/* Shape and space */
	--gbc-radius: 10px;
	--gbc-radius-sm: 6px;
	--gbc-space-1: 4px;
	--gbc-space-2: 8px;
	--gbc-space-3: 12px;
	--gbc-space-4: 16px;
	--gbc-space-5: 24px;
	--gbc-space-6: 32px;
	--gbc-font: "Lexend", "Segoe UI", Arial, sans-serif;
}

/* --- Type (Blueprint pages 49 to 51) ------------------------------------------------------------------------ */
body { font-family: var(--gbc-font); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--gbc-ink); background: var(--gbc-surface); -webkit-font-smoothing: antialiased; }
b, strong, th, label, legend, summary { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--gbc-font); font-weight: 500; color: var(--gbc-green); letter-spacing: -0.005em; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 var(--gbc-space-2); }
h2 { font-size: 17px; line-height: 1.3; margin: var(--gbc-space-6) 0 var(--gbc-space-2); }
h3 { font-size: 15px; line-height: 1.35; margin: var(--gbc-space-5) 0 var(--gbc-space-2); }
.gbc-kicker { font-weight: 300; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gbc-muted); }
a, .link { color: var(--gbc-cinnabar); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.muted, .sub { color: var(--gbc-muted); }
p, .gbc-text { max-width: 760px; }

/* --- Header: the logo mark on Midnight Green (Blueprint page 33), never under 55 px tall (page 47) ------------- */
.gbc-header { display: flex; align-items: center; gap: var(--gbc-space-4); background: var(--gbc-green); color: #fff; padding: var(--gbc-space-3) var(--gbc-space-6); }
.gbc-header .gbc-mark { flex: none; display: block; height: 56px; padding: 0 var(--gbc-space-2) 0 0; }
.gbc-header .gbc-mark svg { display: block; height: 56px; width: auto; }
.gbc-header .gbc-head-text { min-width: 0; }
.gbc-header .gbc-kicker { color: rgba(255, 255, 255, 0.72); }
.gbc-header h1, .gbc-header .gbc-title { color: #fff; margin: 2px 0 0; font-size: 20px; font-weight: 500; }

/* --- Buttons: one primary per screen (solid Midnight Green); secondary is an outline; quiet for risky or minor actions */
button { font-family: var(--gbc-font); font-weight: 500; font-size: 14px; line-height: 1.2; padding: 10px 18px; border-radius: var(--gbc-radius-sm); border: 1px solid var(--gbc-green); background: var(--gbc-surface); color: var(--gbc-green); cursor: pointer; transition: background-color 0.12s ease; }
button:hover:not(:disabled) { background: var(--gbc-green-wash); }
button.primary { background: var(--gbc-green); border-color: var(--gbc-green); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--gbc-green-hover); }
button.secondary { background: var(--gbc-surface); color: var(--gbc-green); border-color: var(--gbc-green); }
button.quiet, button.grey { background: transparent; border-color: transparent; color: var(--gbc-muted); text-decoration: underline; text-underline-offset: 2px; padding: 6px 8px; }
button.quiet:hover:not(:disabled), button.grey:hover:not(:disabled) { background: transparent; color: var(--gbc-ink); }
button.small { font-size: 13px; padding: 6px 12px; }
button:disabled { opacity: 0.42; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gbc-cinnabar); outline-offset: 2px; }

/* --- Cards -------------------------------------------------------------------------------------------------- */
.card { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: var(--gbc-radius); padding: var(--gbc-space-4) var(--gbc-space-5); margin: var(--gbc-space-4) 0; box-shadow: 0 1px 2px rgba(0, 59, 63, 0.05); }
.card-title { font-weight: 500; font-size: 15px; color: var(--gbc-green); margin-bottom: var(--gbc-space-1); }

/* --- Notices: amber only for something still needing action; red for a stop; plain for information --------- */
.box { border-radius: var(--gbc-radius-sm); padding: var(--gbc-space-3) var(--gbc-space-4); margin: var(--gbc-space-3) 0; border: 1px solid var(--gbc-line); }
.box.warn { background: var(--gbc-amber-bg); border-color: var(--gbc-amber-line); border-left: 4px solid var(--gbc-amber-edge); color: var(--gbc-ink); }
.box.stop { background: var(--gbc-red-bg); border-color: var(--gbc-red-line); border-left: 4px solid var(--gbc-red); color: var(--gbc-ink); }
.box.note { background: var(--gbc-green-wash); border-color: var(--gbc-line); }
/* Done: one small green line with a tick, never a box (anything already dealt with). */
.box.ok, .ok-line { display: block; background: none; border: 0; border-radius: 0; padding: 2px 0 2px 24px; margin: var(--gbc-space-2) 0; color: var(--gbc-ok); font-weight: 400; position: relative; }
.box.ok::before, .ok-line::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--gbc-ok); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 500; }
.box.ok b, .ok-line b { font-weight: 500; }

/* --- Form fields -------------------------------------------------------------------------------------------- */
input[type=text], input[type=number], input:not([type]), textarea, select { font-family: var(--gbc-font); font-weight: 300; font-size: 14px; color: var(--gbc-ink); background: var(--gbc-surface); border: 1px solid var(--gbc-line-strong); border-radius: var(--gbc-radius-sm); padding: 9px 11px; box-sizing: border-box; }
input[readonly], textarea[readonly] { background: var(--gbc-canvas); color: var(--gbc-ink-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--gbc-green); width: 16px; height: 16px; }
.field { display: block; margin: var(--gbc-space-3) 0; font-size: 13px; color: var(--gbc-ink-soft); }

/* --- Tables ------------------------------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
th { font-weight: 500; font-size: 12px; color: var(--gbc-muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--gbc-line-strong); }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--gbc-line); vertical-align: top; }

/* --- Step tiles (one per stage): current solid Midnight Green; done soft grey with a green tick; not reached faded */
.gbc-steps button { border: 1px solid var(--gbc-line-strong); background: var(--gbc-surface); color: var(--gbc-ink-soft); border-radius: var(--gbc-radius-sm); font-weight: 500; }
.gbc-steps button.done { background: var(--gbc-canvas); border-color: var(--gbc-line); color: var(--gbc-ink-soft); }
.gbc-steps button.done::before { content: "\2713  "; color: var(--gbc-ok); }
.gbc-steps button.on { background: var(--gbc-green); border-color: var(--gbc-green); color: #fff; }
.gbc-steps button.later { opacity: 0.55; }

/* --- Section tabs (second row): the active one underlined in Cinnabar ------------------------------------------ */
.gbc-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--gbc-muted); font-weight: 400; font-size: 13px; padding: 6px 10px; }
.gbc-tabs button:hover:not(:disabled) { background: transparent; color: var(--gbc-green); }
.gbc-tabs button.on { color: var(--gbc-green); font-weight: 500; border-bottom-color: var(--gbc-cinnabar); }

/* --- Footer bar --------------------------------------------------------------------------------------------- */
.bar { background: var(--gbc-surface); border-top: 1px solid var(--gbc-line); padding: var(--gbc-space-3) var(--gbc-space-6); gap: var(--gbc-space-3); box-shadow: 0 -2px 10px rgba(0, 59, 63, 0.04); }

/* --- Highlights: added wording in Cinnabar's tint (a key highlight); removed wording struck through in grey ---- */
ins.gbc-added, ins.df-ins { background: var(--gbc-cinnabar-tint); color: var(--gbc-ink); text-decoration: none; font-weight: 400; border-radius: 2px; }
del.gbc-removed, del.df-del { color: var(--gbc-muted); text-decoration: line-through; background: none; }
