/* Faculty pages: same George Fox-compatible system as PsychLab.
   Navy at full strength for the masthead, slate blue tints for surfaces, sun gold only as a marker. */
:root {
  --navy: #001b4d; --slate: #70abc2; --gold: #fdb913;
  --bg: #f3f6f8; --surface: #ffffff; --ink: #0f1b33; --muted: #4b586b; --rule: #d5dfe6;
  --tint: #e2eef3; --accent: #001b4d; --accent-ink: #ffffff; --link: #1d4f91;
  --bar: #7aa3b8; --bar-now: #001b4d;
  --avatar-bg: #001b4d; --avatar-ink: #ffffff;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071027; --surface: #0e1a36; --ink: #e9eef5; --muted: #a3b1c4; --rule: #22304f;
    --tint: #15284a; --accent: #8cc1d6; --accent-ink: #001b4d; --link: #9cc8ff; --bar: #4f7891; --bar-now: #8cc1d6;
    --avatar-bg: #8cc1d6; --avatar-ink: #001b4d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071027; --surface: #0e1a36; --ink: #e9eef5; --muted: #a3b1c4; --rule: #22304f;
  --tint: #15284a; --accent: #8cc1d6; --accent-ink: #001b4d; --link: #9cc8ff; --bar: #4f7891; --bar-now: #8cc1d6;
  --avatar-bg: #8cc1d6; --avatar-ink: #001b4d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--font-display); margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
.label { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Masthead: identical to PsychLab's so switching tabs never changes the frame. Keep in sync with psychlab.html. */
.mast { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 20px 0; }
.mast .brand h1 { font: 700 36px/1 var(--font-display); margin: 0; letter-spacing: 0.005em; text-transform: uppercase; }
.mast .brand h1 a { color: #fff; text-decoration: none; }
.mast .brand h1 .s1 { color: var(--slate); }
.mast .brand h1 .s2 { color: var(--gold); }
.mast .brand p { margin: 6px 0 14px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; }
.mast .brand .kicker { display: block; font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.mast nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mast nav.tabs a { font: 600 15px var(--font-body); color: rgba(255,255,255,.75); text-decoration: none; padding: 10px 14px; border-bottom: 3px solid transparent; line-height: normal; }
.mast nav.tabs a:hover { color: #fff; }
.mast nav.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.mast :focus-visible { outline-color: var(--gold); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--link); }

main.wrap { display: grid; gap: 24px; padding-block: 24px 24px; }

/* index */
.intro { display: grid; gap: 12px; max-width: 68ch; }
.intro h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 700; text-transform: uppercase; }
.intro p { color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.card:hover { border-color: var(--accent); }
.card > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.card h2 { font-size: 26px; font-weight: 700; }
.card .role { font-size: 14px; color: var(--muted); }
.mini { font: 400 13px/1.7 var(--font-mono); text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini b { color: var(--ink); font-weight: 600; }

/* avatar: initials until a photo is approved */
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--avatar-bg); color: var(--avatar-ink); font: 700 28px/1 var(--font-display); letter-spacing: .02em; object-fit: cover; box-shadow: inset 0 -4px 0 var(--gold); }
img.avatar { box-shadow: none; border: 3px solid var(--surface); outline: 1px solid var(--rule); }
.avatar.big { width: 144px; height: 144px; font-size: 56px; box-shadow: inset 0 -7px 0 var(--gold); }

/* profile */
.hero { display: grid; grid-template-columns: 144px 1fr; gap: 32px; align-items: start; }
.who { display: grid; gap: 10px; min-width: 0; }
.who h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; text-transform: uppercase; }
.role { font-weight: 600; color: var(--muted); }
.blurb { font-size: 18px; max-width: 62ch; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.tags.big li { font-size: 14px; font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn { font: 600 14px/1 var(--font-body); padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.stats div { display: grid; gap: 4px; padding: 18px 20px; border-left: 1px solid var(--rule); }
.stats div:first-child { border-left: 0; }
.stats b { font: 700 36px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 8px 8px 0; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 24px; display: grid; gap: 14px; min-width: 0; }
.ph { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.panel h2 { font-size: 26px; font-weight: 700; text-transform: uppercase; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .tick { font: 400 11px var(--font-mono); fill: var(--muted); }
.chart .bar { fill: var(--bar); }
.chart .bar.now { fill: var(--bar-now); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
ol.works { list-style: none; margin: 0; padding: 0; display: grid; }
ol.works li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); justify-items: start; }
ol.works li:first-child { border-top: 0; padding-top: 0; }
.wt { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.wt:hover { text-decoration: underline; }
.wm { font-size: 13px; color: var(--muted); }
.wm b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.oa { color: #1f7a4c; font-weight: 600; }
button.copy { font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--rule); background: none; color: var(--link); cursor: pointer; }
button.copy:hover { border-color: var(--accent); }

footer.wrap { padding-block: 24px 48px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 24px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .avatar.big { width: 112px; height: 112px; font-size: 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cols { grid-template-columns: 1fr; }
  .card { grid-template-columns: 56px 1fr; }
  .card .avatar { width: 56px; height: 56px; font-size: 22px; }
  .card { grid-template-columns: 56px 1fr; align-items: start; }
  .card .mini { grid-column: 2; text-align: left; white-space: normal; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oa { color: #6fd39f; } }
:root[data-theme="dark"] .oa { color: #6fd39f; }

.mast .deptlink { font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 6px 10px; border-radius: 6px; }
.mast .deptlink:hover { border-color: var(--gold); }
.live { font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.deptbox { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 12px; }
.deptbox > div:first-child { display: grid; gap: 6px; max-width: 52ch; }
.deptbox p { color: var(--muted); }
.panel.empty p { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #001b4d; font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.studentlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; padding-block: 8px 20px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.studentlinks div { display: grid; gap: 8px; align-content: start; }
.studentlinks .fl { font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.studentlinks a { color: var(--ink); text-decoration: none; font-size: 15px; }
.studentlinks a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 700px) {
  nav.tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 12px; -webkit-overflow-scrolling: touch; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  nav.tabs > * { white-space: nowrap; flex: none; }
}
.panel.book .bt { font-size: 20px; font-weight: 600; }
.fun { font-size: 16px; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 16%, transparent); border-left: 3px solid var(--gold); max-width: 62ch; }
.fun .label { color: var(--ink); margin-right: 6px; }
.who .spec { font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin: 0; }
