/* V4: a white academic page with palette color confined to local accents. */
:root {
  --navy: #25313b; --ink: #2d3742; --muted: #586571;
  --heading: #25313b; --line: #e3e7eb; --paper: #fff;
  --header: #fff; --header-ink: #25313b; --header-muted: #586571;
  --note-ink: #586571; --figure-paper: #fff;
}
/* Ocean: production default; select with homepage_theme: tidal. */
:root, :root[data-theme="tidal"] {
  --blue: #005f73; --teal: #005f73; --accent: #0a9396;
  --secondary: #ca6702; --secondary-ink: #7b480d; --soft-accent: #94d2bd;
  --tint: #edf7f3; --tag: #edf7f3; --secondary-tint: #faf5e7;
  --nav-line: #0a9396;
}
/* Summer: preserved alternative; select with homepage_theme: coastal. */
:root[data-theme="coastal"] {
  --blue: #00667f; --teal: #00667f; --accent: #00afb9;
  --secondary: #f07167; --secondary-ink: #93423d; --soft-accent: #fed9b7;
  --tint: #edf8fa; --tag: #edf8fa; --secondary-tint: #fff3eb;
  --nav-line: #00afb9;
}
/* Meadow: preserved alternative; select with homepage_theme: forest. */
:root[data-theme="forest"] {
  --blue: #1e6091; --teal: #1e6091; --accent: #168aad;
  --secondary: #52b69a; --secondary-ink: #356953; --soft-accent: #b5e48c;
  --tint: #edf5fa; --tag: #edf5fa; --secondary-tint: #f1f7e9;
  --nav-line: #168aad;
}
/* Earth: preserved alternative; select with homepage_theme: earth. */
:root[data-theme="earth"] {
  --blue: #6c584c; --teal: #6c584c; --accent: #a98467;
  --secondary: #adc178; --secondary-ink: #5c633c; --soft-accent: #dde5b6;
  --tint: #f6f2ed; --tag: #f6f2ed; --secondary-tint: #f1f4e7;
  --nav-line: #a98467;
}
body { background: #fff; }
::selection { background: var(--tint); color: var(--ink); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-name, .site-name:hover { color: var(--heading); }
.site-name span, nav a { color: var(--muted); }
.site-name span { border-left-color: #d4dbe1; }
nav a:hover, nav a[aria-current="location"] { color: var(--blue); }
nav a[aria-current="location"]::after { background: var(--nav-line); }
h1, h2, .institution { color: var(--heading); }
h2 { position: relative; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
h2::before { display: none; }
h2::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 64px; height: 2px; background: linear-gradient(90deg, var(--section-accent, var(--accent)) 0%, var(--section-accent, var(--accent)) 72%, transparent 100%); }
.news-section { --section-accent: var(--secondary); }
.education-section { --section-accent: var(--soft-accent); }
.experience-section { --section-accent: var(--secondary); }
.news-section, .research-section, .contact-section { border-top: 0; padding-top: 0; margin-top: 32px; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-heading h2 { flex: 1; border: 0; padding-bottom: 0; }
.section-heading h2::after { bottom: -11px; }
.portrait { border-bottom: 1px solid var(--line); }
.about-section .collaboration-note { background: transparent; color: var(--muted); border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
.research-topics { gap: 7px; }
.research-topics li { padding: 3px 8px; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--tint); border-radius: 3px; }
.research-topics li::before { background: var(--accent); width: 4px; height: 4px; }
.research-topics li:nth-child(even) { background: var(--secondary-tint); }
.research-topics li:nth-child(even)::before { background: var(--secondary); }
.publication-year { background: var(--tag); border-radius: 2px; }
.publication-venue { color: var(--secondary-ink); }
.resource-links { gap: 6px 8px; }
.resource-links a { min-height: 30px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.resource-links a:first-child { background: var(--tint); border-color: transparent; }
.resource-links a:hover { background: var(--tint); text-decoration: none; }
.publication-visual { border-color: var(--line); }
.publication-visual svg { display: block; width: 100%; height: auto; }
.publication + .publication { margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line); }
.publication-text-only { display: block; }
.author-details { margin-top: 3px; color: var(--muted); font-size: 12px; }
.author-details summary { display: list-item; width: fit-content; cursor: pointer; color: var(--teal); padding: 4px 0; }
.author-details p { margin-top: 5px; line-height: 1.8; }
.author-details strong { color: var(--navy); }
.career-section { margin-top: 32px; padding-top: 0; border-top: 0; }
.career-list { display: grid; gap: 17px; }
.career-item { display: grid; grid-template-columns: 133px minmax(0, 1fr); gap: 17px; }
.career-dates { align-self: start; justify-self: start; color: var(--blue); background: var(--tint); font-size: 12px; font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 2px; }
.career-copy h3 { color: var(--navy); font-size: 14px; line-height: 1.6; font-weight: 600; letter-spacing: 0; }
.career-role { color: var(--ink); font-size: 13px; }
.career-meta, .career-type { color: var(--muted); font-size: 12px; }
.experience-section .career-type { display: inline-block; color: var(--secondary-ink); background: var(--secondary-tint); padding: 0 5px; border-radius: 2px; }
.section-source { color: var(--muted); font-size: 11px; margin-top: 16px; }
.theme-preview { background: #fafbfc; border-bottom: 1px solid #e1e4e7; font-family: var(--sans); }
.theme-preview-inner { width: min(1136px, calc(100% - 80px)); margin-inline: auto; display: flex; align-items: center; gap: 15px; padding: 9px 0; }
.theme-preview-label { font-size: 11px; color: #52606d; white-space: nowrap; }
.theme-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.theme-choices button { display: inline-flex; align-items: center; gap: 7px; font: 11px/1.2 var(--sans); cursor: pointer; color: #344251; background: #fff; border: 1px solid #cdd4db; border-radius: 3px; padding: 7px 9px; min-height: 31px; }
.theme-choices button[aria-pressed="true"] { border-color: #344251; box-shadow: inset 0 -2px #344251; font-weight: 600; }
.theme-choices button:hover { background: #e9edf0; }
.theme-choices button:focus-visible { outline: 2px solid #344251; outline-offset: 2px; }
.theme-swatches { display: flex; gap: 2px; }
.theme-swatches i { width: 7px; height: 12px; display: block; border-radius: 1px; }
.swatches-tidal i:nth-child(1) { background: #005f73; }.swatches-tidal i:nth-child(2) { background: #94d2bd; }.swatches-tidal i:nth-child(3) { background: #e9d8a6; }
.swatches-coastal i:nth-child(1) { background: #0081a7; }.swatches-coastal i:nth-child(2) { background: #00afb9; }.swatches-coastal i:nth-child(3) { background: #f07167; }
.swatches-forest i:nth-child(1) { background: #184e77; }.swatches-forest i:nth-child(2) { background: #34a0a4; }.swatches-forest i:nth-child(3) { background: #d9ed92; }
.swatches-earth i:nth-child(1) { background: #6c584c; }.swatches-earth i:nth-child(2) { background: #a98467; }.swatches-earth i:nth-child(3) { background: #dde5b6; }
.theme-clean-view { margin-left: auto; color: #344251; font-size: 11px; white-space: nowrap; }
.theme-preview noscript p { padding: 0 20px 8px; text-align: center; color: #344251; font-size: 11px; }
[data-preview="off"] .theme-preview { display: none; }
@media (max-width: 1100px) { .theme-preview-inner { width: calc(100% - 64px); } }
@media (max-width: 700px) {
  .theme-preview-inner { width: calc(100% - 40px); flex-wrap: wrap; gap: 6px 10px; padding-block: 8px; }
  .theme-preview-label { display: none; }
  .theme-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
  .theme-choices button { justify-content: center; min-height: 32px; }
  .theme-clean-view { font-size: 10px; }
  .career-item { grid-template-columns: 1fr; gap: 5px; }
  .research-topics { display: flex; }
  .research-topics li { font-size: 12px; }
  .resource-links a { min-height: 36px; font-size: 12px; }
  .career-list { gap: 18px; }
  .career-dates { font-size: 11px; }
}
@media (max-width: 360px) { .theme-preview-inner { width: calc(100% - 32px); } }
@media print { .theme-preview { display: none; } }
