/* Career Portal. Colours, corners and sizes come from /brand/theme.css (one set per brand); nothing here names a brand. */
:root {
  --shadow: 0 2px 12px rgba(22, 40, 90, .06);
  --shadow-lift: 0 10px 28px rgba(22, 40, 90, .12);
  --card-border: var(--line);
  --card-shadow: none;
  --card-bg: var(--surface);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: var(--font-size); line-height: 1.5; color: var(--ink); background: var(--page); }
main { flex: 1; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 860px; }
.section { padding: 26px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Small pictures: one shape per name, drawn in the current text colour */
.ico { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.i-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }
.i-chevron { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-brief { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.i-pay { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.i-pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 0 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.i-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.i-doc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13H6z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.i-bookmark { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v17l-6-4-6 4z'/%3E%3C/svg%3E"); }
.i-globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E"); }
.i-cap { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11.5V16c0 1.5 3 3 6 3s6-1.5 6-3v-4.5M22 9v6'/%3E%3C/svg%3E"); }
.i-people { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16 14.2c2.8.3 5 2.7 5 5.8'/%3E%3C/svg%3E"); }
.i-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M21 20H3'/%3E%3C/svg%3E"); }
.i-code { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4M10 8.5l-2 2 2 2M14 8.5l2 2-2 2'/%3E%3C/svg%3E"); }
.i-megaphone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4h3l8 4V6l-8 4z'/%3E%3Cpath d='M18 9.5a3.5 3.5 0 0 1 0 5M8 14v4a1 1 0 0 0 1 1h1'/%3E%3C/svg%3E"); }
.i-trend { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
.i-headset { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M20 19c0 1.7-2 2.5-5 2.5'/%3E%3C/svg%3E"); }
.i-gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E"); }
.i-truck { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2zM13 9h4l4 4v3h-8z'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.i-pen { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16 5l3 3L8 19z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E"); }
.i-scale { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 20h12M5 7h14M5 7l-2.5 6a3 3 0 0 0 5 0zM19 7l-2.5 6a3 3 0 0 0 5 0z'/%3E%3C/svg%3E"); }
.i-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E"); }
.i-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.600 8 8'/%3E%3C/svg%3E"); }
.i-send { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3L10 14M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E"); }
.i-track { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.500 12.200l2.500 2.500 4.500-5'/%3E%3C/svg%3E"); }
.i-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7'/%3E%3C/svg%3E"); }
.i-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.i-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.i-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
:root { --icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13H6z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7'/%3E%3C/svg%3E"); }
.meta-exp { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.meta-pay { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.meta-loc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 0 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.meta-mode { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.meta-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.meta-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.meta-notice { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.tile { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--radius-control); background: var(--soft); color: var(--primary); }
.tile .ico { width: 18px; height: 18px; }
.tile-large { width: 46px; height: 46px; }
.tile-large .ico { width: 24px; height: 24px; }
.tile-xl { width: 60px; height: 60px; }
.tile-xl .ico { width: 30px; height: 30px; }
.tone-1 { background: #eaf1ff; color: #2f5fe3; }
.tone-2 { background: #fff1e4; color: #d4620c; }
.tone-3 { background: #e7f8ef; color: #12804a; }
.tone-4 { background: #f3ecff; color: #7740cf; }
.tone-5 { background: #ffeef2; color: #d0365a; }
.tone-6 { background: #e5f6f8; color: #0c7c89; }

/* Top bar */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(22, 40, 90, .04); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand-name { overflow-wrap: anywhere; }
.brand-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--primary); color: var(--on-primary); font-weight: 700; }
.brand-tag { font-weight: 600; font-size: .76rem; color: var(--primary); background: var(--soft); padding: 2px 9px; border-radius: 999px; }
.site-nav { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { text-decoration: none; color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.nav-search { display: flex; align-items: center; margin-left: auto; width: min(290px, 100%); background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 14px; }
.nav-search:focus-within { border-color: var(--primary); background: var(--surface); }
.nav-search input[type] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 6px 4px 0; outline: 0; border-radius: 0; }
.nav-search button { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); cursor: pointer; }
.nav-search .ico { width: 15px; height: 15px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-search + .nav-actions { margin-left: 0; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; padding: 3px 13px 3px 3px; border: 1px solid var(--line); border-radius: 999px; }
.nav-user:hover, .nav-user[aria-current="page"] { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.nav-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--primary); font-weight: 700; font-size: .85rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-control); padding: 7px 12px; font: inherit; color: var(--ink); }
.inline-form { display: inline; margin: 0; }

/* Footer */
.site-footer { margin-top: 44px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding: 32px 0 24px; }
.footer-top p { margin: 0; max-width: 380px; }
.footer-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px !important; }
.footer-name span { color: var(--primary); font-weight: 600; }
.footer-top nav { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer-top h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin: 0 0 2px; }
.footer-top nav a { color: inherit; }
.footer-top nav a:hover { color: var(--primary); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-row p { margin: 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); border-radius: var(--radius-button); padding: var(--pad-button); font: inherit; font-weight: 600; line-height: 1.35; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.button-outline:hover { background: var(--soft); border-color: var(--primary); color: var(--primary); }
.button-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-accent:hover { background: var(--accent); border-color: var(--accent); filter: brightness(.93); }
.button-small { padding: var(--pad-button-small); font-size: .92rem; }
.button-wide { width: 100%; margin-top: 6px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--primary); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button.danger, .danger { color: #b42318; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.more-link { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; white-space: nowrap; }
.more-link .ico { width: 14px; height: 14px; }

/* Boxes */
.card { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; overflow-wrap: anywhere; }
.card-soft { background: var(--soft); border-color: transparent; box-shadow: none; }
.narrow-card { max-width: 560px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.section-head h2, .section > h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.section-head > a { font-weight: 600; white-space: nowrap; }
.section-head-center { justify-content: center; text-align: center; }
.section-sub { color: var(--muted); margin: 4px 0 0; }
.section-tools { display: flex; align-items: center; gap: 16px; }
.card .section-head { align-items: center; margin-bottom: 10px; }
.card .section-head h2 { font-size: 1.15rem; letter-spacing: -.015em; }
/* List / grid switch for job lists (needs scripts, so hidden without them) */
.view-switch { display: none; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); overflow: hidden; }
.js .view-switch { display: inline-flex; }
.view-switch button { display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.view-switch button + button { border-left: 1px solid var(--line); }
.view-switch button:hover { color: var(--primary); }
.view-switch button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.view-switch svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.center-block { text-align: center; padding: 64px 0; }
.center-block .lead { margin-inline: auto; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }

/* Messages */
.flash-area { padding-top: 16px; }
.flash, .notice { border-radius: var(--radius-control); padding: 11px 14px; margin: 0 0 12px; border: 1px solid var(--line); background: var(--surface); }
.flash-success, .notice-ok { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.flash-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.notice-warn { background: #fffaeb; border-color: #fedf89; color: #7a4a04; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }

/* Home: banner and search */
.hero { padding: 54px 0 40px; background: radial-gradient(760px 300px at 50% -60px, var(--soft), transparent 72%), linear-gradient(180deg, var(--surface) 0%, var(--page) 100%); }
.hero-copy { max-width: 860px; }
.hero-count { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; font-weight: 600; font-size: .86rem; box-shadow: var(--shadow); }
.hero-count .dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }
.hero .lead { margin-bottom: 0; max-width: 720px; }
.search-bar { display: flex; align-items: center; max-width: 860px; margin: 26px 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2.2); padding: 8px 8px 8px 22px; box-shadow: 0 8px 30px rgba(22, 40, 90, .10); text-align: left; }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--soft), 0 8px 30px rgba(22, 40, 90, .10); }
.search-icon { width: 20px; height: 20px; color: var(--muted); }
.search-bar input[type], .search-bar select { min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); outline: 0; }
.search-bar input[type="search"] { flex: 2.2; }
.search-bar select { flex: 1; border-left: 1px solid var(--line); }
.search-bar input[type="text"] { flex: 1.2; border-left: 1px solid var(--line); }
.search-bar .button { flex: none; padding: 11px 30px; font-size: 1rem; }
.quick-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.quick-chips a { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px 7px 7px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s, border-color .15s; }
.quick-chips a:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.quick-chips .i-chevron { width: 14px; height: 14px; color: var(--muted); }
.hero-panel { display: none; }
.hero-panel h2 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0; }
.hero-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.hero-panel dl div { display: grid; }
.hero-panel dd { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.hero-panel dt { order: 2; font-size: .8rem; }
.hero-panel p { margin: 0; color: var(--muted); }
.hero-panel .button { justify-self: start; }

/* Home: other sections */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; }
.steps li { display: grid; gap: 6px; justify-items: center; text-align: center; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 24px 22px; }
.steps .tile { width: 48px; height: 48px; margin-bottom: 6px; }
.steps .tile .ico { width: 24px; height: 24px; }
.steps strong { font-size: 1.05rem; }
.steps li > span:last-child { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.spot { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: center; background: linear-gradient(100deg, var(--soft), var(--surface)); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.25); padding: 28px 32px; }
.spot-text h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.spot-text p { color: var(--muted); margin-bottom: 16px; }
.spot-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.spot-grid a { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--ink); transition: border-color .15s, background .15s; }
.spot-grid a:hover { text-decoration: none; border-color: var(--primary); background: var(--soft); }
.spot-grid strong { overflow-wrap: anywhere; }
.spot-grid a > span { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: .88rem; }
.spot-grid .ico { width: 13px; height: 13px; }
.join-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: var(--soft); border-radius: calc(var(--radius) * 1.25); padding: 26px 32px; }
.join-band h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; }
.chips a { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.chips a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chips span { color: var(--muted); font-size: .9rem; }

/* Job cards */
.job-list { display: grid; gap: 14px; }
.job-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 18px 20px; overflow-wrap: anywhere; transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.job-card:focus-within { border-color: var(--primary); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.job-card-main { min-width: 0; }
.job-card h3 { font-size: 1.08rem; margin: 0 0 2px; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card opens the job */
.job-card h3 a:hover { color: var(--primary); text-decoration: none; }
.job-card-closed { opacity: .75; }
.job-dept { color: var(--muted); font-weight: 500; font-size: .93rem; margin: 0; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 0; }
.meta li { position: relative; padding: 0 14px 0 24px; margin-right: 14px; border-right: 1px solid var(--line); }
.meta li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.meta li::before { content: ""; position: absolute; left: 0; top: .15em; width: 17px; height: 17px; background: var(--muted); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.meta-wide { margin: 10px 0; }
.snippet { position: relative; margin: 0; padding-left: 24px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snippet::before { content: ""; position: absolute; left: 0; top: .15em; width: 17px; height: 17px; background: var(--muted); --icon: var(--icon-doc); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 8px 0 0; }
.tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .88rem; }
.tags-plain { gap: 2px 0; margin: 0; }
.tags-plain li { background: none; border: 0; border-radius: 0; padding: 0; color: var(--muted); font-size: .88rem; }
.tags-plain li:not(:last-child)::after { content: "·"; margin: 0 8px; }
.job-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.posted { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.job-card .badge, .save-form, .save-button { position: relative; z-index: 1; }
.save-form, .job-card-foot > .save-button { margin: 0 0 0 auto; }
.save-button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: 6px; padding: 2px 4px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.save-button:hover { color: var(--primary); text-decoration: none; }
.save-button.is-saved { color: var(--primary); font-weight: 600; }

/* Jobs page */
.jobs-page { display: grid; grid-template-columns: 270px minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
.results { min-width: 0; }
.filters { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 18px; }
.filter-box > summary { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; cursor: pointer; list-style: none; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box:not([open]) > summary { margin-bottom: 0; }
.filter-box:not([open]) > summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.filter-on { background: var(--soft); color: var(--primary); border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 600; }
.filter-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.facet-group { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.facet-group h2 { font-size: .95rem; letter-spacing: 0; margin-bottom: 8px; }
.facet-group ul { list-style: none; display: grid; gap: 1px; padding: 0; margin: 0; }
.facet { display: flex; align-items: center; gap: 10px; margin-inline: -6px; padding: 5px 6px; border-radius: 8px; color: var(--ink); }
.facet:hover { background: var(--page); text-decoration: none; }
.facet-box { position: relative; flex: none; width: 16px; height: 16px; border: 1.5px solid #aeb7c8; border-radius: 4px; background: var(--surface); }
.facet.is-on { font-weight: 600; }
.facet.is-on .facet-box { background: var(--primary); border-color: var(--primary); }
.facet.is-on .facet-box::after { content: ""; position: absolute; inset: 0; background: var(--on-primary); --icon: var(--icon-check); -webkit-mask: var(--icon) center / 12px no-repeat; mask: var(--icon) center / 12px no-repeat; }
.facet-text { min-width: 0; overflow-wrap: anywhere; }
.facet-count { color: var(--muted); font-size: .86rem; font-weight: 400; }
.facet-more > summary { list-style: none; cursor: pointer; color: var(--primary); font-weight: 600; padding: 6px 0 2px 26px; }
.facet-more > summary::-webkit-details-marker { display: none; }
.facet-more[open] > summary { display: none; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.results-head h1 { margin: 0; font-size: 1.3rem; }
.count { color: var(--muted); margin: 2px 0 0; font-size: .92rem; }
.sort { display: flex; gap: 10px; margin: 0 0 0 auto; color: var(--muted); }
.sort a[aria-current] { font-weight: 600; color: var(--ink); }
.results-head .view-switch { margin-left: auto; }
.results-head .sort + .view-switch { margin-left: 0; }
.active-filters { margin: 0 0 14px; }
.jobs-rail { display: grid; gap: 14px; position: sticky; top: 84px; }
.rail-card { margin: 0; padding: 18px; }
.rail-card h2 { font-size: 1rem; }
.rail-card p:last-child { margin-bottom: 0; }
.rail-join { background: linear-gradient(170deg, var(--soft), var(--surface) 70%); }
.rail-join .ticks { margin: 4px 0 12px; }
.rail-join .small { margin: 10px 0 0; }
.rail-links { list-style: none; padding: 0; margin: 0; }
.rail-links a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.rail-links a:hover { color: var(--primary); text-decoration: none; }
.rail-links .ico { width: 14px; height: 14px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.pager a { min-width: 36px; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-button); padding: 6px 13px; color: var(--ink); font-weight: 500; }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager a[aria-current] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Job page */
.job-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.job-main { min-width: 0; }
.job-head { padding: 24px 26px 20px; }
.job-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.job-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: 4px; }
.job-head .job-dept { font-size: 1rem; }
.meta-head { margin: 16px 0 18px; font-size: 1rem; }
.job-head-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.job-stats { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; color: var(--muted); font-size: .92rem; }
.job-stats span + span { border-left: 1px solid var(--line); margin-left: 12px; padding-left: 12px; }
.job-stats strong { color: var(--ink); }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-head .notice { margin: 16px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 14px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.facts div, .detail-list div { min-width: 0; }
dt { color: var(--muted); font-size: .84rem; }
dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.apply-box { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 14px; }
.apply-box .notice { flex: 1 1 100%; margin: 0; }
.apply-card { scroll-margin-top: 84px; }
.apply-form .help { margin: 0; }
.prose { overflow-wrap: anywhere; line-height: 1.65; }
.prose h3, .prose h4 { margin: 1.1rem 0 .4rem; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 .8rem; }
.prose li { margin-bottom: .25rem; }
.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 14px 0 6px; }
.detail-lines { display: grid; gap: 5px; margin: 16px 0; }
.detail-lines div { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-lines dt { color: var(--ink); font-weight: 700; font-size: inherit; }
.detail-lines dd { font-weight: 400; }
.mini-jobs { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-jobs li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-jobs li:first-child { border-top: 0; padding-top: 4px; }
.mini-jobs a { display: block; font-weight: 700; color: var(--ink); }
.mini-jobs a:hover { color: var(--primary); }
.mini-jobs span { color: var(--muted); font-size: .88rem; }
.mini-jobs div > span { display: block; }
.mini-loc .ico { width: 14px; height: 14px; margin-right: 4px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid.single { grid-template-columns: 1fr; }
.field { margin-bottom: 12px; min-width: 0; }
.field.wide, .field-check { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .9em; }
.req { color: #b42318; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="month"], input[type="date"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #cfd5e1; border-radius: var(--radius-control); padding: var(--pad-input); line-height: 1.35; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #98a1b3; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 3px solid var(--soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #d92d20; }
input:disabled { background: var(--page); color: var(--muted); }
textarea { resize: vertical; }
input[type="file"] { font: inherit; max-width: 100%; }
.help { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.error { color: #b42318; font-size: .88rem; margin: 4px 0 0; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.delete-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-page { display: grid; grid-template-columns: 320px minmax(0, 480px); gap: 24px; justify-content: center; align-items: start; padding-top: 40px; }
.narrow > .auth-card { margin-top: 20px; }
.auth-card { padding: 28px 30px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card .button-wide { padding-block: 9px; margin-top: 8px; }
.auth-card .center { margin: 14px 0 0; }
.auth-side { padding: 26px; background: linear-gradient(165deg, var(--soft), var(--surface) 85%); border: 1px solid var(--line); }
.auth-side h2 { font-size: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; background: #12b76a; }
.ticks li::after { content: ""; position: absolute; left: 0; top: .1em; width: 18px; height: 18px; background: #fff; --icon: var(--icon-check); -webkit-mask: var(--icon) center / 12px no-repeat; mask: var(--icon) center / 12px no-repeat; }
.ticks-row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; }

/* Account */
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 18px; padding: 5px; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: calc(var(--radius-control) + 5px); }
.tabs a { padding: 6px 16px; border-radius: var(--radius-control); color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; background: var(--page); }
.tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.dash-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-main { min-width: 0; }
.profile-card { text-align: center; }
.profile-card h1 { font-size: 1.2rem; margin-top: 10px; }
.avatar { width: 76px; height: 76px; margin-inline: auto; padding: 3px; border-radius: 50%; background: linear-gradient(140deg, var(--primary), var(--accent)); }
.avatar img, .avatar > span { width: 70px; height: 70px; border: 3px solid var(--surface); border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--soft); color: var(--primary); font-weight: 700; font-size: 1.6rem; }
.avatar-large { width: 104px; height: auto; margin: 0; padding: 0; background: none; text-align: center; display: grid; gap: 6px; justify-items: center; }
.avatar-large img, .avatar-large > span { width: 104px; height: 104px; font-size: 2.2rem; border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--primary); }
.meter-label { font-weight: 600; margin-top: 12px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); accent-color: var(--primary); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: #12b76a; border-radius: 999px; }
progress::-moz-progress-bar { background: #12b76a; }
.todo { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 6px; text-align: left; font-size: .92rem; }
.todo li { display: flex; justify-content: space-between; gap: 8px; }
.todo span { color: #067647; font-weight: 600; font-size: .82rem; background: #ecfdf3; border-radius: 999px; padding: 0 8px; }
.profile-card .button { margin-top: 12px; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.profile-top { display: grid; grid-template-columns: auto 1fr 250px; gap: 22px; align-items: start; }
.profile-top-side { border-left: 1px solid var(--line); padding-left: 20px; }
.profile-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.quick-links { position: sticky; top: 84px; }
.quick-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.quick-links a { display: block; margin-inline: -8px; padding: 5px 8px; border-radius: 8px; color: var(--ink); }
.quick-links a:hover { background: var(--page); color: var(--primary); text-decoration: none; }
.profile-sections .card { scroll-margin-top: 84px; }
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.entries li:first-child { border-top: 0; padding-top: 4px; }
.entry-text { margin: 6px 0 0; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* Status badges */
.badge { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .82rem; font-weight: 600; background: var(--soft); color: var(--primary); white-space: nowrap; }
.badge-large { font-size: .92rem; padding: 5px 14px; }
.badge-applied { background: #ecfdf3; color: #067647; }
.badge-shortlisted, .badge-interview, .badge-offered, .badge-confirmed, .badge-doc-uploaded { background: #eff8ff; color: #175cd3; }
.badge-selected, .badge-completed, .badge-doc-accepted { background: #ecfdf3; color: #067647; }
.badge-rejected, .badge-withdrawn, .badge-cancelled, .badge-declined { background: #f2f4f7; color: #475467; }
.badge-on_hold, .badge-scheduled, .badge-reschedule_requested, .badge-doc-requested, .badge-doc-rejected { background: #fffaeb; color: #b54708; }
.badge-job-open { background: #ecfdf3; color: #067647; }
.badge-job-draft, .badge-job-closed { background: #f2f4f7; color: #475467; }
.badge-job-paused { background: #fffaeb; color: #b54708; }

/* Application page */
.progress-steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 0; margin: 16px 0 12px; }
.progress-steps li { border-top: 4px solid var(--line); padding-top: 7px; font-size: .86rem; color: var(--muted); }
.progress-steps li.done { border-color: var(--primary); color: var(--ink); }
.progress-steps li.current { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.interview, .document { border-top: 1px solid var(--line); padding: 14px 0; }
.interview:first-of-type, .document:first-of-type { border-top: 0; padding-top: 4px; }
.respond-form { margin-top: 8px; }
.add-document { margin: 10px 0; }
.add-document summary { cursor: pointer; color: var(--primary); font-weight: 500; margin-bottom: 10px; }
.timeline { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline .muted { font-size: .85rem; display: block; }

/* Upload control */
.upload { display: grid; gap: 8px; margin: 6px 0; max-width: 520px; }
.upload-drop, .upload-chosen { display: none; }
.js .upload-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .upload-drop { display: grid; justify-items: center; gap: 2px; text-align: center; border: 1.5px dashed #b9c0cf; border-radius: var(--radius-control); background: var(--page); padding: 16px 12px; cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.js .upload-drop:hover, .upload.is-over .upload-drop, .js .upload-input:focus-visible + .upload-drop { border-color: var(--primary); background: var(--soft); }
.upload-text strong { color: var(--primary); font-weight: 600; }
.upload-hint { color: var(--muted); font-size: .85rem; }
.upload-icon, .upload-file-icon { width: 22px; height: 22px; background: var(--primary); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.upload-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E"); }
.upload-file-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13H6z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); flex: none; }
.upload.has-file .upload-drop { display: none; }
.upload.has-file .upload-chosen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); padding: 8px 12px; }
.upload-name { font-weight: 600; overflow-wrap: anywhere; }
.upload-size { color: var(--muted); font-size: .88rem; }
.upload-clear { margin-left: auto; }
.upload-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.a-panel .upload-preview { width: auto; max-width: 180px; height: 48px; border-radius: 4px; object-fit: contain; }
.upload-submit { justify-self: start; }
.js .upload:not(.has-file) .upload-submit { display: none; }
.upload.is-busy .upload-submit { opacity: .7; pointer-events: none; }
.photo-edit { position: relative; }
.photo-edit summary { list-style: none; cursor: pointer; }
.photo-edit summary::-webkit-details-marker { display: none; }
.photo-panel { position: absolute; z-index: 5; left: 0; top: calc(100% + 8px); width: min(360px, 86vw); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 14px 40px rgba(20, 24, 46, .16); }

/* Design choices (set per brand in Admin > Design) */
.header-tinted .site-header { background: var(--soft); }
.header-brand .site-header { background: var(--primary); border-bottom-color: transparent; }
.header-dark .site-header { background: var(--ink); border-bottom-color: transparent; }
.header-brand .site-header .brand, .header-brand .nav-links a, .header-brand .nav-user, .header-brand .nav-toggle { color: var(--on-primary); }
.header-dark .site-header .brand, .header-dark .nav-links a, .header-dark .nav-user, .header-dark .nav-toggle { color: #fff; }
.header-brand .nav-links a[aria-current="page"], .header-dark .nav-links a[aria-current="page"] { border-bottom-color: currentColor; }
.header-brand .nav-links a:hover, .header-dark .nav-links a:hover { color: inherit; opacity: .85; }
.header-brand .brand-mark { background: var(--on-primary); color: var(--primary); }
.header-brand .nav-actions .button-outline, .header-dark .nav-actions .button-outline { background: transparent; border-color: currentColor; color: inherit; }
.header-brand .nav-actions, .header-dark .nav-actions { color: #fff; }
.header-brand .nav-actions { color: var(--on-primary); }
.header-brand .nav-user, .header-dark .nav-user, .header-brand .nav-toggle, .header-dark .nav-toggle { border-color: rgba(255, 255, 255, .4); }
.header-brand .brand-tag, .header-dark .brand-tag { background: rgba(255, 255, 255, .18); color: inherit; }
.header-brand .nav-search, .header-dark .nav-search { background: rgba(255, 255, 255, .96); border-color: transparent; }
.header-brand .nav-search button, .header-dark .nav-search button { background: var(--accent); color: var(--on-accent); }
.hero-tinted .hero { background: var(--soft); }
.hero-brand .hero { background: var(--primary); color: var(--on-primary); }
.hero-brand .hero .lead { color: inherit; opacity: .9; }
.hero-brand .hero .search-bar { border-color: transparent; color: var(--ink); }
.hero-brand .hero .search-bar .button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero-brand .hero-count, .hero-brand .quick-chips a { border-color: transparent; color: var(--ink); }
.hero-centered .hero-copy { margin-inline: auto; text-align: center; }
.hero-centered .hero .lead, .hero-centered .hero .search-bar { margin-inline: auto; }
.hero-centered .quick-chips { justify-content: center; }
.hero-split .hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 44px; align-items: center; }
.hero-split .hero-panel { display: grid; gap: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-lift); }
.cards-shadow { --card-border: transparent; --card-shadow: var(--shadow); }
.cards-flat { --card-border: transparent; --card-bg: var(--soft); --page: var(--surface); }
.jobs-grid .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jobs-grid .section > .job-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jobs-grid .job-card-foot { margin-top: auto; }
.jobs-grid .meta li { padding-right: 0; margin-right: 16px; border-right: 0; }
.jobs-grid .jobs-page { grid-template-columns: 270px minmax(0, 1fr); }
.jobs-grid .jobs-rail { display: none; }
.jobs-compact .job-card { padding: 12px 16px; gap: 6px; }
.jobs-compact .job-card .snippet, .jobs-compact .job-card .tags { display: none; }
.jobs-compact .job-card .tile-large { width: 34px; height: 34px; }
.jobs-compact .job-card .tile-large .ico { width: 18px; height: 18px; }
.jobs-compact .job-list { gap: 8px; }
.buttons-outline .button:not(.button-outline):not(.button-accent) { background: transparent; color: var(--primary); border-width: 1.5px; }
.buttons-outline .button:not(.button-outline):not(.button-accent):hover { background: var(--primary); color: var(--on-primary); }
.buttons-accent .button:not(.button-outline) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.buttons-accent .button:not(.button-outline):hover { filter: brightness(.93); }
.footer-dark .site-footer { background: var(--ink); color: #c4cbdb; border-top-color: transparent; }
.footer-brand .site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .85); border-top-color: transparent; }
.footer-dark .footer-name, .footer-dark .footer-top h2, .footer-brand .footer-name, .footer-brand .footer-top h2, .footer-dark .footer-name span, .footer-brand .footer-name span { color: #fff; }
.footer-dark .footer-top nav a:hover, .footer-brand .footer-top nav a:hover { color: #fff; text-decoration: underline; }
.footer-dark .footer-row, .footer-brand .footer-row { border-top-color: rgba(255, 255, 255, .14); }

@media (max-width: 1100px) {
  .jobs-page { grid-template-columns: 260px minmax(0, 1fr); }
  .jobs-rail, .nav-search { display: none; }
  .hero-split .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 26px; }
  .jobs-grid .section > .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .jobs-page, .jobs-grid .jobs-page, .job-page, .dash-grid, .profile-grid, .auth-page, .profile-top, .spot { grid-template-columns: 1fr; }
  .quick-links { position: static; }
  .quick-links, .auth-side { display: none; }
  .profile-top-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .steps { grid-template-columns: 1fr; }
  .jobs-grid .job-list, .jobs-grid .section > .job-list { grid-template-columns: 1fr; }
  .js .view-switch { display: none; }
  .hero { padding: 34px 0 28px; }
  .hero-split .hero-inner { display: block; }
  .hero-split .hero-panel { display: none; }
  .search-bar { flex-direction: column; align-items: stretch; border-radius: var(--radius); padding: 8px; }
  .search-icon { display: none; }
  .search-bar input[type], .search-bar select { flex: none; border-left: 0; border-bottom: 1px solid var(--line); min-height: 44px; }
  .search-bar .button { margin-top: 8px; min-height: 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .spot { padding: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .auth-page { padding-top: 24px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1200px, 100% - 28px); }
  .header-row { min-height: 60px; gap: 12px; }
  .brand { font-size: .98rem; gap: 8px; }
  .brand-tag { display: none; }
  .nav-toggle { display: inline-block; flex-shrink: 0; min-height: 40px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
  .site-nav.open { display: flex; }
  .header-brand .site-nav { background: var(--primary); }
  .header-dark .site-nav { background: var(--ink); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .nav-actions { margin-left: 0; flex-wrap: wrap; }
  .nav-actions .button { min-height: 40px; }
  .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .join-band { padding: 22px; }
  .job-card { padding: 16px; }
  .meta li { padding-right: 0; margin-right: 16px; border-right: 0; }
  .job-head { padding: 18px; }
  .job-head-foot { align-items: stretch; flex-direction: column; }
  .job-actions .button, .job-actions form { flex: 1; }
  .job-actions form .button { width: 100%; }
  .button, .button-small { min-height: 40px; }
  .auth-card { padding: 20px; }
  .section-head h2, .spot-text h2 { font-size: 1.25rem; }
  .progress-steps { grid-auto-flow: row; }
  .table thead { display: none; }
  .table td { display: block; border: 0; padding: 2px 0; }
  .table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tabs { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .job-card:hover, .quick-chips a:hover { transform: none; }
}

/* Candidate profile enhancements use the existing brand theme. */
.work-status{border:0;padding:0;margin:0;display:grid;gap:.65rem}.work-status legend{font-weight:600;margin-bottom:.5rem}.work-status .check{padding:.8rem;border:1px solid var(--border,#ddd);border-radius:8px}.password-toggle{margin-top:.4rem}.setup-steps{display:grid;gap:1.5rem;padding-left:1.5rem}.setup-steps h2{font-size:1.15rem}.tag-editor-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.6rem}.tag-editor-row{display:flex;gap:.5rem}.tag-editor-row input{min-width:0;flex:1}.profile-jump{display:none}.field[hidden]{display:none!important}.profile-sections .card{scroll-margin-top:6rem}
@media(max-width:800px){.profile-jump{display:grid;gap:.4rem;margin:1rem 0}.profile-jump select{width:100%}.tag-editor-row{flex-wrap:wrap}}
