/* ==========================================================================
   careers.css - THE CAREERS PAGE'S ONE SECTION, Open positions.

   Approved by the client 2026-10-20 from lab/careers-01.html. Two states,
   chosen by tools/careers-content.json and rendered by tools/build-careers.mjs:
     - one or more jobs: a box per job, built only from what the editor's
       "Post a job" screen collects (edit/jobs.html, client 2026-10-21): a
       picture (the shield when there is none), the title, the day it was
       posted, what the job is, and a Call to apply button;
     - none: "We are not hiring right now", with the HR address.
   Light ground, so no dark-section dither fix is needed. No pills, no rule
   lines (body-system.css rules); the job box is a raised paper panel.
   Faces: DM Sans and Libre Caslon Display, loaded by the master hero's <head>.
   ========================================================================== */
.cr{
  --cr-ink:var(--ink,#34231A);--cr-prose:#5C4C46;--cr-muted:#77655A;
  --cr-rust:var(--terracotta,#A83226);--cr-paper:#FFFDF9;
  --cr-serif:"Libre Caslon Display","Cormorant Garamond",Georgia,serif;
  --cr-sans:"DM Sans",Inter,ui-sans-serif,system-ui,sans-serif;
  background:var(--paper,#F8F4EE);
  padding:clamp(64px,8vw,112px) clamp(16px,5vw,72px);
  font-family:var(--cr-sans);color:var(--cr-prose)}
.cr__in{max-width:1180px;margin:0 auto}
.cr__head{margin:0 0 clamp(28px,3.5vw,44px)}
.cr__eyebrow{margin:0 0 14px;color:var(--cr-rust);
  font:700 12px/1.4 var(--cr-sans);letter-spacing:.2em;text-transform:uppercase}
.cr h2{margin:0;font-family:var(--cr-serif);font-weight:400;
  font-size:clamp(38px,4.4vw,62px);line-height:1.04;letter-spacing:-.02em;color:var(--cr-ink)}

/* ---- a job ---- */
.cr__list{display:grid;gap:clamp(20px,2.4vw,32px)}
.job{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start;
  background:var(--cr-paper);border-radius:8px;overflow:hidden;
  box-shadow:0 24px 60px rgba(64,30,14,.12),0 2px 6px rgba(64,30,14,.06)}
/* The picture is always 16:9, the frame the office chose in the editor (it is saved at exactly
   that shape), so what they framed is what families see. */
.job__pic{position:relative;aspect-ratio:16/9;margin:clamp(16px,2vw,24px) 0 clamp(16px,2vw,24px) clamp(16px,2vw,24px);
  border-radius:6px;overflow:hidden;background:#EFE6D8}
.job__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* no picture posted: the shield, centred on the cream, never stretched */
.job__pic--logo img{inset:0;margin:auto;width:auto;height:58%;object-fit:contain}
.job__body{padding:clamp(26px,3.4vw,48px)}
.job__meta{margin:0 0 12px;
  font:700 12px/1.5 var(--cr-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--cr-rust)}
.job__title{margin:0 0 16px;font-family:var(--cr-serif);font-weight:400;
  font-size:clamp(27px,2.5vw,36px);line-height:1.12;color:var(--cr-ink)}
.job__about{margin:0 0 26px;max-width:60ch}
.job__about p{margin:0 0 14px;font-size:17px;line-height:1.72}
.job__about p:last-child{margin-bottom:0}
/* a list pasted from Word or an email (the service stores its lines as "• ", the renderer makes them a list,
   QA 2026-11-07): the same size as the paragraphs, small rust bullets, and the room for them on the right when the
   list is Arabic */
.job__list{margin:0 0 14px;padding:0 0 0 1.3em}
.job__list[dir="rtl"]{padding:0 1.3em 0 0}
.job__list:last-child{margin-bottom:0}
.job__list li{margin:0 0 6px;font-size:17px;line-height:1.6}
.job__list li::marker{color:var(--cr-rust)}
/* an address, email or phone number typed in the description can be tapped */
.job__about a{color:var(--cr-rust);font-weight:600;text-decoration:underline;text-underline-offset:.15em}
/* a long word (a web or email address, a long name) wraps inside the box instead of being cut off */
.job__title,.job__about p,.job__about li{overflow-wrap:anywhere}
.job__apply{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.job__call{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:.85rem 1.6rem}
.job__call svg{flex:none}
/* A phone rings the school from the button. A computer cannot, so there the number is written
   out beside it. */
.job__num{display:none;font-size:16px;color:var(--cr-muted)}
.job__num b{color:var(--cr-ink);font-weight:700;white-space:nowrap}
@media (hover:hover) and (pointer:fine){ .job__num{display:inline} }

/* ---- none posted ---- */
.cr-none{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:center;
  background:var(--cr-paper);border-radius:8px;padding:clamp(28px,4vw,56px);
  box-shadow:0 24px 60px rgba(64,30,14,.10),0 2px 6px rgba(64,30,14,.05)}
.cr-none__mark{width:clamp(72px,8vw,108px);height:auto}
.cr-none h3{margin:0 0 12px;font-family:var(--cr-serif);font-weight:400;
  font-size:clamp(27px,2.6vw,38px);line-height:1.12;color:var(--cr-ink)}
.cr-none p{margin:0;font-size:17px;line-height:1.72;max-width:62ch}
.cr-none a{color:var(--cr-rust);font-weight:700;overflow-wrap:anywhere}

@media (max-width:760px){
  .job{grid-template-columns:1fr}
  .job__pic{margin:16px 16px 0}
  .cr-none{grid-template-columns:1fr;text-align:center;justify-items:center}
}
