/* Styles for bio.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;--ind:#4b44a8}
*{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.6}
a{color:var(--theme);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button: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 1.4rem;line-height:1.2}
.lead p{max-width:none}
.short{max-width:none}
.lead p{font-size:1.06rem;line-height:1.75;margin:0 0 1.05rem;color:#1d1d1d;max-width:46em}
.short{margin:1.8rem 0 .4rem;border:1px solid var(--divider);border-left:3px solid var(--theme);border-radius:4px;padding:14px 18px;background:#fafcfb;max-width:46em}
.short-h{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.short-h b{font-weight:500}
.short-h span{font-size:.82rem;color:var(--mut)}
.short-h button{margin-left:auto;font:inherit;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;border:1px solid #000;background:#fff;border-radius:2px;padding:.15rem .8rem;cursor:pointer}
.short-h button:hover{color:var(--theme);border-color:var(--theme)}
.short p{margin:0;font-size:.95rem;line-height:1.6;color:#333}
h2.sec{font-size:1.5rem;font-weight:300;margin:2.4rem 0 1rem;padding-top:.9rem;border-top:1px solid var(--divider)}
h2.sec .ct,h3.sub .ct{font-size:.9rem;color:#a6a6a6;font-weight:400;margin-left:6px}
h3.sub{font-size:1.02rem;font-weight:500;margin:1.4rem 0 .5rem;color:#222}
.prof{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:36px;align-items:start}
.main{min-width:0}
.side{position:sticky;top:84px;border-left:1px solid var(--divider);padding-left:22px}
.blk{margin-bottom:20px}
.blk:last-child{margin-bottom:0}
.blk h4{margin:0 0 4px;font-size:.74rem;font-weight:500;color:var(--mut);letter-spacing:.04em;text-transform:uppercase}
.blk p{margin:0;font-size:.88rem;line-height:1.55;color:#222}
.blk p.aff{margin-top:6px;color:#555}
.two{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.two section h2.sec:first-child{margin-top:2.4rem}
ul.tl2{list-style:none;margin:0;padding:0}
ul.tl2 li{display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;padding:8px 0;border-bottom:1px solid #f4f4f4}
ul.tl2 li:last-child{border-bottom:0}
.yr{font-size:.85rem;color:var(--mut);padding-top:2px}
ul.tl2 b,ul.fund b{display:block;font-weight:500;font-size:.95rem;line-height:1.4;color:#111}
ul.tl2 div span,ul.fund div span{display:block;font-size:.84rem;color:var(--mut);line-height:1.45}
ul.fund{list-style:none;margin:0;padding:0}
ul.fund li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:9px 0;border-bottom:1px solid #f4f4f4;align-items:baseline}
ul.fund li:last-child{border-bottom:0}
.amt{text-align:right;font-size:.88rem;font-weight:500;color:var(--theme-dk);font-variant-numeric:tabular-nums}
.more{font-size:.88rem;margin:.6rem 0 0}
.reading{margin:2.6rem 0 0;padding-top:1rem;border-top:1px solid var(--divider);font-size:.95rem;color:#444}
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){
  .nav-links a:not(.active){display:none}
  .post-title{font-size:2rem}
  .two{grid-template-columns:1fr;gap:0}
  ul.tl2 li{grid-template-columns:1fr;gap:0}
  ul.fund li{grid-template-columns:44px minmax(0,1fr);}
  .prof{grid-template-columns:1fr}
  .side{position:static;border-left:0;border-top:1px solid var(--divider);padding:16px 0 0;order:-1;margin-bottom:8px}
}

/* ===== 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;--ind:#7b75c7}
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"] .lead p {color:#cbced1}
html[data-theme="dark"] .short {background:#181a1b}
html[data-theme="dark"] .short-h button {border:1px solid #e4e6e7;background:#121314}
html[data-theme="dark"] .short p {color:#b7bcbf}
html[data-theme="dark"] h2.sec .ct, html[data-theme="dark"] h3.sub .ct {color:#888f96}
html[data-theme="dark"] h3.sub {color:#c6cacd}
html[data-theme="dark"] .blk p {color:#c6cacd}
html[data-theme="dark"] .blk p.aff {color:#9aa0a5}
html[data-theme="dark"] ul.tl2 li {border-bottom:1px solid #1b1c1e}
html[data-theme="dark"] ul.tl2 b, html[data-theme="dark"] ul.fund b {color:#d5d8da}
html[data-theme="dark"] ul.fund li {border-bottom:1px solid #1b1c1e}
html[data-theme="dark"] .reading {color:#a9aeb2}
