[hidden]{display:none!important}.publication-filter{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.publication-filter label{font-weight:600}.publication-filter input{font:inherit;flex:1;min-width:180px;padding:12px 16px;color:var(--text-body);background:var(--bg-card);border:1px solid var(--border);border-radius:12px}.publication-filter input:focus{outline:2px solid var(--accent)}#publicationCount,.contact-note{color:var(--text-muted);font-size:.85rem}.empty-content{padding:24px;color:var(--text-muted);border:1px dashed var(--border);border-radius:12px}.blog-image{width:100%;height:190px;object-fit:cover}.blog-card .btn{margin-top:16px;align-self:flex-start}.bio__text p,#postDialogContent{white-space:pre-wrap}.course-card__description{font-size:.85rem;margin-top:8px;color:var(--text-muted)}dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:32px;border:1px solid var(--border);border-radius:20px;background:var(--bg-card);color:var(--text-body);font-family:inherit;box-shadow:var(--shadow-float)}dialog::backdrop{background:rgb(15 23 42 / .65);backdrop-filter:blur(4px)}dialog h2{margin:24px 0 12px}#postDialogDate{font-size:.85rem;color:var(--text-muted);margin-bottom:16px}#postDialogContent{line-height:2}#contentStatus{color:var(--text-muted);margin-bottom:12px}.research-card__title{overflow-wrap:anywhere}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.gallery-card{margin:0;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--bg-card);box-shadow:var(--shadow-card);transition:transform .2s ease,box-shadow .2s ease}.gallery-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-float)}.gallery-card img{width:100%;height:210px;object-fit:cover}.gallery-card figcaption{padding:14px 16px;font-size:.9rem;font-weight:700;color:var(--text-heading)}.gallery-grid .empty-content{grid-column:1/-1}
/* MTProfileX visual system */
:root{--mt-teal:#0f766e;--mt-blue:#1d4ed8;--mt-ink:#10243e;--mt-soft:#f4f8fb;--mt-line:rgba(15,118,110,.14);--mt-shadow:0 24px 70px rgba(16,36,62,.12)}
html{scroll-behavior:smooth}body{background:radial-gradient(circle at 10% 0%,rgba(20,184,166,.13),transparent 30rem),radial-gradient(circle at 90% 12%,rgba(37,99,235,.1),transparent 32rem),var(--bg);color:var(--text-body)}
.nav{top:16px!important;right:16px;left:16px;width:auto!important;background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.65);border-radius:22px;box-shadow:0 12px 38px rgba(16,36,62,.12);backdrop-filter:blur(18px);z-index:50}.nav__inner{max-width:1180px;padding:12px 20px}.nav__brand{font-weight:800;letter-spacing:-.04em;color:var(--mt-ink)}.nav__links a{font-weight:600;border-radius:999px;padding:9px 13px;transition:.2s}.nav__links a:hover{background:rgba(15,118,110,.1);color:var(--mt-teal)}
.hero{min-height:650px;max-width:1180px;margin:0 auto;padding:170px 0 100px;position:relative;isolation:isolate}.hero:before{content:"";position:absolute;inset:80px 0 25px;background:linear-gradient(135deg,#0f766e 0%,#155e75 48%,#1d4ed8 100%);border-radius:42px;z-index:-2;box-shadow:var(--mt-shadow)}.hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;border:1px solid rgba(255,255,255,.26);right:7%;top:120px;z-index:-1;box-shadow:0 0 0 34px rgba(255,255,255,.04),0 0 0 70px rgba(255,255,255,.03)}.hero__content{padding:40px 56px;color:#fff}.hero__eyebrow{color:#ccfbf1!important;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:9px 14px;border-radius:999px;width:max-content}.hero__name{font-size:clamp(2.6rem,6vw,5.8rem)!important;line-height:1.05;color:#fff!important;letter-spacing:-.07em;max-width:9ch;text-shadow:0 8px 28px rgba(0,0,0,.18)}.hero__title{color:rgba(255,255,255,.8)!important;font-size:1.1rem!important}.hero__cta .btn--primary{background:#fff;color:var(--mt-teal);box-shadow:0 12px 24px rgba(0,0,0,.12)}.hero__cta .btn--ghost{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.09)}.hero__avatar{width:270px!important;height:270px!important;border:12px solid rgba(255,255,255,.2)!important;background:rgba(255,255,255,.13)!important;color:#fff!important;box-shadow:0 25px 65px rgba(0,0,0,.2);margin-inline:50px!important}
.section{padding-block:110px!important}.section__header{max-width:720px;margin-bottom:38px}.section__label{color:var(--mt-teal)!important;font-weight:800;letter-spacing:.12em}.section__title{font-size:clamp(2rem,4vw,3.5rem)!important;letter-spacing:-.06em;color:var(--mt-ink)!important}.section__desc{font-size:1.05rem;line-height:2;color:var(--text-muted)}.bio__grid{background:rgba(255,255,255,.68);border:1px solid var(--mt-line);border-radius:28px;padding:38px;box-shadow:0 18px 50px rgba(16,36,62,.07)}.research-card,.pub-item,.course-card,.blog-card,.contact-item{border:1px solid var(--mt-line)!important;border-radius:22px!important;box-shadow:0 14px 40px rgba(16,36,62,.06)!important;background:rgba(255,255,255,.78)!important}.research-card:hover,.course-card:hover,.blog-card:hover,.pub-item:hover{border-color:rgba(15,118,110,.42)!important;transform:translateY(-6px)}.research-card__icon,.course-card__icon{background:linear-gradient(135deg,#ccfbf1,#dbeafe)!important;color:var(--mt-teal)!important}.publication-filter{background:rgba(255,255,255,.75);padding:14px;border-radius:18px;border:1px solid var(--mt-line)}.publication-filter input{border-radius:14px!important;background:#fff!important}.gallery-card{border-radius:22px!important}.gallery-card img{height:230px;transition:transform .35s}.gallery-card:hover img{transform:scale(1.04)}.footer{background:#0f243d;color:#cbd5e1;border:0;margin-top:0}.footer a{color:#99f6e4}
.dialog,dialog{border-radius:26px!important;border:1px solid rgba(255,255,255,.5)!important}
[data-theme="dark"] body{background:#081522}.nav{background:rgba(8,21,34,.8)!important}.nav__brand,.section__title{color:#e2e8f0!important}.bio__grid,.research-card,.pub-item,.course-card,.blog-card,.contact-item,.publication-filter{background:rgba(15,36,61,.78)!important;border-color:rgba(148,163,184,.18)!important}.hero:before{background:linear-gradient(135deg,#115e59,#123d66 58%,#312e81)}
@media(max-width:800px){.nav{top:8px!important;right:8px;left:8px}.hero{padding:120px 16px 60px}.hero:before{inset:55px 16px 16px;border-radius:28px}.hero__content{padding:30px 24px}.hero__avatar{margin:15px auto 0!important}.hero__name{max-width:12ch}.section{padding-block:75px!important}}
/* MTProfileX luxury-minimal refinement */
:root{--lux-ink:#132238;--lux-muted:#66758a;--lux-line:#e6ebf0;--lux-accent:#9a6b3f;--lux-accent-soft:#f4ece4;--lux-paper:#fbfaf8;--lux-radius:18px}
body{background:var(--lux-paper);color:var(--lux-ink);font-size:16px}.nav{top:18px!important;right:5vw;left:5vw;border-radius:16px!important;background:rgba(251,250,248,.9)!important;border:1px solid rgba(19,34,56,.08)!important;box-shadow:0 8px 26px rgba(19,34,56,.07)!important}.nav__inner{max-width:1240px;padding:10px 18px}.nav__brand{font-size:1.02rem;color:var(--lux-ink)!important}.nav__links{gap:4px}.nav__links a{font-size:.83rem;color:var(--lux-muted);padding:8px 11px}.nav__links a:hover{background:var(--lux-accent-soft);color:var(--lux-accent)}
.hero{max-width:1240px;min-height:720px;padding:168px 5vw 110px}.hero:before{inset:70px 5vw 30px 5vw;background:linear-gradient(120deg,#1b2b42 0%,#253b55 65%,#304862 100%);border-radius:30px;box-shadow:0 28px 80px rgba(19,34,56,.18)}.hero:after{display:none}.hero__content{padding:48px 6vw}.hero__eyebrow{font-size:.78rem;letter-spacing:.04em;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.28);border-radius:0;padding:0 0 12px;color:#ddc2a5!important}.hero__name{font-size:clamp(2.8rem,6vw,6rem)!important;max-width:8ch;letter-spacing:-.09em;margin-top:20px}.hero__title{font-size:1rem!important;max-width:42ch;line-height:2;color:#d7e0e8!important}.hero__cta{margin-top:34px}.hero__cta .btn{border-radius:10px;padding:12px 18px;box-shadow:none}.hero__cta .btn--primary{background:var(--lux-accent)!important;color:#fff!important}.hero__avatar{width:300px!important;height:390px!important;border-radius:150px 150px 28px 28px!important;border:1px solid rgba(255,255,255,.26)!important;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.03))!important;box-shadow:0 25px 60px rgba(0,0,0,.22);margin-inline:5vw!important}
.section{padding-block:100px!important}.section__header{margin-bottom:30px}.section__label{font-size:.72rem;letter-spacing:.18em;color:var(--lux-accent)!important;text-transform:uppercase}.section__title{font-size:clamp(2rem,4vw,3.2rem)!important;color:var(--lux-ink)!important;letter-spacing:-.075em}.section__desc{font-size:.98rem;max-width:52ch;color:var(--lux-muted)}.bio__grid{background:#fff;border:1px solid var(--lux-line);border-radius:var(--lux-radius);padding:36px;box-shadow:none}.research-grid,.course-grid,.blog-grid,.gallery-grid{gap:18px}.research-card,.pub-item,.course-card,.blog-card,.contact-item,.gallery-card{border:1px solid var(--lux-line)!important;border-radius:var(--lux-radius)!important;background:#fff!important;box-shadow:none!important}.research-card:hover,.pub-item:hover,.course-card:hover,.blog-card:hover{transform:translateY(-3px);border-color:#d4b79b!important;box-shadow:0 12px 30px rgba(19,34,56,.07)!important}.research-card__icon,.course-card__icon{background:var(--lux-accent-soft)!important;color:var(--lux-accent)!important}.publication-filter{padding:12px 0;background:none;border:0;border-bottom:1px solid var(--lux-line);border-radius:0}.publication-filter input{border:1px solid var(--lux-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:none}.pub-item{padding:20px}.pub-item__num{background:var(--lux-accent-soft);color:var(--lux-accent)}.gallery-card img{height:220px}.gallery-card figcaption{font-size:.82rem;color:var(--lux-ink);font-weight:600}.form{border:1px solid var(--lux-line)!important;border-radius:var(--lux-radius)!important;background:#fff!important;box-shadow:none!important}.field input,.field textarea{border:1px solid var(--lux-line)!important;background:#fff!important;border-radius:10px!important}.footer{background:var(--lux-ink);padding-block:36px;margin-top:0}.footer a{color:#ddc2a5}
[data-theme="dark"] body{background:#0f1824;color:#e8eef3}.nav{background:rgba(15,24,36,.92)!important;border-color:rgba(255,255,255,.1)!important}.nav__brand,.section__title{color:#e8eef3!important}.section__desc,.section__label{color:#b4c0cc!important}.bio__grid,.research-card,.pub-item,.course-card,.blog-card,.contact-item,.gallery-card,.form,.publication-filter{background:#152334!important;border-color:#2a3b4d!important}.field input,.field textarea,.publication-filter input{background:#0f1824!important;color:#e8eef3!important;border-color:#2a3b4d!important}.hero:before{background:linear-gradient(120deg,#0c1622,#183047 70%,#263b50)}
@media(max-width:900px){.hero{min-height:auto;padding:135px 24px 70px}.hero:before{inset:55px 14px 18px}.hero__content{padding:38px 28px}.hero__avatar{width:220px!important;height:270px!important;margin:15px auto 0!important;border-radius:120px 120px 24px 24px!important}.nav{right:10px;left:10px}.nav__links{gap:0}.nav__links a{padding:7px 8px;font-size:.76rem}}
@media(max-width:620px){body{font-size:15px}.nav{top:8px!important}.nav__inner{padding:8px 12px}.nav__brand{font-size:.9rem}.nav__links{position:absolute;top:100%;right:0;left:0;margin-top:8px;padding:10px;background:rgba(251,250,248,.98);border:1px solid var(--lux-line);border-radius:14px;box-shadow:0 14px 34px rgba(19,34,56,.1)}.hero{padding:105px 10px 50px}.hero:before{inset:46px 10px 10px;border-radius:22px}.hero__content{padding:30px 22px}.hero__name{font-size:clamp(2.5rem,15vw,4.4rem)!important}.hero__title{font-size:.9rem!important}.hero__cta{gap:8px}.hero__cta .btn{width:100%;justify-content:center}.hero__avatar{width:180px!important;height:220px!important}.section{padding-block:70px!important}.bio__grid{padding:24px}.section__title{font-size:2.2rem!important}.contact__grid{gap:24px}.form{padding:22px!important}.publication-filter{align-items:stretch;flex-direction:column}.publication-filter input{width:100%;min-width:0}.gallery-card img{height:180px}}
/* final portrait and one-line identity refinement */
.hero__name{white-space:nowrap!important;max-width:none!important;font-size:clamp(1.85rem,5vw,4.9rem)!important;letter-spacing:-.065em!important;line-height:1.2!important}.hero__avatar{overflow:hidden!important;display:grid!important;place-items:center!important}.hero__avatar .profile-photo{object-position:center 18%!important;transform:scale(1.03);transform-origin:center top}.hero__avatar:has(.profile-photo){background:#d9d0c6!important}.hero__avatar:has(.profile-photo)>i{display:none}@media(max-width:620px){.hero__name{font-size:clamp(1.72rem,7.1vw,2.7rem)!important;letter-spacing:-.07em!important}.hero__avatar .profile-photo{object-position:center 16%!important}.hero__avatar{margin-top:26px!important}}

/* Mobile overflow fix: keep the portrait hero fully inside the viewport */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero,
.hero__content,
.hero__name,
.hero__avatar {
  box-sizing: border-box;
}

.hero {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
}

.hero__content {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 700px) {
  .hero {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero:before {
    left: 10px;
    right: 10px;
  }

  .hero__content {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .hero__name {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap !important;
    font-size: clamp(1.28rem, 5.6vw, 2.2rem) !important;
    letter-spacing: -0.075em !important;
  }

  .hero__avatar {
    width: 164px !important;
    height: 202px !important;
    max-width: calc(100vw - 48px);
    margin: 14px auto 0 !important;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-inline: 6px;
  }

  .hero__content {
    padding-inline: 14px;
  }

  .hero__name {
    font-size: clamp(1.08rem, 5.25vw, 1.72rem) !important;
    letter-spacing: -0.08em !important;
  }

  .hero__avatar {
    width: 148px !important;
    height: 184px !important;
  }
}

/* Gallery albums and readable captions */
.gallery-grid { display: grid; gap: 28px; }
.gallery-album { min-width: 0; }
.gallery-album__title { margin: 0 0 14px; color: var(--lux-ink, var(--text-heading)); font-size: 1.15rem; }
.gallery-carousel { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--lux-line, var(--border)); border-radius: 22px; background: var(--bg-card, #fff); }
.gallery-stage { min-width: 0; overflow: hidden; border-radius: 16px; background: #eee8e0; }
.gallery-slide { display: block; width: 100%; height: clamp(220px, 42vw, 420px); object-fit: cover; cursor: zoom-in; }
.gallery-caption { padding: 14px 16px 4px; background: var(--bg-card, #fff); }
.gallery-caption__title { display: block; color: var(--text-heading, #172235); font-size: .98rem; line-height: 1.8; }
.gallery-caption__description { margin: 4px 0 0; color: var(--text-muted, #697586); font-size: .86rem; line-height: 1.8; }
.gallery-counter { display: block; margin-top: 8px; color: var(--text-muted, #697586); font-size: .8rem; text-align: center; }
.gallery-nav { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--lux-line, var(--border)); border-radius: 50%; background: var(--bg-card, #fff); color: var(--text-heading, #172235); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gallery-nav:hover:not(:disabled) { background: var(--lux-accent, #b78b62); color: #fff; }
.gallery-nav:disabled { opacity: .35; cursor: default; }
.blog-card[role="button"] { cursor: pointer; }
.blog-card[role="button"]:focus-visible { outline: 3px solid var(--lux-accent, #b78b62); outline-offset: 3px; }
#postDialogContent img { max-width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 520px) {
  .gallery-carousel { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 6px; padding: 8px; }
  .gallery-nav { width: 34px; height: 34px; font-size: 1.5rem; }
  .gallery-slide { height: 230px; }
  .gallery-caption { padding: 11px 12px 2px; }
}

/* Keep the complete Persian name visible on one line */
.hero__name { font-size: clamp(1.55rem, 4.2vw, 4.2rem) !important; letter-spacing: -0.075em !important; }
@media (max-width: 620px) { .hero__name { font-size: clamp(1.05rem, 5.05vw, 1.95rem) !important; letter-spacing: -0.085em !important; } }
@media (max-width: 390px) { .hero__name { font-size: clamp(.96rem, 4.75vw, 1.55rem) !important; } }

/* Gallery frame: balanced rectangular proportions with more visible width */
.gallery-carousel { width: 100%; }
.gallery-stage { width: 100%; }
.gallery-slide { width: 100%; height: auto !important; aspect-ratio: 1.2 / 1; object-fit: cover; object-position: center; }
@media (max-width: 520px) {
  .gallery-slide { height: auto !important; aspect-ratio: 1.12 / 1; }
}

/* Large gallery viewer */
.gallery-dialog { width: min(1100px, calc(100% - 24px)) !important; max-width: 1100px; max-height: 94vh !important; padding: 18px !important; text-align: center; }
.gallery-dialog img { display: block; width: 100%; max-width: 100%; height: min(76vh, 760px); object-fit: contain; margin: 16px auto; border-radius: 14px; background: #111827; }
.gallery-dialog h2 { margin: 10px 0 4px !important; font-size: 1.15rem; }
.gallery-dialog p { margin: 0 0 8px; color: var(--text-muted); }
.gallery-dialog .btn { margin-inline: 4px; }
.gallery-slide { min-height: 420px; }
@media (max-width: 700px) { .gallery-slide { min-height: 320px; } .gallery-dialog { padding: 10px !important; } .gallery-dialog img { height: 70vh; margin: 10px auto; } }

/* Reliable mobile navigation dropdown */
@media (max-width: 700px) {
  .nav { overflow: visible !important; }
  .nav__inner { position: relative; }
  .nav__links { display: none !important; position: absolute !important; top: calc(100% + 8px) !important; right: 0 !important; left: 0 !important; inset-block-end: auto !important; width: 100% !important; max-height: calc(100vh - 90px); overflow-y: auto; z-index: 1000 !important; }
  .nav__links.open { display: flex !important; }
  .nav__links a { display: block; width: 100%; box-sizing: border-box; text-align: right; }
}

/* Viewport-relative gallery sizing: 50% of the available screen */
.gallery-slide { width: min(50vw, 100%) !important; height: 50vh !important; min-height: 0 !important; margin-inline: auto; object-fit: cover; }
.gallery-dialog img { width: 50vw !important; max-width: 50vw !important; height: 50vh !important; max-height: 50vh !important; object-fit: contain; }
@media (max-width: 700px) {
  .gallery-slide { width: 50vw !important; height: 50vh !important; }
  .gallery-dialog img { width: 50vw !important; max-width: 50vw !important; height: 50vh !important; max-height: 50vh !important; }
}
 .academic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
 .academic-list a { display: block; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: var(--text-heading); font-weight: 700; }
 .academic-list a:hover, .academic-list a:focus-visible, .academic-list a.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

body { background: #f8f7f4; }
.nav { border-radius: 18px !important; box-shadow: 0 12px 36px rgba(25, 38, 55, .09) !important; }
.nav__links a { transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a:focus-visible { background: #eee6da; color: #785230; }
.hero:before { background: radial-gradient(circle at 18% 14%, rgba(170, 136, 96, .24), transparent 37%), linear-gradient(135deg, #172b3f, #263e52 65%, #365065); }
.hero__eyebrow { color: #edcfaa !important; }
.hero__avatar { outline: 7px solid rgba(255, 255, 255, .08); outline-offset: 8px; }
.section__label { letter-spacing: 0; }
.section__title { line-height: 1.4; }
.section__header::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 20px; border-radius: 3px; background: #b3875a; }
.bio__grid { box-shadow: 0 18px 48px rgba(24, 42, 57, .05); }
.academic-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.academic-list a { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid #e5dfd7; border-radius: 15px; background: #fff; color: #26394a; box-shadow: 0 5px 18px rgba(24, 42, 57, .035); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.academic-list a::before { content: '←'; display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 10px; background: #f6efe7; color: #98704b; }
.academic-list a:hover, .academic-list a:focus-visible, .academic-list a.is-active { transform: translateY(-2px); border-color: #b9916b; background: #fbf6f0; color: #775333; box-shadow: 0 12px 26px rgba(77, 56, 34, .09); }
.academic-list a:focus-visible { outline: 2px solid #98704b; outline-offset: 3px; }
.pub-item { transition: border-color .2s, box-shadow .2s; }
.pub-item:hover { transform: none; }
.pub-item__title { line-height: 1.9; }
.pub-item__meta { line-height: 1.8; }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
[data-theme="dark"] .academic-list a { background: #192b3d; border-color: #36495b; color: #e6edf3; }
[data-theme="dark"] .academic-list a::before { background: #354255; color: #edcfaa; }
[data-theme="dark"] .academic-list a:hover, [data-theme="dark"] .academic-list a:focus-visible, [data-theme="dark"] .academic-list a.is-active { background: #263b4e; border-color: #c29b74; color: #f5ddc0; }
@media (max-width: 700px) {
  .academic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .academic-list a { min-height: 66px; padding: 12px; font-size: .88rem; }
  .section__header::after { margin-top: 14px; }
}
@media (max-width: 360px) { .academic-list { grid-template-columns: 1fr; } }

:root { --editorial-ink: #153b37; --editorial-paper: #f5f3ed; --editorial-line: #dddcd2; }
body { background: var(--editorial-paper); }
.nav { background: rgba(250,249,245,.94) !important; border-color: rgba(21,59,55,.12) !important; border-radius: 12px !important; box-shadow: 0 10px 35px rgba(21,59,55,.08) !important; }
.nav__brand { color: var(--editorial-ink) !important; }
.nav__links a { color: #47605a; border-radius: 8px; }
.nav__links a:hover, .nav__links a:focus-visible { background: #e6eee8; color: var(--editorial-ink); }
.hero { min-height: 690px; }
.hero:before { background: radial-gradient(circle at 15% 15%,rgba(194,158,105,.18),transparent 35%),linear-gradient(125deg,#102e2b,#19453e 70%,#285549); border-radius: 14px 70px 14px 14px; box-shadow: 0 28px 70px rgba(18,51,44,.18); }
.hero:after { display: block; width: 250px; height: 250px; top: 120px; right: 12%; border-color: rgba(224,208,177,.13); box-shadow: 0 0 0 40px rgba(255,255,255,.025),0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.hero__eyebrow { color: #e2c4a2 !important; border-color: rgba(226,196,162,.5); }
.hero__name { white-space: normal !important; overflow: visible !important; max-width: 100% !important; letter-spacing: -.045em !important; }
.hero__title { color: #e1ebe3 !important; }
.hero__avatar { border-radius: 12px 100px 12px 12px !important; border: 1px solid rgba(255,255,255,.32) !important; outline: 1px solid rgba(225,210,176,.38); outline-offset: 10px; }
.hero__cta .btn--primary { background: #d2a475 !important; color: #173b34 !important; }
.section { padding-block: 85px !important; }
.section__label { color: #9b6a42 !important; letter-spacing: 0; }
.section__title { color: var(--editorial-ink) !important; letter-spacing: -.04em; }
.section__header::after { background: #b17a4d; width: 62px; height: 2px; }
.bio__grid { background: #fffefa; border: 1px solid var(--editorial-line); border-radius: 8px 38px 8px 8px; box-shadow: 0 18px 50px rgba(32,55,45,.05); }
#academic-sections > .container { padding-block: 42px; border-top: 1px solid #c9d1c7; border-bottom: 1px solid #c9d1c7; }
.academic-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 24px; counter-reset: academic; }
.academic-list a { counter-increment: academic; min-height: 78px; padding: 16px 4px; border: 0; border-bottom: 1px solid #d7ded5; border-radius: 0; background: transparent; color: var(--editorial-ink); box-shadow: none; }
.academic-list a::before { content: counter(academic,decimal-leading-zero); flex: 0 0 38px; height: 38px; border: 1px solid #cddbd0; border-radius: 50%; background: transparent; color: #99704d; font-size: .72rem; direction: ltr; }
.academic-list a::after { content: '\2190'; margin-inline-start: auto; color: #9d7857; font-size: 1.2rem; }
.academic-list a:hover, .academic-list a:focus-visible, .academic-list a.is-active { transform: none; border-color: #8da99b; background: #e9efe7; color: #163e34; box-shadow: none; }
.research-card, .pub-item, .course-card, .blog-card, .contact-item, .gallery-card, .form { background: #fffefa !important; border-color: #e0e4da !important; border-radius: 10px !important; }
.research-card:hover, .pub-item:hover, .course-card:hover, .blog-card:hover { border-color: #a8bdb0 !important; box-shadow: 0 14px 34px rgba(30,65,51,.08) !important; }
.research-card__icon, .course-card__icon, .pub-item__num { background: #e7efe6 !important; color: #326453 !important; }
.publication-filter input, .field input, .field textarea { background: #fffefa !important; border-color: #d6ddd1 !important; }
.footer { background: #102e2b; color: #d9e7db; }
.footer a { color: #e2c4a2; }
[data-theme="dark"] body { background: #111e1b; }
[data-theme="dark"] .nav { background: rgba(20,37,32,.96) !important; border-color: #3b5046 !important; }
[data-theme="dark"] .nav__brand, [data-theme="dark"] .nav__links a, [data-theme="dark"] .section__title { color: #e8f0e7 !important; }
[data-theme="dark"] .hero:before { background: linear-gradient(125deg,#0c211e,#194139); }
[data-theme="dark"] .bio__grid, [data-theme="dark"] .research-card, [data-theme="dark"] .pub-item, [data-theme="dark"] .course-card, [data-theme="dark"] .blog-card, [data-theme="dark"] .contact-item, [data-theme="dark"] .gallery-card, [data-theme="dark"] .form { background: #1a2d27 !important; border-color: #344c40 !important; }
[data-theme="dark"] .academic-list a { background: transparent; border-color: #3b5046; color: #e4eee5; }
[data-theme="dark"] .academic-list a::before { background: transparent; border-color: #547060; color: #e3bd94; }
[data-theme="dark"] .academic-list a:hover, [data-theme="dark"] .academic-list a:focus-visible, [data-theme="dark"] .academic-list a.is-active { background: #2a4436; color: #fff; }
[data-theme="dark"] .publication-filter input, [data-theme="dark"] .field input, [data-theme="dark"] .field textarea { background: #12221c !important; border-color: #40594a !important; }
@media (max-width: 900px) { .academic-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero { min-height: auto; } }
@media (max-width: 700px) { .hero:before { border-radius: 12px 40px 12px 12px; } .hero:after { width: 160px; height: 160px; right: 25%; top: 90px; } .hero__name { font-size: clamp(1.6rem,6vw,2.5rem) !important; line-height: 1.45 !important; } .hero__avatar { border-radius: 10px 65px 10px 10px !important; } .section { padding-block: 60px !important; } #academic-sections > .container { padding-block: 28px; } .academic-list { gap: 0 12px; } .academic-list a { min-height: 72px; font-size: .85rem; } .academic-list a::before { flex-basis: 32px; height: 32px; } }
@media (max-width: 420px) { .academic-list { grid-template-columns: 1fr; } .academic-list a { min-height: 62px; } }

:root { --editorial-ink: #142c4c; --editorial-paper: #f4f6fa; --editorial-line: #dce3ed; }
.nav { background: rgba(250,252,255,.95) !important; border-color: rgba(20,44,76,.12) !important; box-shadow: 0 10px 35px rgba(18,38,68,.1) !important; }
.nav__links a { color: #4a5d76; }
.nav__links a:hover, .nav__links a:focus-visible { background: #e9eef7; color: #17365e; }
.hero:before { background: radial-gradient(circle at 15% 15%,rgba(194,167,125,.2),transparent 36%),linear-gradient(125deg,#0c1e38,#19385e 68%,#294b70); box-shadow: 0 28px 70px rgba(12,30,56,.22); }
.hero__title { color: #dce6f3 !important; }
.hero__cta .btn--primary { color: #152b48 !important; }
.bio__grid { background: #fff; box-shadow: 0 18px 50px rgba(20,44,76,.06); }
#academic-sections > .container { border-color: #cad4e3; }
.academic-list a { border-color: #d9e1ec; }
.academic-list a::before { border-color: #cdd9e8; }
.academic-list a:hover, .academic-list a:focus-visible, .academic-list a.is-active { border-color: #a4b6d0; background: #e8eef7; color: #15365f; }
.research-card, .pub-item, .course-card, .blog-card, .contact-item, .gallery-card, .form { background: #fff !important; border-color: #dfe6ef !important; }
.research-card:hover, .pub-item:hover, .course-card:hover, .blog-card:hover { border-color: #a7bad4 !important; box-shadow: 0 14px 34px rgba(20,44,76,.09) !important; }
.research-card__icon, .course-card__icon, .pub-item__num { background: #e8eef8 !important; color: #244b7c !important; }
.publication-filter input, .field input, .field textarea { background: #fff !important; border-color: #d7e0eb !important; }
.footer { background: #0d203b; color: #dae4f0; }
[data-theme="dark"] body { background: #0b1423; }
[data-theme="dark"] .nav { background: rgba(16,30,50,.96) !important; border-color: #34465f !important; }
[data-theme="dark"] .nav__brand, [data-theme="dark"] .nav__links a, [data-theme="dark"] .section__title { color: #e9eff8 !important; }
[data-theme="dark"] .hero:before { background: linear-gradient(125deg,#09182d,#1a3558); }
[data-theme="dark"] .bio__grid, [data-theme="dark"] .research-card, [data-theme="dark"] .pub-item, [data-theme="dark"] .course-card, [data-theme="dark"] .blog-card, [data-theme="dark"] .contact-item, [data-theme="dark"] .gallery-card, [data-theme="dark"] .form { background: #17283e !important; border-color: #344860 !important; }
[data-theme="dark"] .academic-list a { border-color: #344860; color: #e3ebf5; }
[data-theme="dark"] .academic-list a::before { border-color: #586f8d; }
[data-theme="dark"] .academic-list a:hover, [data-theme="dark"] .academic-list a:focus-visible, [data-theme="dark"] .academic-list a.is-active { background: #263c59; color: #fff; }
[data-theme="dark"] .publication-filter input, [data-theme="dark"] .field input, [data-theme="dark"] .field textarea { background: #101e30 !important; border-color: #40546e !important; }

body { background: #f3f5f9; }
.nav { top: 14px !important; border-radius: 16px !important; box-shadow: 0 12px 40px rgba(10,28,52,.12) !important; }
.nav__links a { font-weight: 700; }
.hero:before { background: radial-gradient(ellipse at 12% 15%,rgba(141,170,203,.22),transparent 38%),linear-gradient(130deg,#0b1b33 0%,#172f50 58%,#294b70 100%); border-radius: 24px; }
.hero:after { border-color: rgba(212,224,240,.14); }
.hero__eyebrow { border: 1px solid rgba(207,185,150,.36); border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.04); }
.hero__avatar { border-radius: 24px !important; outline-color: rgba(212,224,240,.3); }
.hero__cta .btn { border-radius: 12px; }
.section__title { font-size: clamp(1.85rem,3.3vw,2.8rem) !important; }
.section__desc { color: #53657c; }
.section__header::after { width: 48px; height: 3px; border-radius: 4px; }
.bio__grid { border-radius: 20px; padding: clamp(24px,4vw,42px); }
#academic-sections > .container { padding: clamp(24px,4vw,46px); background: #eaf0f8; border: 1px solid #d9e2ef; border-radius: 24px; }
#academic-sections .section__header { max-width: none; margin-bottom: 28px; }
#academic-sections .section__header::after { display: none; }
.academic-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.academic-list a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 106px; padding: 18px; border: 1px solid #dce5f0; border-radius: 16px; background: #fff; color: #172f50; box-shadow: 0 6px 18px rgba(24,48,80,.04); transition: transform .2s,border-color .2s,box-shadow .2s,background .2s; }
.academic-list a::before { display: none; }
.academic-list a::after { content: '\2190'; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; margin-inline-start: auto; border-radius: 50%; background: #f2f5fa; color: #31537c; font-size: 1.1rem; }
.academic-card__icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #edf2f9; color: #244a79; font-size: 1.1rem; }
.academic-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.academic-card__text strong { font-size: .97rem; line-height: 1.6; }
.academic-card__text small { color: #687b93; font-size: .76rem; font-weight: 400; }
.academic-list a:hover, .academic-list a:focus-visible { transform: translateY(-3px); border-color: #9db3cf; background: #fff; color: #172f50; box-shadow: 0 14px 30px rgba(24,48,80,.11); }
.academic-list a.is-active { transform: none; border-color: #23466f; background: #173456; color: #fff; box-shadow: 0 12px 28px rgba(23,52,86,.2); }
.academic-list a.is-active .academic-card__icon, .academic-list a.is-active::after { background: rgba(255,255,255,.12); color: #fff; }
.academic-list a.is-active .academic-card__text small { color: #c5d4e5; }
.academic-list a:focus-visible { outline: 3px solid #b88e62; outline-offset: 3px; }
.research-card, .pub-item, .course-card, .blog-card, .contact-item, .gallery-card, .form { border-radius: 16px !important; }
.footer { padding-block: 42px; }
[data-theme="dark"] #academic-sections > .container { background: #14243a; border-color: #314760; }
[data-theme="dark"] .academic-list a { background: #1b304a; border-color: #38506c; color: #eef4fb; }
[data-theme="dark"] .academic-card__icon, [data-theme="dark"] .academic-list a::after { background: #304866; color: #d6e5f8; }
[data-theme="dark"] .academic-card__text small { color: #b8c8db; }
[data-theme="dark"] .academic-list a:hover, [data-theme="dark"] .academic-list a:focus-visible { background: #28435f; border-color: #7895b7; color: #fff; }
[data-theme="dark"] .academic-list a.is-active { background: #385b83; border-color: #9db9d8; color: #fff; }
@media (max-width: 900px) { .academic-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .nav { top: 8px !important; } .hero:before { border-radius: 20px; } .hero__avatar { border-radius: 18px !important; } #academic-sections > .container { padding: 22px; border-radius: 18px; } .academic-list { gap: 10px; } .academic-list a { min-height: 90px; padding: 12px; gap: 10px; } .academic-card__icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; } .academic-card__text strong { font-size: .86rem; } .academic-card__text small { font-size: .7rem; } .academic-list a::after { flex-basis: 24px; width: 24px; height: 24px; } }
@media (max-width: 520px) { .academic-list { grid-template-columns: 1fr; } .academic-list a { min-height: 76px; } }
@media (prefers-reduced-motion: reduce) { .academic-list a { transition: none; } .academic-list a:hover { transform: none; } }
.bio__text,.course-card__description,.pub-item__meta,.gallery-caption__description,.blog-card__excerpt{white-space:pre-wrap;overflow-wrap:anywhere}.bio__text ul,.bio__text ol,.course-card__description ul,.course-card__description ol,.pub-item__meta ul,.pub-item__meta ol,.gallery-caption__description ul,.gallery-caption__description ol,.blog-card__excerpt ul,.blog-card__excerpt ol{padding-inline-start:1.5rem}
