@import url('/css/fonts.css');

:root { color-scheme: light; --navy: #111820; --navy-soft: #19232d; --text: #19232d; --muted: #667582; --line: #d8e0e6; --surface: #fff; --canvas: #f3f6f8; --accent: #29a9d8; --accent-dark: #11779d; --success: #197349; --danger: #a32e37; --sidebar-width: 5rem; font-family: Inter, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--text); background: var(--canvas); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: #075d7f; }
:focus-visible { outline: 3px solid #087ca5; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .75rem 1rem; background: #fff; color: var(--text); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.app-header { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; gap: 1rem; height: 4.25rem; padding: 0 1.25rem; color: #eef4f7; background: var(--navy); box-shadow: 0 2px 8px #0002; }
.wordmark { display: flex; align-items: center; gap: .7rem; color: #eef4f7; font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .4rem; color: var(--navy); background: var(--accent); font-weight: 800; }
.wordmark-full { white-space: nowrap; }
.wordmark-short { display: none; }
.header-divider { width: 1px; height: 1.6rem; background: #ffffff3a; }
.header-section { color: #a9b8c2; font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.header-account { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.header-account form { margin: 0; }
.avatar { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--navy); background: #d5e3ea; border-radius: 50%; font-size: .85rem; font-weight: 700; }
.account-name { font-size: .88rem; }
.logout-button, .mobile-menu { border: 0; color: #d9e4ea; background: transparent; cursor: pointer; }
.logout-button { padding: .55rem .7rem; border-radius: .4rem; font-weight: 650; }
.logout-button:hover { background: #ffffff12; }
.mobile-menu { display: none; font-size: 1.25rem; }
.sidebar { position: fixed; z-index: 4; inset: 4.25rem auto 0 0; width: var(--sidebar-width); padding: .7rem .25rem; color: #d9e0e6; background: var(--navy-soft); }
.sidebar ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.nav-link { display: flex; min-height: 4.1rem; flex-direction: column; align-items: center; justify-content: center; gap: .28rem; padding: .35rem .2rem; border-radius: .45rem; color: #d9e0e6; opacity: .68; font-size: .61rem; font-weight: 650; text-align: center; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; background: #ffffff0c; opacity: .95; }
.nav-link.active { color: #fff; background: #ffffff12; opacity: 1; }
.nav-symbol { font-size: 1.35rem; line-height: 1; }
#content { min-height: 100vh; margin-left: var(--sidebar-width); padding: 6.25rem 2rem 2.5rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
h1 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.05rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.05rem; }
.page-heading p, .muted { margin: .4rem 0 0; color: var(--muted); line-height: 1.5; }
.card { border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: 0 2px 8px #0e243011; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid #e7ecef; text-align: left; vertical-align: middle; }
th { color: #52616d; font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.course-title-button { padding: 0; border: 0; color: var(--accent-dark); background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.course-id { display: block; margin-top: .2rem; color: #6b7882; font-size: .77rem; font-weight: 500; }
.category-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { display: inline-block; padding: .23rem .46rem; border-radius: 999px; color: #45535d; background: #edf2f5; font-size: .72rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: .35rem; min-width: 9rem; }
.field label, .field-label { color: #51616d; font-size: .74rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.55rem; padding: .55rem .7rem; border: 1px solid #bfcbd3; border-radius: .42rem; color: var(--text); background: #fff; font: inherit; }
.field input[type="search"] { min-width: min(18rem, 72vw); }
.field textarea { min-height: 5rem; resize: vertical; }
.filter-label { position: relative; display: grid; }
.filter-label > span { position: absolute; z-index: 1; left: .65rem; top: -.42rem; padding: 0 .27rem; color: #5c6b76; background: #fff; font-size: .64rem; font-weight: 750; letter-spacing: .08em; }
.filter-label input, .filter-label select { padding-top: .68rem; }
.button { display: inline-flex; min-height: 2.45rem; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .85rem; border: 1px solid transparent; border-radius: .42rem; font: inherit; font-size: .86rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { color: #fff; background: #147fa7; }
.button-primary:hover { color: #fff; background: #0d6688; }
.button-quiet { border-color: #c6d1d8; color: #394954; background: #fff; }
.button-quiet:hover { background: #f0f4f6; }
.button-danger { border-color: #ead0d1; color: #8e2730; background: #fff; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 2rem; color: #53626d; font-size: .8rem; font-weight: 650; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; width: 2.35rem; height: 1.28rem; border-radius: 99px; background: #aab6bd; transition: background .16s ease; }
.switch-track::after { position: absolute; top: .15rem; left: .15rem; width: .98rem; height: .98rem; border-radius: 50%; background: #fff; content: ''; transition: transform .16s ease; }
.switch input:checked + .switch-track { background: #1686ad; }
.switch input:checked + .switch-track::after { transform: translateX(1.07rem); }
.switch input:focus-visible + .switch-track { outline: 3px solid #087ca5; outline-offset: 3px; }
.table-status { min-height: 4rem; padding: 1.25rem; color: var(--muted); text-align: center; }
.directory-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.pagination { display: flex; gap: .35rem; }
.pagination button { min-width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--text); background: #fff; cursor: pointer; }
.pagination button[aria-current="page"] { border-color: #147fa7; color: #fff; background: #147fa7; }
.page-notice, .form-message { margin: .8rem 0; padding: .7rem .8rem; border-radius: .4rem; color: #165a3c; background: #e7f5ee; font-size: .87rem; }
.page-notice.is-error, .form-message.is-error { color: #842d34; background: #f9e9ea; }
.schedule-grid { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.5fr); gap: 1rem; align-items: start; }
.panel-body { padding: 1rem 1.2rem; }
.stack { display: grid; gap: .8rem; }
.list-item { display: flex; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid #e7ecef; }
.list-item:last-child { border-bottom: 0; }
.list-title { font-weight: 700; }
.list-meta { margin-top: .25rem; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.empty-state { padding: 1.4rem; color: var(--muted); text-align: center; }
dialog { width: min(48rem, calc(100vw - 2rem)); max-height: min(85vh, 54rem); padding: 0; overflow: auto; border: 1px solid #cbd5db; border-radius: .75rem; box-shadow: 0 1.5rem 5rem #09131a55; }
dialog::backdrop { background: #0b1720a8; backdrop-filter: blur(2px); }
.dialog-titlebar { position: sticky; z-index: 1; top: 0; display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-body { padding: 1.15rem 1.25rem; }
.dialog-qualification { padding-top: 1.1rem; }
.dialog-close { width: 2rem; height: 2rem; border: 0; border-radius: .3rem; color: #43515c; background: transparent; font-size: 1.4rem; cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail-block { padding: .8rem; border: 1px solid #e1e7eb; border-radius: .45rem; }
.detail-block h3 { margin: 0 0 .4rem; color: #52616d; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.detail-block p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.login-page { min-height: 100vh; color: #edf3f6; background: radial-gradient(ellipse at 15% 10%, #243a4a, var(--navy) 63%); }
.login-brand { display: flex; align-items: center; gap: .7rem; padding: 1.2rem 1.5rem; font-weight: 700; }
.login-main { display: grid; min-height: calc(100vh - 4.5rem); place-items: center; padding: 1rem; }
.login-card { width: min(28rem, 100%); padding: 2rem; border: 1px solid #ffffff20; border-radius: .85rem; background: #ffffff0e; box-shadow: 0 1rem 3rem #0003; }
.login-card h1 { margin-top: .35rem; }
.login-card .muted { margin-bottom: 1.5rem; color: #c1cdd4; }
.eyebrow { color: #72cee9; font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.login-card form { display: grid; gap: .65rem; }
.login-card label { color: #d5e0e6; font-size: .78rem; font-weight: 700; }
.login-card input:not(.honeypot) { min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid #82939e; border-radius: .4rem; color: #fff; background: #101a22; font: inherit; }
.login-card input:not(.honeypot):focus-visible { outline-color: #62c5e5; }
.login-card .button-primary { margin-top: .45rem; }
.login-footer { margin: 1.5rem 0 0; color: #c1cdd4; font-size: .82rem; }
.login-footer a { color: #89d8f1; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.button-row { display: flex; justify-content: flex-end; gap: .65rem; }
.availability-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.availability-form .button { justify-self: start; }
.availability-help { margin: .8rem 0; font-size: .79rem; }
.button-small { min-height: 2rem; padding: .35rem .6rem; font-size: .78rem; }
@media (max-width: 760px) {
    .app-header { gap: .7rem; padding: 0 .8rem; }
    .mobile-menu { display: inline-flex; padding: .4rem; }
    .wordmark-full, .header-divider, .account-name { display: none; }
    .wordmark-short { display: inline; }
    .header-section { font-size: .7rem; }
    .sidebar { transform: translateX(-105%); transition: transform .18s ease; box-shadow: 0 1rem 2rem #09131a33; }
    .sidebar.is-open { transform: translateX(0); }
    #content { margin-left: 0; padding: 5.6rem 1rem 2rem; }
    .schedule-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .filter-row { align-items: stretch; }
    .field { flex: 1 1 9rem; }
    .availability-form { grid-template-columns: 1fr; }
}
