/* Opportunities and job application pages; Crew's existing type and colour system. */
.opp-intro{padding-bottom:54px}.opp-intro h1{max-width:790px}.opp-intro .page-lead{max-width:530px}.opp-section-intro{max-width:760px;margin-bottom:35px}.opp-section-intro h2{font-size:clamp(33px,4vw,47px)}.opp-section-intro>p:last-child{font-size:18px;line-height:1.8;margin-top:16px}.opp-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line)}.opp-card{padding:35px;display:flex;flex-direction:column;min-width:0}.opp-card+.opp-card{border-left:1px solid var(--line)}.opp-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.opp-card .eyebrow{margin:0;font-size:11px}.opp-state{font-size:12px;letter-spacing:.02em;color:var(--blue);font-weight:700}.opp-card h2{font-size:clamp(26px,2.8vw,38px);margin:31px 0 15px}.opp-card h2 a:hover{text-decoration:underline;text-underline-offset:5px}.opp-card>p{font-size:17px;line-height:1.75;max-width:480px}.opp-card .text-link{margin-top:auto;padding-top:24px;border-top:1px solid var(--line);font-size:16px;justify-content:space-between}.opp-facts{list-style:none;padding:0;margin:25px 0 30px;display:grid;gap:12px}.opp-facts li{font-size:15px;color:var(--muted);line-height:1.6;display:flex;gap:12px}.opp-facts li:before{content:'';width:6px;height:6px;margin-top:9px;flex:0 0 6px;border-radius:50%;background:var(--blue)}.opp-invite{background:var(--paper);padding:78px 0}.opp-invite-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:65px}.opp-invite h2{font-size:clamp(33px,3.9vw,47px)}.opp-invite p:not(.eyebrow){font-size:18px;line-height:1.8;margin:23px 0 28px}.opp-invite img{width:100%;height:375px;object-fit:cover}.opp-hero-facts{margin:36px 0 26px;display:flex;flex-wrap:wrap;gap:12px}.opp-hero-facts span{border:1px solid var(--line);background:white;padding:10px 14px;color:var(--navy);font-size:14px;line-height:1.5}.opp-job{padding:75px 0 90px}.opp-job-grid{display:grid;grid-template-columns:265px minmax(0,1fr);gap:80px}.opp-job aside{align-self:start;position:sticky;top:126px;border-top:2px solid var(--navy);padding-top:22px}.opp-job aside .eyebrow{margin-bottom:24px}.opp-job aside p:not(.eyebrow){font-size:15px;line-height:1.6;margin-bottom:15px}.opp-job aside strong{color:var(--ink);display:block;font-weight:600}.opp-job aside .text-link{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding-top:18px;margin-top:26px}.opp-job-content{max-width:800px}.opp-detail-section+.opp-detail-section{border-top:1px solid var(--line);margin-top:35px;padding-top:35px}.opp-detail-section h2{font-size:clamp(27px,3vw,35px);margin-bottom:17px}.opp-detail-section p,.opp-detail-section li{font-size:18px;line-height:1.8}.opp-detail-section p+p{margin-top:18px}.opp-detail-section ul{padding-left:23px;margin:0}.opp-detail-section li{padding-left:5px;margin:11px 0;color:var(--muted)}.opp-detail-section li::marker{color:var(--blue)}.opp-apply{background:var(--paper);scroll-margin-top:96px}.opp-apply-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:72px;align-items:start}.opp-apply-layout>div:first-child{position:sticky;top:130px}.opp-apply h2{font-size:clamp(32px,3.4vw,44px)}.opp-apply-layout>div:first-child>p:not(.eyebrow){font-size:18px;line-height:1.8;margin:22px 0}.opp-apply .opp-deadline{font-weight:600;color:var(--navy)}.opp-apply .text-link{margin-top:16px}.opp-form-shell{min-width:0}.opp-form-shell .form-heading{margin:0 0 25px}.opp-form-shell .form-heading h3{font-size:25px}.opp-form-shell .field textarea{resize:vertical}.opp-closed{padding:16px 0 6px}.opp-closed h3{font-size:27px}.opp-closed p{font-size:17px;margin:15px 0 25px}.opp-closed[hidden]{display:none}.opp-card.is-closed .opp-state{color:var(--muted)}
@media(max-width:960px){.opp-apply-layout{gap:35px}.opp-job-grid{gap:45px;grid-template-columns:210px minmax(0,1fr)}.opp-invite-grid{gap:32px}}
@media(max-width:700px){.opp-intro{padding-bottom:38px}.opp-grid{grid-template-columns:1fr}.opp-card{padding:27px 24px}.opp-card+.opp-card{border-left:0;border-top:1px solid var(--line)}.opp-card h2{font-size:30px;margin:24px 0 12px}.opp-card>p,.opp-section-intro>p:last-child{font-size:17px}.opp-facts li{font-size:15px}.opp-invite{padding:52px 0}.opp-invite-grid{grid-template-columns:1fr;gap:30px}.opp-invite img{height:275px}.opp-job{padding:44px 0 55px}.opp-job-grid{display:block}.opp-job aside{position:static;padding:16px 0 25px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:9px 14px}.opp-job aside .eyebrow,.opp-job aside .text-link{grid-column:1/-1;margin:0}.opp-job aside p:not(.eyebrow){font-size:14px;margin:0}.opp-job aside .text-link{margin-top:9px}.opp-detail-section h2{font-size:29px}.opp-detail-section p,.opp-detail-section li{font-size:17px}.opp-apply{padding:56px 0}.opp-apply-layout{display:block}.opp-apply-layout>div:first-child{position:static;margin-bottom:34px}.opp-apply-layout>div:first-child>p:not(.eyebrow){font-size:17px}.opp-hero-facts{gap:8px;margin:28px 0 22px}.opp-hero-facts span{font-size:13px;padding:9px 11px}.opp-hero-cta{width:100%;justify-content:space-between}.opp-form-shell{padding:24px 20px}}
@media(max-width:380px){.opp-card{padding:24px 20px}.opp-card h2{font-size:27px}.opp-form-shell{padding:21px 16px}.opp-job aside{grid-template-columns:1fr}}

/* Shared intake status: server rendering and the live deadline timer use the same states. */
:root{--opp-open:#166534;--opp-open-bg:#ecfdf3;--opp-open-line:#abefc6;--opp-closed:#b42318;--opp-closed-bg:#fef3f2;--opp-closed-line:#fecdca}
.opp-state{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1.4;padding:5px 11px;border:1px solid var(--opp-open-line);border-radius:999px;color:var(--opp-open);background:var(--opp-open-bg)}
.opp-card.is-closed .opp-state{color:var(--opp-closed);border-color:var(--opp-closed-line);background:var(--opp-closed-bg)}
.opp-card.is-closed .opp-facts li:last-child{color:var(--opp-closed);font-weight:600}
.opp-card.is-closed .opp-facts li:last-child:before{background:var(--opp-closed)}
.opp-closure-notice{margin-top:28px;padding:22px 24px;border:1px solid var(--opp-closed-line);border-left:4px solid var(--opp-closed);border-radius:6px;background:var(--opp-closed-bg)}
.opp-closure-notice h2{font-size:24px;line-height:1.3;color:var(--opp-closed);margin:0 0 8px}
.opp-closure-notice p{max-width:850px;font-size:16px;line-height:1.65;color:var(--opp-closed);margin:0}
.opp-closure-notice .opp-closure-date{font-size:14px;margin-top:10px}
.opp-closure-notice[hidden]{display:none}
[data-opportunity-state="closed"] #apply-title,[data-opportunity-state="closed"] [data-application-eyebrow],[data-opportunity-state="closed"] .opp-deadline{color:var(--opp-closed)}
.opp-closed{padding:22px;border:1px solid var(--opp-closed-line);border-radius:6px;background:var(--opp-closed-bg)}
.opp-closed h3{color:var(--opp-closed)}
.opp-closed p{color:var(--opp-closed);line-height:1.7}
.opp-closed .text-link{display:flex;width:fit-content;margin-top:18px}
@media(max-width:700px){.opp-closure-notice{padding:18px;margin-top:22px}.opp-closure-notice h2{font-size:22px}.opp-closure-notice p{font-size:15px}.opp-closed{padding:18px}.opp-closed .button{max-width:100%;white-space:normal}.opp-card-top .eyebrow{min-width:0}}

/* Recruitment lifecycle 2.2.6. The role title remains readable at mobile widths. */
.opp-grid[hidden],.opp-empty[hidden],.opp-compact-section[hidden]{display:none}
.opp-grid{overflow:hidden}.opp-card:nth-child(odd){border-left:0}.opp-card:nth-child(n+3){border-top:1px solid var(--line)}
.opp-compact-section{margin-top:64px}.opp-compact-section .opp-section-intro{max-width:850px;margin-bottom:24px}
.opp-compact-section .opp-section-intro h2{font-size:clamp(28px,3vw,36px)}
.opp-phase-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:10px}.opp-phase-selection{background:#b7791f}.opp-phase-closed{background:#667085}
.opp-compact-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}.opp-compact-list li{margin:0;border-bottom:1px solid var(--line)}
.opp-compact-list a{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:21px 0;min-height:64px;color:var(--navy);font-size:18px;font-weight:600;line-height:1.6;text-decoration:none}
.opp-compact-list a span:first-child{min-width:0;overflow-wrap:anywhere}.opp-compact-list a span:last-child{flex-shrink:0}.opp-compact-list a:hover span:first-child{text-decoration:underline;text-underline-offset:5px}.opp-compact-list a:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.opp-empty{font-size:18px;line-height:1.8;color:var(--muted)}
[data-recruitment-phase="selection"]{--opp-closed:#854d0e;--opp-closed-bg:#fffbeb;--opp-closed-line:#fde68a}
[data-recruitment-phase="closed"]{--opp-closed:#475467;--opp-closed-bg:#f2f4f7;--opp-closed-line:#d0d5dd}
@media(max-width:700px){.opp-compact-section{margin-top:48px}.opp-compact-list a{gap:16px;padding:18px 0}.opp-card:nth-child(n){border-left:0}.opp-card+.opp-card{border-top:1px solid var(--line)}}

.opp-card:last-child:nth-child(odd){grid-column:1 / -1}

/* Preview: opportunities grouped by source. */
.opp-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.opp-filters button{min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:14px;font-weight:600}
.opp-filters button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.opp-legend{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--muted)}
.opp-legend li{display:flex;align-items:center}
.opp-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:10px;flex-shrink:0}
.opp-dot.is-open{background:#1f7a4d}.opp-dot.is-soon{border:2px solid var(--blue)}.opp-dot.is-selection{background:#b7791f}
.opp-source{margin-top:72px}.opp-source[hidden]{display:none}
.opp-source-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;padding-bottom:20px;margin-bottom:28px;border-bottom:2px solid var(--navy)}
.opp-source-head>div{max-width:760px}.opp-source-head .eyebrow{margin-bottom:12px}
.opp-source-head h2{font-size:clamp(30px,3.4vw,40px)}
.opp-source-head p:not(.eyebrow){margin-top:10px;font-size:16px;line-height:1.7}
.opp-count{font-size:13px;color:var(--muted)}
.opp-subsection{margin-top:40px}.opp-subsection .eyebrow{margin-bottom:12px}
.opp-row-meta{display:block;font-size:14px;font-weight:400;color:var(--muted)}
.opp-row-cta{font-size:14px;color:var(--blue);white-space:nowrap}
.opp-card.is-selection .opp-state{color:#854d0e;background:#fffbeb;border-color:#fde68a}
.opp-past{margin-top:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.opp-past summary{cursor:pointer;min-height:52px;display:flex;align-items:center;font-size:14px;font-weight:700;color:var(--blue)}
.opp-past p{margin:0 0 16px;font-size:14px}
.opp-source .opp-empty a{margin-left:8px}
@media(max-width:700px){.opp-source{margin-top:56px}.opp-row-cta{display:none}}
.opp-intro .eyebrow .opp-state{margin-left:12px}.opp-state.is-soon{color:var(--blue);background:#fff;border:1px solid #a9c3df}
.opp-source .opp-card h3{font-size:clamp(24px,2.4vw,32px);margin:28px 0 14px;letter-spacing:-.03em}.opp-source .opp-card h3 a:hover{text-decoration:underline;text-underline-offset:5px}
.opp-segments{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;margin-bottom:18px;background:var(--ice,#edf2f7);border-radius:12px;max-width:100%}
.opp-segments[hidden]{display:none}
.opp-segments [role=tab]{min-height:48px;padding:10px 20px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:15px;font-weight:600;display:flex;flex-direction:column;align-items:flex-start;line-height:1.25;text-align:left}
.opp-segments [role=tab][aria-selected=true]{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(16,44,84,.16)}
.opp-seg-count{font-size:12px;font-weight:500;color:var(--muted)}
.opp-segments [role=tab]:focus-visible{outline:3px solid #5c91c3;outline-offset:2px}
.opp-segments+.opp-legend+.opp-source{margin-top:40px}
@media(max-width:700px){.opp-segments{display:flex}.opp-segments [role=tab]{flex:1 1 30%;padding:10px 12px}}
/* Status colours: one system for cards, rows and opportunity pages. */
.opp-state.is-open{color:#166534;background:#ecfdf3;border:1px solid #abefc6}
.opp-state.is-soon{color:#1e4f86;background:#fff;border:1px solid #a9c3df}
.opp-state.is-selection{color:#854d0e;background:#fffbeb;border:1px solid #fde68a}
.opp-state.is-closed{color:#b42318;background:#fef3f2;border:1px solid #fecdca}
.opp-dot.is-closed{background:#d92d20}
.opp-intro .eyebrow .opp-state{display:inline-block;margin-left:12px;padding:3px 10px;border-radius:999px;font-size:11px;letter-spacing:.08em}
.opp-source-head p.opp-source-link{margin-top:14px}.opp-source-head p+p{margin-top:10px}
/* Segments: equal width (the widest label sets it), centred text. */
.opp-segments{display:inline-grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.opp-segments[hidden]{display:none}
.opp-segments [role=tab]{align-items:center;justify-content:center;text-align:center;padding:10px 24px}
@media(max-width:700px){.opp-segments{display:grid;width:100%}.opp-segments [role=tab]{padding:10px 8px}}
/* Compact cards for Coming soon and Selection in progress. */
.opp-mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.opp-mini{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px;border:1px solid var(--line);background:#fff}
.opp-mini.is-soon{background:var(--paper,#f6f8fa)}
.opp-mini .opp-state{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.opp-mini h3{margin:2px 0 0;font-size:20px;line-height:1.25;letter-spacing:-.02em}
.opp-mini h3 a{color:var(--navy);text-decoration:none}.opp-mini h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.opp-mini-meta{margin:0;font-size:14px;font-weight:500;color:var(--blue)}
.opp-mini-loc{margin:0;font-size:13px;color:var(--muted)}
.opp-mini .text-link{margin-top:auto;padding-top:12px;align-self:stretch;border-top:1px solid var(--line);min-height:44px;display:flex;align-items:center;justify-content:space-between}
.opp-grid[hidden]{display:none}
