/* ELINA SSO, matched to the synchresis.net 2026 theme (same tokens as the
   ELINA shell). Light and dark follow the system setting; the SSO's CSP
   allows no inline script, so there is no stored override here. */
:root {
    color-scheme: light;
    --ground: #f2efe7; --ground-2: #e9e4d9; --ground-3: #ded8ca;
    --rule: #c9c2b2; --text: #1b232a; --text-dim: #5c6771;
    --amber: #a86c12; --amber-lift: #c98a22;
    --cyan: #1a636c; --cyan-lift: #24838e;
    --clip: #95381d; --ink: #10161c; --leaf: #3f6f34;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: "Iowan Old Style", "Palatino Linotype", Charter, Georgia, serif;
    --radius: 2px;
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --ground: #0e1418; --ground-2: #151d23; --ground-3: #1d272e;
        --rule: #2b3740; --text: #dfe4e2; --text-dim: #93a0a8;
        --amber: #e0a13c; --amber-lift: #f2bd63;
        --cyan: #4fb3bf; --cyan-lift: #7fd0d9; --clip: #d9764f; --leaf: #8cc47a;
    }
}
/* ELINA's older names, so page styles written against them follow too. */
:root {
    --primary: var(--ground-2); --primary-light: var(--ground-3); --primary-dark: var(--ground);
    --accent: var(--cyan); --accent-hover: var(--cyan-lift);
    --success: var(--leaf); --warning: var(--amber); --danger: var(--clip);
    --text-primary: var(--text); --text-secondary: var(--text); --text-muted: var(--text-dim);
    --bg-main: var(--ground); --bg-card: var(--ground-2); --bg-card-hover: var(--ground-3);
    --border: var(--rule);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--display);
    font-size: 15px;
    line-height: 1.5;
    background: var(--ground);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cyan-lift); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* The website's five-colour rule, across the top of every SSO page. */
.sy-bars { display: flex; height: 5px; }
.sy-bars span { flex: 1; }
.sy-bars span:nth-child(1) { background: #a86c12; }
.sy-bars span:nth-child(2) { background: #1a636c; }
.sy-bars span:nth-child(3) { background: #5c6771; }
.sy-bars span:nth-child(4) { background: #c98a22; }
.sy-bars span:nth-child(5) { background: #24838e; }

/* Masthead: the real logo, mono product name, italic strapline, short rule. */
.sy-masthead { margin-bottom: 26px; }
.sy-logo { display: block; width: 210px; max-width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
    .sy-logo { filter: brightness(0) invert(1); opacity: .94; }
}
.sy-product { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; margin-top: 14px; }
.sy-strap { font-family: var(--body); font-style: italic; font-size: 14px; color: var(--text-dim); margin-top: 2px; }
.sy-masthead::after { content: ""; display: block; width: 64px; height: 1px; background: var(--rule); margin-top: 16px; }

.sy-card {
    background: var(--ground-2);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--amber);
    border-radius: var(--radius);
    padding: 34px 34px 28px;
    width: 100%;
    max-width: 420px;
}
.sy-page { min-height: calc(100vh - 5px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }

label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 9px 11px;
    font: inherit;
    font-size: 15px;
    background: var(--ground);
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }

.sy-btn, button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
}
.sy-btn:hover, button[type="submit"]:hover { background: var(--amber); color: var(--ground); }

.sy-note {
    border: 1px solid var(--rule);
    border-left: 3px solid var(--cyan);
    background: var(--ground);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
}
.sy-note.bad { border-left-color: var(--clip); }
.sy-note.ok { border-left-color: var(--leaf); }

.sy-modules { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sy-modules p { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.sy-modules nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sy-modules a { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-decoration: none; color: var(--text-dim); }
.sy-modules a:hover { color: var(--amber); }
