/* Page-wide base rules (4-Oct-2026). Until now these came from the "Reset" and "Site" sections of
   Semantic UI 2.4 (semantic.css, MIT licence; its reset embeds normalize.css v7, MIT), which the layout
   loaded on every page although only the search box used Semantic. They give the portal its Lato
   14px body text, heading sizes and spacing, paragraph spacing, #4183C4 links without underline,
   sans-serif form fields, the selection colour and the thin scrollbars, so they are kept here as they
   were and loaded where semantic.css was (after Bootstrap, so they still take precedence over it).
   Only rules no browser applies (-ms-, ::-webkit-selection, font-smoothing) and the .ui.inverted
   scrollbars were left out. The Lato font itself is linked from the layout. */

/* The portal's corner radii (4-Oct-2026), one scale for every page. xs for small marks inside a control (a filter
   icon in a column title, a colour swatch, a bar), sm for controls (buttons, inputs, drop-downs, switches, banners,
   chips that are not pills), md for containers (cards, tiles, panels, dialogs, menus, icon squares), pill for
   pills (a one-line banner is sm, a note or message panel md). Something inside a rounded container either is clipped by it (overflow: hidden) or takes its own corners
   from it: the container's radius less the container's border (--gm-radius-md-inner for a 1px border). */
:root {
    --gm-radius-xs: 4px;
    --gm-radius-sm: 8px;
    --gm-radius-md: 12px;
    --gm-radius-md-inner: calc(var(--gm-radius-md) - 1px);
    --gm-radius-pill: 999px;
}

/* Bootstrap 3's own components on the same scale (its 3 to 6px corners sat beside the portal's 8 to 16px ones).
   Bootstrap's squared joins inside input and button groups are more specific and still win. */
.btn, .btn-lg, .btn-sm, .btn-xs, .form-control, .input-lg, .input-sm, .input-group-addon, .alert { border-radius: var(--gm-radius-sm); }
.dropdown-menu, .panel, .well, .modal-content, .jumbotron, .container .jumbotron, .container-fluid .jumbotron { border-radius: var(--gm-radius-md); }
.panel-heading { border-top-left-radius: var(--gm-radius-md-inner); border-top-right-radius: var(--gm-radius-md-inner); }
.panel-footer { border-bottom-left-radius: var(--gm-radius-md-inner); border-bottom-right-radius: var(--gm-radius-md-inner); }

*, *:before, *:after { box-sizing: inherit; }
html { box-sizing: border-box; }
input[type="text"], input[type="email"], input[type="search"], input[type="password"] { -webkit-appearance: none; -moz-appearance: none; }

/* normalize.css v7.0.0 */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
article, aside, footer, header, nav, section { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
figcaption, figure, main { display: block; }
figure { margin: 1em 40px; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
dfn { font-style: italic; }
mark { background-color: #ff0; color: #000; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
audio, video { display: inline-block; }
audio:not([controls]) { display: none; height: 0; }
img { border-style: none; }
svg:not(:root) { overflow: hidden; }
button, input, optgroup, select, textarea { font-family: sans-serif; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { display: inline-block; vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
/* 23-Oct-2026 (Oliver, asked for more than once): a tick box sits on the middle of its text everywhere. Bootstrap 3 gives every
   checkbox and radio a 4px top margin, which pushes it below the middle of its label (most visibly in a flex label). Only
   Bootstrap's own .checkbox / .radio blocks, which place the box absolutely, keep that margin. tests: CheckboxAlignmentTests. */
input[type="checkbox"], input[type="radio"] { margin-top: 0; margin-bottom: 0; vertical-align: middle; }
.checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"], .radio input[type="radio"], .radio-inline input[type="radio"] { margin-top: 4px; vertical-align: baseline; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details, menu { display: block; }
summary { display: list-item; }
canvas { display: inline-block; }
template { display: none; }
[hidden] { display: none; }

/* site */
html, body { height: 100%; }
html { font-size: 14px; }
body { margin: 0; padding: 0; overflow-x: hidden; min-width: 320px; background: #FFFFFF; font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.4285em; color: rgba(0, 0, 0, 0.87); }
h1, h2, h3, h4, h5 { font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 1.28571429em; margin: calc(2rem - 0.14285714em) 0 1rem; font-weight: bold; padding: 0; }
h1 { min-height: 1rem; font-size: 2rem; }
h2 { font-size: 1.71428571rem; }
h3 { font-size: 1.28571429rem; }
h4 { font-size: 1.07142857rem; }
h5 { font-size: 1rem; }
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child { margin-top: 0; }
h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child { margin-bottom: 0; }
p { margin: 0 0 1em; line-height: 1.4285em; }
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }
a { color: #4183C4; text-decoration: none; }
a:hover { color: #1e70bf; text-decoration: none; }
::selection { background-color: #CCE2FF; color: rgba(0, 0, 0, 0.87); }
textarea::selection, input::selection { background-color: rgba(100, 100, 100, 0.4); color: rgba(0, 0, 0, 0.87); }
body ::-webkit-scrollbar { -webkit-appearance: none; width: 10px; height: 10px; }
body ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); border-radius: 0; }
body ::-webkit-scrollbar-thumb { cursor: pointer; border-radius: var(--gm-radius-pill); background: rgba(0, 0, 0, 0.25); transition: color 0.2s ease; }
body ::-webkit-scrollbar-thumb:window-inactive { background: rgba(0, 0, 0, 0.15); }
body ::-webkit-scrollbar-thumb:hover { background: rgba(128, 135, 139, 0.8); }
