:root{
  --nav-h:64px;
  --sidebar-w:265px;
  --green-dark:#1b3a2d;
  --green-mid:#2d5c45;
  --green-light:#3d7a5e;
  --copper:#c17f5a;
  --copper-light:#d4956e;
  --bg:#f2f2ee;
  --card:#ffffff;
  --border:#e4e4de;
  --text:#252520;
  --text-2:#55554e;
  --text-3:#8a8a82;
  --shadow:0 2px 16px rgba(0,0,0,.07);
  --radius:8px;
}
body.dark{
  --bg:#161a17; --card:#1e2621; --border:#2a332c;
  --text:#e8e8e2; --text-2:#b8b8b0; --text-3:#84847c;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:15px}
body{font-family:'Inter',sans-serif;font-weight:300;background:var(--bg);color:var(--text);line-height:1.7;-webkit-font-smoothing:antialiased;transition:background .2s,color .2s}
a{color:var(--green-mid);text-decoration:none;transition:color .15s}
a:hover{color:var(--copper)}
p{margin-bottom:.8em;color:var(--text-2);font-size:.92rem}
p:last-child{margin-bottom:0}
strong{font-weight:600;color:var(--text)}
h1,h2,h3{font-family:'Cormorant Garamond',serif;line-height:1.2}
ul{list-style:none}
img{max-width:100%;display:block}

::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--green-light);border-radius:3px}

/* ─── Navbar ─── */
#navbar{
  position:fixed;top:0;left:0;right:0;height:var(--nav-h);
  background:var(--green-dark);
  display:flex;align-items:center;z-index:500;
  border-bottom:1px solid rgba(255,255,255,.06)
}
.nav-inner{
  max-width:1180px;width:100%;margin:0 auto;
  padding:0 1.5rem;display:flex;align-items:center;justify-content:space-between
}
.nav-links{display:flex;align-items:center;gap:.1rem}
.nav-links>a,.nav-drop>button{
  font-size:.95rem;font-weight:400;letter-spacing:.03em;font-family:inherit;
  color:rgba(255,255,255,.7);
  padding:.5rem .85rem;border-radius:4px;
  background:none;border:none;cursor:pointer;
  transition:all .15s;
}
.nav-links>a:hover,.nav-drop>button:hover,.nav-links>a.active{
  color:#fff;background:rgba(255,255,255,.1)
}
.nav-drop{position:relative}
.nav-drop-menu{
  position:absolute;top:100%;left:0;background:#28402f;
  border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.3);
  min-width:170px;padding:.4rem;display:none;flex-direction:column;
}
.nav-drop:hover .nav-drop-menu,.nav-drop.open .nav-drop-menu{display:flex}
.nav-drop-menu a{padding:.55rem .8rem;font-size:.87rem;color:rgba(255,255,255,.75);border-radius:4px}
.nav-drop-menu a:hover{background:rgba(255,255,255,.1);color:#fff}
.nav-tools{display:flex;gap:.5rem;align-items:center}
.nav-tools button{background:none;border:none;color:rgba(255,255,255,.7);font-size:1rem;cursor:pointer}
.nav-tools button:hover{color:#fff}
.nav-burger{display:none;background:none;border:none;color:#fff;font-size:1.3rem;cursor:pointer}

/* ─── Page layouts ─── */
.page-wrap{
  max-width:1180px;margin:0 auto;
  padding:calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  display:grid;grid-template-columns:var(--sidebar-w) 1fr;
  gap:2rem;align-items:start
}
.full-wrap{max-width:1000px;margin:0 auto;padding:calc(var(--nav-h) + 2.5rem) 1.5rem 4rem}
.page-header{margin-bottom:2rem}
.page-header h1{font-size:2rem;color:var(--green-dark);font-weight:400}
.page-header p{color:var(--text-3);font-size:.85rem;margin-top:.3rem}
body.dark .page-header h1{color:var(--copper-light)}

/* ─── Sidebar ─── */
.sidebar{position:sticky;top:calc(var(--nav-h) + 1.5rem);display:flex;flex-direction:column;gap:1rem}
.profile-card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.profile-top{
  background:linear-gradient(160deg,var(--green-dark) 0%,var(--green-mid) 100%);
  padding:2rem 1.25rem 1.5rem;text-align:center
}
.profile-pic{
  width:110px;height:110px;border-radius:50%;overflow:hidden;margin:0 auto 1rem;
  border:3px solid rgba(193,127,90,.5);box-shadow:0 4px 20px rgba(0,0,0,.35)
}
.profile-pic img{width:100%;height:100%;object-fit:cover;object-position:center top}
.profile-name{font-family:'Cormorant Garamond',serif;font-size:1.45rem;color:var(--copper);font-weight:400;margin-bottom:.15rem}
.profile-title{font-size:.78rem;color:rgba(255,255,255,.7);margin-bottom:.1rem}
.profile-inst{font-size:.73rem;color:rgba(255,255,255,.5);line-height:1.4}
.profile-inst a{color:rgba(255,255,255,.75);text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.3)}
.profile-inst a:hover{color:var(--copper-light);border-bottom-color:var(--copper-light)}
.profile-body{padding:1.1rem}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.soc-btn{
  display:flex;align-items:center;gap:.35rem;font-size:.72rem;color:var(--text-2);
  padding:.28rem .5rem;border-radius:4px;border:1px solid var(--border);
  transition:all .15s;white-space:nowrap;overflow:hidden
}
.soc-btn:hover{color:var(--green-mid);border-color:var(--green-light);background:rgba(45,92,69,.05)}
.soc-btn span{overflow:hidden;text-overflow:ellipsis}
.sb-card{background:var(--card);border-radius:var(--radius);padding:1.1rem 1.25rem;box-shadow:var(--shadow)}
.sb-title{
  font-size:.67rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-3);margin-bottom:.85rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)
}
.int-item{display:flex;align-items:flex-start;gap:.55rem;font-size:.81rem;color:var(--text-2);margin-bottom:.38rem}
.int-item a{color:var(--green-mid)}
.int-item a:hover{color:var(--copper)}
.int-dot{width:5px;height:5px;border-radius:50%;background:var(--copper);flex-shrink:0;margin-top:.55em}
.edu-row{margin-bottom:.8rem}
.edu-row:last-child{margin-bottom:0}
.edu-deg{font-size:.82rem;font-weight:500;color:var(--text);margin-bottom:.05rem}
.edu-where{font-size:.76rem;color:var(--text-2);line-height:1.4;margin-bottom:.05rem}
.edu-when{font-family:'JetBrains Mono',monospace;font-size:.68rem;color:var(--green-light)}

/* ─── Section cards ─── */
.section{background:var(--card);border-radius:var(--radius);padding:1.75rem 2rem;box-shadow:var(--shadow);margin-bottom:1.5rem}
.section:last-child{margin-bottom:0}
.sec-title{
  display:flex;align-items:center;gap:.6rem;font-family:'Cormorant Garamond',serif;
  font-size:1.35rem;font-weight:400;color:var(--green-dark);
  margin-bottom:1.4rem;padding-bottom:.7rem;border-bottom:2px solid var(--copper);
}
body.dark .sec-title{color:var(--copper-light)}

/* ─── Experience blocks ─── */
.exp-block{display:grid;grid-template-columns:64px 1fr;gap:1.25rem;padding-bottom:1.5rem;margin-bottom:1.5rem;border-bottom:1px solid var(--border)}
.exp-block:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.exp-logo{
  width:64px;height:64px;border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(45,92,69,.12),rgba(193,127,90,.12));
  display:flex;align-items:center;justify-content:center;font-size:1.6rem;
  border:1px solid var(--border);flex-shrink:0
}
.exp-role{font-size:.92rem;font-weight:600;color:var(--text);margin-bottom:.12rem}
.exp-org{font-size:.85rem;color:var(--green-mid);margin-bottom:.08rem}
.exp-date{font-family:'JetBrains Mono',monospace;font-size:.71rem;color:var(--text-3);margin-bottom:.6rem}
.exp-body p{font-size:.84rem;margin-bottom:.3rem}
.exp-body ul{padding:0}
.exp-body li{padding-left:1.1rem;position:relative;margin-bottom:.22rem;font-size:.84rem;color:var(--text-2);list-style:none}
.exp-body li::before{content:'›';position:absolute;left:0;color:var(--copper);font-weight:700}

.tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}
.tag{font-size:.68rem;font-weight:500;padding:.15rem .5rem;border-radius:999px;border:1px solid;letter-spacing:.02em}
.tag-g{border-color:rgba(45,92,69,.3);color:var(--green-mid);background:rgba(45,92,69,.06)}
.tag-c{border-color:rgba(193,127,90,.3);color:var(--copper);background:rgba(193,127,90,.06)}
.tag-b{border-color:rgba(59,130,180,.3);color:#3b82b4;background:rgba(59,130,180,.06)}

/* ─── Publications ─── */
.pub-list{display:flex;flex-direction:column;gap:.1rem}
.pub-row{display:grid;grid-template-columns:28px 1fr;gap:.85rem;padding:.9rem 0;border-bottom:1px solid var(--border)}
.pub-row:last-child{border-bottom:none}
.pub-num{font-family:'JetBrains Mono',monospace;font-size:.78rem;font-weight:500;color:var(--copper);padding-top:.1rem;text-align:right}
.pub-badge{display:inline-block;font-size:.62rem;font-weight:600;padding:.1rem .4rem;border-radius:3px;margin-bottom:.25rem;letter-spacing:.04em}
.badge-pub{background:rgba(45,92,69,.1);color:var(--green-mid)}
.badge-pre{background:rgba(193,127,90,.1);color:var(--copper)}
.badge-prep{background:rgba(100,100,200,.1);color:#5050c8}
.pub-title{font-family:'Cormorant Garamond',serif;font-size:1.0rem;font-weight:400;color:var(--text);margin-bottom:.18rem;line-height:1.4}
.pub-authors{font-size:.77rem;color:var(--text-3);margin-bottom:.12rem;line-height:1.5}
.pub-authors strong{color:var(--copper);font-weight:600}
.pub-journal{font-size:.77rem;color:var(--green-light);font-style:italic;margin-bottom:.3rem}
.pub-links{display:flex;gap:.35rem;flex-wrap:wrap}
.pub-link{font-size:.68rem;font-weight:500;padding:.12rem .45rem;border-radius:3px;border:1px solid var(--border);color:var(--text-3);transition:all .15s}
.pub-link:hover{color:var(--green-mid);border-color:var(--green-light);background:rgba(45,92,69,.05)}
.pub-link.primary{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
.pub-link.primary:hover{background:var(--green-mid);border-color:var(--green-mid)}

/* ─── Conferences ─── */
.conf-list{display:flex;flex-direction:column;gap:.55rem}
.conf-row{display:grid;grid-template-columns:36px 1fr;gap:.75rem;align-items:start}
.conf-num{font-family:'JetBrains Mono',monospace;font-size:.72rem;font-weight:500;color:var(--copper);padding-top:.22rem;text-align:right}
.conf-text{font-size:.84rem;color:var(--text-2);line-height:1.6;margin-bottom:0}

/* ─── Expertise ─── */
.exp-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.exp-card-label{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:.55rem}
.skill-tags{display:flex;flex-wrap:wrap;gap:.35rem}

/* ─── Tutorials / Podcast grid ─── */
.tut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.tut-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s;color:var(--text)}
.tut-card:hover{transform:translateY(-3px)}
.tut-cover{height:140px;background:linear-gradient(135deg,var(--green-dark),var(--green-mid));display:flex;align-items:center;justify-content:center;font-size:2.2rem;color:var(--copper);overflow:hidden}
.tut-cover img{width:100%;height:100%;object-fit:cover}
.tut-body{padding:1rem 1.1rem;flex:1;display:flex;flex-direction:column}
.tut-date{font-family:'JetBrains Mono',monospace;font-size:.68rem;color:var(--text-3)}
.tut-title{font-family:'Cormorant Garamond',serif;font-size:1.15rem;margin:.3rem 0;color:var(--text)}
.tut-summary{font-size:.8rem;color:var(--text-2);flex:1}
.tut-tags{margin-top:.6rem}

/* ─── Gallery ─── */
.gal-tabs-row{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap;align-items:center}
.gal-tabs-row:last-of-type{margin-bottom:1.25rem}
.gal-tab-label{font-size:.68rem;color:var(--text-3);letter-spacing:.05em;text-transform:uppercase;align-self:center;margin-right:.3rem}
.gal-tab{
  padding:.4rem .9rem;border-radius:999px;border:1px solid var(--border);
  font-size:.8rem;cursor:pointer;background:var(--card);color:var(--text-2);
  transition:all .15s;display:flex;align-items:center;gap:.4rem
}
.gal-tab.active{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
.gal-tab-count{
  font-family:'JetBrains Mono',monospace;font-size:.68rem;
  background:rgba(0,0,0,.08);padding:.05rem .4rem;border-radius:999px;
}
.gal-tab.active .gal-tab-count{background:rgba(255,255,255,.2)}
.gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.gal-item{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:1/1;background:#000;cursor:pointer}
.gal-item img,.gal-item video{width:100%;height:100%;object-fit:cover}
.gal-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#fff;background:rgba(0,0,0,.25)}
.gal-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;font-size:.72rem;padding:.5rem;opacity:0;transition:opacity .15s}
.gal-item:hover .gal-caption{opacity:1}
.gal-source-badge{
  position:absolute;top:.5rem;left:.5rem;
  font-size:.62rem;font-weight:600;color:#fff;
  background:rgba(0,0,0,.55);padding:.15rem .5rem;border-radius:999px;
  backdrop-filter:blur(2px);z-index:2
}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:900;padding:2rem}
.lightbox.open{display:flex}
.lightbox img,.lightbox video,.lightbox iframe{max-width:100%;max-height:90vh;border-radius:6px;border:none}
.lightbox-close{position:absolute;top:1.5rem;right:1.5rem;color:#fff;font-size:1.8rem;cursor:pointer;background:none;border:none}

/* ─── Contact ─── */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.ct-row{display:flex;align-items:flex-start;gap:.75rem}
.ct-row-full{grid-column:1 / -1}
.ct-icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;background:rgba(45,92,69,.1);display:flex;align-items:center;justify-content:center;font-size:.95rem}
.ct-label{font-size:.69rem;color:var(--text-3);letter-spacing:.05em;text-transform:uppercase;margin-bottom:.1rem}
.ct-val{font-size:.83rem;color:var(--text)}
.ct-val a{color:var(--green-mid)}

/* ─── Google Map embed ─── */
.map-embed{
  margin-top:1.5rem;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.map-embed iframe{
  display:block;
  width:100%;
}

/* ─── Form ─── */
.contact-form{display:flex;flex-direction:column;gap:.75rem;max-width:480px}
.contact-form input,.contact-form textarea{
  padding:.6rem .8rem;border:1px solid var(--border);border-radius:6px;
  background:var(--bg);color:var(--text);font-family:inherit;font-size:.85rem
}
.contact-form button{
  padding:.65rem 1.2rem;background:var(--green-dark);color:#fff;border:none;
  border-radius:6px;font-size:.85rem;cursor:pointer;width:fit-content;transition:background .15s
}
.contact-form button:hover{background:var(--green-mid)}

/* ─── Footer (legacy, unused fallback) ─── */
footer{text-align:center;padding:2rem;font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--text-3)}
footer a{color:var(--text-3)}
footer a:hover{color:var(--copper)}

/* ─── Responsive (tablet ≤820px) ─── */
@media(max-width:820px){
  .page-wrap{grid-template-columns:1fr}
  .sidebar{position:static}
  .exp-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .social-grid{grid-template-columns:1fr}
  .exp-block{grid-template-columns:1fr}
  .exp-logo{display:none}
  .pub-row{grid-template-columns:24px 1fr}
  .conf-row{grid-template-columns:28px 1fr}
  .nav-links{
    position:fixed;top:var(--nav-h);left:0;right:0;background:var(--green-dark);
    flex-direction:column;align-items:stretch;padding:.5rem;
    display:none;box-shadow:0 8px 20px rgba(0,0,0,.3);
  }
  .nav-links.open{display:flex}
  .nav-drop-menu{position:static;background:none;box-shadow:none;padding-left:1rem;display:flex}
  .nav-burger{display:block}
  .nav-brand-sub{display:none}
}

/* === JIANWU-HEADER-FOOTER-LOGOS v5 (dark-mode fix + hero CTA) === */

/* ---- Nav Brand (icon + stacked, enlarged text) ---- */
.nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.nav-brand:hover .nav-brand-title{color:var(--copper-light)}

.brand-icon-img{
  height:42px;
  width:auto;
  flex-shrink:0;
}

.nav-brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.15;
}

.nav-brand-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.3rem;
  font-weight:600;
  letter-spacing:.05em;
  color:var(--copper);
  transition:color .15s;
  white-space:nowrap;
}

.nav-brand-sub{
  font-family:'Inter',sans-serif;
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  white-space:nowrap;
}

/* ---- Hero Logo Section (index.html, ultra-compact, dark-mode aware) ---- */
.hero-logo-section {
    width: 100%;
    background-color: var(--bg);      /* fixed: was hardcoded #fdfdfb, now follows dark mode */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--nav-h);
    padding: 8px 20px 16px;
    transition: background-color .2s;
}
.hero-logo-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
}
.hero-logo-img {
    max-width: 360px;
    width: 100%;
    height: auto;
}
/* Fixed-white logo PNG needs a card wrap in dark mode, otherwise it floats as a jarring white block */
body.dark .hero-logo-img {
    background: #fdfdfb;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

/* ---- Hero CTA row (fills wide-screen whitespace + adds conversion path) ---- */
.hero-cta-row{
    display:flex;
    gap:.75rem;
    flex-wrap:wrap;
    justify-content:center;
}
.hero-cta-btn{
    padding:.55rem 1.3rem;
    border-radius:999px;
    font-size:.82rem;
    font-weight:500;
    letter-spacing:.02em;
    background:var(--green-dark);
    color:#fff;
    border:1.5px solid var(--green-dark);
    transition:all .15s;
}
.hero-cta-btn:hover{
    background:var(--green-mid);
    border-color:var(--green-mid);
    color:#fff;
}
.hero-cta-outline{
    background:transparent;
    color:var(--green-dark);
}
.hero-cta-outline:hover{
    background:var(--green-dark);
    color:#fff;
}
body.dark .hero-cta-btn{
    background:var(--copper);
    border-color:var(--copper);
    color:#161a17;
}
body.dark .hero-cta-btn:hover{
    background:var(--copper-light);
    border-color:var(--copper-light);
}
body.dark .hero-cta-outline{
    background:transparent;
    color:var(--copper-light);
    border-color:var(--copper-light);
}
body.dark .hero-cta-outline:hover{
    background:var(--copper-light);
    color:#161a17;
}

/* ---- page-wrap modifier: index.html only ---- */
.page-wrap--home {
    padding-top: 0.5rem;
}

/* ---- Institutional Footer (dark-mode aware) ---- */
.site-footer {
    background-color: var(--card);     /* fixed: was hardcoded #f4f3ef */
    border-top: 1px solid var(--border);
    padding: 2.4rem 1.5rem 1.3rem;
    text-align: center;
    transition: background-color .2s;
}
.footer-logos-wrap {
    max-width: 1100px;
    margin: 0 auto 1.7rem;
}
.footer-logos-label {
    font-size: .68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-3);              /* fixed: was hardcoded #8a8a8a */
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.footer-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.3rem;
}
.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0.82;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.footer-logo-item img {
    height: 100%;
    width: auto;
    max-width: 115px;
    object-fit: contain;
}
.footer-logo-item:hover {
    opacity: 1;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
/* Institutional logos are typically colored PNGs designed for white backgrounds;
   in dark mode we keep a white card behind each so logos remain legible */
body.dark .footer-logo-item {
    background-color: #fdfdfb;
    opacity: 0.92;
}
body.dark .footer-logo-item:hover {
    opacity: 1;
    box-shadow: 0 3px 14px rgba(0,0,0,.5);
}
.footer-logo-self {
    height: 66px;
    padding: 6px 12px;
    border: 1.5px solid #c9a86a;
    background-color: #fdfdfb;
    opacity: 1;
}
.footer-logo-self img {
    max-width: 58px;
}
.footer-logo-divider {
    width: 1px;
    height: 42px;
    background-color: var(--border);   /* fixed: was hardcoded rgba(0,0,0,.12) */
    margin: 0 0.5rem;
}
.footer-copyright {
    font-size: .78rem;
    color: var(--text-2);              /* fixed: was hardcoded #666 */
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
}
.footer-copyright a {
    color: var(--green-mid);           /* fixed: was hardcoded #1b3a2d, unreadable in dark mode */
    text-decoration: none;
    font-weight: 500;
}
.footer-copyright a:hover {
    text-decoration: underline;
    color: var(--copper);
}

/* ---- Tablet / small screens (≤900px) ---- */
@media (max-width: 900px) {
    .footer-logos-row { gap: 0.9rem; }
    .footer-logo-item { height: 48px; padding: 5px 10px; }
    .footer-logo-item img { max-width: 85px; }
    .footer-logo-divider { display: none; }
    .hero-logo-img { max-width: 300px; }
    .hero-cta-btn { font-size:.78rem; padding:.5rem 1.1rem; }
}

/* ---- Mobile (≤480px): compact nav brand + footer logos ---- */
@media (max-width: 480px) {
    .footer-logos-row { gap: 0.6rem; }
    .footer-logo-item { height: 40px; }
    .footer-logo-self { height: 46px; }

    .brand-icon-img { height: 34px; }
    .nav-brand-title { font-size: 1.05rem; letter-spacing: .03em; }
    .nav-brand-sub { font-size: .6rem; }
    .nav-brand { gap: 9px; }

    .nav-inner { padding: 0 1rem; }
    .nav-tools { gap: .35rem; }

    .hero-cta-row{ gap:.5rem; }
    .hero-cta-btn{ font-size:.75rem; padding:.45rem 1rem; }
}

/* ---- Ultra-narrow screens (≤375px) ---- */
@media (max-width: 375px) {
    .brand-icon-img { height: 30px; }
    .nav-brand-title { font-size: .95rem; }
    .nav-brand { gap: 7px; }
    .nav-inner { padding: 0 .75rem; }
    .nav-tools { gap: .25rem; }
    .nav-tools button { font-size: .9rem; }
}

/* ═══════════════════════════════════════════════
   News Timeline
   ═══════════════════════════════════════════════ */
.news-year-label{
  font-family:'JetBrains Mono',monospace;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--copper);
  padding:1.6rem 0 .6rem;
  border-bottom:2px solid var(--border);
  margin-bottom:1.1rem;
}
.news-year-label:first-child{padding-top:0}

.news-item{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:1.1rem;
  padding:1rem 0;
  border-bottom:1px solid var(--border);
}
.news-item:last-child{border-bottom:none}

.news-date{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  color:var(--text-3);
  padding-top:.15rem;
  white-space:nowrap;
}

.news-badge{
  display:inline-block;
  font-size:.62rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:.15rem .5rem;
  border-radius:3px;
  margin-bottom:.4rem;
}
.news-badge-pub{background:rgba(45,92,69,.1);color:var(--green-mid)}
.news-badge-grant{background:rgba(193,127,90,.1);color:var(--copper)}
.news-badge-award{background:rgba(200,160,40,.12);color:#a1801f}
.news-badge-talk{background:rgba(59,130,180,.1);color:#3b82b4}
.news-badge-media{background:rgba(140,80,180,.1);color:#8c50b4}
.news-badge-team{background:rgba(100,100,100,.1);color:var(--text-3)}

.news-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.08rem;
  font-weight:400;
  color:var(--text);
  margin-bottom:.28rem;
  line-height:1.4;
}

.news-summary{
  font-size:.83rem;
  color:var(--text-2);
  line-height:1.6;
  margin-bottom:.4rem;
}

.news-link{
  font-size:.75rem;
  font-weight:500;
  color:var(--green-mid);
}
.news-link:hover{color:var(--copper)}

.news-empty{
  padding:2.5rem 0;
  text-align:center;
  color:var(--text-3);
  font-size:.85rem;
  font-style:italic;
}

/* ─── News Category Filter Tabs ─── */
.news-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:1.5rem;
}
.news-tab{
  padding:.45rem .95rem;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:.8rem;
  font-family:inherit;
  cursor:pointer;
  background:var(--card);
  color:var(--text-2);
  transition:all .15s;
  display:flex;
  align-items:center;
  gap:.4rem;
}
.news-tab:hover{
  border-color:var(--green-light);
  color:var(--green-mid);
}
.news-tab.active{
  background:var(--green-dark);
  color:#fff;
  border-color:var(--green-dark);
}
.news-tab-count{
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  background:rgba(0,0,0,.08);
  padding:.05rem .4rem;
  border-radius:999px;
}
.news-tab.active .news-tab-count{
  background:rgba(255,255,255,.2);
}

@media(max-width:600px){
  .news-item{grid-template-columns:1fr}
  .news-date{padding-top:0;margin-bottom:.2rem}
}

/* Tool / Release badge */
.news-badge-tool {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

/* Tool / Release badge */
.news-badge-tool {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

/* ============================================================
   Homepage "Recent Highlights" module (compact news preview)
============================================================ */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.highlight-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.highlight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.highlight-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-3, #888);
  white-space: nowrap;
}

.highlight-title {
  font-weight: 600;
  margin: 0.35rem 0 0.3rem;
  line-height: 1.4;
}

.highlight-summary {
  font-size: 0.9rem;
  color: var(--text-2, #555);
  line-height: 1.5;
  margin: 0 0 0.4rem;
}

@media (max-width: 480px) {
  .highlight-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}