@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600&display=swap');

:root { --paper: #faf9f6; --ink: #292b28; --muted: #777a78; --green: #667f6b; --line: #e5e4df; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope','Segoe UI',sans-serif; }
a { color: inherit; }
.kpss-shell { display: flex; min-height: 100vh; flex-direction: column; padding: 0 clamp(22px,7vw,112px); }
.kpss-nav { display: flex; width: min(1050px,100%); min-height: 76px; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid var(--line); }
.kpss-brand { display: inline-flex; align-items: baseline; gap: 0; color: var(--ink); font-family: 'Manrope','Segoe UI',sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.kpss-brand span { color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 36px; line-height: 1; }
.kpss-brand strong { font-weight: 600; }
.home-link { color: #626661; font-size: 13px; text-decoration: none; }
.home-link:hover { color: var(--green); }
.kpss-nav-actions { display: flex; align-items: center; gap: 12px; }
.kpss-nav-actions .home-link { white-space: nowrap; }
.kpss-nav-actions .account-entry { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid #d5dfd2; border-radius: 6px; background: #f1f5ef; color: #4d6b50; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kpss-nav-actions .account-entry svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kpss-nav-actions .account-entry:hover { border-color: #b9cbb7; background: #e8efe5; }
.kpss-content { display: flex; width: min(1050px,100%); flex: 1; flex-direction: column; justify-content: center; margin: 0 auto; padding: 42px 0; }
.kpss-page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.kpss-page-intro > div:first-child { max-width: 720px; }
.kpss-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.kpss-eyebrow span { width: 18px; height: 1px; background: var(--green); }
.kpss-page-intro h1 { margin: 0; color: var(--ink); font-size: clamp(34px,4vw,46px); font-weight: 650; letter-spacing: -.045em; line-height: 1.12; }
.kpss-page-intro > div:first-child > p:last-child { max-width: 650px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.kpss-years { display: flex; flex: none; align-items: center; gap: 8px; margin: 0 0 3px; padding: 9px 13px; border: 1px solid #dce5dc; border-radius: 24px; background: #f4f7f3; color: #525650; font-size: 12px; font-weight: 650; }
.kpss-years i { color: #9da69b; font-style: normal; }
.kpss-years small { margin-left: 2px; color: #858983; font-size: 10px; font-weight: 400; }
.selection-card { padding: 20px 22px 0; border: 1px solid #deded8; border-radius: 9px; background: #fcfbf9; color: var(--ink); }
.search-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.search-mode { display: grid; min-width: 0; min-height: 76px; grid-template-columns: 30px minmax(0,1fr) 22px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #deded8; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
.search-mode:hover { transform: translateY(-1px); border-color: #aab6a9; }
.search-mode.is-active { border-color: #aabda8; background: #f0f4ee; box-shadow: inset 0 0 0 1px #aabda833; }
.search-mode:focus-visible { outline: 2px solid #91a092; outline-offset: 2px; }
.search-mode-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f0f3ee; color: var(--green); font-size: 10px; font-weight: 800; }
.search-mode.is-active .search-mode-number { background: var(--green); color: #fff; }
.search-mode-copy { display: grid; gap: 4px; }
.search-mode-copy strong { font-size: 13px; font-weight: 750; line-height: 1.3; }
.search-mode-copy small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.search-mode-check { color: var(--green); font-size: 16px; font-weight: 700; text-align: center; }
.search-workspace { margin-top: 20px; padding: 21px 2px 20px; border-top: 1px solid var(--line); }
.selection-kicker { margin: 0; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.selection-card h2 { margin: 8px 0 4px; color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.selection-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.selection-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 17px; }
.selection-form #departmentGroup { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 7px; color: #464a45; font-size: 12px; font-weight: 700; }
.form-group label span { color: #858983; font-size: 10px; font-weight: 400; }
.form-group select, .form-group input { width: 100%; height: 47px; padding: 0 12px; border: 1px solid #deded8; border-radius: 5px; outline: 0; background: #fff; color: #343832; font-size: 13px; }
.form-group select:focus, .form-group input:focus { border-color: #8b9b8d; box-shadow: 0 0 0 3px #667f6b1c; }
.department-combobox { position: relative; }
.department-suggestions { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; left: 0; max-height: 235px; overflow: auto; padding: 5px; border: 1px solid #deded8; border-radius: 5px; background: #fff; box-shadow: 0 10px 25px #292b281a; }
.department-suggestions[hidden] { display: none; }
.department-suggestion { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 3px; background: transparent; color: #454943; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.department-suggestion:hover, .department-suggestion:focus-visible { outline: 0; background: #f0f3ee; color: #536b58; }
.department-suggestion-empty { margin: 0; padding: 10px; color: #858983; font-size: 11px; }
.form-error { margin: -6px 0 0; color: #a33732; font-size: 12px; }
#searchButton { display: flex; min-height: 46px; grid-column: 1 / -1; align-items: center; justify-content: space-between; margin-top: 1px; padding: 0 16px; border: 0; border-radius: 5px; background: var(--green); color: #fff; font-size: 13px; font-weight: 750; cursor: pointer; transition: background .15s ease,transform .15s ease; }
#searchButton:hover { transform: translateY(-1px); background: #536b58; }
#searchButton span:last-child { font-size: 20px; }
.profile-search-note { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 5px; background: #f0f3ee; color: #667f6b; font-size: 12px; line-height: 1.5; }
.selection-footnote { margin: 0 -22px; padding: 14px; border-top: 1px solid var(--line); color: #858983; font-size: 11px; text-align: center; }
.kpss-footer { display: flex; width: min(1120px,100%); justify-content: space-between; margin: 0 auto; padding: 15px 0 18px; border-top: 1px solid var(--line); color: #858983; font-size: 10px; }
.kpss-footer a { color: var(--ink); font-family: 'Manrope','Segoe UI',sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; }
.kpss-footer a::first-letter { color: var(--green); }
@media (max-width: 700px) { .kpss-shell { padding: 0 20px; } .kpss-content { justify-content: flex-start; padding: 40px 0; } .kpss-page-intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; } .kpss-page-intro h1 { font-size: clamp(34px,8vw,44px); } .kpss-page-intro > div:first-child > p:last-child { font-size: 14px; } .selection-card { padding: 14px 14px 0; } .selection-footnote { margin-right: -14px; margin-left: -14px; } }
@media (max-width: 560px) { .search-modes { grid-template-columns: 1fr; gap: 7px; } .search-mode { min-height: 63px; padding: 9px 11px; } .search-workspace { margin-top: 15px; padding-top: 17px; } .selection-form { grid-template-columns: 1fr; gap: 12px; } .selection-form #departmentGroup, #searchButton, .profile-search-note, .form-error { grid-column: 1; } }
@media (max-width: 480px) { .kpss-shell { padding-right: 14px; padding-left: 14px; } .kpss-nav { min-height: 68px; gap: 8px; } .kpss-brand { font-size: 18px; } .kpss-brand span { font-size: 32px; } .kpss-nav-actions { gap: 6px; } .kpss-nav-actions .home-link { font-size: 11px; } .kpss-nav-actions .account-entry { min-height: 36px; gap: 5px; padding: 0 8px; font-size: 11px; } }

/* KPSS landing page: match the open, wayfinding layout used by the homepage. */
body:has(.kpss-shell) { background: #f7f9f7; }
.kpss-shell { padding: 0; }
.kpss-shell .kpss-nav { width: 100%; min-height: 90px; border-bottom: 1px solid #dfe7e4; border-radius: 0; background: #fff; color: #173847; }
.kpss-shell .kpss-brand { color: #173847; }
.kpss-shell .kpss-brand span { color: #f3b63f; }
.kpss-shell .home-link { color: #173847; }
.kpss-shell .home-link:hover { color: #176a82; }
.kpss-shell .kpss-nav-actions .account-entry { min-height: 50px; padding: 0 17px; border-color: #dce6e3; border-radius: 13px; background: #fff; color: #173847; }
.kpss-shell .kpss-nav-actions .account-entry:hover { border-color: #9ab4b8; background: #f6f9f8; color: #176a82; }
.kpss-shell .kpss-content { width: min(1200px, calc(100% - 40px)); justify-content: flex-start; padding: 66px 0 38px; }
.kpss-shell .kpss-page-intro { align-items: center; margin-bottom: 76px; }
.kpss-shell .kpss-page-intro > div:first-child { max-width: 980px; }
.kpss-shell .kpss-eyebrow { gap: 14px; margin-bottom: 28px; color: #176a82; }
.kpss-shell .kpss-eyebrow span { width: 10px; height: 10px; border-radius: 50%; background: #f3b63f; }
.kpss-shell .kpss-page-intro h1 { color: #173847; font-size: clamp(42px, 4vw, 60px); letter-spacing: -.04em; line-height: 1.08; }
.kpss-shell .kpss-page-intro > div:first-child > p:last-child { max-width: 900px; margin-top: 24px; color: #607b88; font-size: 18px; line-height: 1.6; }
.kpss-shell .kpss-years { display: grid; min-width: 280px; gap: 8px; margin: 0; padding: 22px 20px 20px; border: 1px solid #dfe7e4; border-top: 5px solid #f3b63f; border-radius: 15px; background: #fff; color: #173847; }
.kpss-shell .kpss-years small { margin: 0; color: #607b88; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.kpss-shell .kpss-years strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.kpss-shell .selection-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.kpss-shell .search-modes { gap: 20px; margin-bottom: 36px; }
.kpss-shell .search-mode { position: relative; min-height: 132px; grid-template-columns: 74px minmax(0,1fr) 20px; gap: 24px; overflow: hidden; padding: 22px 20px; border: 1px solid #dfe7e4; border-radius: 16px; background: #fff; color: #173847; }
.kpss-shell .search-mode:hover { border-color: #9db5ba; background: #fff; }
.kpss-shell .search-mode::before { position: absolute; top: 0; right: 0; left: 0; height: 0; background: #f3b63f; content: ""; }
.kpss-shell .search-mode.is-active { border-color: #e6c778; background: #fff; box-shadow: none; }
.kpss-shell .search-mode.is-active::before { height: 5px; }
.kpss-shell .search-mode-icon { display: grid; width: 74px; height: 78px; place-items: center; border-radius: 16px; background: #fff3d6; color: #a76b05; font-size: 27px; }
.kpss-shell .search-mode[data-mode="general"] .search-mode-icon, .kpss-shell .search-mode[data-mode="profile"] .search-mode-icon { background: #e9f2f4; color: #176a82; }
.kpss-shell .search-mode-copy { gap: 5px; }
.kpss-shell .search-mode-copy .search-mode-number { display: block; width: auto; height: auto; border-radius: 0; background: transparent; color: #176a82; font-size: 12px; letter-spacing: .12em; }
.kpss-shell .search-mode.is-active .search-mode-copy .search-mode-number { background: transparent; color: #a76b05; }
.kpss-shell .search-mode-copy strong { font-size: 18px; font-weight: 800; }
.kpss-shell .search-mode-copy small:last-child { color: #607b88; font-size: 14px; }
.kpss-shell .search-mode-check { color: #176a82; font-size: 21px; }
.kpss-shell .search-mode.is-active .search-mode-check { color: #287658; }
.kpss-shell .search-mode:focus-visible { outline-color: #176a82; }
.kpss-shell .search-workspace { margin: 0; padding: 34px 38px 36px; border: 1px solid #dfe7e4; border-top: 5px solid #f3b63f; border-radius: 16px 16px 0 0; background: #fff; }
.kpss-shell .selection-kicker { color: #176a82; font-size: 12px; letter-spacing: .12em; }
.kpss-shell .selection-card h2 { margin: 22px 0 8px; color: #173847; font-size: 36px; letter-spacing: -.035em; }
.kpss-shell .selection-description { color: #607b88; font-size: 16px; }
.kpss-shell .selection-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 38px; margin-top: 38px; padding-top: 34px; border-top: 1px solid #dfe7e4; }
.kpss-shell .selection-form #departmentGroup { grid-column: auto; }
.kpss-shell .form-group label { margin-bottom: 10px; color: #173847; font-size: 14px; }
.kpss-shell .form-group label span { color: #879aa0; font-size: 12px; }
.kpss-shell .form-group select, .kpss-shell .form-group input { height: 68px; padding: 0 20px; border-color: #d8e3e0; border-radius: 12px; color: #173847; font-size: 16px; }
.kpss-shell .department-suggestions { border-color: #d8e3e0; border-radius: 12px; }
.kpss-shell .department-suggestion:hover, .kpss-shell .department-suggestion:focus-visible { background: #edf4f3; color: #173847; }
.kpss-shell #searchButton { min-height: 74px; margin-top: 8px; padding: 0 24px; border-radius: 13px; background: #173847; color: #fff; font-size: 17px; }
.kpss-shell #searchButton:hover { background: #24586b; }
.kpss-shell #searchButton span:last-child { color: #f3b63f; font-size: 26px; }
.kpss-shell .profile-search-note { border-radius: 10px; background: #edf4f3; color: #176a82; }
.kpss-shell .selection-footnote { display: flex; align-items: center; gap: 24px; margin: 0; padding: 26px 38px; border: 1px solid #dfe7e4; border-top: 0; background: #fff; color: #607b88; font-size: 14px; }
.kpss-shell .selection-footnote strong { padding: 11px 16px; border-radius: 24px; background: #e7f4ef; color: #287658; font-size: 13px; }
.kpss-shell .selection-footnote span:last-child { margin-left: auto; }
.kpss-shell .kpss-footer { width: min(1200px, calc(100% - 40px)); padding: 28px 0 24px; border-color: #dfe7e4; color: #607b88; font-size: 13px; }
.kpss-shell .kpss-footer a { color: #173847; }
.kpss-shell .kpss-footer a::first-letter { color: #f3b63f; }
/* Let the KPSS header span the viewport while keeping its contents aligned to the page grid. */
.kpss-shell .kpss-nav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-right: max(calc((100vw - 1200px) / 2), 20px);
    padding-left: max(calc((100vw - 1200px) / 2), 20px);
}
@media (max-width: 850px) {
    .kpss-shell { padding-right: 0; padding-left: 0; }
    .kpss-shell .kpss-nav { padding-right: 28px; padding-left: 28px; }
    .kpss-shell .kpss-content, .kpss-shell .kpss-footer { width: calc(100% - 56px); }
    .kpss-shell .kpss-page-intro { margin-bottom: 48px; }
    .kpss-shell .search-modes { gap: 12px; }
    .kpss-shell .search-mode { min-height: 120px; grid-template-columns: 56px minmax(0,1fr) 18px; gap: 14px; padding: 18px 14px; }
    .kpss-shell .search-mode-icon { width: 56px; height: 60px; }
    .kpss-shell .search-mode-copy strong { font-size: 15px; }
}
@media (max-width: 700px) {
    .kpss-shell { padding-right: 0; padding-left: 0; }
    .kpss-shell .kpss-nav { padding-right: 20px; padding-left: 20px; }
    .kpss-shell .kpss-content, .kpss-shell .kpss-footer { width: calc(100% - 40px); }
    .kpss-shell .kpss-content { padding: 38px 0 26px; }
    .kpss-shell .kpss-page-intro { gap: 20px; margin-bottom: 32px; }
    .kpss-shell .kpss-page-intro h1 { font-size: clamp(36px,8vw,48px); }
    .kpss-shell .kpss-page-intro > div:first-child > p:last-child { margin-top: 14px; font-size: 15px; }
    .kpss-shell .kpss-years { min-width: 0; padding: 15px 18px; }
    .kpss-shell .kpss-years strong { font-size: 23px; }
    .kpss-shell .search-modes { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .kpss-shell .search-mode { min-height: 94px; grid-template-columns: 58px minmax(0,1fr) 20px; }
    .kpss-shell .search-mode-icon { width: 58px; height: 58px; }
    .kpss-shell .search-workspace { padding: 26px 20px; }
    .kpss-shell .selection-card h2 { margin-top: 14px; font-size: 28px; }
    .kpss-shell .selection-form { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; padding-top: 22px; }
    .kpss-shell .selection-form #departmentGroup, .kpss-shell #searchButton, .kpss-shell .profile-search-note, .kpss-shell .form-error { grid-column: 1; }
    .kpss-shell .form-group select, .kpss-shell .form-group input { height: 58px; }
    .kpss-shell #searchButton { min-height: 62px; }
    .kpss-shell .selection-footnote { flex-wrap: wrap; gap: 10px 16px; padding: 18px 20px; }
    .kpss-shell .selection-footnote span:last-child { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
    .kpss-shell .kpss-nav { padding-right: 14px; padding-left: 14px; }
}
