/* Styles for news.html. Shared styles (menu, icons, progress line) are in assets/css/site.css. */
:root{--theme:#0f6e56;--theme-dk:#0a5240;--theme-wash:#eef6f3;--mut:#828282;--divider:#e8e8e8}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(64px + env(safe-area-inset-top,0px))}
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}
button:focus-visible,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;align-items:center}
.nav-links a{color:#000;padding:8px 10px;font-size:15.5px;font-weight:400}
.nav-links a:hover{color:var(--theme);text-decoration:none}
.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 .3rem;line-height:1.2}
.post-title .ct{font-size:1.1rem;color:#a6a6a6;font-weight:400;margin-left:8px;vertical-align:middle}
.post-description{color:var(--mut);font-size:1.02rem;margin:0}
.filters{border-top:1px solid var(--divider);border-bottom:1px solid var(--divider);padding:14px 0;margin:1.4rem 0 .4rem;display:flex;flex-wrap:wrap;gap:8px}
.chip{font-family:inherit;font-size:.78rem;font-weight:400;letter-spacing:.02em;text-transform:uppercase;padding:.36rem .9rem;border:1px solid #c9c9c9;border-radius:2px;background:#fff;color:#000;cursor:pointer}
.chip:hover{border-color:var(--theme);color:var(--theme)}
.chip[aria-pressed="true"]{background:var(--theme);border-color:var(--theme);color:#fff}
.chip.all[aria-pressed="true"]{background:#333;border-color:#333}
.chip .n{opacity:.65;margin-left:6px;font-size:.72rem}
.year{color:#d4d4d4;font-size:2rem;font-weight:400;text-align:right;border-top:1px solid var(--divider);padding-top:.8rem;margin:2rem 0 1rem;line-height:1}
.year.hidden,.tl li.hidden{display:none}
.tl{list-style:none;margin:0;padding:0;position:relative}
.tl::before{content:"";position:absolute;left:107px;top:8px;bottom:8px;width:1px;background:var(--divider)}
.tl li{display:grid;grid-template-columns:90px 34px minmax(0,1fr);align-items:start;padding:0 0 20px}
.tl li:last-child{padding-bottom:0}
.when{text-align:right;padding-top:5px;line-height:1.2}
.when b{display:block;font-size:.95rem;font-weight:500;color:#111}
.when span{font-size:.78rem;color:var(--mut)}
.dot{position:relative;z-index:1;width:28px;height:28px;margin:0 auto;border-radius:50%;background:#fff;border:1.5px solid var(--theme);color:var(--theme);display:flex;align-items:center;justify-content:center;font-size:.78rem}
.dot.solid{background:var(--theme);color:#fff}
.what{padding:3px 0 0 8px}
.tag{display:inline-block;font-size:.7rem;font-weight:500;letter-spacing:.02em;color:var(--theme-dk);background:var(--theme-wash);border-radius:3px;padding:1px 7px;margin-bottom:4px}
.what h3{margin:0 0 3px;font-size:1rem;font-weight:500;line-height:1.4;color:#111}
.what p{margin:0;font-size:.93rem;line-height:1.55;color:#333}
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(.keep){display:none}
  .post-title{font-size:2rem}
  .tl::before{left:71px}
  .tl li{grid-template-columns:56px 30px minmax(0,1fr)}
}

/* ===== 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;--theme-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-title .ct {color:#888f96}
html[data-theme="dark"] .chip {border:1px solid #3c4043;background:#121314;color:#e4e6e7}
html[data-theme="dark"] .chip[aria-pressed="true"] {background:#0f6e56;color:#fff}
html[data-theme="dark"] .chip.all[aria-pressed="true"] {background:#b7bcbf;border-color:#b7bcbf}
html[data-theme="dark"] .year {color:#888f96}
html[data-theme="dark"] .when b {color:#d5d8da}
html[data-theme="dark"] .dot {background:#121314}
html[data-theme="dark"] .dot.solid {background:#0f6e56;color:#fff}
html[data-theme="dark"] .tag {background:#0f6e56}
html[data-theme="dark"] .what h3 {color:#d5d8da}
html[data-theme="dark"] .what p {color:#b7bcbf}

/* ===== Dark mode: hand-tuned adjustments ===== */
html[data-theme="dark"] .chip.all[aria-pressed="true"], html[data-theme="dark"] .chip.all[aria-pressed="true"] * {background:#dfe5e3;border-color:#dfe5e3;color:#121416}
