/* Shared layouts for research, academic profile, project directory and account pages */

/* Research direction */
.research-prose{max-width:820px}
.research-prose p{font-size:15px;line-height:1.82;color:#465349;margin:0 0 17px}
.research-caveat{display:flex;align-items:flex-start;gap:16px;margin-top:22px;padding:16px 18px;background:#e9ece5;border:1px solid #dce1d8}
.research-caveat strong{flex:none;color:var(--blue);font:9px/1.6 var(--mono);letter-spacing:.06em}
.research-caveat span{font-size:13px;line-height:1.7;color:#49564b}
.focus-list{border-top:1px solid var(--line)}
.focus-list article{display:grid;grid-template-columns:155px minmax(0,1fr);gap:22px;padding:21px 0;border-bottom:1px solid var(--line)}
.focus-list small,.cv-entry-list small{font:9px/1.55 var(--mono);letter-spacing:.06em;color:var(--blue)}
.focus-list h3{font-size:19px;margin:0 0 8px}
.focus-list p{font-size:14px;line-height:1.78;color:#465349;margin:0}
.focus-tags{display:block;margin-top:10px;color:#677469;font:9px/1.6 var(--mono);letter-spacing:.035em}
.question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.question-grid article{min-width:0;padding:19px;background:#e9ece5;border:1px solid #dce1d8}
.question-grid span{color:var(--blue);font:9px/1.5 var(--mono);letter-spacing:.06em}
.question-grid p{margin:10px 0 0;color:#3d4a40;font-size:14px;line-height:1.72}
.method-steps{border-top:1px solid var(--line)}
.method-steps article{display:grid;grid-template-columns:40px minmax(0,1fr);gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}
.method-steps article>b{width:32px;height:32px;display:grid;place-items:center;background:var(--ink);color:var(--lime);font:10px var(--mono)}
.method-steps h3{font-size:17px;margin:0 0 6px}
.method-steps p{margin:0;color:#465349;font-size:14px;line-height:1.75}
.research-work{padding:65px 0 80px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px;border-top:1px solid var(--line)}
.research-work-head h2{font-size:clamp(2rem,4vw,3.2rem)}
.research-work-head>p:last-child{max-width:420px;font-size:14px;line-height:1.75;color:#465349}
.research-links{border-top:1px solid var(--line)}
.research-links a{display:flex;flex-direction:column;gap:6px;padding:15px 0;border-bottom:1px solid var(--line)}
.research-links span{color:var(--blue);font:9px/1.5 var(--mono);letter-spacing:.06em}
.research-links b{font-size:15px;line-height:1.45}
.research-links i{font-style:normal;font-size:12px;line-height:1.5;color:#566357}

/* Project directory: its HTML content is intentionally unchanged */
.project-hero{padding-bottom:36px}
.portfolio-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:800px;margin-top:34px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.portfolio-stats div{min-width:0;padding:14px 12px 14px 0;display:flex;flex-direction:column;gap:4px}
.portfolio-stats strong{font-size:28px;line-height:1.2;letter-spacing:-.035em}
.portfolio-stats span{font:9px/1.5 var(--mono);letter-spacing:.045em;color:#59675c}
.project-directory{padding-top:54px;padding-bottom:80px}
.directory-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:30px}
.directory-heading p{max-width:500px;margin:0;color:#465349;font-size:14px;line-height:1.75}
.project-filters{position:sticky;top:0;z-index:4;display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;background:var(--paper);border-bottom:1px solid var(--line)}
.project-filters button,.filters button{border:1px solid #cbd2c8;background:transparent;color:#435046;padding:9px 11px;font:10px/1.4 var(--mono);letter-spacing:.025em;cursor:pointer}
.project-filters button:hover,.project-filters button.active,.filters button:hover,.filters button.active{background:var(--ink);color:white;border-color:var(--ink)}
.project-filters button span,.filters button span{color:var(--lime);margin-left:4px}
.portfolio-category{scroll-margin-top:85px}
.project-group-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:32px 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line);color:#5b685d;font:9px/1.5 var(--mono);letter-spacing:.07em}
.project-group-head span:first-child{color:var(--blue)}
.projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project{min-width:0;min-height:0;padding:21px 22px;background:var(--surface);border:1px solid #dfe4db;display:flex;flex-direction:column;transition:border-color .18s ease,transform .18s ease}
.project:hover{transform:translateY(-2px);border-color:#9eafa0}
.project[hidden]{display:none}
.project-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#5f6d61;font-size:9px;line-height:1.5}
.project h3{font-size:21px;line-height:1.28;letter-spacing:-.025em;margin:18px 0 8px}
.project p{font-size:14px;line-height:1.72;color:#435046;margin:0 0 14px}
.tags{font-size:9px;line-height:1.6;color:#637064;margin-top:auto}
.project>a{align-self:flex-start;margin-top:13px;color:var(--blue);font-size:13px;font-weight:650;line-height:1.5}
.project>a.secondary{margin-top:7px;color:#516056;font-weight:500}
.project-status{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;background:#e7ece4;color:#425548;font:9px/1.4 var(--mono);letter-spacing:.03em;white-space:normal}
.project-status.private{background:#eeebe3;color:#74664f}
.project-status.candidate{background:#f1e8d8;color:#84612c}
.private-project{background:#f8f6ef}
.private-project .project-top>span:first-child{color:#746c5b}
.project-note{margin-top:11px;padding-top:9px;border-top:1px solid #e4e7df;color:#726c5f;font-size:11px;line-height:1.6}
.more{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:26px;padding-top:15px;border-top:1px solid var(--line);color:#667267;font:10px/1.55 var(--mono)}
.more a{color:var(--blue);font:650 13px/1.5 var(--sans)}
.reference-project{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:35px;padding:22px 24px;background:#e8ebe4;border:1px solid #dce1d8}
.reference-project small{color:#526156;font:9px/1.5 var(--mono);letter-spacing:.06em}
.reference-project h3{font-size:19px;margin:8px 0 5px}
.reference-project p{max-width:740px;margin:0;color:#465349;font-size:14px;line-height:1.72}
.reference-project>a{flex:none;color:var(--blue);font-size:13px;font-weight:650;line-height:1.5;white-space:normal}
.project[hidden]{display:none!important}

/* Academic profile */
.profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.profile-heading>div{min-width:0;max-width:760px}
.profile-heading h2{margin-bottom:12px}
.profile-heading .page-lede{margin-bottom:0}
.print-trigger{flex:none;white-space:normal;text-align:center}
.profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;margin-top:25px;border-top:1px solid var(--line)}
.profile-facts article{min-width:0;padding:15px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.profile-facts small,.profile-print-note small{color:var(--blue);font:9px/1.5 var(--mono);letter-spacing:.06em}
.profile-facts strong{font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.profile-facts a{color:var(--blue)}
.status-list{border-top:1px solid var(--line)}
.status-list article{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}
.status-list span{font-size:15px;color:#344238}
.status-list strong{flex:none;color:#5d6a60;font-size:14px;font-weight:600}
.profile-print-note{margin:0 auto 70px;padding:16px 18px;background:#e9ece5;border:1px solid #dce1d8}
.profile-print-note p{margin:6px 0 0;font-size:13px;line-height:1.7;color:#4b584e}

/* Empty states and contact profiles */
.record-content{min-width:0}
.record-content h2{font-size:clamp(1.8rem,3.4vw,2.6rem);margin-bottom:18px}
.status-card{padding:17px 19px;background:#e9ece5;border:1px solid #dce1d8}
.status-card strong{color:#405044;font-size:15px;line-height:1.55;font-weight:600}
.contact-profile{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;background:var(--surface);border:1px solid #dce1d8}
.contact-profile>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.contact-profile small{color:var(--blue);font:9px/1.5 var(--mono);letter-spacing:.06em}
.contact-profile strong{font-size:15px;overflow-wrap:anywhere}
.contact-profile .button{flex:none}
.profile-print-note{font-size:13px}
@media(max-width:850px){
  .focus-list article{grid-template-columns:125px minmax(0,1fr);gap:17px}
  .research-work{grid-template-columns:minmax(0,1fr);gap:18px}
  .directory-heading{flex-direction:column;gap:12px}
  .reference-project{align-items:flex-start;flex-direction:column}
}
@media(max-width:680px){
  .focus-list article{grid-template-columns:minmax(0,1fr);gap:8px;padding:17px 0}
  .question-grid{grid-template-columns:minmax(0,1fr)}
  .research-work{padding:48px 0 58px}
  .portfolio-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:25px}
  .portfolio-stats strong{font-size:24px}
  .project-directory{padding-top:38px}
  .project-filters{position:relative;gap:6px}
  .project-filters button{font-size:9px;padding:8px}
  .projects{grid-template-columns:minmax(0,1fr)}
  .project{padding:18px}
  .project h3{font-size:20px}
  .reference-project{padding:18px}
  .profile-heading{flex-direction:column}
  .profile-facts{grid-template-columns:minmax(0,1fr)}
  .status-list article{align-items:flex-start;flex-direction:column;gap:5px}
  .contact-profile{align-items:flex-start;flex-direction:column;padding:17px}
}
@media print{
  .profile-print-note{margin-bottom:0}
  .profile-section{padding:14pt 0}
  .status-card,.profile-print-note{background:#fff;border:1px solid #aaa}
}

/* Technical toolkit page */
.toolkit-section{align-items:start}
.toolkit-section-content{min-width:0}
.toolkit-section-content>h2{margin-bottom:20px}
.toolkit-intro{max-width:760px;margin:0 0 20px;color:#465349;font-size:15px;line-height:1.75}
.tech-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.tech-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.tech-card{min-width:0;min-height:116px;padding:15px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;background:#fffefa;border:1px solid #dce1d8}
.tech-icon{width:48px;height:48px;display:grid;place-items:center}
.tech-icon img{display:block;width:42px;height:42px;object-fit:contain}
.tech-icon.text-icon{width:48px;height:48px;background:#e8ece5;color:#26352a;font:700 13px/1 var(--mono);letter-spacing:-.04em;border:1px solid #d6ddd4}
.tech-card strong{font-size:13px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.toolkit-subheading{margin:38px 0 18px;padding-top:25px;border-top:1px solid var(--line)}
.toolkit-subheading h3{font-size:23px;margin:0 0 6px}
.toolkit-subheading p{margin:0;color:#58665a;font-size:14px;line-height:1.7}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.library-card{min-width:0;display:flex;flex-direction:column;background:#fffefa;border:1px solid #dce1d8;overflow:hidden;transition:transform .18s ease,border-color .18s ease}
.library-card:hover{transform:translateY(-2px);border-color:#a6b4a5}
.library-card>img,.library-art{display:block;width:100%;height:148px;object-fit:cover;object-position:center;background:#202a24;border-bottom:1px solid #dce1d8}
.library-art{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 26px;background:linear-gradient(135deg,#1c2922,#314239);color:#eaf0e7}
.library-art span{font-size:52px;font-weight:800;letter-spacing:-.07em;color:#b8e477}
.library-art small{font:9px/1.6 var(--mono);letter-spacing:.08em;text-align:right}
.library-card-content{padding:16px 17px 17px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.library-card-content>span{color:var(--blue);font:9px/1.5 var(--mono);letter-spacing:.055em}
.library-card-content h4{margin:9px 0 7px;font-size:17px;line-height:1.3;letter-spacing:-.02em}
.library-card-content p{flex:1;margin:0 0 13px;color:#465349;font-size:13px;line-height:1.7}
.library-card-content small{color:#4e5d51;font-size:11px;line-height:1.55;font-weight:650}
.home-toolkit-list{border-top:1px solid var(--line)}
.home-toolkit-list article{padding:13px 0;border-bottom:1px solid var(--line)}
.home-toolkit-list small{font:9px/1.5 var(--mono);letter-spacing:.06em;color:var(--blue)}
.home-toolkit-list p{margin:6px 0 0;color:#2d3b31;font-size:14px;line-height:1.7;font-weight:550}
@media(max-width:900px){
 .tech-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
 .tech-grid,.tech-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tech-card{min-height:108px}
 .library-grid{grid-template-columns:minmax(0,1fr)}
 .library-card>img,.library-art{height:160px}
 .toolkit-subheading{margin-top:29px}
 .home-toolkit-list p{font-size:13px;line-height:1.65}
}
