/* Styles for lab.html. Shared styles (menu, icons, progress line) are in assets/css/site.css. */
:root{--theme:#0f6e56;--theme-dk:#0a5240;--wash:#eef6f3;--mut:#828282;--divider:#e8e8e8}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:#000;font-family:"Roboto",-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;font-weight:300;font-size:16px;line-height:1.55}
a{color:var(--theme);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid var(--theme);outline-offset:2px}
.navbar{position:fixed;top:0;left:0;right:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid var(--divider);padding-top:env(safe-area-inset-top,0px)}
.nav-inner{max-width:930px;margin:0 auto;padding:0 15px;height:56px;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:1.25rem;font-weight:300;color:#000}
.brand b{font-weight:700}
.brand:hover{text-decoration:none;color:#000}
.nav-links{display:flex;gap:2px}
.nav-links a{color:#000;padding:8px 9px;font-size:15px;font-weight:400}
.nav-links a:hover{color:var(--theme);text-decoration:none}
.nav-links a.active{color:var(--theme);font-weight:500}
.container{max-width:930px;margin:0 auto;padding:calc(88px + env(safe-area-inset-top,0px)) 15px 40px}
.post-title{font-size:2.6rem;font-weight:300;margin:0 0 .4rem;line-height:1.2}
.post-description{color:#444;font-size:1.04rem;margin:0;max-width:44em;line-height:1.65}
.sig{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #111;border-bottom:1px solid var(--divider);margin:1.6rem 0 0}
.sig div{padding:12px 14px 10px}
.sig div+div{border-left:1px solid var(--divider)}
.sig b{display:block;font-size:1.6rem;font-weight:300;color:var(--theme-dk);line-height:1.15}
.sig span{font-size:.8rem;color:var(--mut)}
ul.hon{list-style:none;margin:.6rem 0 0;padding:0}
ul.hon li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px;padding:9px 0;border-bottom:1px solid #f3f3f3}
ul.hon li:last-child{border-bottom:0}
ul.hon .y{font-size:.88rem;color:var(--mut);padding-top:1px}
ul.hon b{display:block;font-weight:500;font-size:.96rem;color:#111}
ul.hon div span{display:block;font-size:.85rem;color:#555}
.life{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;margin-top:.8rem}
.life figure{margin:0}
.life img,.ph-img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px}
.ph-img{background:#f1f2f1}
.life .zoom{all:unset;cursor:zoom-in;display:block}
.life .zoom:focus-visible{outline:2px solid var(--theme);outline-offset:3px}
.life figcaption{margin-top:7px;font-size:.8rem;color:var(--mut);letter-spacing:.01em}
dialog.lb{border:0;padding:0;background:transparent;max-width:92vw}
dialog.lb::backdrop{background:rgba(20,22,24,.86)}
dialog.lb img{display:block;max-width:92vw;max-height:86vh;border-radius:2px}
ul.intern{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
ul.intern li{padding:8px 0;border-bottom:1px solid #f3f3f3}
ul.intern b{font-weight:500;font-size:.94rem;display:block}
ul.intern span{font-size:.8rem;color:var(--mut)}
.spons{font-size:.95rem;color:#444;line-height:1.7;margin:.4rem 0 0}
.spons b{font-weight:500;color:#111}
.recruit{margin:1.1rem 0 0;padding:10px 14px;background:var(--wash);border-left:3px solid var(--theme);font-size:.95rem;max-width:44em}
h2.sec{font-size:1.5rem;font-weight:300;margin:2.4rem 0 .4rem;padding-top:.9rem;border-top:1px solid var(--divider)}
h2.sec .ct{font-size:.95rem;color:#a6a6a6;font-weight:400;margin-left:6px}
h3.grp{font-size:.78rem;font-weight:500;color:var(--mut);letter-spacing:.05em;text-transform:uppercase;margin:1.4rem 0 .8rem}
.mem{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px}
.m{text-align:center}
.av{display:block;width:104px;height:104px;border-radius:50%;object-fit:cover;margin:0 auto 10px;border:1px solid var(--divider)}
.ph{display:flex;align-items:center;justify-content:center;background:var(--wash);color:var(--theme-dk);font-weight:400}
.av.ph{font-size:1.6rem}
.m b{display:block;font-weight:500;font-size:.98rem;line-height:1.35}
.m b a{color:#111}
.m b a:hover{color:var(--theme)}
.m span{display:block;font-size:.84rem;color:#555}
.m em{display:block;font-style:normal;font-size:.78rem;color:var(--mut);margin-top:2px}
.m em a{color:var(--mut);border-bottom:1px solid #ddd}
.where{margin:.8rem 0 0;font-size:.92rem;color:#333;line-height:1.7}
.where b{display:block;font-size:.78rem;font-weight:500;color:var(--mut);letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px}
ul.al{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
ul.al li{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #f3f3f3}
.sm{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid var(--divider)}
.sm.ph{font-size:.8rem}
ul.al b{display:block;font-weight:500;font-size:.94rem}
ul.al b a{color:#111}
ul.al b a:hover{color:var(--theme)}
ul.al div span{display:block;font-size:.8rem;color:var(--mut);line-height:1.4}
ul.al .aw{color:#a3640e}
ul.al .co a{color:var(--mut);border-bottom:1px solid #ddd}
ul.al div span.now{font-size:.82rem;color:var(--theme-dk);font-weight:400}
footer{border-top:1px solid var(--divider);color:var(--mut);font-size:.8rem;text-align:center;padding:16px 15px calc(16px + env(safe-area-inset-bottom,0px));margin-top:30px}
@media(max-width:760px){
  .sig{grid-template-columns:1fr 1fr}
  .sig div:nth-child(3){border-left:0}
  .sig div:nth-child(n+3){border-top:1px solid var(--divider)}
  .nav-links a:not(.active){display:none}
  .post-title{font-size:2rem}
  .mem{grid-template-columns:repeat(2,minmax(0,1fr))}
  ul.al,ul.intern{grid-template-columns:1fr}
  .life{grid-template-columns:1fr 1fr;gap:16px 12px}
  .av{width:88px;height:88px}
}

/* ===== Dark mode: dark-theme versions of the colors above ===== */
html[data-theme="dark"] {color-scheme:dark}
html[data-theme="dark"] {--theme:#62dabc;--theme-dk:#62dabc;--wash:#1e392f;--mut:#888f96;--divider:#35383b}
html[data-theme="dark"] body {background:#121314;color:#e4e6e7}
html[data-theme="dark"] .navbar {background:rgba(18,19,20,0.97)}
html[data-theme="dark"] .brand {color:#e4e6e7}
html[data-theme="dark"] .brand:hover {color:#e4e6e7}
html[data-theme="dark"] .nav-links a {color:#e4e6e7}
html[data-theme="dark"] .post-description {color:#a9aeb2}
html[data-theme="dark"] .sig {border-top:1px solid #d5d8da}
html[data-theme="dark"] ul.hon li {border-bottom:1px solid #1b1d1f}
html[data-theme="dark"] ul.hon b {color:#d5d8da}
html[data-theme="dark"] ul.hon div span {color:#9aa0a5}
html[data-theme="dark"] .ph-img {background:#26292b}
html[data-theme="dark"] dialog.lb::backdrop {background:rgba(209,211,214,0.86)}
html[data-theme="dark"] ul.intern li {border-bottom:1px solid #1b1d1f}
html[data-theme="dark"] .spons {color:#a9aeb2}
html[data-theme="dark"] .spons b {color:#d5d8da}
html[data-theme="dark"] h2.sec .ct {color:#888f96}
html[data-theme="dark"] .m b a {color:#d5d8da}
html[data-theme="dark"] .m span {color:#9aa0a5}
html[data-theme="dark"] .m em a {border-bottom:1px solid #2c2f32}
html[data-theme="dark"] .where {color:#b7bcbf}
html[data-theme="dark"] ul.al li {border-bottom:1px solid #1b1d1f}
html[data-theme="dark"] ul.al b a {color:#d5d8da}
html[data-theme="dark"] ul.al .aw {color:#daa762}
html[data-theme="dark"] ul.al .co a {border-bottom:1px solid #2c2f32}
