/*
Theme Name: Bordeaux Nanophotonics V4
Theme URI: https://example.org/
Author: OpenAI
Description: Thème sobre pour Bordeaux Nanophotonics, avec menu latéral et accès aux contenus Joomla importés dans WordPress.
Version: 7.7
Text Domain: bordeaux-nanophotonics
*/
:root{--navy:#073b56;--blue:#087c9d;--cyan:#16a6bd;--green:#7caf42;--ink:#263746;--muted:#687986;--paper:#f5f8fa;--line:#dce6eb}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 Arial,Helvetica,sans-serif}
a{color:#087c9d;text-decoration:none}a:hover{text-decoration:underline}
.site-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:255px;background:var(--navy);color:#fff;padding:32px 23px;overflow-y:auto;z-index:10}
.brand{display:block;color:#fff;font-size:23px;font-weight:700;line-height:1.2;margin-bottom:8px}
.brand:hover{color:#fff;text-decoration:none}
.brand-subtitle{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:#a9dce4;margin-bottom:34px}
.menu,.sub-menu{list-style:none;margin:0;padding:0}
.menu>li{border-bottom:1px solid rgba(255,255,255,.12)}
.menu a{display:block;color:#eaf6f8;padding:12px 8px;font-size:14px}
.menu a:hover,.menu .current-menu-item>a{background:rgba(255,255,255,.1);text-decoration:none;color:#fff}
.sub-menu{padding:0 0 8px 12px}
.sub-menu a{font-size:12px;padding:6px 8px;color:#bfe1e6}
.sidebar-note{font-size:11px;color:#9dc5cd;margin-top:36px}
.site-main{margin-left:255px;min-height:100vh}
.topbar{height:9px;background:linear-gradient(90deg,var(--cyan),#55c2c6,var(--green))}
.content-wrap{width:min(1120px,100%);margin:auto;padding:42px 5.5% 70px}
.hero{background:linear-gradient(125deg,#07506d,#0b8da6);color:#fff;border-radius:4px;padding:58px 6%;margin-bottom:38px;min-height:280px;display:flex;flex-direction:column;justify-content:center}
.hero h1{font-size:clamp(32px,4vw,52px);line-height:1.12;margin:0 0 14px;color:#fff}
.hero p{max-width:720px;margin:0 0 22px;color:#e1f4f5;font-size:17px}
.hero .button{display:inline-block;align-self:flex-start;background:var(--green);color:#fff;padding:10px 22px;border-radius:2px;font-weight:bold}
.section-title{font-size:25px;color:var(--navy);margin:36px 0 18px;padding-bottom:10px;border-bottom:2px solid var(--line)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:#fff;border:1px solid var(--line);padding:22px;border-radius:3px;box-shadow:0 3px 12px rgba(8,48,65,.04)}
.card h3{font-size:18px;line-height:1.35;margin:0 0 9px;color:var(--navy)}
.card p{font-size:14px;color:var(--muted);margin:0 0 12px}
.card .more{font-size:13px;font-weight:bold}
.research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.research-card{background:#fff;border-left:4px solid var(--cyan);padding:20px 22px}
.research-card h3{margin:0;color:var(--navy);font-size:17px}
.page-header{margin:0 0 26px}
.page-header h1{color:var(--navy);font-size:34px;line-height:1.2;margin:0 0 8px}
.post-list{display:grid;gap:16px}
.post-entry{background:#fff;border:1px solid var(--line);padding:22px}
.post-entry h2{font-size:21px;line-height:1.3;margin:0 0 7px}
.post-meta{font-size:12px;color:var(--muted);margin-bottom:10px}
.entry-content{background:#fff;padding:28px;border:1px solid var(--line)}
.entry-content img{max-width:100%;height:auto}
.pagination{margin-top:25px}
.site-footer{padding:24px 5.5%;color:#71818a;font-size:12px;border-top:1px solid var(--line)}
.mobile-brand{display:none}
@media(max-width:850px){
 .sidebar{position:relative;width:auto;padding:18px 20px}
 .brand-subtitle{margin-bottom:12px}
 .menu{display:flex;flex-wrap:wrap;gap:2px}
 .menu>li{border:0}
 .menu a{padding:8px 10px}
 .sub-menu{display:none}
 .sidebar-note{display:none}
 .site-main{margin-left:0}
 .content-wrap{padding:26px 5% 50px}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){.cards,.research-grid{grid-template-columns:1fr}.hero{padding:38px 25px;min-height:230px}.page-header h1{font-size:28px}}


/* V4.2 – containment and responsive sizing for imported media */
html, body { max-width:100%; overflow-x:hidden; }
.site-shell, .site-main, .content-wrap { min-width:0; max-width:100%; }
.cards, .research-grid { width:100%; min-width:0; }
.cards > *, .research-grid > * { min-width:0; max-width:100%; overflow:hidden; }
.card img, .post-entry img, .research-card img, .entry-content img,
.wp-post-image, .attachment-medium_large {
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    box-sizing:border-box;
}
.card img, .post-entry img {
    max-height:220px;
    object-fit:cover;
    margin:0 0 16px;
}
.card, .post-entry, .research-card { overflow:hidden; min-width:0; }
.card h3, .card p, .post-entry h2, .post-entry p { overflow-wrap:anywhere; }
@media (max-width:850px) {
    .content-wrap { width:100%; }
    .cards, .research-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
    .cards, .research-grid { grid-template-columns:minmax(0,1fr); }
}


/* V4.3 – directory layout for the Members page */
.people-page {
    min-height: calc(100vh - 9px);
    margin: 0;
    padding: 28px 24px 34px;
    background: #269fca;
    color: #fff;
}
.people-section { width: 100%; max-width: 900px; margin: 0 auto 34px; }
.people-section:last-child { margin-bottom: 0; }
.people-section-title {
    margin: 0 0 20px;
    color: #fff;
    text-align: center;
    font-size: 23px;
    line-height: 1.25;
}
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 30px;
    justify-items: center;
}
.person-card {
    width: 100%;
    max-width: 150px;
    min-width: 0;
    padding: 0;
    overflow: visible;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.person-photo {
    display: flex;
    width: 112px;
    height: 112px;
    margin: 0 auto 11px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7eef1;
}
.person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
}
.person-photo-placeholder {
    color: #087c9d;
    font-size: 42px;
    font-weight: 700;
}
.person-name {
    margin: 0 0 4px;
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.person-name a { color: #fff; }
.person-role {
    min-height: 16px;
    margin: 0 0 11px;
    color: #fff;
    font-size: 9px;
    line-height: 1.35;
    font-style: italic;
}
.person-more {
    display: flex;
    min-height: 31px;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 3px;
    background: #3bd19a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.person-more:hover, .person-more:focus { background: #24bd85; color: #fff; text-decoration: none; }
@media (max-width: 850px) {
    .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .people-page { padding: 25px 16px 30px; }
    .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 26px; }
    .people-section-title { font-size: 21px; }
}
@media (max-width: 360px) {
    .people-grid { grid-template-columns: minmax(0, 1fr); }
}


/* V4.7 – illustrations for the four Research topics */
.research-card {
    padding: 20px 22px 22px;
}
.research-card-image {
    display: flex;
    width: 148px;
    height: 148px;
    max-width: 100%;
    margin: 0 auto 16px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f4;
}
.research-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
}
.research-card h3 { margin-bottom: 10px; }
.research-card h3 a { color: var(--blue); }
.research-card p { margin: 0; color: var(--ink); }
@media (max-width: 560px) {
    .research-card-image { width: 136px; height: 136px; }
}


/* V5.0 – What We Do category archive */
.what-we-do-page .page-header { margin-bottom: 28px; }
.what-we-do-page .page-header h1 { margin-bottom: 12px; }
.what-we-do-intro { max-width: 850px; color: var(--muted); }
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.activity-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 3px 12px rgba(8,48,65,.04);
}
.activity-card-media {
    display: block;
    flex: 0 0 190px;
    min-height: 190px;
    overflow: hidden;
    background: #eaf1f4;
}
.activity-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    max-height: 230px;
    object-fit: cover;
    margin: 0;
}
.activity-image-placeholder {
    display: flex;
    height: 100%;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: var(--blue);
    font-weight: 700;
    text-align: center;
}
.activity-card-content { min-width: 0; padding: 20px 22px; }
.activity-card-content h2 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 18px;
    line-height: 1.35;
}
.activity-card-content h2 a { color: inherit; }
.activity-excerpt { color: var(--ink); font-size: 14px; line-height: 1.6; }
.activity-read-more {
    display: inline-block;
    margin-top: 13px;
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 1050px) {
    .activity-card { display: block; }
    .activity-card-media { width: 100%; min-height: 180px; height: 180px; }
    .activity-image, .activity-image-placeholder { min-height: 180px; height: 180px; }
}
@media (max-width: 560px) {
    .activities-grid { grid-template-columns: minmax(0,1fr); }
    .activity-card { display: flex; }
    .activity-card-media { flex: 0 0 112px; width: 112px; height: auto; min-height: 150px; }
    .activity-image, .activity-image-placeholder { min-height: 150px; height: 100%; }
    .activity-card-content { padding: 15px; }
    .activity-card-content h2 { font-size: 16px; }
}


/* V5.1 – Original What We Do illustrations, displayed as in the reference */
.what-we-do-page .page-header { margin-bottom: 16px; }
.what-we-do-page .page-header h1 { font-size: 0; margin: 0; }
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
}
.activity-card {
    display: block;
    min-width: 0;
    padding: 16px 18px 18px;
    background: #fff;
    border: 0;
    border-left: 3px solid var(--cyan);
    border-radius: 0;
    box-shadow: none;
}
.activity-card-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 128px;
    min-height: 0;
    margin: 0 0 8px;
    overflow: visible;
    background: transparent;
}
.activity-image {
    display: block;
    width: 120px;
    height: 120px;
    min-height: 0;
    max-height: none;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}
.activity-card-content { padding: 0; min-width: 0; }
.activity-card-content h2 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 14px;
    line-height: 1.5;
}
.activity-card-content h2 a { color: inherit; text-decoration: none; }
.activity-excerpt { color: var(--ink); font-size: 13px; line-height: 1.65; }
.activity-read-more { display: none; }
@media (max-width: 700px) {
    .activities-grid { grid-template-columns: 1fr; }
}


/* V5.2 – Bordeaux Nanophotonics Group logo and site title */
.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 30px;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
}
.sidebar .brand img {
    display: block;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin: 0;
}
.sidebar .brand span { display: block; }
.hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}
.hero-brand img {
    display: block;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    object-fit: contain;
}
.hero-brand span { display: block; }
@media (max-width: 560px) {
    .hero-brand { gap: 12px; }
    .hero-brand img { width: 56px; height: 56px; flex-basis: 56px; }
    .sidebar .brand { font-size: 18px; }
}

/* V5.9 – Limit scientific figure display only on the Molecular Quantum Nanophotonics article.
   Larger responsive rendering, up to 693px. */
.entry-content.molecular-quantum-figures img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: min(100%, 693px) !important;
    margin: 20px auto;
    object-fit: contain;
}
.entry-content.molecular-quantum-figures figure,
.entry-content.molecular-quantum-figures .wp-block-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* V6.0 – Home gallery: two photo cards */
.bnp-gallery-section { padding-bottom: 36px; }
.bnp-gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.bnp-gallery-card { position:relative; display:block; min-width:0; aspect-ratio:4/3; overflow:hidden; background:#102b38; border-radius:4px; text-decoration:none; }
.bnp-gallery-card img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.bnp-gallery-card-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:white; text-align:center; background:linear-gradient(0deg,rgba(2,21,33,.68),rgba(2,21,33,.12)); padding:18px; }
.bnp-gallery-card-overlay strong { color:#fff; font-size:22px; text-shadow:0 1px 5px #17252d; }
.bnp-gallery-card-overlay span { color:#fff; font-size:13px; border:1px solid rgba(255,255,255,.75); border-radius:3px; padding:6px 10px; }
.bnp-gallery-card:hover img, .bnp-gallery-card:focus-visible img { transform:scale(1.035); }
.bnp-gallery-card:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; }
@media(max-width:650px){.bnp-gallery-grid{grid-template-columns:1fr;gap:14px;}}

/* Gallery dedicated page */
.bnp-gallery-page .bnp-gallery-grid {align-items:start;}
.bnp-gallery-page .bnp-gallery-album {min-width:0;scroll-margin-top:2rem;}
.bnp-gallery-page .bnp-gallery-album h2 {font-size:1.35rem;margin:0 0 1rem;}
.bnp-gallery-page .bnp-gallery-card {display:block;}
.bnp-gallery-page .bnp-gallery-card img {width:100%;object-fit:cover;}


/* V6.2 — Team: coherent with the site's light visual identity. */
.people-page {
    min-height: calc(100vh - 9px);
    padding: 38px clamp(18px, 5.5%, 62px) 62px;
    background: var(--paper);
    color: var(--ink);
}
.people-section { max-width: 1120px; margin: 0 auto 38px; }
.people-section-title {
    margin: 0 0 22px;
    padding: 0 0 11px;
    text-align: left;
    font-size: 25px;
    color: var(--navy);
    border-bottom: 2px solid var(--line);
}
.people-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 22px 13px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--cyan);
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(8,48,65,.04);
}
.person-photo { width: 112px; height: 112px; flex: 0 0 112px; margin-bottom: 14px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-size: 14px; line-height: 1.4; color: var(--navy); margin-bottom: 6px; }
.person-name a { color: var(--navy); }
.person-name a:hover { color: var(--blue); }
.person-role { font-size: 12px; line-height: 1.45; color: var(--muted); min-height: 34px; margin-bottom: 14px; }
.person-more {
    margin-top: auto;
    min-height: 36px;
    max-width: 155px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}
.person-more:hover, .person-more:focus { background: var(--navy); color: #fff; }
@media (max-width: 850px) {
    .people-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .people-page { padding: 26px 5% 45px; }
    .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .person-card { padding: 18px 10px 14px; }
    .people-section-title { font-size: 22px; }
}
@media (max-width: 360px) {
    .people-grid { grid-template-columns: minmax(0,1fr); }
}


/* V6.3 – Contact page aligned with site visual identity. */
.bnp-contact-page .page-header p {color:var(--muted);margin:8px 0 0;}
.bnp-contact-layout {display:grid;grid-template-columns:minmax(220px, 1fr) minmax(0,2fr);gap:24px;align-items:start;}
.bnp-contact-details,.bnp-contact-form-panel {background:#fff;border:1px solid var(--line);border-top:3px solid var(--cyan);border-radius:4px;padding:28px;box-shadow:0 3px 12px rgba(8,48,65,.04);min-width:0;}
.bnp-contact-details h2,.bnp-contact-form-panel h2 {font-size:20px;line-height:1.3;color:var(--navy);margin:0 0 14px;}
.bnp-contact-details h2:not(:first-child) {margin-top:28px;}
.bnp-contact-details p {font-size:15px;line-height:1.7;color:var(--muted);margin:0;overflow-wrap:anywhere;}
.bnp-contact-form {display:grid;gap:18px;}
.bnp-contact-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.bnp-contact-form label {display:flex;flex-direction:column;gap:7px;color:var(--navy);font-size:14px;font-weight:600;}
.bnp-contact-form input,.bnp-contact-form textarea {display:block;width:100%;border:1px solid #bed3dc;border-radius:3px;padding:12px 13px;background:#fff;color:var(--ink);font:inherit;font-weight:400;min-width:0;}
.bnp-contact-form input:focus,.bnp-contact-form textarea:focus {outline:2px solid var(--cyan);outline-offset:1px;}
.bnp-contact-form textarea {resize:vertical;min-height:180px;}
.bnp-contact-form button {justify-self:start;background:var(--blue);color:#fff;border:0;border-radius:3px;padding:12px 38px;font-size:15px;font-weight:700;cursor:pointer;}
.bnp-contact-form button:hover,.bnp-contact-form button:focus {background:var(--navy);}
.bnp-contact-notice {padding:12px 15px;background:#edf8f4;border-left:3px solid #3da989;color:var(--ink);}
.bnp-contact-notice.error {background:#fff2f1;border-left-color:#b74747;}
.bnp-contact-honeypot {position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
@media(max-width:850px){.bnp-contact-layout{grid-template-columns:1fr;}}
@media(max-width:560px){.bnp-contact-details,.bnp-contact-form-panel{padding:20px;}.bnp-contact-fields{grid-template-columns:1fr;}}

/* V6.5 – Home hero with the selected turquoise/blue photonics artwork.
   The overlay keeps white text readable on the luminous background. */
.home .hero, .front-page .hero, body.home .hero {
    background-image: linear-gradient(90deg, rgba(2, 29, 56, .83) 0%, rgba(3, 43, 78, .66) 48%, rgba(3, 35, 68, .12) 100%), url("assets/home-hero-photonics.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 385px;
    border-radius: 5px;
}
body.home .hero h1, body.home .hero p { text-shadow: 0 2px 8px rgba(0, 15, 38, .55); }
body.home .hero h1 { max-width: 730px; }
body.home .hero p { max-width: 600px; }
@media (max-width: 650px) {
    body.home .hero {
        min-height: 340px;
        background-position: 56% center;
        background-image: linear-gradient(90deg, rgba(2, 29, 56, .85), rgba(3, 43, 78, .55)), url("assets/home-hero-photonics.png");
    }
}

/* V6.6 — Artwork as the background of the entire home page, not the hero only. */
body.home .site-main {
    background-color: #073b64;
    background-image: linear-gradient(180deg, rgba(2,25,51,.12), rgba(2,25,51,.30)), url("assets/home-hero-photonics.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.home .hero,
body.home .hero:hover {
    background: rgba(3, 37, 66, .74);
    min-height: 290px;
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 12px 34px rgba(0,20,40,.18);
    backdrop-filter: blur(3px);
}
body.home .section-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.42);
    text-shadow: 0 2px 6px rgba(0,25,50,.5);
}
body.home .site-footer {color:#e6f3fb;border-top-color:rgba(255,255,255,.3)}
@media(max-width:850px){body.home .site-main{background-attachment:scroll;background-position:center top}}


/* V6.7 — Shared photonics gradient, without embedded branding, on all pages. */
body .site-main {
    background-color: #063d70;
    background-image: linear-gradient(180deg, rgba(2,24,49,.10), rgba(2,24,49,.24)), url("assets/site-background-no-logo.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Keep page panels and the existing brand logo untouched. */
body .site-main .people-page { background: transparent; }
body .site-main .page-header h1,
body .site-main .section-title,
body .site-main .people-section-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.42);
    text-shadow: 0 2px 6px rgba(0,25,50,.48);
}
body .site-main .site-footer {
    color: #e6f3fb;
    border-top-color: rgba(255,255,255,.3);
}
body .site-main .page-header > p,
body .site-main .page-header .post-meta { color: #dbeaf4; }
@media (max-width:850px) {
    body .site-main { background-attachment: scroll; background-position: center top; }
}

/* V6.8 — Home uses the same unbranded background as every other page.
   Increase home typography; keep the normal sidebar/site identity intact. */
body.home .site-main {
    background-color: #063d70;
    background-image: linear-gradient(180deg, rgba(2,24,49,.10), rgba(2,24,49,.24)), url("assets/site-background-no-logo.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.home .hero { background: rgba(3,37,66,.74); }
body.home .hero-brand { display: block; }
body.home .hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.12; max-width: 940px; }
body.home .hero p { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; max-width: 850px; }
body.home .hero .button { font-size: 17px; }
body.home .section-title { font-size: clamp(27px, 3vw, 34px); }
body.home .research-card h3, body.home .card h3 { font-size: 20px; }
body.home .research-card p, body.home .card p { font-size: 16px; line-height: 1.65; }
@media(max-width:850px){body.home .site-main{background-attachment:scroll;background-position:center top}}

/* V7.1 – Research Activities category: restore title hidden by V5.1 and improve readability. */
body.category-what-we-do .what-we-do-page .page-header,
.what-we-do-page .page-header { display:block; margin:0 0 28px; padding:0; }
body.category-what-we-do .what-we-do-page .page-header h1,
.what-we-do-page .page-header h1 { display:block; visibility:visible; opacity:1; font-size:clamp(30px,3vw,40px); font-weight:750; line-height:1.2; color:#fff; margin:0 0 20px; }
.what-we-do-page .activities-grid { gap:18px; }
.what-we-do-page .activity-card { padding:22px 24px 25px; }
.what-we-do-page .activity-card-content h2 { font-size:clamp(18px,1.5vw,21px); line-height:1.4; margin:8px 0 12px; }
.what-we-do-page .activity-excerpt { font-size:16px; line-height:1.65; }
.what-we-do-page .activity-card-media { height:150px; min-height:150px; }
.what-we-do-page .activity-image { width:132px; height:132px; }
@media(max-width:700px) {
 .what-we-do-page .activity-card { padding:18px; }
 .what-we-do-page .activity-card-content h2 { font-size:18px; }
 .what-we-do-page .activity-excerpt { font-size:15px; }
}


/* V7.4 — Teaching Trebbia is an academic information page, not a blog listing. */
.trebbia-teaching-page { width:min(1120px,100%); }
.trebbia-teaching-page .page-header { margin-bottom:24px; }
.trebbia-teaching-page .page-header h1 { font-size:clamp(30px,3.3vw,42px); line-height:1.2; }
.trebbia-teaching-panel { background:#fff; border:1px solid rgba(220,233,243,.9); border-radius:12px; box-shadow:0 14px 34px rgba(0,25,55,.16); overflow:hidden; }
.trebbia-teaching-page .trebbia-teaching-body { border:0; background:transparent; padding:clamp(24px,4vw,48px); color:#203449; font-size:17px; line-height:1.8; }
.trebbia-teaching-body > :first-child { margin-top:0; }
.trebbia-teaching-body h2 { color:#006e96; font-size:clamp(22px,2.3vw,29px); margin:30px 0 12px; }
.trebbia-teaching-body h3 { color:#006e96; font-size:21px; margin:24px 0 10px; }
.trebbia-teaching-body p, .trebbia-teaching-body li { font-size:17px; line-height:1.8; }
.trebbia-teaching-body ul, .trebbia-teaching-body ol { padding-left:1.5em; margin:12px 0 24px; }
.trebbia-teaching-body li { margin-bottom:9px; }
.trebbia-teaching-body a { color:#007da5; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:700px){.trebbia-teaching-page .trebbia-teaching-body{font-size:16px;padding:22px}.trebbia-teaching-body p,.trebbia-teaching-body li{font-size:16px}}


/* V7.5 — Publications display full bibliographies like Teaching Trebbia. */
.publications-full-page { width:min(1120px,100%); }
.publications-full-page .page-header { margin-bottom:24px; }
.publications-full-page .page-header h1 { font-size:clamp(30px,3.3vw,42px); line-height:1.2; }
.publications-years { display:grid; gap:22px; }
.publications-year-panel { background:#fff; border:1px solid rgba(220,233,243,.9); border-radius:12px; box-shadow:0 14px 34px rgba(0,25,55,.16); padding:clamp(24px,4vw,46px); color:#203449; }
.publications-year-title { color:#007a9d; font-size:clamp(24px,2.6vw,32px); line-height:1.25; margin:0 0 20px; padding-bottom:12px; border-bottom:1px solid #e0edf3; }
.publications-year-body { font-size:16px; line-height:1.8; overflow-wrap:anywhere; }
.publications-year-body p,.publications-year-body li { font-size:16px; line-height:1.8; margin-bottom:14px; }
.publications-year-body ul,.publications-year-body ol { padding-left:1.5em; }
.publications-year-body a { color:#007da5; text-decoration:underline; text-underline-offset:3px; }
.publications-year-body > :first-child { margin-top:0; }
@media(max-width:700px){.publications-year-panel{padding:22px}.publications-year-body,.publications-year-body p,.publications-year-body li{font-size:15px}}


/* V7.6 – Original Joomla gallery albums */
.bnp-gallery-v76 .bnp-gallery-photo-album{margin:0 0 34px;scroll-margin-top:25px;background:#fff;padding:22px 24px;border-radius:5px;}
.bnp-gallery-v76 .bnp-gallery-photo-album h2{color:#087eaa;margin:0 0 18px;font-size:1.55rem;}
.bnp-gallery-v76 .bnp-gallery-photo-album h2 small{font-size:.7em;font-weight:400;color:#526b7a;}
.bnp-gallery-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;}
.bnp-gallery-photo{display:block;aspect-ratio:4/3;overflow:hidden;background:#e5eff4;border-radius:4px;}
.bnp-gallery-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease;}
.bnp-gallery-photo:hover img{transform:scale(1.06);}
.bnp-gallery-photo:focus-visible{outline:3px solid #0ca4cb;outline-offset:3px;}
.bnp-gallery-lightbox{border:0;padding:30px 12px 12px;max-width:min(94vw,1200px);max-height:94vh;background:#071d2c;border-radius:6px;position:fixed;}
.bnp-gallery-lightbox::backdrop{background:rgba(0,12,24,.9);}
.bnp-gallery-lightbox img{display:block;max-width:90vw;max-height:83vh;width:auto;height:auto;object-fit:contain;margin:auto;}
.bnp-gallery-close{position:absolute;right:5px;top:0;background:transparent;border:0;color:white;font-size:32px;cursor:pointer;line-height:1;}
@media(max-width:600px){.bnp-gallery-v76 .bnp-gallery-photo-album{padding:14px}.bnp-gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}}
