@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* Override AMLA's narrow blog-page template on the live Job & Career page. */
body.page-id-29055 #primary.content-area--blog,
body:has(.amla-job-board) #primary.content-area--blog {
    display: block;
}

body.page-id-29055 #main.main--blog,
body:has(.amla-job-board) #main.main--blog,
body.page-id-29055 #main > article,
body:has(.amla-job-board) #main > article,
body.page-id-29055 #main > article > .entry-content,
body:has(.amla-job-board) #main > article > .entry-content {
    width: 100%;
    max-width: none;
}

body.page-id-29055 #main > article > .entry-header,
body:has(.amla-job-board) #main > article > .entry-header {
    display: none;
}

.amla-job-board {
    --ink: #111010;
    --crimson: #b01e24;
    --crimson-dark: #8e161b;
    --paper: #faf8f6;
    --white: #fff;
    --muted: #625c59;
    --line: #e4deda;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
}

.amla-job-board * { box-sizing: border-box; }
.amla-job-board h1, .amla-job-board h2, .amla-job-board h3, .amla-job-board p { margin-top: 0; }

.amla-job-hero {
    padding: 90px max(24px, calc((100% - 1200px) / 2));
    color: var(--paper);
    background: var(--ink);
    border-bottom: 5px solid var(--crimson);
}

.amla-job-hero div { max-width: 850px; }
.amla-job-hero span, .amla-job-section-heading > span {
    display: block;
    margin-bottom: 12px;
    color: var(--crimson);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.amla-job-hero h1, .amla-job-section-heading h2, .amla-job-card h3, .amla-job-empty h3 {
    font-family: "Libre Caslon Text", Georgia, serif;
}

.amla-job-hero h1 { margin-bottom: 18px; color: var(--paper); font-size: clamp(42px, 6vw, 70px); line-height: 1.08; }
.amla-job-hero p { max-width: 720px; margin-bottom: 0; color: #cbc4c0; font-size: 17px; }
.amla-job-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.amla-job-listings, .amla-job-submit { padding: 76px 0; }
.amla-job-listings { border-bottom: 1px solid var(--line); }
.amla-job-section-heading { max-width: 780px; margin-bottom: 36px; }
.amla-job-section-heading h2 { margin-bottom: 12px; font-size: clamp(31px, 4vw, 46px); line-height: 1.2; }
.amla-job-section-heading p { margin-bottom: 0; color: var(--muted); }
.amla-job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.amla-job-card {
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 31px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--crimson);
    background: var(--white);
}

.amla-job-card--closed { opacity: .7; }
.amla-job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.amla-job-org { color: var(--crimson); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.amla-job-status { padding: 4px 9px; color: #176336; background: #e9f6ee; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.amla-job-card--closed .amla-job-status { color: #6c5555; background: #f1ecec; }
.amla-job-card h3 { margin: 16px 0 23px; font-size: 27px; line-height: 1.25; }
.amla-job-card dl { margin: auto 0 22px; }
.amla-job-card dl div { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.amla-job-card dt { min-width: 82px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.amla-job-card dd { margin: 0; font-size: 14px; }
.amla-job-link { color: var(--crimson) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.amla-job-link:hover { color: var(--crimson-dark) !important; }
.amla-job-empty { grid-column: 1 / -1; padding: 50px; border: 1px dashed #cfc5c0; text-align: center; background: var(--white); }
.amla-job-empty h3 { margin-bottom: 8px; font-size: 27px; }
.amla-job-empty p { margin-bottom: 0; color: var(--muted); }

.amla-job-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 24px;
    max-width: 900px;
    padding: 38px;
    border: 1px solid var(--line);
    background: var(--white);
}

.amla-job-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.amla-job-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cfc7c3;
    border-radius: 0;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}
.amla-job-field input:focus { border-color: var(--crimson); outline: 2px solid rgba(176, 30, 36, .12); }
.amla-job-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.amla-job-consent { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.amla-job-consent input { margin-right: 7px; }
.amla-job-button { justify-self: start; padding: 14px 24px; border: 0; color: #fff; background: var(--crimson); font: 700 14px Inter, Arial, sans-serif; cursor: pointer; }
.amla-job-button:hover { background: var(--crimson-dark); }
.amla-job-honeypot { position: absolute !important; left: -9999px !important; }
.amla-job-notice { max-width: 900px; margin: 0 0 20px; padding: 14px 17px; border-left: 4px solid; background: #fff; }
.amla-job-notice--success { border-color: #25864b; }
.amla-job-notice--error { border-color: var(--crimson); }

@media (max-width: 760px) {
    .amla-job-hero { padding-top: 65px; padding-bottom: 60px; }
    .amla-job-wrap { width: calc(100% - 32px); }
    .amla-job-listings, .amla-job-submit { padding: 58px 0; }
    .amla-job-grid, .amla-job-form { grid-template-columns: 1fr; }
    .amla-job-form { padding: 27px 22px; }
    .amla-job-card { padding: 26px 23px; }
}
