/* Undine Group: one stylesheet for the site, the careers pages and the simulated application flows. */
:root {
    --ink: #13212e;
    --muted: #5a6b7a;
    --line: #d9dee3;
    --bg: #f7f5f0;
    --card: #ffffff;
    --brand: #0f3a52;
    --accent: #1b8a8f;
    --accent-ink: #ffffff;
    --error: #b42318;
    --radius: 10px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Site header and footer */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; }
.logo span { color: #8fd3d6; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #dce8ef; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Home */
.hero { background: linear-gradient(160deg, var(--brand) 0%, #13506d 60%, var(--accent) 100%); color: #fff; padding: 72px 0 80px; }
.hero h1 { font-family: var(--font-display); font-weight: normal; font-size: clamp(34px, 6vw, 54px); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 19px; max-width: 620px; color: #dce8ef; margin: 0; }
.section { padding: 48px 0 0; }
.section h2 { font-family: var(--font-display); font-weight: normal; font-size: 30px; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 20px; }
.card .tagline { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e6eef2; color: var(--brand); }

/* Content */
.page { padding: 40px 0 0; }
.page h1 { font-family: var(--font-display); font-weight: normal; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); }
.test-notice { background: #fff6dd; border: 1px solid #f0d58a; color: #6b4e00; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin: 16px 0; }

/* Careers list */
.jobs { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.job a.title { font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
.job a.title:hover { color: var(--accent); }
.job .meta { color: var(--muted); font-size: 14px; }
.job-body h2 { font-size: 20px; margin: 28px 0 8px; }
.job-body ul { padding-left: 20px; }
.facts { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }

/* Buttons and forms (shared by the flows; each theme recolours them) */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid currentColor; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
form .field { margin: 0 0 16px; }
form label, form legend { display: block; font-weight: 600; margin: 0 0 6px; }
form .req { color: var(--error); margin-left: 2px; }
form .help { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=date], form input[type=month], form input[type=url], form input[type=password], form select, form textarea {
    width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: #fff; border: 1px solid #b8c1ca; border-radius: 6px;
}
form textarea { min-height: 120px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
form .check input { margin-top: 4px; }
form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
form .radio-row { display: flex; gap: 16px; flex-wrap: wrap; font-weight: normal; }
form .radio-row label { font-weight: normal; display: flex; gap: 6px; align-items: center; }
form .error { color: var(--error); font-size: 14px; margin: 4px 0 0; }
form .section-title { font-size: 18px; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.errors { background: #fdecea; border: 1px solid #f5c2bc; color: var(--error); border-radius: 8px; padding: 10px 14px; margin: 0 0 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Simulated ATS shell */
.ats-header { padding: 14px 0; border-bottom: 1px solid var(--line); background: #fff; }
.ats-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ats-header .portal { font-weight: 700; }
.ats-header .portal small { font-weight: normal; color: var(--muted); margin-left: 6px; }
.ats-main { padding: 28px 0 48px; }
.ats-main h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.25; margin: 0 0 8px; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; counter-reset: step; }
.steps li { flex: 1 1 120px; font-size: 13px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li.done { border-color: var(--accent); color: var(--ink); }
.steps li.current { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.review dl { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 6px 16px; margin: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.captcha-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #f4f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.captcha-box svg { display: block; border-radius: 4px; }

/* Themes: each simulated flow looks different, without copying anyone's branding */
.t-workday { --accent: #1f5fa8; --bg: #f2f4f7; }
.t-workday .ats-header { background: #1f3b5a; color: #fff; border: 0; }
.t-workday .ats-header .portal small { color: #c9d6e4; }
.t-successfactors { --accent: #3a6ea5; --bg: #eef1f4; --font: Arial, Helvetica, sans-serif; }
.t-successfactors .ats-header { background: #2d3e50; color: #fff; border: 0; }
.t-successfactors .ats-header .portal small { color: #c3ccd6; }
.t-greenhouse { --accent: #2b6f63; --bg: #ffffff; }
.t-greenhouse .ats-main { max-width: 760px; }
.t-lever { --accent: #222222; --bg: #ffffff; --font: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.t-lever .btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.t-smartrecruiters { --accent: #5a48a8; --bg: #f6f5fb; }
.t-smartrecruiters .section-title { background: #ece9f8; border: 0; padding: 10px 12px; border-radius: 6px; }
.t-personio { --accent: #24304a; --bg: #f5f6f8; }
.t-umantis { --accent: #6b7b2c; --bg: #ffffff; --font: Verdana, Geneva, sans-serif; font-size: 14px; }
.t-umantis .ats-main { padding: 12px 0; }
.t-captcha, .t-form { --bg: #f7f5f0; }

.frame { width: 100%; min-height: 1500px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Admin */
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }
pre.json { background: #0f1720; color: #d6e2ee; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.site { --ink: #e7edf2; --muted: #a3b2bf; --line: #2a3a48; --bg: #0e1820; --card: #15232e; }
    :root:not([data-theme="light"]) body.site form input, :root:not([data-theme="light"]) body.site form select, :root:not([data-theme="light"]) body.site form textarea { background: #0e1820; border-color: #3a4c5c; }
    :root:not([data-theme="light"]) body.site .badge { background: #1f3443; color: #cfe3ec; }
    :root:not([data-theme="light"]) body.site .test-notice { background: #33290a; border-color: #6b5410; color: #f1dc9b; }
}

/* Language switcher */
.lang-switch { display: flex; gap: 10px; font-size: 14px; }
.lang-switch a { color: #dce8ef; text-decoration: none; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: #fff; text-decoration: underline; }
