:root{--orange:#9a4500}
.crumb,.meta,.when,.experience-meta,.article-meta,.article-share-label,.teaching-portfolio-head,.perspective-date{color:#5f7180}
.small{color:#5f7180}

/* Refined personal monogram: subtle academic-seal treatment for site branding. */
.site-header .brand,.footer .brand{gap:13px}
.site-header .brand-mark,.footer .brand-mark{
  position:relative;
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  background:radial-gradient(circle at 32% 26%,#29475d 0%,#183247 42%,#102537 100%);
  color:#f8fbfd;
  border:1px solid rgba(20,40,59,.16);
  box-shadow:0 7px 18px rgba(20,40,59,.11),inset 0 1px 0 rgba(255,255,255,.10);
  font-family:Georgia,'Times New Roman',serif;
  font-size:.79rem;
  font-weight:700;
  letter-spacing:.055em;
  text-indent:.055em;
}
.site-header .brand-mark::after,.footer .brand-mark::after{
  content:"";
  position:absolute;
  inset:4px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:50%;
  pointer-events:none;
}
.site-header .brand>span:last-child,.footer .brand>span:last-child{
  letter-spacing:-.018em;
  font-size:0;
}
.site-header .brand>span:last-child::before,
.footer .brand>span:last-child::before{
  content:"Mohtashim ";
  color:var(--ink);
  font-size:1rem;
}
.site-header .brand>span:last-child::after{
  content:"Baqar";
  color:var(--blue);
  font-size:1rem;
}
.footer .brand>span:last-child::after{
  content:"Baqar, PhD";
  color:var(--blue);
  font-size:1rem;
}
@media(max-width:640px){
  .site-header .brand-mark{width:40px;height:40px}
  .site-header .brand{gap:11px}
  .site-header .brand>span:last-child::before,
  .site-header .brand>span:last-child::after{font-size:.96rem}
}

/* Keep headings and short descriptive copy from leaving awkward orphan words. */
h1,h2,h3,.page-hero p,.section-title>p,.hero-copy,.closing-card p,.topic p,.project p,.blog-card p,.prof-block p,.contact-card p{ text-wrap:pretty; }

/* Long-form profile/research/experience copy: editorial alignment on wider screens only. */
@media(min-width:761px){
  .note-card>p,
  .about-focus-copy>p,
  .current-direction-card>p,
  .experience-overview>div:first-child>p,
  .experience-summary{
    text-align:justify;
    text-justify:inter-word;
    hyphens:auto;
    -webkit-hyphens:auto;
  }
}

@media(max-width:760px){
  .note-card>p,
  .about-focus-copy>p,
  .current-direction-card>p,
  .experience-overview>div:first-child>p,
  .experience-summary{
    text-align:left;
    hyphens:none;
    -webkit-hyphens:none;
  }
}

@media(max-width:1120px){
  .nav-links{display:none;position:absolute;left:0;right:0;top:76px;background:#fff;border-bottom:1px solid var(--line);padding:12px 20px;flex-direction:column;align-items:stretch;box-shadow:var(--shadow-sm)}
  .nav-links.open{display:flex}
  .nav-links>a{padding:11px 12px;font-size:.86rem}
  .nav-cta{margin-left:0!important}
  .menu-btn{display:block}
}

.social-mark{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:24px;
  height:24px;
  border-radius:7px;
  background:#eef3f7;
  color:#31495d;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1;
  transition:transform .18s ease;
}
.social-linkedin{background:#e7f2fb;color:#0a66c2}
.social-github{background:#edf0f3;color:#1f2328}
.social-medium{background:#171717;color:#fff}
.social-orcid{background:#eef8dd;color:#4f7700}
.social-scholar{background:#eaf1ff;color:#356ac3}
.social-email{background:#eaf4fb;color:#006fbd}
.footer-links a.has-social-mark{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%}
.footer-links a.has-social-mark:hover .social-mark{transform:translateY(-1px)}
.contact-row.has-social-mark{align-items:center;justify-content:flex-start}
.contact-row.has-social-mark>.social-mark{width:36px;height:36px;border-radius:10px;font-size:.72rem}
.contact-row.has-social-mark>div{flex:1;min-width:0}
.contact-row.has-social-mark>b{margin-left:auto}

/* General layout resilience: prevent long content from forcing sibling columns to collapse. */
.section-title>*,.feature-grid>*,.teaching-highlight>*,.page-grid>*,.closing-card>*,.experience-overview>*,.about-focus>*,.contact-grid>*,.topic-grid>*,.project-grid>*,.prof-grid>*,.blog-grid>*{min-width:0}
.hero-actions{align-items:stretch}
.hero-actions .btn{max-width:100%}

/* Homepage closing profile panel: keep all four actions together when there is ample room. */
.closing-card{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:32px}
.closing-card>div:first-child{min-width:0}
.closing-links{display:grid;grid-template-columns:repeat(4,max-content);align-items:center;justify-content:end;gap:8px;margin-top:0}
.closing-links a{white-space:nowrap;text-align:center}

/* Avoid orphan items in otherwise regular desktop grids. */
.prof-grid>.prof-block:last-child:nth-child(odd){grid-column:1/-1}

/* Thesis supervision: readable table on wide desktops, cards on tighter layouts. */
.supervision-table{min-width:760px}

@media(min-width:761px){
  #cqu .unit-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px}
  #additional-teaching .subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px}
  .experience-detail-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(min-width:761px) and (max-width:1020px){
  .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
}

@media(max-width:1180px){
  .closing-card{grid-template-columns:1fr;align-items:start}
  .closing-links{justify-content:start}

  .supervision-wrap{overflow:visible;border:0;border-radius:0}
  .supervision-table{display:block;width:100%;min-width:0;background:transparent;border:0;border-collapse:separate}
  .supervision-table thead{display:none}
  .supervision-table tbody{display:grid;width:100%;gap:14px}
  .supervision-table tr{display:block;width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 0 rgba(20,40,59,.01)}
  .supervision-table td,
  .supervision-table td:nth-child(n){display:block;width:100%;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.9rem;line-height:1.5;color:#40586b;overflow-wrap:break-word;word-break:normal}
  .supervision-table td:last-child{border-bottom:0}
  .supervision-table td::before{content:attr(data-label);display:block;margin:0 0 4px;color:#657786;font-size:.67rem;font-weight:850;letter-spacing:.075em;line-height:1.35;text-transform:uppercase}
  .supervision-table td[data-label="Student"] strong{display:block;color:var(--ink);font-size:1rem;line-height:1.35}
  .supervision-table td[data-label="Student"] .small{margin-top:3px!important;font-size:.78rem}
  .supervision-table td[data-label="Thesis Title"]{color:#334b60}
  .supervision-table .status{margin-top:2px}
}

@media(max-width:760px){
  .institution-head{display:block}
  .institution-date{display:inline-flex;margin-top:10px}
  .experience-head{display:block}
  .experience-current{margin-top:10px}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .closing-links{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;justify-content:stretch}
  .closing-links a{white-space:normal}
  #cqu .unit-grid,#additional-teaching .subject-grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  #courses>h2,#students>h2{font-size:2.12rem!important;line-height:1.08!important;letter-spacing:-.035em!important}
  #students>p{font-size:.95rem;line-height:1.6;margin-bottom:18px!important}
  #students.section-sm{padding-top:42px}
  .supervision-table tbody{gap:12px}
  .supervision-table td,
  .supervision-table td:nth-child(n){padding:11px 13px;font-size:.88rem}
  .pub-links{justify-content:flex-start}
  .prof-grid>.prof-block:last-child:nth-child(odd){grid-column:auto}
}

@media(max-width:520px){
  .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .hero-actions .btn{width:100%;justify-content:center;text-align:center}
  .closing-links{grid-template-columns:1fr 1fr}
  .contact-row.has-social-mark{gap:10px}
  .article-share{display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:7px}
  .article-share-label{grid-column:1/-1;width:auto!important;margin:0 0 1px!important}
  .article-share a,.article-share button{width:100%}
}
/* ===== Old-school academic theme — October 2026 ===== */
/*
  Deliberately quiet visual language:
  warm paper, dark ink, moss-green links, serif typography,
  visible rules and very little decoration.
*/
:root{
  --bg:#f3f0e6;
  --surface:#eee9dc;
  --surface-2:#e8e2d3;
  --ink:#2f342d;
  --muted:#6b6a5f;
  --line:#cbc4b3;
  --blue:#4d6650;
  --blue-dark:#354d39;
  --blue-soft:#e3e9df;
  --green:#4d6650;
  --green-soft:#e3e9df;
  --orange:#7b5d3f;
  --orange-soft:#eee5d9;
  --purple:#665b70;
  --shadow:none;
  --shadow-sm:none;
  --radius:0;
  --max:1080px;
}

html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:Georgia,"Times New Roman",Times,serif;
  font-size:16.5px;
  line-height:1.68;
  -webkit-font-smoothing:antialiased;
}
body::before{display:none!important}
::selection{background:#d9e0d3;color:var(--ink)}
a{color:var(--blue-dark);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:#283e2d}
.container{width:min(calc(100% - 48px),var(--max));margin:0 auto}

/* Header: a line of type, not an app bar. */
.site-header{
  position:relative;
  top:auto;
  z-index:20;
  background:transparent;
  backdrop-filter:none;
  border-bottom:1px solid var(--line);
}
.nav{
  min-height:0;
  height:auto;
  padding:22px 0 17px;
  align-items:flex-end;
  gap:24px;
}
.site-header .brand,.footer .brand{
  gap:0!important;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  letter-spacing:0;
}
.site-header .brand-mark,.footer .brand-mark{display:none!important}
.site-header .brand>span:last-child,.footer .brand>span:last-child{
  font-size:1.05rem!important;
  letter-spacing:.005em!important;
  color:var(--ink)!important;
}
.site-header .brand>span:last-child::before,
.site-header .brand>span:last-child::after,
.footer .brand>span:last-child::before,
.footer .brand>span:last-child::after{display:none!important;content:none!important}
.nav-links{gap:17px;margin-left:auto;align-items:center}
.nav-links>a{
  padding:0 0 2px;
  border-radius:0;
  color:#55594f;
  background:transparent!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:.82rem;
  font-weight:400;
  border-bottom:1px solid transparent;
  transition:none;
}
.nav-links>a:hover,.nav-links>a.active{
  color:var(--ink);
  background:transparent!important;
  border-bottom-color:#6e7968;
}
.nav-links>a.active{font-weight:700}
.menu-btn{
  width:auto;height:auto;
  padding:4px 6px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
  font-size:1.15rem;
}
.skip-link{border-radius:0;background:var(--ink);box-shadow:none}

/* Type and links. */
h1,h2,h3,h4{
  font-family:Georgia,"Times New Roman",Times,serif;
  color:var(--ink);
  letter-spacing:0!important;
  text-wrap:pretty;
}
.eyebrow,.label,.type,.work-label,.institution-role,.experience-kicker,.toolkit-label,
.experience-note-mark,.teaching-portfolio-head,.home-section-label{
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#67705f!important;
  font-size:.68rem!important;
  font-weight:650!important;
  letter-spacing:.11em!important;
  text-transform:uppercase;
}
.btn,.closing-links a,.pub-links a{
  display:inline;
  padding:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--blue-dark)!important;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  text-decoration:underline;
  text-underline-offset:4px;
}
.btn:hover,.closing-links a:hover,.pub-links a:hover{
  transform:none!important;
  background:transparent!important;
  color:#283e2d!important;
}
.btn-primary{color:var(--blue-dark)!important}

/* Page openings. */
.page-hero{
  padding:50px 0 34px;
  border-bottom:1px solid var(--line);
  background:transparent!important;
}
.crumb{
  margin-bottom:12px;
  color:#807d70;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:.72rem;
}
.page-hero h1,.section-title h2,.closing-card h2{
  font-weight:600!important;
  letter-spacing:0!important;
}
.page-hero h1{
  max-width:850px;
  margin:3px 0 0;
  font-size:clamp(2.25rem,4.6vw,3.75rem);
  line-height:1.08;
}
.page-hero p{
  max-width:750px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:1rem;
}
.section{padding:52px 0}
.section-sm{padding-top:38px}
.section-title{margin-bottom:24px;align-items:start}
.section-title h2{font-size:clamp(1.9rem,3.7vw,2.9rem);line-height:1.12}
.section-title>p{color:var(--muted)}

/* Cards become pieces of a document. */
.topic-grid,.project-grid,.blog-grid,.prof-grid,.contact-grid{
  gap:0 42px;
}
.topic,.project,.blog-card,.prof-block,.contact-card,.note-card,
.panel,.toolkit-card,.experience-detail,.teaching-portfolio{
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.topic,.project,.blog-card,.prof-block,.contact-card,.note-card{
  padding:20px 0 24px;
}
.topic:hover,.project:hover,.blog-card:hover,.prof-block:hover,.toolkit-card:hover{
  border-color:var(--line)!important;
  box-shadow:none!important;
}
.topic h3,.project h3,.blog-card h3,.prof-block h3,.contact-card h3{
  margin:6px 0 7px;
  font-size:1.14rem;
  font-weight:600;
}
.topic p,.project p,.blog-card p,.prof-block p,.contact-card p,.note-card p{
  color:var(--muted);
}
.label,.type,.tag,.chip,.coming,.status,.experience-current,.institution-date,.experience-tags span{
  display:inline;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#67705f!important;
  box-shadow:none!important;
}
.chips,.experience-tags{gap:8px 12px}
.tag,.chip,.experience-tags span{
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:.69rem!important;
}
.prof-grid>.prof-block:last-child:nth-child(odd){grid-column:auto!important}

/* Lists and publications: journal-like rules. */
.list-row,.list-lines li,.plain-list li{
  padding:10px 0;
  border-bottom:1px solid rgba(203,196,179,.72);
  color:#565a51;
}
.publication{
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:20px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.publication:first-of-type{border-top:1px solid var(--line)}
.pub-year,.work-year{color:#68705f;font-weight:600}
.publication h3{font-weight:600;font-size:1.02rem}
.publication p{color:var(--muted)}
.pub-links{gap:10px 14px}
.filters{gap:8px 15px}
.filter-btn{
  padding:0 0 2px;
  border:0;
  border-bottom:1px solid transparent;
  border-radius:0;
  background:transparent;
  color:#66695f;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
}
.filter-btn.active,.filter-btn:hover{
  background:transparent;
  color:var(--ink);
  border-bottom-color:#707769;
}

/* About, research, teaching and experience: remove the dashboard look. */
.about-focus,.experience-overview,.closing-card,.experience-note,.poster-feature{
  padding:24px 0!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.about-focus-copy h2,.experience-overview h2{
  font-weight:600;
  letter-spacing:0!important;
}
.about-focus-links a{
  padding:10px 0;
  border:0;
  border-bottom:1px solid rgba(203,196,179,.72);
  border-radius:0;
  background:transparent;
}
.about-focus-links a:hover{box-shadow:none;border-color:#9f9a8c}
.about-focus-links span{font-weight:600}
.experience-card{grid-template-columns:118px minmax(0,1fr);gap:24px}
.experience-date{
  position:static;
  padding:8px 0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
}
.experience-date b{color:var(--ink);font-weight:600}
.experience-content{
  padding:0 0 28px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.experience-content::before{display:none}
.experience-content:hover{border-color:var(--line);box-shadow:none}
.experience-head h3{font-weight:600}
.experience-detail-grid{gap:0 26px}
.experience-detail{
  padding:11px 0;
  border-top:1px solid rgba(203,196,179,.72)!important;
}
.experience-detail strong{color:var(--ink);font-weight:600}
.toolkit-grid{gap:0 32px}
.toolkit-card{padding:17px 0}
.institution{border-top:1px solid var(--line)}
.institution-date{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.teaching-portfolio{padding:17px 0 5px!important}
.unit-card,.subject-grid span{border-bottom-color:rgba(203,196,179,.72)}
.unit-code{color:var(--blue-dark)}
.supervision-wrap{border:1px solid var(--line);border-radius:0}
.supervision-table{background:transparent}
.supervision-table th{
  background:var(--surface);
  color:#62665b;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:650;
}
.supervision-table td{color:#55594f}
.supervision-table th,.supervision-table td{border-bottom-color:var(--line)}

/* Contact and side notes. */
.page-grid{grid-template-columns:220px 1fr;gap:44px}
.side-note{
  position:sticky;
  top:24px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--ink);
}
.side-note p{color:var(--muted)}
.side-links{gap:0}
.side-links a{
  padding:7px 0;
  border-radius:0;
  border-bottom:1px solid rgba(203,196,179,.65);
  background:transparent;
  color:var(--blue-dark);
}
.side-links a:hover{background:transparent}
.contact-row a{color:var(--blue-dark);font-weight:400;text-decoration:underline}
.social-mark{display:none!important}

/* Footer should feel like the colophon of a book. */
.footer{
  margin-top:40px;
  padding:28px 0 24px;
  border-top:1px solid var(--line);
  background:transparent;
}
.footer-grid{grid-template-columns:1.3fr 1fr 1fr;gap:36px}
.footer h4{
  margin:0 0 8px;
  font-size:.88rem;
  font-weight:600;
}
.footer p,.footer a{color:#66675f;font-size:.82rem}
.footer-links{gap:5px}
.footer-links a{text-decoration:underline;text-underline-offset:3px}
.footer-bottom{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(203,196,179,.75);
  color:#777468;
}

/* No entrance animation. Content should simply be there. */
.reveal,.reveal-enabled .reveal,.reveal-enabled .reveal.visible{
  opacity:1!important;
  transform:none!important;
  transition:none!important;
}

/* Focus stays obvious without looking like an app. */
a:focus-visible,button:focus-visible{
  outline:2px solid #71816e;
  outline-offset:4px;
}

@media(max-width:1120px){
  .nav-links{
    top:100%;
    padding:15px 24px 18px;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    box-shadow:none;
  }
  .nav-links>a{padding:6px 0;font-size:.9rem}
}
@media(max-width:760px){
  .container{width:min(calc(100% - 30px),var(--max))}
  body{font-size:16px}
  .nav{padding:16px 0 13px;align-items:center}
  .page-hero{padding:38px 0 27px}
  .section{padding:42px 0}
  .page-grid{grid-template-columns:1fr;gap:26px}
  .side-note{position:static}
  .topic-grid,.project-grid,.blog-grid,.prof-grid,.contact-grid{grid-template-columns:1fr}
  .publication{grid-template-columns:50px minmax(0,1fr)}
  .pub-links{grid-column:2;justify-content:flex-start}
  .experience-card{grid-template-columns:1fr;gap:8px}
  .experience-date{display:flex;gap:6px;width:auto;border-top:0;padding:0}
  .experience-date span::after{content:" –"}
  .experience-detail-grid,.experience-detail-grid.three,.toolkit-grid{grid-template-columns:1fr}
  .about-focus,.experience-overview,.experience-note{grid-template-columns:1fr!important}
  .footer-grid{grid-template-columns:1fr;gap:22px}
  .footer-bottom{display:block}
  .footer-bottom span:last-child{display:block;margin-top:4px}
}



/* Page hero de-duplication: one clear page title only. */
.page-hero .crumb,
.page-hero .eyebrow{display:none!important}
.page-hero h1{margin-top:0!important}
.page-hero{padding-top:42px!important}
@media(max-width:760px){.page-hero{padding-top:34px!important}}
/* ===== Earthy colour accents — October 2026 ===== */
/* A restrained natural palette: forest, clay, ochre and slate on warm paper. */
:root{
  --bg:#f4efe4;
  --surface:#e9eee4;
  --surface-2:#e4e9df;
  --ink:#30362f;
  --muted:#6d675e;
  --line:#cbbfae;
  --blue:#4f6b55;
  --blue-dark:#36513d;
  --blue-soft:#e1e9df;
  --forest:#4f6b55;
  --sage:#7d8f76;
  --clay:#9a624d;
  --ochre:#a98649;
  --slate:#586b75;
}

/* A very thin colour rule gives the site life without becoming decorative. */
.site-header::after{
  content:"";
  display:block;
  height:2px;
  background:linear-gradient(90deg,
    rgba(79,107,85,.76) 0 42%,
    rgba(169,134,73,.70) 42% 72%,
    rgba(154,98,77,.70) 72% 100%);
}
.site-header .brand>span:last-child{color:var(--forest)!important}
.nav-links>a:hover,.nav-links>a.active{
  color:var(--forest);
  border-bottom-color:var(--clay);
}

/* Headings stay serious; smaller signals carry the colour. */
.page-hero{
  border-bottom-color:#bda97f!important;
}
.page-hero h1{color:#343a32}
.page-hero p{color:#6f685f}
.section-title h2{color:#425344}
.eyebrow,.work-label,.institution-role,.experience-kicker,.toolkit-label,
.experience-note-mark,.teaching-portfolio-head,.home-section-label{
  color:var(--clay)!important;
}

/* Coloured rules rather than coloured boxes. */
.topic,.project,.blog-card,.prof-block,.contact-card,.note-card,.toolkit-card{
  border-top-color:var(--sage)!important;
}
.topic:nth-child(3n+2),.project:nth-child(3n+2),.blog-card:nth-child(3n+2),
.prof-block:nth-child(3n+2),.contact-card:nth-child(3n+2),.toolkit-card:nth-child(3n+2){
  border-top-color:#b79b66!important;
}
.topic:nth-child(3n),.project:nth-child(3n),.blog-card:nth-child(3n),
.prof-block:nth-child(3n),.contact-card:nth-child(3n),.toolkit-card:nth-child(3n){
  border-top-color:#b27a66!important;
}

.topic h3,.project h3,.blog-card h3,.prof-block h3,.contact-card h3{
  color:#384239;
}
.topic a,.project a,.blog-card a,.prof-block a,.contact-card a{
  color:var(--forest);
}

.list-row strong,.plain-list strong{color:#425344}
.list-row a,.plain-list a{color:var(--forest)}

.pub-year,.work-year{color:var(--clay)}
.publication:first-of-type{border-top-color:#bda97f}
.publication h3{color:#384239}
.publication a{color:var(--forest)!important}
.filter-btn.active,.filter-btn:hover{border-bottom-color:var(--clay);color:var(--forest)}

.about-focus{
  border-top-color:var(--sage)!important;
  border-bottom-color:#b99c68!important;
}
.about-focus-copy h2,.experience-overview h2{color:#425344}
.about-focus-links b{color:var(--clay)!important}

.experience-overview{
  border-top-color:var(--sage)!important;
  border-bottom-color:#b99c68!important;
}
.experience-date{border-top-color:#b89a67}
.experience-date b,.experience-link{color:var(--forest)}
.experience-current{color:var(--clay)!important}
.experience-detail strong{color:#425344}
.experience-detail:nth-child(3n+2){border-top-color:#b99c68!important}
.experience-detail:nth-child(3n){border-top-color:#b27a66!important}

.institution{border-top-color:#bda97f}
.unit-code{color:var(--clay)}
.subject-grid span,.unit-card{border-bottom-color:#d5cbbb}

.supervision-table th{
  background:#e8ede2;
  color:#596354;
}
.supervision-table th:first-child{border-top:2px solid var(--forest)}
.supervision-table a{color:var(--forest)}

.side-note{
  border-top-color:var(--sage);
  border-bottom-color:#b99c68;
}
.side-note h3{color:#425344}
.side-links a{color:var(--forest)}

.footer{
  border-top-color:#aa9a76;
}
.footer h4{color:var(--clay)}
.footer .brand>span:last-child{color:#425344!important}
.footer a:hover{color:var(--forest)}
.footer-bottom{border-top-color:#d1c6b5}

/* Links: green by default, clay on hover. */
a{color:var(--forest)}
a:hover{color:var(--clay)}
.btn,.closing-links a,.pub-links a,.contact-row a{
  color:var(--forest)!important;
}
.btn:hover,.closing-links a:hover,.pub-links a:hover,.contact-row a:hover{
  color:var(--clay)!important;
}

/* Small details keep the palette balanced. */
.meta,.when,.small{color:var(--slate)}
.status.inprogress{color:var(--forest)!important}
.status.graduated{color:#5f744c!important}
::selection{background:#dce5d7;color:#2f352f}

@media(max-width:760px){
  .site-header::after{height:2px}
}

/* ===== Leaf-green refinement — October 2026 ===== */
/* Make the botanical green visible, while keeping the page quiet and academic. */
:root{
  --forest:#3f6b4d;
  --sage:#7f9a7a;
  --leaf:#5f875f;
  --blue:#4f7557;
  --blue-dark:#355a40;
}

.site-header .brand>span:last-child{color:var(--forest)!important}
.nav-links>a:hover,.nav-links>a.active{
  color:var(--forest)!important;
  border-bottom-color:var(--leaf)!important;
}

.page-hero{
  background:#f0f2e8!important;
  border-bottom-color:#91a987!important;
}
.page-hero h1{color:var(--forest)!important}
.section-title h2,
.about-focus-copy h2,
.experience-overview h2,
.side-note h3{
  color:#456b4d!important;
}

.topic,.project,.blog-card,.prof-block,.contact-card,.note-card,.toolkit-card{
  border-top-color:#88a17f!important;
}
.topic:nth-child(3n+2),.project:nth-child(3n+2),.blog-card:nth-child(3n+2),
.prof-block:nth-child(3n+2),.contact-card:nth-child(3n+2),.toolkit-card:nth-child(3n+2){
  border-top-color:#9eaf8f!important;
}

a,.btn,.closing-links a,.pub-links a,.contact-row a,
.side-links a,.experience-link,.publication a{
  color:var(--forest)!important;
}
a:hover,.btn:hover,.closing-links a:hover,.pub-links a:hover,
.contact-row a:hover,.side-links a:hover,.experience-link:hover,.publication a:hover{
  color:#7b5c3f!important;
}

.list-row strong,.plain-list strong,.experience-detail strong{
  color:#456b4d!important;
}
.unit-code,.pub-year,.work-year{color:#6c7f4d!important}

.footer{
  border-top-color:#89a17f!important;
}
.footer h4{color:#527257!important}
.footer .brand>span:last-child{color:var(--forest)!important}

::selection{background:#d7e4d3;color:#2f352f}


/* Research supervision status: keep short statuses on one line. */
.supervision-table .status{display:inline-block!important;white-space:nowrap!important;word-break:keep-all!important;}


/* Research supervision table header alignment. */
.supervision-table thead th{text-align:center!important;vertical-align:middle!important;}
