:root {
  --blue: #003368;
  --blue-deep: #00234a;
  --blue-soft: #eaf2fa;
  --burgundy: #a92e41;
  --burgundy-dark: #852235;
  --ink: #1b2533;
  --muted: #657184;
  --line: #d9e1ea;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --success: #18794e;
  --shadow: 0 18px 48px rgba(0, 38, 78, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--burgundy); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; padding: 10px 14px; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid rgba(0,51,104,.10); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 194px; display: block; }
.nav { display: flex; align-items: center; gap: 25px; font-size: .92rem; font-weight: 700; }
.nav a { text-decoration: none; color: var(--blue); }
.nav a:hover { color: var(--burgundy); }
.nav-cta { padding: 10px 16px; background: var(--burgundy); color: #fff !important; border-radius: 999px; }
.nav-cta:hover { background: var(--burgundy-dark); }
main { min-height: 65vh; }
.hero { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,31,66,.98) 0%, rgba(0,51,104,.88) 48%, rgba(0,51,104,.35) 100%); pointer-events: none; }
.hero-image { position: absolute; inset: 0 0 0 50%; background: url('../brand/keystone-campus.png') center/cover no-repeat; opacity: .78; }
.hero-content { position: relative; z-index: 1; padding: 92px 0 105px; max-width: none; }
.eyebrow { color: var(--burgundy); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; }
.hero .eyebrow { color: #f7c4ce; }
.brand-kicker { margin: 0 0 14px; font-weight: 500; letter-spacing: .11em; }
.public-page h1 { font-weight: 600; }
h1, h2, h3 { color: var(--blue); line-height: 1.16; letter-spacing: -.025em; margin: 0 0 16px; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 600; line-height: 1.18; max-width: 650px; }
.hero p { font-size: 1.15rem; max-width: 600px; color: #e9f1fa; margin: 0 0 28px; }
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; min-height: 46px; }
.button-primary { background: var(--burgundy); color: #fff; }
.button-primary:hover { background: var(--burgundy-dark); color: #fff; }
.button-secondary { color: var(--blue); border: 1px solid var(--blue); background: #fff; }
.button-secondary:hover { background: var(--blue-soft); }
.button-quiet { background: var(--blue-soft); color: var(--blue); }
.section { padding: 74px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); max-width: 590px; margin: 0; }
.jobs-section { background: var(--surface-alt); }
.filter-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-bottom: 32px; box-shadow: 0 10px 28px rgba(0,38,78,.05); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.filter-bar .field { margin: 0; }
label { font-weight: 750; color: var(--blue); font-size: .86rem; }
input, select, textarea { width: 100%; border: 1px solid #bdc9d7; border-radius: 10px; color: var(--ink); background: #fff; padding: 12px 13px; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid rgba(169,46,65,.28); outline-offset: 2px; border-color: var(--burgundy); }
textarea { min-height: 145px; resize: vertical; }
.help { color: var(--muted); font-size: .84rem; margin: 0; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; display: flex; flex-direction: column; min-height: 275px; box-shadow: 0 8px 24px rgba(0,38,78,.04); }
.job-card:hover { border-color: rgba(169,46,65,.48); transform: translateY(-2px); transition: transform .2s ease, border-color .2s ease; }
.job-card h3 { font-size: 1.25rem; margin-top: 11px; }
.job-card h3 a { text-decoration: none; }
.job-card p { color: var(--muted); margin: 0 0 18px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; margin-bottom: 20px; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .77rem; font-weight: 750; }
.card-link { font-weight: 800; text-decoration: none; }
.empty-state { background: #fff; border: 1px dashed #afc0d1; padding: 42px 30px; border-radius: var(--radius); text-align: center; max-width: 760px; margin: 0 auto; }
.empty-state p { color: var(--muted); margin: 0 auto 20px; max-width: 560px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; text-decoration: none; font-weight: 700; }
.pagination .active { color: #fff; background: var(--blue); border-color: var(--blue); }
.content-narrow { width: min(800px, calc(100% - 40px)); margin: 0 auto; }
.detail-hero { background: var(--blue-soft); padding: 68px 0 58px; }
.detail-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 780px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 64px 0 80px; }
.prose h2 { font-size: 1.55rem; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #465267; }
.sticky-apply { align-self: start; position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 26px; }
.sticky-apply h2 { font-size: 1.25rem; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.alert-error { background: #fff1f3; color: #8f2035; border: 1px solid #efbec7; }
.alert-success { background: #edf9f2; color: var(--success); border: 1px solid #b8e4c8; }
.error-list { margin: 0 0 24px; padding: 14px 18px 14px 35px; border: 1px solid #efbec7; background: #fff1f3; color: #8f2035; border-radius: 10px; }
.form-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: auto; margin-top: 5px; }
.checkbox label { font-weight: 500; color: var(--ink); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { background: var(--blue-deep); color: #dce8f5; padding: 46px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer p { color: #b8cadf; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #b8cadf; display: flex; justify-content: space-between; gap: 20px; }
.admin-shell { background: var(--surface-alt); min-height: 70vh; padding: 45px 0 80px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.admin-top h1 { margin: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-nav a { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; text-decoration: none; font-size: .86rem; font-weight: 700; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-actions form { margin: 0; }
.admin-page .button, .admin-page button, .admin-page .admin-nav a { font-weight: 600; }
.button-delete { background: #fff1f3; color: #8f2035; border: 1px solid #efbec7; }
.button-delete:hover { background: #fce1e6; color: #8f2035; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat strong { display: block; font-size: 1.8rem; color: var(--blue); }
.stat span { font-size: .83rem; color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 15px 16px; vertical-align: top; }
th { color: var(--blue); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.status-published { background: #e6f5ed; color: #176e47; }
.status-draft { background: #f0f2f6; color: #5e6878; }
.status-closed { background: #fff0f1; color: #963345; }
.admin-form { max-width: 920px; }
.admin-form .field textarea { min-height: 180px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.muted { color: var(--muted); }
.center-card { max-width: 540px; margin: 70px auto; }
.install-card { max-width: 760px; margin: 42px auto; }
.install-card .brand { display: block; margin-bottom: 22px; }
.admin-back-link { margin-top: 18px; }
.team-table { margin-top: 24px; }
@media (max-width: 900px) {
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .field:first-child { grid-column: 1 / -1; }
  .filter-bar .button { align-self: end; }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-apply { position: static; }
}
@media (max-width: 650px) {
  .container, .content-narrow { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 156px; }
  .nav { gap: 12px; font-size: .8rem; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-image { left: 25%; opacity: .38; }
  .hero-content { padding: 68px 0 78px; }
  .hero h1 { font-size: 2.15rem; }
  .section { padding: 50px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .jobs-grid, .form-grid, .footer-grid, .stats { grid-template-columns: 1fr; }
  .filter-bar { display: block; }
  .filter-bar .field, .filter-bar .button { margin-bottom: 10px; width: 100%; }
  .filter-bar .field:first-child { grid-column: auto; }
  .detail-layout { padding: 44px 0 58px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .admin-top { display: block; }
  .admin-top .admin-actions { margin-top: 14px; }
}
