/* 東海大學教師履歷 — shared design tokens & chrome.
   Visual source of truth: phonebook/assets/directory.css (東海聯絡簿).
   Blue ink on white paper: navy navbar, paper sidebar, white lists, quiet borders. */
:root {
  --thu-navy: #1a3d6e;
  --navbar-height: 88px;
  --sidebar-width: 264px;
  --ink: #20324b;
  --muted: #617085;
  --line: #e1e7ef;
  --selected: #eaf1fb;
  --paper: #f4f7fb;
  --accent: #315f9b;
}
* { scrollbar-width: thin; scrollbar-color: #bdcada transparent; }

/* ── 最小 reset ──────────────────────────────────────────────────────────
   這幾條原本由 bootstrap.min.css 的 reboot 提供。Bootstrap 的 CSS/JS 在
   browse 頁沒有被使用（實測 0 個 data-bs-*），移除後由這裡接手，數值與
   Bootstrap 5 一致，所以畫面不變。 */
*, *::before, *::after { box-sizing: border-box; }
img, svg { vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
p { margin-top: 0; margin-bottom: 1rem; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; }
button { text-transform: none; cursor: pointer; }
/* Bootstrap 的 reboot 也設了 body line-height: 1.5；少了它，內文行高從 1.5 掉回
   normal，側欄說明文字會短 7px，整個下拉選單跟著上移。 */
body { line-height: 1.5; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #c9dcf5; color: #17355d; }
input, textarea { caret-color: var(--thu-navy); }
a { text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #4276b8 !important; outline-offset: 3px; }
img { max-width: 100%; }
.skip-link {
  position: fixed; top: -70px; left: 20px; z-index: 1100; padding: 12px 20px;
  background: #fff; color: var(--thu-navy); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* 只給螢幕閱讀器／搜尋引擎看的文字（視覺上不佔位） */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Navbar (phonebook: 88px navy bar, boxed brand mark, white search) ── */
.thu-navbar {
  display: flex; align-items: center; gap: 30px; flex-shrink: 0;
  height: var(--navbar-height); padding: 0 30px;
  border: 0; box-shadow: none; background: var(--thu-navy);
}
.thu-navbar .navbar-brand {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  margin: 0; padding: 0; color: #fff; text-decoration: none;
  font-size: 21px; font-weight: 650; letter-spacing: .04em; line-height: 1.25;
}
.thu-navbar .navbar-brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid #6c86a7; border-radius: 10px;
}
.brand-mark .pf-icon { width: 23px; height: 23px; color: #fff; }
.brand-wordmark { display: block; }
.brand-subtitle {
  display: block; margin-top: 3px;
  font-size: 10px; font-weight: 400; letter-spacing: .06em; color: #d0ddee;
}
.thu-navbar .nav-global-search { position: relative; max-width: 510px; margin: 0 auto; flex: 1 1 auto; }
.thu-navbar .nav-global-search > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.thu-navbar .nav-global-search input {
  width: 100%; height: 46px; padding: 0 14px 0 44px;
  background: #fff; color: var(--ink); border: 1px solid transparent; border-radius: 8px;
  font-family: inherit; font-size: 14px;
  transition: box-shadow .18s, border-color .18s;
}
.thu-navbar .nav-global-search input::placeholder { color: var(--muted); opacity: 1; }
.thu-navbar .nav-global-search input:focus {
  outline: none; border-color: #b9d0ef; box-shadow: 0 0 0 4px #ffffff24;
}
.thu-navbar .nav-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.thu-navbar .nav-links a {
  color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none;
  padding: 10px 2px; white-space: nowrap;
}
.thu-navbar .nav-links a:hover { color: #fff; text-decoration: underline; }
.thu-navbar .nav-links .vr { width: 1px; height: 18px; background: rgba(255,255,255,.22); }

/* ── Quiet footer (phone keeps the working area flat; no dark band) ── */
.thu-footer {
  margin-top: 32px; padding: 17px 30px;
  background: #fff; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; line-height: 1.9;
}
.thu-footer a { color: var(--accent); text-decoration: none; }
.thu-footer a:hover { color: var(--thu-navy); text-decoration: underline; }

/* ── Shared controls ── */
.btn { border-radius: 7px; }
.form-control { border-radius: 7px; border-color: #d9e1eb; }
.form-control:focus { border-color: #b9d0ef; box-shadow: 0 0 0 3px rgba(26,61,110,.10); }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--accent) !important; }
.base-empty {
  max-width: 470px; margin: 0 auto; text-align: center;
  color: var(--muted); line-height: 1.95; font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
