:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5b6577;
  --border: #e3e8f0;
  --accent: #1a63d6;
  --accent-strong: #1558c0;
  --accent-soft: #e8f0fe;
  --teal: #0a7a6c;
  --hero-bg: #0b1324;
  --hero-bg-2: #12213d;
  --hero-text: #e8edf6;
  --hero-muted: #9fb0cc;
  --shadow: 0 10px 30px rgba(16, 30, 60, 0.08);
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1320;
    --bg-alt: #111a2b;
    --surface: #152035;
    --text: #e3e8f2;
    --muted: #9aa6bb;
    --border: #23314b;
    --accent: #5b9bff;
    --accent-strong: #84b4ff;
    --accent-soft: #1a2b4a;
    --teal: #3cc7b2;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* filters/search hide items with the hidden attribute */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.section p a, .timeline p a, .list a, .impact-foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.impact-updated { display: flex; align-items: center; margin-top: 4px; }
.impact-updated .fi { color: #7fd8c9; margin-right: .4em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / hero ---------- */
.site-header {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(31, 111, 235, .35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(15, 157, 138, .25), transparent 60%),
    linear-gradient(160deg, var(--hero-bg), var(--hero-bg-2));
  color: var(--hero-text);
  padding-bottom: 72px;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; position: relative;
}
.brand { display: flex; align-items: center; color: #fff; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--hero-text); padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav-links a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; right: 0; left: 0;
    flex-direction: column; background: #0f1b33; padding: 8px; border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35); z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}

.hero {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding-top: 32px;
}
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding-top: 44px; align-items: stretch; } }
.eyebrow { color: #7fd8c9; font-weight: 600; font-size: .9rem; letter-spacing: .4px; text-transform: uppercase; margin: 10px 0 10px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 3.4rem); color: #fff; margin: 0; }
.lede { font-size: 1.12rem; color: var(--hero-text); max-width: 38em; margin: 22px 0 20px; }
.lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

/* photo on the left of the name */
.hero-id { display: flex; align-items: center; gap: 24px; }
.hero-photo { flex: none; }
.hero-photo img {
  width: 170px; height: 170px; object-fit: cover; object-position: center 20%;
  border-radius: 50%; border: 4px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 10px rgba(91,155,255,.08);
}
@media (max-width: 600px) {
  .hero-id { gap: 16px; align-items: flex-start; }
  .hero-photo img { width: 96px; height: 96px; border-width: 3px; box-shadow: 0 0 0 6px rgba(91,155,255,.08); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; }

.profiles { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; }
.profiles a { color: var(--hero-muted); font-size: .92rem; font-weight: 500; }
.profiles a:hover { color: #fff; }

/* ---------- Research impact card (in the header) ---------- */
.impact-card {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px 20px 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); backdrop-filter: blur(6px); color: var(--hero-text);
}
.impact-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.impact-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; margin: 0; display: flex; align-items: center; }
.impact-head h2 .fi { color: #7fd8c9; }
.growth { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(60,199,178,.16); color: #7fe3d3; white-space: nowrap; }
.growth:empty { display: none; }

.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.metric { grid-column: span 2; display: flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.metric:nth-child(n+4) { grid-column: span 3; }
.metric-value { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-label { color: var(--hero-muted); font-size: .8rem; display: flex; align-items: center; }
.metric-label .fi { color: #7fd8c9; font-size: .9em; margin-right: .35em; }

.metric-chart { margin: 14px 0 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.metric-chart figcaption { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--hero-muted); margin-bottom: 2px; }
.chart { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .cg { stroke: rgba(255,255,255,.08); stroke-dasharray: 3 5; }
.chart-svg .cg:last-of-type { stroke: rgba(255,255,255,.2); stroke-dasharray: none; }
.chart-svg .area { animation: chart-fade 1.2s ease-out both .3s; }
.chart-svg .line { fill: none; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(60,199,178,.35));
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: chart-draw 1.3s cubic-bezier(.4,0,.2,1) forwards; }
.chart-svg .dot { fill: #0f1b33; stroke: #8fb8ff; stroke-width: 2.5; animation: chart-fade .4s ease-out both 1s; }
.chart-svg .pt.cur .dot { fill: #5fe0cb; stroke: #fff; }
.chart-svg .halo { fill: #5fe0cb; opacity: .35; transform-box: fill-box; transform-origin: center; animation: chart-pulse 2.2s ease-out infinite 1.4s; }
.chart-svg .cv { fill: #fff; font: 700 13px var(--sans); text-anchor: middle; animation: chart-fade .4s ease-out both 1.1s; }
.chart-svg .pt.cur .cv { fill: #7fe3d3; }
.chart-svg .cy { fill: var(--hero-muted); font: 500 11px var(--sans); text-anchor: middle; }
.chart-svg .pt.cur .cy { fill: #7fe3d3; font-weight: 700; }
.chart-svg .pt:hover .dot { stroke-width: 4; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chart-svg * { animation: none !important; stroke-dashoffset: 0 !important; } }
.impact-foot { margin: 8px 0 0; font-size: .75rem; color: var(--hero-muted); }
.impact-foot a { color: var(--hero-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.sub-title { font-size: 1.05rem; margin: 32px 0 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.section-head .section-title { margin: 0; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.three-col { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .three-col { grid-template-columns: repeat(3, 1fr); } }
.three-col .sub-title:first-child { margin-top: 8px; }

.interests { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; align-self: start; }
.interests h3 { font-size: 1rem; margin-bottom: 12px; }
.interests h3:not(:first-child) { margin-top: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--accent-soft); color: var(--accent-strong); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.tags-soft li { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* ---------- Publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters { display: flex; gap: 6px; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-n { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .75rem; background: var(--bg-alt); color: var(--muted); }
.chip.is-active .chip-n { background: rgba(0,0,0,.25); color: #fff; }
.search input {
  font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 240px; max-width: 100%;
}
@media (max-width: 520px) { .search, .search input { width: 100%; } }
.pub-note { margin: 12px 0 24px; }

.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pub {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color .15s, box-shadow .15s;
}
.pub:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
@media (max-width: 560px) { .pub { grid-template-columns: 1fr; gap: 4px; padding: 18px; } }
.pub-year { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--muted); padding-top: 2px; }
.pub-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { color: var(--muted); font-size: .92rem; margin-bottom: 2px; }
.pub-authors b { color: var(--text); font-weight: 600; }
.pub-venue { font-size: .92rem; margin-bottom: 12px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .82rem; }
.badge { padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; letter-spacing: .3px; text-transform: uppercase; }
.badge-journal { background: var(--accent-soft); color: var(--accent-strong); }
.badge-other { background: var(--bg-alt); color: var(--muted); }
.badge-conf { background: color-mix(in srgb, var(--teal) 12%, transparent); color: color-mix(in srgb, var(--teal) 82%, var(--text)); }
.doi {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--accent); word-break: break-all;
}
.doi:hover { border-color: var(--accent); text-decoration: none; }
.cites { color: var(--muted); font-variant-numeric: tabular-nums; }
a.cites { color: var(--muted); }
a.cites:hover { color: var(--accent); }
.empty { text-align: center; padding: 24px; }

/* ---------- Peer review ---------- */
.rev-summary { font-size: 1.05rem; margin: 8px 0 24px; max-width: 48em; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.review h3 { font-size: 1rem; margin-bottom: 2px; }
.review .muted { font-size: .85rem; margin-bottom: 12px; }
.review-meta { margin: auto 0 0; display: flex; align-items: baseline; gap: 6px; font-size: .9rem; color: var(--muted); }
.review-n { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.review-years { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--teal); }

/* ---------- Timeline / cards ---------- */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 32px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 2px; }
.timeline p:last-child { margin-bottom: 0; max-width: 52em; }
.tl-date { display: block; font-size: .82rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.tl-org { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }

.cards { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card p:last-child { margin-bottom: 0; }
.sub-title + .cards { margin-top: 0; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { font-size: .95rem; }

/* ---------- Contact / footer ---------- */
.section-dark { background: linear-gradient(160deg, var(--hero-bg), var(--hero-bg-2)); color: var(--hero-text); }
.section-dark .section-title { color: #fff; }
.contact { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.2fr 1fr; } }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-links .btn { word-break: break-all; }

.site-footer { background: #080e1b; color: var(--hero-muted); font-size: .88rem; padding: 24px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-inner p { margin: 0; flex: 1; }
.footer-inner a { color: var(--hero-muted); }
.footer-inner a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Prevent grid children from forcing horizontal overflow */
.hero > *, .two-col > *, .three-col > *, .contact > *, .pub-body, .metrics-grid > * { min-width: 0; }
html, body { overflow-x: hidden; }

/* ---------- Icons (Lucide sprite + brand SVG logos) ---------- */
.fi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none;
      fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; flex: none; }
.fi, .ico { margin-right: .45em; }
.fi-external-link, .fi-arrow-up { margin: 0 0 0 .4em; font-size: .85em; }
.btn .fi, .btn .ico { margin-right: 0; }
.btn .fi-external-link { margin-left: 0; }

.section-title .fi { color: var(--accent); font-size: .78em; margin: .22em .5em 0 0; flex: none; }
.section-title { display: flex; align-items: flex-start; }
.sub-title { display: flex; align-items: flex-start; }
.sub-title .fi { margin-top: .2em; flex: none; }
.section-dark .section-title .fi { color: #7fd8c9; }
.metrics-head h2 .fi, .interests h3 .fi, .sub-title .fi { color: var(--accent); }
.eyebrow .fi { margin-right: .35em; }

.profiles a { display: inline-flex; align-items: center; }
.profiles .fi, .profiles .ico { font-size: 1.05em; margin-right: .4em; }

.tl-date .fi, .review-years .fi { font-size: .95em; margin-right: .35em; vertical-align: -0.1em; }
.tl-org .fi { font-size: .9em; color: var(--muted); margin-right: .4em; }
.list .tl-date { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.list .tl-date .role { margin-left: 8px; }

.pub-meta .fi { margin-right: .35em; font-size: .95em; vertical-align: -0.12em; }
.doi { display: inline-flex; align-items: center; }

.search { position: relative; display: inline-block; }
.search .fi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); margin: 0; color: var(--muted); font-size: .9rem; pointer-events: none; }
.search input { padding-left: 36px; }

.section-head > a { display: inline-flex; align-items: center; }
.site-footer .fi { margin-right: 0; }
.ico-github { color: #181717; }
.site-header .ico-github, .section-dark .ico-github { color: #fff; }

/* ---------- Flags ---------- */
.flag { display: inline-block; width: 20px; height: 15px; object-fit: cover; border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 1px 3px rgba(0,0,0,.25); }
.home-flags { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hero-muted); font-size: .88rem; font-weight: 500; }
.home-flags .flag { width: 24px; height: 18px; }
.home-flags span { margin-left: 4px; }

.visited { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px;
           color: var(--hero-muted); font-size: .85rem; }
.visited:hover { text-decoration: none; color: #fff; }
.visited-label { font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: .75rem; }
.flag-row { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.flag-row .flag { transition: transform .15s; }
.visited:hover .flag { transform: translateY(-2px); }

/* ---------- Travel map ---------- */
.travel { display: grid; gap: 28px; align-items: center; margin-top: 16px; }
@media (min-width: 900px) { .travel { grid-template-columns: minmax(300px, 1fr) 2.2fr; } }
.travel-map { margin: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.travel-map img, .travel-map svg { display: block; width: 100%; height: auto; }
.map-svg path { fill: #d9dfe8; stroke: var(--surface); stroke-width: .5; transition: fill .15s; }
.map-svg path:hover { fill: #b9c3d3; }
.map-svg path.v { fill: var(--accent); }
.map-svg path.v:hover { fill: var(--accent-strong); }
.map-svg path.home { fill: var(--teal); }
@media (prefers-color-scheme: dark) { .map-svg path { fill: #26324a; } .map-svg path:hover { fill: #33425f; } }
.travel-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.travel-list { grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 14px 24px; }
.travel-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.flag-lg { width: 28px; height: 21px; box-shadow: 0 0 0 1px var(--border); }
.home-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px;
            background: color-mix(in srgb, var(--teal) 14%, transparent); color: color-mix(in srgb, var(--teal) 82%, var(--text)); }

/* ---------- Certifications ---------- */
.cert-intro { max-width: 52em; margin: 4px 0 24px; }
.cert-groups { display: grid; gap: 14px; }
.cert-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cert-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 600; font-size: 1.02rem; }
.cert-group > summary::-webkit-details-marker { display: none; }
.cert-group > summary .fi { color: var(--accent); margin: 0; }
.cert-group > summary .chip-n { margin-left: 0; }
.cert-group > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.cert-group[open] > summary::after { transform: rotate(-135deg); }
.cert-group > summary:hover .cert-group-title { color: var(--accent); }
.certs { list-style: none; margin: 0; padding: 4px 20px 18px; display: grid; gap: 12px 28px; align-items: start; }
@media (min-width: 760px) { .certs { grid-template-columns: repeat(2, 1fr); } }
.cert { border-top: 1px solid var(--border); padding-top: 12px; }
.cert-title { margin: 0 0 2px; font-weight: 600; font-size: .95rem; }
.cert-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.cert-verify { margin-left: 8px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.cert-verify .fi { margin-right: .25em; }
.cert-parts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cert-parts li { font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); }

/* conference roles + notes */
.role { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .3px;
        text-transform: uppercase; vertical-align: .1em; background: var(--accent-soft); color: var(--accent-strong); }
.list-note { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; }
.card h3 .role { font-size: .65rem; }

/* ---------- Online profiles ---------- */
.more-profiles { color: #7fd8c9 !important; }
.more-profiles .fi { transform: rotate(180deg); margin-left: .3em; margin-right: 0; font-size: .85em; }
#profiles { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.profiles-title { color: #fff; margin-top: 0; }
.profiles-title .fi { color: #7fd8c9 !important; }
.profile-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--hero-text); font-weight: 500; font-size: .92rem;
  transition: background .15s, border-color .15s, transform .15s; }
.profile-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; text-decoration: none; transform: translateY(-1px); }
.profile-card .ico, .profile-card .fi { width: 22px; height: 22px; margin: 0; }
.profile-card .fi { color: #7fd8c9; }
.nowrap { white-space: nowrap; }
.profiles { align-items: center; }
.profiles li { display: flex; align-items: center; }
#data-updated { margin-left: .3em; }
