/* Dr Aryan Pasikhani - site stylesheet.
   Section 1: self-hosted fonts (the same files the page used to load from Google Fonts).
   Section 2: the page design, copied unchanged from the original my_website.html export.
   Section 3: small additions needed by the static build. Keep design changes out of section 3. */

/* ============ 1. Fonts ============ */
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.920711de9a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.6438d7b8ea.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.920711de9a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.6438d7b8ea.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.920711de9a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.6438d7b8ea.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-italic-latin-ext.ad99363217.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-italic-latin.b9b0f6feec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-ext.ed3571ea9f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin.587435ca9d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-ext.ed3571ea9f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin.587435ca9d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin-ext.ed3571ea9f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-latin.587435ca9d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ 2. Page design (unchanged from the original export) ============ */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-soft: #e8f0fb;
  --ink: #1f2933;
  --body: #3a4450;
  --muted: #6b7684;
  --line: #e4e8ee;
  --band: #f6f8fb;
  --head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 3px rgba(16,24,40,0.06), 0 6px 18px rgba(16,24,40,0.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; background: #fff; color: var(--body); }
body { font-family: var(--text); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--ink); font-weight: 700; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--primary-soft); }
.ic { width: 1em; height: 1em; flex: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16,24,40,0.04); }
.navbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { font-family: var(--head); font-weight: 500; font-size: 14.5px; color: #4a5563; padding: 8px 11px; border-radius: 6px; white-space: nowrap; }
.menu a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.menu a.is-active { color: var(--primary); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* sections */
.section { padding: 88px 0; }
.section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px 56px; }
.shead h2 { font-size: 34px; line-height: 1.2; font-weight: 700; }
.shead p { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.shead .rule { width: 44px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }

/* about */
.about { padding: 72px 0 88px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.profile { text-align: center; }
.avatar { width: 250px; height: 250px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,40,0.15); border: 6px solid #fff; outline: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile h1 { margin-top: 26px; font-size: 30px; line-height: 1.25; font-weight: 700; }
.postnom { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--primary); letter-spacing: 0.04em; }
.profile .role { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.profile .org { margin-top: 4px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.profile .org a { color: var(--muted); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); transition: background .2s ease, color .2s ease, transform .2s ease; font-family: var(--head); font-weight: 700; font-size: 11px; }
.socials a:hover { background: var(--primary); color: #fff; text-decoration: none; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.bio h2 { font-size: 34px; font-weight: 700; }
.bio .lead { margin-top: 20px; }
.bio p + p { margin-top: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-family: var(--head); font-weight: 600; font-size: 14.5px; border: 1px solid var(--primary); color: var(--primary); background: #fff; transition: background .2s ease, color .2s ease; cursor: pointer; }
.btn:hover { background: var(--primary-soft); text-decoration: none; }
.btn.solid { background: var(--primary); color: #fff; }
.btn.solid:hover { background: var(--primary-dark); color: #fff; }
.btn svg { width: 17px; height: 17px; }
.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.two-lists h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ilist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.ilist li svg { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; flex: none; }
.ilist .sm { display: block; font-size: 15.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.stat { padding: 18px 16px; border-radius: 12px; background: var(--band); border: 1px solid var(--line); text-align: center; }
.stat-n { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--primary); }
.stat-l { margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

/* news */
.news { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 24px; padding: 20px 24px; }
.pill { display: inline-block; align-self: start; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-family: var(--head); font-weight: 600; font-size: 12.5px; line-height: 1.5; letter-spacing: 0.02em; }
.news-t { font-family: var(--head); font-weight: 600; font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.news-d { margin-top: 6px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.news-a { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.more { margin-top: 20px; }

/* research */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rcard { padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,0.06), 0 14px 30px rgba(16,24,40,0.1); }
.ricon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.ricon svg { width: 26px; height: 26px; }
.rcard h3 { margin-top: 18px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.rcard p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; }

/* publications */
.filters { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-family: var(--head); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease; }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pubs { display: grid; gap: 14px; }
.pub { padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; }
.pub-t { font-family: var(--head); font-weight: 600; font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.pub-au { margin-top: 6px; font-size: 16.5px; line-height: 1.55; color: var(--body); }
.pub-au strong { color: var(--primary-dark); }
.pub-v { margin-top: 2px; font-size: 16.5px; line-height: 1.55; font-style: italic; color: var(--muted); }
.pub-n { margin-top: 8px; font-size: 16px; color: var(--body); }
.pub-btns { display: flex; gap: 8px; margin-top: 12px; }
.xs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--primary); color: var(--primary); font-family: var(--head); font-weight: 600; font-size: 12.5px; }
.xs:hover { background: var(--primary); color: #fff; text-decoration: none; }
.pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.yr { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); }
.kind { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* funding */
.fund-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 26px 30px; margin-bottom: 22px; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 12px; }
.fund-sum .big { font-family: var(--head); font-weight: 700; font-size: 40px; line-height: 1.1; }
.fund-sum .lbl { font-size: 16.5px; line-height: 1.5; opacity: 0.92; max-width: 34em; }
.fund { display: grid; gap: 14px; }
.grant { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; }
.grant.is-muted { opacity: 0.65; }
.g-t { font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.45; color: var(--ink); }
.g-p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; font-size: 15.5px; color: var(--body); }
.g-meta .pill { font-size: 12px; }
.g-val { text-align: right; }
.g-v { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); white-space: nowrap; }
.g-vn { font-size: 14.5px; color: var(--muted); white-space: nowrap; }

/* impact */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 26px; }
.product { padding: 20px 22px; }
.product b { display: block; font-family: var(--head); font-size: 18px; color: var(--primary); }
.product span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; font-size: 17px; line-height: 1.6; }
.checks li svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }

/* experience timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 16px; padding: 18px 24px; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item.now::before { background: var(--primary); }
.tl-top { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
.tl-t { font-family: var(--head); font-weight: 600; font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.tl-d { font-family: var(--head); font-weight: 600; font-size: 13.5px; color: var(--primary); white-space: nowrap; }
.tl-o { margin-top: 4px; font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.subh { font-family: var(--head); font-size: 20px; font-weight: 700; margin: 34px 0 16px; }
.subh:first-child { margin-top: 0; }

/* teaching */
.tgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.tcard { padding: 26px 28px; }
.tcard h3 { font-size: 19px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tcard h3 svg { width: 22px; height: 22px; color: var(--primary); }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.6; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.names span { padding: 6px 14px; border-radius: 999px; background: var(--band); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.note { margin-top: 16px; font-size: 15.5px; color: var(--muted); }

/* certifications */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.badge { padding: 20px 14px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,0.06), 0 14px 30px rgba(16,24,40,0.1); text-decoration: none; }
.badge-img { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.badge-img img { max-width: 96px; max-height: 96px; object-fit: contain; }
.mono { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-dark); font-family: var(--head); font-weight: 700; font-size: 16px; }
.badge-c { margin-top: 12px; font-family: var(--head); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.badge-n { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.further { margin-top: 22px; font-size: 16.5px; }

/* service */
.sv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.cline { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 1px; }
.footer { padding: 30px 0; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }

@media (max-width: 1080px) {
  .menu a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16,24,40,0.08); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 10px; font-size: 16px; }
  .sgrid, .about-grid, .tgrid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cards3, .products { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  body { font-size: 17.5px; }
  .container { padding: 0 18px; }
  .avatar { width: 200px; height: 200px; }
  .two-lists, .sv { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item, .pub, .grant { grid-template-columns: minmax(0, 1fr); padding: 18px 18px; }
  .pub-side { flex-direction: row; align-items: center; }
  .g-val { text-align: left; }
  .shead h2, .bio h2 { font-size: 28px; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 3. Additions for the static build ============ */
[hidden] { display: none !important; }
.minw0 { min-width: 0; }
.avatar picture { display: contents; }
.badge-img img { width: auto; height: auto; }
.badge-x { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.badge-c, .badge-n, .badge-x { display: block; }
.cert-note { margin-top: 22px; font-size: 16.5px; }
.cert-note + .further { margin-top: 10px; }

/* Skip link: off-screen until focused with the keyboard */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 16px; background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); border-radius: 0 0 8px 0; font-family: var(--head); font-weight: 600; font-size: 14.5px; }
.skip:focus { left: 0; }

/* Controls that need JavaScript stay hidden without it, so the page is complete either way */
.filters { display: none; }
html.js .filters { display: inline-flex; }
.more { display: none; }
html.js .more { display: block; }
html.js .news:not(.all) .news-extra { display: none; }
html.js .news.all + .more { display: none; }

/* 404 page */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 34px; font-weight: 700; }
.notfound p { margin-top: 14px; }
.notfound .btns { justify-content: center; }

@media print {
  .navbar, .skip, .filters, .more, .btns { display: none !important; }
  html.js .news .news-extra { display: grid !important; }
  .section, .about { padding: 24px 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
