/* careers.mladvisory.eu: the public career site. Navy and brass, a serif for headings; light and dark. No third-party fonts. */
:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #142033; --muted: #5b6577; --line: #e2ddd2;
  --navy: #132a4a; --brass: #a8752c; --brass-soft: #f3e7d3; --focus: #2f6fd6; --danger: #b3261e; --danger-bg: #fbeaea;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1726; --card: #152237; --ink: #e8ecf3; --muted: #9aa6b8; --line: #263652;
    --navy: #0a1424; --brass: #d7a65a; --brass-soft: #2b2a24; --focus: #7aa7ff; --danger: #ff8a80; --danger-bg: #3a1c1c; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }

.site-head { background: var(--navy); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.brand small { color: #d7a65a; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-left: 4px; }
.mark-bg { fill: rgba(255,255,255,.08); } .mark-m { stroke: #d7a65a; }
.head-link { color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px; }
.head-link:hover { color: #fff; text-decoration: underline; }

main.wrap { padding-block: 40px 64px; display: grid; gap: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--brass); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding-block: 24px 8px; max-width: 760px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); }
.lede { font-size: 18px; color: var(--muted); margin: 16px 0 0; max-width: 62ch; }

.offers h2 { font-size: 22px; margin-bottom: 14px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 20px; padding: 18px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.offer:hover { border-color: var(--brass); transform: translateY(-1px); }
.offer-title { font-family: var(--serif); font-size: 20px; font-weight: 600; min-width: 0; }
.offer-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.tag { background: var(--brass-soft); color: var(--brass); font-weight: 600; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.offer-go { color: var(--brass); font-size: 20px; }
@media (max-width: 640px) { .offer { grid-template-columns: minmax(0, 1fr) auto; } .offer-meta { grid-column: 1; grid-row: 2; } .offer-go { grid-row: 1 / span 2; grid-column: 2; } }
.empty { color: var(--muted); }

.spontaneous { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px; border-radius: 14px;
  background: var(--navy); color: #fff; }
.spontaneous h2 { font-size: 24px; } .spontaneous p { margin: 6px 0 0; color: rgba(255,255,255,.8); max-width: 60ch; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 11px 20px;
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }

.back a { color: var(--muted); text-decoration: none; font-size: 15px; } .back a:hover { color: var(--ink); }
main.wrap > .back { margin-bottom: -24px; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .job-grid { grid-template-columns: 1fr; } }
.job h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.desc { max-width: 68ch; overflow-wrap: anywhere; }
.desc > :first-child { margin-top: 0; }
.desc p { margin: 0 0 14px; }
.desc h2, .desc h3, .desc h4 { font-family: var(--serif); margin: 28px 0 10px; }
.desc h2 { font-size: 26px; } .desc h3 { font-size: 21px; } .desc h4 { font-size: 18px; }
.desc ul, .desc ol { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 6px; }
.desc li::marker { color: var(--brass); }
.desc a { color: var(--brass); font-weight: 600; }

.apply { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; position: sticky; top: 20px; }
@media (max-width: 900px) { .apply { position: static; } }
.apply h2 { font-size: 24px; }
.apply label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.apply label small { font-weight: 400; color: var(--muted); }
.apply input:not([type=checkbox]), .apply textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px; }
.apply input[type=file] { padding: 8px; }
.apply .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .apply .two { grid-template-columns: 1fr; } }
.apply .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.apply .consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brass); }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0; padding: 10px 14px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); font-weight: 600; }

.done { max-width: 640px; padding-block: 40px; display: grid; gap: 16px; justify-items: start; }
.done h1 { font-size: clamp(26px, 4vw, 36px); }
.check { margin: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); font-size: 28px; }
.prose { max-width: 68ch; } .prose h1 { font-size: 36px; margin-bottom: 16px; } .prose h2 { font-size: 21px; margin: 26px 0 6px; } .prose p { margin: 0 0 10px; }
.mail { font-weight: 600; user-select: all; overflow-wrap: anywhere; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 22px; }

/* "Postuler" under the title: straight to the form (below the offer on a phone, beside it on a wide screen). */
.apply-jump { margin: -6px 0 22px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#postuler { scroll-margin-top: 20px; }
