@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
:root{--navy:#082239;--teal:#075567;--cream:#f5f2eb;--ivory:#fffdf8;--ink:#183149;--muted:#536879;--gold:#c39753;--line:#deded7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.75 'DM Sans',Arial,sans-serif}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}header{background:var(--navy);position:sticky;top:0;z-index:20;border-bottom:1px solid #375269}header .nav{max-width:1530px;margin:auto;padding:15px 28px;display:flex;align-items:center;gap:24px}.brand{font-family:'Playfair Display',Georgia,serif;font-size:23px;letter-spacing:.09em;color:#fff;white-space:nowrap}.links{display:flex;gap:13px;flex-wrap:wrap;align-items:center}.links a{font-size:12px;color:#e2e9ec}.links a.active,.lang{color:#edc487}.lang{margin-left:auto;white-space:nowrap;font-size:12px}main{max-width:1240px;margin:auto;padding:42px 28px 90px}body.home main{max-width:none;padding:0 0 80px}h1,h2,h3{font-family:'Playfair Display',Georgia,serif;line-height:1.23;font-weight:500}h1{font-size:clamp(35px,4.5vw,58px);margin:14px 0 22px}h2{font-size:clamp(26px,3vw,39px);margin:35px 0 17px}h3{font-size:24px;margin:22px 0 10px}p{margin:0 0 19px}strong{color:var(--navy)}.lede{font-size:clamp(17px,1.8vw,21px);max-width:890px;color:#496174}.eyebrow,.kicker{text-transform:uppercase;letter-spacing:.17em;color:var(--teal);font-size:11px;font-weight:700}.hero{position:relative;min-height:465px;background:linear-gradient(110deg,#03172c,#062b45);color:#fff;display:grid;grid-template-columns:41% 59%;overflow:hidden}.hero-copy{position:relative;z-index:2;padding:68px 20px 65px max(5vw,36px);background:linear-gradient(90deg,#041b30 75%,#041b3000)}.hero .eyebrow{color:#f0c484}.hero h1{font-size:clamp(36px,3.5vw,56px);max-width:590px}.hero .lede{color:#f0f1ef;font:clamp(16px,1.5vw,20px)/1.55 Georgia,serif}.hero-art{background-image:url('surface-3d.png');background-size:cover;background-position:center;min-height:450px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.cta{display:inline-block;background:var(--gold);color:#fff;padding:11px 19px;border-radius:5px;font-size:14px}.cta.secondary{background:#072338bb;border:1px solid #e2e5e6}.home-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));max-width:1530px;margin:0 auto;padding:26px 25px;gap:0}.feature{display:block;color:var(--ink);padding:16px 17px;text-align:center;border-right:1px solid var(--line)}.feature:last-child{border:0}.feature-symbol{display:block;border:1px solid #dfcba9;color:var(--teal);border-radius:50%;width:60px;height:60px;margin:0 auto 12px;font:30px/58px Georgia,serif}.feature b{display:block;font:19px Georgia,serif;color:var(--navy);margin-bottom:8px}.feature>span:last-child{font-size:13px;color:var(--muted);display:block}.home-bottom{display:grid;grid-template-columns:1fr 1.5fr .95fr;gap:19px;max-width:1500px;margin:12px auto;padding:0 25px;align-items:stretch}.home-bottom>*{background:var(--ivory);border-radius:8px;padding:22px;margin:0;box-shadow:0 5px 30px #152c3510}.home-bottom h2{margin:7px 0 16px}.home-bottom p{font-size:14px;line-height:1.65}.photo{position:relative;padding:0}.photo img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover;border-radius:8px}.photo figcaption{position:absolute;bottom:0;left:0;right:0;padding:18px;color:#fff;background:linear-gradient(transparent,#091c2c9c);font-size:13px}.home-news p{padding:8px 0;border-bottom:1px solid var(--line);margin:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0}.grid .feature{background:var(--ivory);border:1px solid var(--line);border-radius:8px;text-align:left}.grid .feature b{font-size:20px}.split{display:grid;grid-template-columns:1.3fr .7fr;gap:32px}.section{padding:14px 0 26px;border-bottom:1px solid var(--line)}.section:last-child{border:0}.section h2{margin-top:26px}.section p{max-width:970px}.section li{margin-bottom:12px}.entry,.panel,.ribbon,.note{background:var(--ivory);padding:20px 24px;margin:15px 0;border:1px solid var(--line);border-radius:8px}.entry h3{margin:7px 0 12px}.meta{font-size:12px;letter-spacing:.06em;color:var(--teal);text-transform:uppercase;font-weight:700}.timeline{border-left:2px solid var(--gold);padding-left:26px}.timeline p{position:relative;margin:0 0 21px}.timeline p:before{content:'';position:absolute;left:-32px;top:12px;width:9px;height:9px;border-radius:50%;background:var(--gold)}.foot{background:var(--navy);color:#d2dfe4;padding:30px;text-align:center;font-size:13px}.foot a{color:#f1c58e}.caption{font-size:12px;color:var(--muted)}.kabylie{width:100%;border-radius:7px}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span,.jump a{border:1px solid var(--line);border-radius:20px;padding:5px 12px;color:var(--teal)}.jump{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.pubs h3{font:700 16px 'DM Sans',sans-serif}.page-heading{padding:24px 0 25px}.page-heading h1{margin:10px 0 18px}.page-heading .lede{max-width:1050px}.note{border-left:4px solid var(--gold)}
@media(max-width:1050px){.home-cards{grid-template-columns:repeat(3,1fr)}.home-bottom{grid-template-columns:1fr 1fr}.home-news{grid-column:1/-1}.nav{flex-wrap:wrap}.links{order:3;width:100%}}@media(max-width:680px){.hero{grid-template-columns:1fr}.hero-copy{padding:38px 24px}.hero-art{min-height:230px}.home-cards{grid-template-columns:repeat(2,1fr)}.home-bottom{grid-template-columns:1fr}.home-news{grid-column:auto}.grid,.split{grid-template-columns:1fr}main{padding:25px 18px 60px}.photo img{min-height:260px}header{position:relative}.links{gap:11px}.brand{font-size:18px}}

body:has(.hero) main{max-width:none;padding:0 0 80px}body:has(.hero) .main-container{max-width:none!important;padding:0!important;margin:0!important}body:not(:has(.hero)) .main-container{max-width:1240px!important}

/* v5: navy canvas / ivory editorial panels on all internal pages */
body:not(:has(.hero)){background:#102338;color:#183149;}
body:not(:has(.hero)) main,body:not(:has(.hero)) .main-container{background:transparent!important;}
body:not(:has(.hero)) .page-heading{background:#f5f2eb;border-radius:12px;padding:32px 38px;margin:8px 0 24px;border-left:5px solid #c39753;}
body:not(:has(.hero)) .page-heading h1{color:#132d43;}
body:not(:has(.hero)) .section{background:#f5f2eb;border:1px solid #e1dfd8;border-radius:12px;padding:25px 38px;margin:18px 0 24px;}
body:not(:has(.hero)) .section h2{color:#142e45;}
body:not(:has(.hero)) .section .entry,body:not(:has(.hero)) .section .panel,body:not(:has(.hero)) .section .note,body:not(:has(.hero)) .section .ribbon{background:#fffdfa;border-color:#dedbd3;box-shadow:0 3px 15px #0b243009;}
body:not(:has(.hero)) .section a{color:#075567;}
body:not(:has(.hero)) .section .meta{color:#075567;}
body:not(:has(.hero)) .section strong{color:#142e45;}
body:not(:has(.hero)) .page-heading .lede{color:#50667a;}
/* Content not wrapped in .section, e.g. publication lists or grids */
body:not(:has(.hero)) main>.grid,body:not(:has(.hero)) main>.split,body:not(:has(.hero)) main>.pubs{background:#f5f2eb;border-radius:12px;padding:24px;}
body:not(:has(.hero)) .main-container>.section{color:#183149;}
/* R Markdown default h1 title removed in sources; hide only injected document header, not authored titles */
body:not(:has(.hero)) .main-container>h1.title,body:has(.hero) .main-container>h1.title{display:none!important;}
@media(max-width:680px){body:not(:has(.hero)) .page-heading,body:not(:has(.hero)) .section{padding:22px 18px;}}

/* v6: dark exterior and high-contrast ivory content; accessible publication typography */
body:not(:has(.hero)) {background:#102338;color:#f5f2eb;}
body:not(:has(.hero)) main>h1,body:not(:has(.hero)) main>h2,body:not(:has(.hero)) .main-container>h1,body:not(:has(.hero)) .main-container>h2 {color:#f5f2eb;}
body:not(:has(.hero)) .page-heading,body:not(:has(.hero)) .section,body:not(:has(.hero)) .publications-content {background:#f5f2eb;color:#183149;border:1px solid #dcd9d0;border-radius:12px;padding:30px 38px;margin:20px 0 26px;}
body:not(:has(.hero)) .page-heading h1,body:not(:has(.hero)) .section h2,body:not(:has(.hero)) .publications-content h2 {color:#183149;}
body:not(:has(.hero)) .section p,body:not(:has(.hero)) .section li,body:not(:has(.hero)) .publications-content p {color:#183149;}
body:not(:has(.hero)) .section .entry,body:not(:has(.hero)) .publications-content .paper {background:#fffdfa;color:#183149;border:1px solid #dcd9d0;border-radius:10px;padding:19px 23px;margin:14px 0;box-shadow:0 3px 12px #0a203010;}
body:not(:has(.hero)) .publications-content .paper strong {color:#183149;}
body:not(:has(.hero)) .publications-content .paper .muted {color:#506375;}
body:not(:has(.hero)) .publications-content .paper small {color:#075567;font-weight:700;}
body:not(:has(.hero)) .publications-content a {color:#075567;text-decoration:underline;text-underline-offset:3px;}
body:not(:has(.hero)) .eyebrow {color:#a7d5d4;}
body:not(:has(.hero)) .page-heading .eyebrow,body:not(:has(.hero)) .section .eyebrow {color:#075567;}
body:not(:has(.hero)) .page-heading .lede {color:#536879;}
body:not(:has(.hero)) .publications-content h2 {margin-top:12px;}
.home-news.research-progress {background:#102338;color:#f7f2e8;border:1px solid #416077;box-shadow:0 6px 26px #00152220;}
.home-news.research-progress h2 {font-size:clamp(24px,2.3vw,34px);color:#fff7ec;}
.home-news.research-progress .eyebrow {color:#f0c484;}
.home-news.research-progress p {color:#e4edf1;border:0;font-size:15px;line-height:1.75;}
.home-news.research-progress a {color:#f0c484;font-weight:600;}
@media(max-width:680px){body:not(:has(.hero)) .publications-content{padding:20px 16px;}body:not(:has(.hero)) .section{padding:20px 16px;}}

/* v7: experience page contact sidebar */
.experience-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:24px;}
.experience-primary{min-width:0;}
.experience-primary .section{margin-top:0;}
body:not(:has(.hero)) .contact-card{background:#fffdfa;color:#183149;border:1px solid #dcd9d0;border-top:4px solid #c39753;border-radius:12px;padding:24px;position:sticky;top:94px;box-shadow:0 5px 20px #07172724;}
.contact-card h2{font-size:30px;color:#183149;margin:8px 0 22px;}
.contact-card .eyebrow{color:#075567!important;}
.contact-label{color:#075567;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin:18px 0 6px;}
.contact-email{font-size:14px;overflow-wrap:anywhere;font-weight:600;line-height:1.6;}
.contact-card address{font-style:normal;line-height:1.8;font-size:14px;}
@media(max-width:950px){.experience-layout{grid-template-columns:1fr;}.contact-card{position:static!important;}}
