:root{
    --blue:#102743;
    --petrol:#007C82;
    --light:#f6f8fb;
    --border:#e5e7eb;
    --text:#1f2937;
    --card-bg:#e4eef8;
    --card-border:#c7d8ea;
    --card-title:#123556;
}


/* =========================
   Global
   ========================= */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Segoe UI,Arial,sans-serif;
    color:var(--text);
    background:#fafbfc;
    line-height:1.6;
    font-size: 1.08rem;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    height:auto;
}
/* =========================
   Homepage
   ========================= */

.hero{
    min-height:40vh;
    display:grid;
    grid-template-columns:1.6fr .6fr;
    gap:50px;
    align-items:center;
    padding:50px 8%;
    background:var(--light);
}

.hero h1{
    font-size:3.7rem;
    line-height:1.15;
    color:var(--blue);
    margin:.1em 0;
}

.hero p{
    max-width:850px;
}

.hero a{
    display:block;
    margin-top:12px;
    color:var(--blue);
    font-weight:600;
}

.hero img{
    width:100%;
    max-width:500px;
    border-radius:22px;
    display:block;
    margin-left:auto;
}

.hero-caption{
    margin-top:10px;
    max-width:240px;
    margin-left:auto;
    text-align:center;
    font-size:.8rem;
    line-height:1.25;
    color:#6b7280;
}

.small{
    color:#6b7280;
}

.tagline{
    font-size:1.4rem;
    font-weight:600;
    color:var(--petrol);
    margin:0 0 25px 0;
}

/* =========================
   General sections
   ========================= */

.section{
    padding:30px 6%;
}

.section h2{
    color:var(--blue);
    margin-bottom:20px;
    font-size:2rem;
}

.content-page{
    max-width:1200px;
    margin:auto;
}

.text-block{
    max-width:900px;
}

/* =========================
   Page Heroes
   ========================= */

.page-hero{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:50px;
    align-items:center;
    padding:60px 8%;
    background:var(--light);
}

.page-hero h1{
    font-size:3.5rem;
    color:var(--blue);
    margin:0 0 20px;
}

.back-link{
    display:inline-block;
    margin-bottom:20px;
    color:var(--petrol);
    font-weight:600;
}

/* Scientific figures */

.page-hero img{
    width:100%;
    border-radius:20px;
}

.hero-image-small{
    max-width:500px;
}

.hero-image-medium{
    max-width:600px;
}

.hero-image-large{
    max-width:750px;
}
/* About portrait only */


.about-portrait{
    width:100%;
    max-width:300px;
    display:block;
    margin-left:auto;
    border-radius:20px;
}
/* =========================
   Homepage framework
   ========================= */

.framework{
    display:grid;
    grid-template-columns:repeat(3,minmax(260px,1fr));
    gap:32px;
}

.framework h3{
    font-size:1.45rem;
    font-weight:800;
    color:var(--petrol);
    margin-bottom:18px;
}

.framework-flow{
    color:var(--blue);
    font-weight:700;
}

/* =========================
   Cards
   ========================= */

.card{
    display:block;
    border:1px solid var(--card-border);
    border-radius:20px;
    overflow:hidden;
    background:var(--card-bg);
    margin-bottom:36px;
    transition:.2s ease;
    min-height:132px;
}

.card:hover{
    transform:translateY(-2px);
}

.card img{
    width:100%;
    height:100px;
    object-fit:cover;
}

.bioem{
    height:65px !important;
    object-fit:contain !important;
    background:white;
}

.content{
    padding:14px 18px;
}

.content h4{
    margin:0;
    font-size:1.25rem;
    font-weight:700;
    color:var(--card-title);
}

.content p{
    margin:8px 0 0;
    color:#45617c;
}

.profile-info{
    margin-top:10px;
    text-align:right;
    color:#6b7280;
    line-height:1.4;
}

.profile-info a{
    color:#102743;
    font-weight:600;
}

.profile-info a:hover{
    text-decoration:underline;
}

.highlight{
    background:var(--light);
    border-radius:20px;
    padding:24px 30px;
    margin:24px 0;
    border-left:6px solid var(--petrol);
}

.back-link{display:inline-block;margin-bottom:20px;color:var(--blue);font-weight:600}
.publication{padding:18px 0;border-bottom:1px solid var(--border)}
.publication:last-child{border-bottom:none}
.publication-title{font-weight:600;color:var(--blue)}
.publication-journal{color:#6b7280}
.ecosystem{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    width:100%;
    min-width:0;
}
.eco{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:20px;padding:16px;background:white}
.eco h3{color:var(--blue);margin-top:0}
@media (max-width:900px){

    .hero,
    .page-hero,
    .framework{
        grid-template-columns:1fr;
    }

    .ecosystem{
        display:grid;
        grid-template-columns:1fr;
    }

}

.tag{display:inline-block;padding:8px 12px;margin:4px;border:1px solid var(--border);border-radius:999px;font-size:.85rem;background:white}
/* =========================
   Workflow figures
   ========================= */

.workflow{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    align-items:start;
}

.workflow div{
    text-align:center;
}

.workflow img{
    width:100%;
    max-height:340px;
    object-fit:contain;
    display:block;
    margin:0 auto;
    border-radius:0;
}

.workflow p{
    margin:10px 0 0;
    font-size:1rem;
    color:#6b7280;
}

/* =========================
   Theme grids
   ========================= */

.theme-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
}

.theme-card{
    background:white;
    border:1px solid var(--border);
    border-radius:20px;
    padding:24px;
}

.theme-card h3{
    margin-top:0;
    color:var(--blue);
}

.paper-image{
    width:100%;
    max-width:400px;
    display:block;
    margin:0 auto 20px auto;
    border-radius:12px;
}
/* =========================
   Essays
   ========================= */
.paper-layout{
    display:flex;
    gap:24px;
    align-items:flex-start;
}

.paper-thumb{
    flex:0 0 220px;
}

.paper-thumb img{
    width:220px;
    max-width:220px;
    height:auto;
    border-radius:12px;
    display:block;
}

.paper-content{
    flex:1;
}

/* =========================
   Impact
   ========================= */

.impact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin:20px 0 40px;
}

.impact-card{
    background:white;
    border:1px solid var(--border);
    border-radius:20px;
    padding:16px 12px;
    text-align:center;
}

.impact-number{
    font-size:1.5rem;
    font-weight:700;
    color:var(--petrol);
}

.impact-label{
    font-size:0.85rem;
    color:#6b7280;
}


.contribution-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.contribution-card{
    background:white;
    border:1px solid var(--border);
    border-radius:20px;
    padding:20px;
}

.contribution-icon{
    font-size:1.8rem;
    margin-bottom:10px;
}

.contribution-card h4{
    margin:0 0 10px 0;
    color:var(--blue);
}

.contribution-card p{
    margin:0;
    color:#6b7280;
    font-size:0.95rem;
    line-height:1.5;
}
/* =========================
   Community
   ========================= */
.community-intro{
max-width:900px;
margin:0 auto 25px auto;
}

.community-photo{
    text-align:center;
    margin:30px 0 40px;
}

.community-photo img{
    width:100%;
    max-width:1100px;
    border-radius:20px;
    display:block;
    margin:0 auto;
}

.photo-caption{
    margin-top:12px;
    font-size:0.9rem;
    color:#6b7280;
}

.community-lead{
    text-align:center;
    font-weight:600;
    font-size:1.2rem;
    max-width:900px;
    margin:0 auto 10px auto;
}

.community-sub{
    text-align:center;
    max-width:900px;
    margin:0 auto 30px auto;
}
/* =========================
   Publications
   ========================= */

.publication{
    padding:18px 0;
    border-bottom:1px solid var(--border);
}

.publication:last-child{
    border-bottom:none;
}

.publication-title{
    font-weight:600;
    color:var(--blue);
}

.publication-journal{
    color:#6b7280;
}

.profile{
    width:100%;
    max-width:500px;
    margin-left:auto;
}

.logo{
    max-width:220px;
    max-height:90px;
    display:block;
    margin:10px auto;
}


.community-photo{
    text-align:center;
    margin:30px 0 40px;
}

.community-photo img{
    width:100%;
    max-width:500px;
    border-radius:20px;
    display:block;
    margin:0 auto;
}

.photo-caption{
    margin-top:12px;
    font-size:0.9rem;
    color:#6b7280;
}

/* Footer */

.footer{
    background:var(--blue);
    padding:30px;

    display:flex;
    flex-direction:column;
    gap:20px;

    text-align:center;
}

.footer-nav a{
    color:white;
    margin:0 14px;
    text-decoration:none;
    font-weight:500;
}

.footer-profiles{
    color:white;
    opacity:.9;
}

.footer-profiles a{
    color:white;
    text-decoration:none;
}

.footer a:hover{
    text-decoration:underline;
    color:var(--petrol);
}
.paper-card img{
    width:220px !important;
    max-width:220px !important;
    height:auto !important;
    display:block !important;
}
/* Force Outcomes section styling */

.contribution-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
    gap:20px !important;
    margin-top:20px !important;
}

.contribution-card{
    background:white !important;
    border:1px solid var(--border) !important;
    border-radius:20px !important;
    padding:20px !important;
}

.contribution-icon{
    font-size:1.8rem !important;
    margin-bottom:10px !important;
}

.contribution-card h4{
    margin:0 0 10px 0 !important;
    color:var(--blue) !important;
}

.contribution-card p{
    margin:0 !important;
    color:#6b7280 !important;
    line-height:1.5 !important;
}

.copyright{
    color:rgba(255,255,255,.5);
}
.community-cta{
    text-align:center;
    margin:20px auto 40px auto;
    color:#6b7280;
}

.community-cta a{
    color:var(--petrol);
    font-weight:600;
    text-decoration:none;
}

.community-cta a:hover{
    text-decoration:underline;
}
.primary-link{
    display:inline-block;
    background:var(--petrol);
    color:white !important;
    padding:12px 20px;
    border-radius:12px;
    margin-top:15px;
}

.secondary-links{
    margin-top:15px;
}

.secondary-links a{
    display:block;
    color:var(--petrol);
}

/* =========================
   Internal links (site-wide standard)
   Every link to another page of this website: petrol, with a right arrow.
   ========================= */

a.page-link{
    color:var(--petrol) !important;
    font-weight:600;
}

a.page-link::after{
    content:"\00a0→";
}

a.page-link:hover,
a.doc-link:hover{
    text-decoration:underline;
}

/* Links to documents (PDF) on this website: petrol, no arrow */
a.doc-link{
    color:var(--petrol);
    font-weight:600;
}

/* Linked cards follow the same convention */
.card h4,
a.theme-card h3{
    color:var(--petrol);
}

.card h4::after,
a.theme-card h3::after{
    content:"\00a0→";
}

a.theme-card{
    display:block;
    transition:.2s ease;
}

a.theme-card:hover{
    transform:translateY(-2px);
}

/* Homepage profile caption */
.profile-caption{
    margin:14px 0 6px;
    line-height:1.45;
}

/* =========================
   Essay pages
   ========================= */

.essay-hero{
    grid-template-columns:1fr;
}

.essay-hero h1{
    font-size:2.6rem;
    line-height:1.2;
    max-width:900px;
}

.essay-genre{
    color:var(--petrol);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-size:.85rem;
    margin:0 0 8px;
}

.essay-date{
    color:#6b7280;
}

.content-page.essay{
    max-width:none;
    margin:0;
    padding:30px 8% 40px;
}

.essay > *{
    max-width:820px;
}

.essay h2{
    font-size:1.6rem;
    margin-top:36px;
}

.essay h3{
    color:var(--blue);
    margin-top:28px;
}

.essay-figure{
    margin:0 0 28px;
}

.essay figure.essay-figure img{
    width:100%;
    max-width:520px;
    border-radius:16px;
    display:block;
}

.essay .references li{
    margin-bottom:8px;
    font-size:.95rem;
}

.essay-pdf{
    margin-top:36px;
}

/* Inaugural lecture video */
.video-container{
    position:relative;
    width:100%;
    max-width:900px;
    aspect-ratio:16/9;
}

.video-container iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    border-radius:16px;
}

@media (max-width:600px){
    .hero h1{ font-size:2.6rem; }
    .page-hero h1{ font-size:2.4rem; }
    .essay-hero h1{ font-size:2rem; }
}
