/* Design preview: shared palette and compact navigation */
:root{--category-research:#16766d;--category-teaching:#7959ad;--category-writing:#98651c;--category-achievement:#43845b;--category-professional:#2863a7}
html[data-theme=dark]{--category-research:#8cddd0;--category-teaching:#c6a9f4;--category-writing:#edc283;--category-achievement:#98d4a6;--category-professional:#9ac4ff}
.preview-pillars{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.preview-pillars .pillar{--pillar-tone:var(--category-research);padding:14px;align-items:center;gap:10px;border-top:3px solid var(--pillar-tone)}
.preview-pillars .pillar-teaching{--pillar-tone:var(--category-teaching)}.preview-pillars .pillar-writing{--pillar-tone:var(--category-writing)}.preview-pillars .pillar-achievements{--pillar-tone:var(--category-achievement)}
.preview-pillars .pillar span,.preview-pillars .pillar b{color:var(--pillar-tone)}.preview-pillars .pillar:hover{border-color:var(--pillar-tone)}
.preview-pillars .pillar img{width:49px;height:49px;object-fit:cover;flex-shrink:0}
.preview-pillars .pillar strong{font-size:.85rem;line-height:1.35;margin:3px 0}
.preview-pillars .pillar small{font-size:.71rem}
.homepage-news .stack{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:4px 16px;box-shadow:var(--shadow)}
.home-news-row{--news-tone:var(--category-professional);display:grid;grid-template-columns:66px 34px minmax(0,1fr) 16px;gap:12px;align-items:start;padding:15px 0;border-bottom:1px solid var(--line)}
.home-news-row:last-child{border:0}.news-publication{--news-tone:var(--category-research)}.news-academic-service{--news-tone:var(--category-teaching)}.news-article{--news-tone:var(--category-writing)}.news-award,.news-recognition,.news-certification{--news-tone:var(--category-achievement)}
.home-news-row time{font-size:.75rem;font-weight:650;color:var(--muted);padding-top:7px;white-space:nowrap}.news-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:var(--news-tone);background:var(--surface2)}
.home-news-row h3{font-size:.91rem;line-height:1.45;overflow-wrap:anywhere}.home-news-row h3 a{color:var(--ink)}.home-news-row h3 a:hover{color:var(--news-tone)}.news-type{color:var(--news-tone);font-size:.72rem;font-weight:650}.home-news-row p{font-size:.77rem;color:var(--muted);line-height:1.4}.news-row-link{font-size:1.3rem;color:var(--muted)}
.about-section-nav{max-width:1120px;margin:0 auto 25px;justify-content:center}
.page-head{border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:22px}.page-head h1{font-size:clamp(1.9rem,3.4vw,2.75rem)}
.view-switch{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;flex-shrink:0}.view-switch button{background:var(--surface);border:0;color:var(--muted);padding:7px 11px;font-size:.8rem;font-weight:650}.view-switch button[aria-pressed=true]{background:var(--accent2);color:var(--accent)}.article-grid.is-list{grid-template-columns:minmax(0,1fr)}
.global-search-dialog{width:min(680px,calc(100% - 24px));max-height:min(78vh,700px);margin:min(12vh,100px) auto auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0004;overflow:auto}
.global-search-dialog::backdrop{background:#101b2688;backdrop-filter:blur(3px)}.global-search-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.global-search-head h2{font-size:1.2rem}.global-search-label{display:block;color:var(--muted);font-size:.78rem;margin-bottom:6px}.global-search-dialog input{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:9px;padding:11px 13px;font-size:1rem}.global-search-status,.global-search-hint{color:var(--muted);font-size:.76rem;margin:9px 0}.global-search-results{display:grid;gap:2px}.global-search-result{display:grid;grid-template-columns:1fr 20px;gap:4px 10px;align-items:center;padding:10px 12px;color:var(--ink);border-radius:8px;border:1px solid transparent;font-size:.9rem;line-height:1.4}.global-search-result small{grid-column:1;color:var(--muted);font-size:.74rem}.global-search-result span:last-child{grid-column:2;grid-row:1/3;color:var(--accent)}.global-search-result.is-active,.global-search-result:hover{background:var(--surface2);border-color:var(--line);text-decoration:none}.global-search-group{margin-top:10px;padding:3px 12px;color:var(--accent);font-size:.68rem;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.global-search-hint{border-top:1px solid var(--line);padding-top:10px}
.back-to-top{position:fixed;bottom:20px;right:20px;z-index:9;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--accent);box-shadow:var(--shadow);font-weight:700}.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:20;pointer-events:none}.reading-progress span{display:block;background:var(--accent);width:0;height:100%}.related-reading{margin-top:24px;border-top:1px solid var(--line)}.related-reading li{margin-bottom:8px}.related-reading small{display:block;color:var(--muted)}
@media(max-width:1100px){.preview-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.preview-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preview-pillars .pillar{display:grid;grid-template-columns:36px 1fr;padding:10px;gap:7px}.preview-pillars .pillar img{width:36px;height:36px}.preview-pillars .pillar b,.preview-pillars .pillar small{display:none}.preview-pillars .pillar span{font-size:.63rem}.preview-pillars .pillar strong{font-size:.75rem}.homepage-news .stack{padding:2px 10px}.home-news-row{grid-template-columns:47px 27px minmax(0,1fr) 10px;gap:7px}.home-news-row time{font-size:.67rem;white-space:normal}.news-symbol{width:27px;height:27px}.news-symbol svg{width:16px;height:16px}.about-section-nav{justify-content:flex-start}.about-section-nav a{font-size:.78rem;padding:6px 9px}}
@media(max-width:360px){.preview-pillars{grid-template-columns:1fr}.view-switch button{padding:6px 8px}}
/* Final design: service filter icons and shared research display modes. */
.service-count-line{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--category-professional)}
.service-count-line svg{flex-shrink:0}
.service-overview [data-service-group="journal"] .service-count-line{color:var(--category-research)}
.service-overview [data-service-group="committee"] .service-count-line{color:var(--category-teaching)}
.service-overview [data-service-group="conference"] .service-count-line{color:var(--category-writing)}
.service-overview [data-service-group="other"] .service-count-line{color:var(--category-achievement)}
.service-count-line strong{color:inherit}
.research-view-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}
.research-view.is-grid:not(.service-list),.research-view.is-grid .service-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.research-view.is-grid .service-group-title{grid-column:1/-1}
.research-view.is-grid .entry{min-width:0;height:100%}
.awards-grid .entry{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;min-width:0}
.awards-grid .entry-photo{display:flex;align-items:center;justify-content:center;width:100%;height:170px;flex:0 0 170px;background:#fff;padding:12px;border-bottom:1px solid var(--line)}
.awards-grid .entry-photo img{width:100%;height:145px;max-width:100%;object-fit:contain;border:0;border-radius:0;background:#fff}
.awards-grid .entry-body{padding:16px;display:flex;flex-direction:column;align-items:flex-start}
.awards-grid .entry-actions{margin-top:9px}
@media(max-width:760px){.research-view.is-grid:not(.service-list),.research-view.is-grid .service-group{grid-template-columns:1fr}.awards-grid .entry-photo{height:145px;flex-basis:145px}.awards-grid .entry-photo img{height:120px}.awards-grid .entry-body{padding:13px}}
@media(max-width:440px){.service-count-line{gap:5px}.service-count-line svg{width:16px;height:16px}}

/* Service role badges use the same category palette as the filter icons. */
#academic-service .kind-journal-review{--service-tone:var(--category-research)}
#academic-service .kind-tpc-member{--service-tone:var(--category-teaching)}
#academic-service .kind-conference-review{--service-tone:var(--category-writing)}
#academic-service :is(.kind-journal-review,.kind-tpc-member,.kind-conference-review){color:var(--service-tone);background:color-mix(in srgb,var(--service-tone) 13%,var(--surface));}
