/* Oakfield Lee Careers v1.1.0
   Colours sampled from the live site: bg #f7faff, green #0f8647, text #3f4641, heading #2f3230.
   Fonts inherit from the theme. Nothing here targets :root or body, except the stand-alone shell. */

.olc, .olc-dialog, .olc-shell, .olc-shell-footer {
	--olc-green: #0f8647;
	--olc-green-dark: #0a6a37;
	--olc-green-soft: #e6f4ec;
	--olc-head: #2f3230;
	--olc-ink: #3f4641;
	--olc-muted: #5d665f;
	--olc-bg: #f7faff;
	--olc-line: #dbe4ec;
	--olc-field: #b4c2cd;
	--olc-focus: #1a56db;
}
.olc {
	color: var(--olc-ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 64px;
	font-family: inherit;
	line-height: 1.6;
	text-align: left;
}
.olc *, .olc *::before, .olc *::after,
.olc-dialog *, .olc-dialog *::before, .olc-dialog *::after { box-sizing: border-box; }

/* ---------- Buttons and links ---------- */
.olc-btn, .olc-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	border: 2px solid var(--olc-green); background: var(--olc-green); color: #fff; text-decoration: none;
	padding: 12px 26px; border-radius: 999px; font: inherit; font-weight: 700; line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}
.olc-btn:hover { background: var(--olc-green-dark); border-color: var(--olc-green-dark); color: #fff; }
.olc-btn--ghost, .olc-btn--ghost:visited { background: transparent; color: var(--olc-green); }
.olc-btn--ghost:hover { background: var(--olc-green); border-color: var(--olc-green); color: #fff; }
.olc-link { color: var(--olc-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.olc-link:hover { color: var(--olc-green-dark); }

.olc a:focus-visible, .olc button:focus-visible, .olc input:focus-visible, .olc textarea:focus-visible,
.olc-dialog a:focus-visible, .olc-dialog button:focus-visible, .olc-dialog input:focus-visible, .olc-dialog textarea:focus-visible {
	outline: 3px solid var(--olc-focus); outline-offset: 2px;
}

/* ---------- Info chips ---------- */
.olc-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.olc-meta li {
	background: var(--olc-green-soft); color: var(--olc-green-dark); border-radius: 999px;
	padding: 5px 14px; font-size: .9rem; font-weight: 600; line-height: 1.4; margin: 0;
}

/* ---------- Vacancy cards: 3 per row (4 with columns="4") ---------- */
.olc-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .olc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .olc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .olc-cols-4 .olc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.olc-cols-2 .olc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px)  { .olc-cols-2 .olc-cards { grid-template-columns: 1fr; } }

/* The card itself never moves, grows or changes colour on hover. Only the photo zooms. */
.olc-card {
	display: flex; flex-direction: column; overflow: hidden; margin: 0; cursor: pointer;
	background: #fff; border: 1px solid var(--olc-line); border-radius: 20px;
	box-shadow: 0 1px 3px rgba(47, 50, 48, .06);
}
.olc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--olc-green-soft); }
.olc-card__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s ease;
}
.olc-card:hover .olc-card__img, .olc-card:focus-within .olc-card__img { transform: scale(1.06); }

.olc-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; padding: 22px 22px 24px; text-align: left; }
.olc-card__body .olc-meta { margin: 0; }
.olc-card h3 { margin: 0; padding: 0; color: var(--olc-head); font-weight: 800; line-height: 1.2; font-size: clamp(1.25rem, 1.5vw, 1.5rem); text-align: left; }
.olc-card__pay { margin: 0; color: var(--olc-green-dark); font-weight: 700; text-align: left; }
.olc-card__desc {
	margin: 0; font-size: 1rem; text-align: left;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.olc-card__foot {
	margin-top: auto; padding-top: 10px; width: 100%;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.olc-card__closes { font-size: .9rem; color: var(--olc-muted); }

/* ---------- Popup ---------- */
html.olc-lock { overflow: hidden; }
.olc-dialog {
	border: 0; padding: 0; border-radius: 24px; color: var(--olc-ink); background: #fff;
	font: inherit; line-height: 1.6; text-align: left;
	width: min(1080px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.olc-dialog::backdrop { background: rgba(32, 40, 35, .72); }
.olc-dialog[open] { animation: olc-pop .22s ease-out; }
@keyframes olc-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Close button stays visible while the popup scrolls. */
.olc-dialog__bar { position: sticky; top: 0; height: 0; z-index: 5; display: flex; justify-content: flex-end; }
.olc-dialog__close {
	flex: none; margin: 14px 14px 0 0; width: 44px; height: 44px; border-radius: 50%; padding: 0;
	border: 2px solid var(--olc-line); background: #fff; color: var(--olc-head);
	font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	transition: background .15s, color .15s, border-color .15s;
}
.olc-dialog__close:hover { background: var(--olc-green); border-color: var(--olc-green); color: #fff; }

.olc-dialog__banner { background: var(--olc-green-soft); }
.olc-dialog__img { display: block; width: 100%; height: 240px; object-fit: cover; }
.olc-dialog__content { padding: 36px 40px 40px; }
.olc-dialog__head { margin: 0 0 28px; }
.olc-dialog h2 { margin: 0 56px 14px 0; padding: 0; color: var(--olc-head); font-weight: 800; line-height: 1.15; font-size: clamp(1.7rem, 3vw, 2.4rem); text-align: left; }
.olc-dialog h2:focus { outline: none; }
.olc-dialog .olc-meta { margin: 0 0 18px; }
.olc-share { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin: 0; }

.olc-dialog__cols { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) {
	.olc-dialog__cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; }
}
@media (min-width: 900px) and (min-height: 820px) {
	.olc-dialog .olc-apply { position: sticky; top: 20px; }
}

/* Job description text */
.olc-body { font-size: 1.02rem; text-align: left; }
.olc-body > :first-child { margin-top: 0; }
.olc-body h2, .olc-body h3, .olc-body h4 { margin: 1.6em 0 .4em; font-size: 1.15rem; line-height: 1.3; color: var(--olc-green-dark); text-align: left; }
.olc-body p { margin: 0 0 1em; text-align: left; }
.olc-body ul, .olc-body ol { padding-left: 0; list-style: none; margin: 0 0 1em; }
.olc-body li { position: relative; padding-left: 26px; margin-bottom: .5em; text-align: left; }
.olc-body li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--olc-green); }

/* ---------- Application form ---------- */
.olc-apply { background: var(--olc-bg); border: 1px solid var(--olc-line); border-radius: 20px; padding: 28px; text-align: left; }
.olc-apply h2, .olc-apply h3 { margin: 0 0 4px; padding: 0; color: var(--olc-head); font-weight: 800; font-size: 1.4rem; line-height: 1.2; text-align: left; }
.olc-apply__note { margin: 0 0 22px; font-size: .9rem; color: var(--olc-muted); text-align: left; }

.olc-field { margin: 0 0 18px; text-align: left; }
.olc-field label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .95rem; color: var(--olc-head); text-align: left; }
.olc-opt { font-weight: 400; color: var(--olc-muted); }
.olc-field input[type="text"], .olc-field input[type="email"], .olc-field input[type="tel"], .olc-field input[type="file"], .olc-field textarea {
	display: block; width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
	border: 1.5px solid var(--olc-field); border-radius: 12px; background: #fff; box-shadow: none;
	font: inherit; font-size: 1rem; line-height: 1.4; color: var(--olc-ink); text-align: left;
}
.olc-field textarea { min-height: 140px; height: auto; resize: vertical; }
.olc-field input:focus, .olc-field textarea:focus { border-color: var(--olc-green); }
.olc-field input:user-invalid, .olc-field textarea:user-invalid { border-color: #b42318; }

.olc-field input[type="file"] { padding: 8px; border-style: dashed; cursor: pointer; }
.olc-field input[type="file"]::file-selector-button {
	margin-right: 12px; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--olc-green-soft); color: var(--olc-green-dark); font: inherit; font-weight: 700;
}
.olc-field input[type="file"]:hover::file-selector-button { background: #d3ead9; }
.olc-help { margin: 6px 0 0; font-size: .85rem; color: var(--olc-muted); text-align: left; }

.olc-field--check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; }
.olc-field--check input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--olc-green); }
.olc-field--check label { margin: 0; font-weight: 400; font-size: .92rem; line-height: 1.5; }
.olc-field--check a { color: var(--olc-green); font-weight: 600; }
.olc-form .olc-btn { width: 100%; padding: 15px 24px; font-size: 1.05rem; }

.olc-hp { position: absolute !important; left: -9999px; height: 1px; width: 1px; overflow: hidden; }

.olc-notice { padding: 14px 18px; border-radius: 14px; margin: 0 0 18px; border: 1px solid var(--olc-line); background: #fff; text-align: left; }
.olc-notice--ok { border-color: var(--olc-green); background: var(--olc-green-soft); color: #0a4d29; }
.olc-notice--error { border-color: #b42318; background: #fdecea; color: #7a1710; }

/* ---------- Embedded in a normal page via [ol_vacancies] ---------- */
.olc-embed { max-width: none; padding: 0; margin: 0; }

/* ---------- Stand-alone vacancy page (only used while no published Careers page exists) ---------- */
.olc-crumbs { padding: 20px 0 0; font-size: .9rem; color: var(--olc-muted); }
.olc-crumbs a { color: var(--olc-green); }
.olc-hero { padding: 36px 0 28px; }
.olc-hero h1 { margin: 0 0 14px; color: var(--olc-head); font-weight: 800; line-height: 1.15; font-size: clamp(2rem, 4vw, 3rem); }
.olc-lead { font-size: 1.15rem; max-width: 60ch; }
.olc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) {
	.olc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
	.olc:not(.olc-embed) .olc-apply { position: sticky; top: 24px; }
}

.olc-shell-body { margin: 0; background: #f7faff; color: #3f4641; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; }
.olc-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1180px; margin: 0 auto; padding: 20px; }
.olc-shell__logo img { display: block; height: 44px; width: auto; }
.olc-shell nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.olc-shell nav a { color: #2f3230; font-weight: 600; text-decoration: none; }
.olc-shell nav a:hover { color: #0a6a37; }
.olc-shell nav a.olc-btn { color: #fff; }
.olc-shell-footer { max-width: 1180px; margin: 24px auto 0; padding: 28px 20px 48px; border-top: 1px solid #dbe4ec; font-size: .9rem; color: #5d665f; }
.olc-shell-footer a { color: #0f8647; }
.olc-shell-footer p { margin: 0 0 6px; }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.olc-dialog { border-radius: 18px; }
	.olc-dialog__img { height: 170px; }
	.olc-dialog__content { padding: 26px 18px 28px; }
	.olc-apply { padding: 22px 16px; }
	.olc-card__body { padding: 20px 18px 22px; }
	.olc-card__foot .olc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.olc *, .olc-dialog, .olc-dialog * { transition: none !important; animation: none !important; }
	.olc-card:hover .olc-card__img, .olc-card:focus-within .olc-card__img { transform: none; }
}
