/* The JiCHO recruitment advert (public/job-advert.js): white card, deep JiCHO maroon, gold and orange.
   The five lines loop in ~12 s with CSS only; "reduce motion" shows the programme line still. */
.ja-slot{margin:10px 12px 4px}
.ja{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 16px 18px;background:#fff;border:1.5px solid #ead1d8;border-radius:20px;box-shadow:0 8px 22px rgba(125,15,43,.12);text-align:center;color:#2a0b17;overflow:hidden}
.ja::before{content:"";position:absolute;inset:auto 0 0;height:5px;background:linear-gradient(90deg,#7d0f2b,#f08a12 55%,#ffcf33)}
.ja-x{position:absolute;top:8px;right:8px;z-index:1;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.ja-x:focus-visible,.ja-cta:focus-visible{outline:3px solid #ffcf33;outline-offset:2px}
/* The JiCHO logo is drawn for a dark ground (white "Ji" and tagline): it sits on a maroon band. */
.ja-logo{align-self:stretch;margin:-16px -16px 4px;padding:18px 16px 14px;background:radial-gradient(ellipse at 50% 0%,#9b1638,#5e0b21 75%);display:flex;justify-content:center}
.ja-logo>*{width:min(220px,62vw)}
.ja-logo .jl,.ja-logo img{width:100%;height:auto;display:block}
.ja-logo-txt{font-size:30px;color:#f08a12}
.ja-lines{position:relative;width:100%;height:64px}
.ja-l{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 6px;font-weight:900;font-size:clamp(18px,5.4vw,24px);line-height:1.12;letter-spacing:.01em;color:#7d0f2b;opacity:0;animation:jaLine 12s infinite both}
.ja-l1{letter-spacing:.22em;font-size:clamp(14px,4.2vw,17px);color:#b4561a}
.ja-l3 em{font-style:normal;background:#7d0f2b;color:#ffcf33;padding:6px 18px;border-radius:999px}
.ja-l5{color:#f08a12}
.ja-l2{animation-delay:2.4s}.ja-l3{animation-delay:4.8s}.ja-l4{animation-delay:7.2s}.ja-l5{animation-delay:9.6s}
@keyframes jaLine{0%{opacity:0;transform:translateY(10px)}3%{opacity:1;transform:none}17%{opacity:1;transform:none}20%{opacity:0;transform:translateY(-10px)}100%{opacity:0}}
.ja-due{margin:0;font-size:13.5px;color:#6b5a60}.ja-due b{color:#7d0f2b}
.ja-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;min-width:min(260px,100%);padding:0 28px;border:0;border-radius:999px;background:#7d0f2b;color:#fff;font:800 17px/1 inherit;cursor:pointer;box-shadow:0 8px 18px rgba(125,15,43,.28)}
.ja-cta span{color:#ffcf33;font-size:22px}
@media (prefers-reduced-motion:reduce){.ja-l{animation:none}.ja-l2{opacity:1}}

/* Compact landscape (24 Nov 2026): about half the old height. The maroon logo panel on the left,
   the moving line, the closing date and Apply Now on the right. Same logo, colours and words. */
.ja{flex-direction:row;align-items:stretch;gap:0;padding:0;text-align:left}
.ja-logo{flex:0 0 38%;max-width:180px;align-self:stretch;margin:0;padding:10px;align-items:center}
.ja-logo>*{width:100%}
.ja-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px 12px 14px}
.ja-lines{height:40px}
.ja-l{justify-content:flex-start;padding:0;font-size:clamp(14px,4vw,18px)}
.ja-l1{font-size:clamp(11px,3.2vw,13px);letter-spacing:.16em}
.ja-l3 em{padding:4px 12px}
.ja-due{font-size:12px;line-height:1.3}
.ja-cta{align-self:flex-start;min-height:38px;min-width:0;padding:0 18px;font-size:15px}
.ja-cta span{font-size:18px}
.ja-x{top:4px;right:4px;width:28px;height:28px;font-size:18px;background:rgba(125,15,43,.08);color:#7d0f2b}

/* 25 Nov 2026: appears gently after a few seconds; a compact card (four key messages) where the space
   is narrow; on the Profiles page it is the first full-width row of the card list. */
.ja-slot.ja-in{animation:jaIn .45s ease both}
@keyframes jaIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.ja-slot.ja-in{animation:none}}
.ja-slot-grid{grid-column:1/-1;align-self:stretch;display:grid;align-content:center;padding:8px;scroll-snap-align:start}
.ja-slot-grid[hidden]{display:none}
.ja.ja-compact{display:grid;gap:3px;padding:10px 40px 12px 14px;text-align:left}
.ja-compact p{margin:0;line-height:1.3;color:#5a1a2c}
.ja-compact .ja-c-1{font-size:14px;color:#7d0f2b}
.ja-compact .ja-c-2{font-size:13px;font-weight:700;color:#b8641b}
.ja-compact .ja-c-3{font-size:12.5px}
.ja-compact .ja-cta{justify-self:start;margin-top:4px;min-height:36px;padding:0 16px;font-size:14px}
