/* Refresh layer over the original Responsee template */
:root{--navy:#152732;--ink:#1d2b36;--body:#3d4a55;--muted:#6b7781;--accent:#c4333b;--line:#e4e8ec;--tint:#f5f7f9}
body.refreshed{font-family:'Open Sans',system-ui,sans-serif;color:var(--body);background:#fff;font-size:16px}
.refreshed .page{width:100%;float:none}
.refreshed a{color:var(--accent)}
.refreshed a:hover{color:#9e2229}
.refreshed h1,.refreshed h2,.refreshed h3,.refreshed h4{color:var(--ink);font-weight:600}
.refreshed h1 b{font-weight:700}

/* visible top navigation */
.topbar{background:var(--navy);position:sticky;top:0;z-index:20;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.topbar-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:64px;gap:24px}
.brand img{height:36px;width:auto;display:block}
.topnav{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.topnav::-webkit-scrollbar{display:none}
.refreshed .topnav a{color:#c9d3db;font-size:.92rem;font-weight:600;padding:8px 12px;border-radius:6px;white-space:nowrap}
.refreshed .topnav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.refreshed .topnav a.active{color:#fff;background:rgba(255,255,255,.14)}

/* readable, left-aligned text */
.refreshed article p,.refreshed article h3,.refreshed article h4{text-align:left}
.refreshed article{max-width:760px;float:none;margin:0 auto}
.refreshed article h1{text-align:left;font-size:2.4rem;margin-bottom:1rem}
.refreshed article h3{margin-top:1.5rem}
.refreshed p{line-height:1.7}
.refreshed #first-block,.refreshed #second-block{padding:4rem 0}

/* home carousel */
.refreshed #carousel{background:var(--tint)}
.refreshed #header-carousel .item img{max-height:520px;width:100%;object-fit:cover;background:#000}
.refreshed #header-carousel .item > img{width:100%;max-width:1800px;height:auto;max-height:none;aspect-ratio:3/1;margin:0 auto;display:block}
.refreshed #header-carousel .item .line{max-width:820px;margin:0 auto;padding:1.6rem 24px .5rem;text-align:left}
.refreshed #header-carousel h4{font-size:1.5rem;line-height:1.3;margin-bottom:.8rem;text-align:left}
.refreshed #header-carousel h6{font-size:1rem;font-weight:400;line-height:1.65;color:var(--body);text-align:left;margin-bottom:.7rem}
.refreshed .owl-theme .owl-dots .owl-dot.active span,.refreshed .owl-theme .owl-dots .owl-dot:hover span{background:var(--accent)}

/* even teaser cards */
.refreshed #first-block .margin:has(.teaser){display:flex;flex-wrap:wrap;max-width:1200px;margin:0 auto}
.refreshed .teaser{display:flex;flex-direction:column;text-align:left;padding:0 14px}
.refreshed .teaser h2{font-size:1.5rem;border-top:3px solid var(--accent);padding-top:1rem}
.refreshed .teaser h2 a{color:var(--ink)}
.refreshed .teaser p{flex:1;color:var(--body)}
.refreshed .teaser-link{font-weight:600;font-size:.92rem}

/* research directions carousel */
.refreshed #carousel > h1{padding-top:3rem;font-size:2.2rem}
.refreshed .align-content-middle p,.refreshed .align-content-middle h3{text-align:left}

/* people: grid whose cards share row tracks (subgrid), so office/phone/email lines align */
.refreshed .team-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(10,minmax(0,72px));justify-content:center;column-gap:24px;row-gap:0;align-content:start;align-items:start;grid-auto-rows:auto}
.refreshed .team-grid .team-member{grid-column:span 2;display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;max-width:none;padding:0 0 32px;text-align:left;flex:none}
.refreshed .team-grid .team-member .tm-photo{position:relative;aspect-ratio:4/5;border-radius:6px;overflow:hidden;margin-bottom:.8rem}
.refreshed .team-grid .team-member .tm-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;margin:0!important}
.refreshed .team-grid .team-member h3{font-size:1.05rem;margin:0 0 .3rem!important;line-height:1.3;text-align:left}
.refreshed .team-grid .team-member p{font-size:.84rem;line-height:1.45;margin:0 0 .2rem;color:var(--muted);text-align:left}
.refreshed .team-grid .team-member .tm-info{margin-bottom:.5rem}
.refreshed .team-grid .team-member p b,.refreshed .team-grid .team-member p strong{color:var(--ink)}
.refreshed .team-grid .team-member p:empty{margin:0}
.refreshed .team-grid:has(.team-member:only-child){justify-content:center}
/* centre a partial last row: 5 per row, each card spans 2 of 10 tracks */
.refreshed .team-grid .team-member:nth-child(5n+1):nth-last-child(4){grid-column:2/span 2}
.refreshed .team-grid .team-member:nth-child(5n+1):nth-last-child(3){grid-column:3/span 2}
.refreshed .team-grid .team-member:nth-child(5n+1):nth-last-child(2){grid-column:4/span 2}
.refreshed .team-grid .team-member:nth-child(5n+1):nth-last-child(1){grid-column:5/span 2}
.refreshed .team-grid .team-member:nth-child(1):nth-last-child(1){grid-column:1/span 2}
.refreshed .team-grid .team-member:only-child{display:block}
/* PI card: half-size photo on the left, name and details on the right */
.refreshed .team-grid:has(.team-member:only-child){grid-template-columns:repeat(2,minmax(0,250px))}
.refreshed .team-grid .team-member:only-child{display:grid;grid-template-columns:162px minmax(0,1fr);grid-template-rows:1fr repeat(5,auto) 1fr;column-gap:28px;padding-bottom:0}
.refreshed .team-grid .team-member:only-child .tm-photo{grid-column:1;grid-row:1/-1;margin:0}
.refreshed .team-grid .team-member:only-child > h3{grid-column:2;grid-row:2}
.refreshed .team-grid .team-member:only-child > .tm-info{grid-column:2;grid-row:3}
.refreshed .team-grid .team-member:only-child > .tm-office{grid-column:2;grid-row:4}
.refreshed .team-grid .team-member:only-child > .tm-phone{grid-column:2;grid-row:5}
.refreshed .team-grid .team-member:only-child > .tm-email{grid-column:2;grid-row:6}
@media (max-width:768px){
  .refreshed .team-grid:has(.team-member:only-child){grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .refreshed .team-grid .team-member:only-child{display:block}
  .refreshed .team-grid .team-member:only-child .tm-photo{width:162px;max-width:50%;margin-bottom:.8rem}
}
.refreshed #second-block h1,.refreshed #first-block > .margin > h1{font-size:2rem}

/* publications: left-aligned list */
.refreshed .page > section > div.text-center > .line,
.refreshed .page > section > div > div.line{max-width:960px;margin:0 auto;text-align:left}
.refreshed .page section .line > h1{text-align:left;border-top:2px solid var(--ink);padding-top:1rem;margin-top:2.5rem;font-size:1.9rem}
.refreshed .page section .line .line{padding:1rem 0;border-bottom:1px solid var(--line)}
.refreshed .page section .line .line h4{font-size:1.12rem;line-height:1.4;margin-bottom:.4rem;text-align:left}
.refreshed .page section .line .line h4 a{color:var(--ink)}
.refreshed .page section .line .line h4 a:hover{color:var(--accent)}
.refreshed .page section .line .line p{font-size:.9rem;color:var(--muted);text-align:left;margin:0 0 .15rem}
.refreshed .page section .line .line p b{color:var(--ink)}
.refreshed #first-block > .margin > .s-12 h4{font-size:1.1rem;line-height:1.4}
.refreshed #first-block > .margin > .s-12 p{font-size:.88rem;color:var(--muted)}

/* publications page structure */
.refreshed #first-block > .line{max-width:960px;margin:0 auto;padding:0 24px}
.refreshed #first-block > .margin:not(:has(.teaser)){max-width:960px;margin:0 auto;padding:0 10px;overflow:hidden}
.refreshed #first-block > .margin:not(:has(.teaser)) > h1{text-align:center;margin-bottom:.3rem}
.refreshed #first-block > .margin:not(:has(.teaser)) > p{text-align:center;margin-bottom:2rem}
.refreshed #first-block > .margin > .s-12{padding:0 14px;text-align:left}
.refreshed #first-block > .margin > .s-12 h4,.refreshed #first-block > .margin > .s-12 p{text-align:left}
.refreshed #first-block > .margin > .s-12 h4 a{color:var(--ink)}

/* year groups: any .line whose direct child is a year heading */
.refreshed .line:has(> h1){max-width:960px;margin:0 auto;padding:0 24px;float:none}
.refreshed .line:has(> h1) > h1{text-align:left;border-top:2px solid var(--ink);padding-top:1rem;margin-top:2.5rem;font-size:1.9rem}
.refreshed .line:has(> h1) .line{padding:1rem 0;border-bottom:1px solid var(--line);float:none;width:auto}

/* research directions carousel: image 40%, text 60% */
.refreshed #carousel .item:has(.align-content-middle){max-width:1100px;margin:0 auto;padding:0 24px 2rem;display:flex;gap:40px;align-items:flex-start}
.refreshed #carousel .item .align-content-middle{float:none;width:auto;margin:0}
.refreshed #carousel .item .align-content-middle:first-child{flex:0 0 40%}
.refreshed #carousel .item .align-content-middle:first-child img{border-radius:6px}
.refreshed #carousel .item .align-content-middle:last-child{flex:1}
.refreshed #carousel .item .align-content-middle h3{font-size:1.6rem;line-height:1.3;margin:0 0 1rem}
.refreshed #carousel .item .align-content-middle br{display:none}
.refreshed #carousel .item .align-content-middle p{margin-bottom:1rem}
@media (max-width:768px){.refreshed #carousel .item:has(.align-content-middle){flex-direction:column;gap:16px;padding:0 16px 2rem}.refreshed #carousel .item .align-content-middle:first-child{flex:none;width:100%;max-width:440px}}

.refreshed .line:has(> h1) .margin{margin:0}

.page-publications #second-block article{max-width:960px;padding:0 14px;margin:0 auto;float:none;width:100%}
.page-publications #second-block .margin{margin:0}

/* footer */
.site-foot{background:var(--tint);border-top:1px solid var(--line);padding:2.5rem 0;color:var(--muted);font-size:.9rem;clear:both}
.foot-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.foot-inner p{text-align:left;margin:0}
.foot-inner strong{color:var(--ink)}

@media (max-width:1000px){
  .refreshed .team-grid{grid-template-columns:repeat(8,minmax(0,72px));column-gap:24px}
  .refreshed .team-grid .team-member:nth-child(n):nth-last-child(n){grid-column:span 2}
  .refreshed .team-grid .team-member:nth-child(4n+1):nth-last-child(3){grid-column:2/span 2}
  .refreshed .team-grid .team-member:nth-child(4n+1):nth-last-child(2){grid-column:3/span 2}
  .refreshed .team-grid .team-member:nth-child(4n+1):nth-last-child(1){grid-column:4/span 2}
  .refreshed .team-grid .team-member:nth-child(1):nth-last-child(1){grid-column:1/span 2}
}
@media (max-width:820px){
  .refreshed .team-grid{grid-template-columns:repeat(6,minmax(0,72px));column-gap:24px}
  .refreshed .team-grid .team-member:nth-child(n):nth-last-child(n){grid-column:span 2}
  .refreshed .team-grid .team-member:nth-child(3n+1):nth-last-child(2){grid-column:2/span 2}
  .refreshed .team-grid .team-member:nth-child(3n+1):nth-last-child(1){grid-column:3/span 2}
  .refreshed .team-grid .team-member:nth-child(1):nth-last-child(1){grid-column:1/span 2}
}
@media (max-width:600px){
  .refreshed .team-grid{grid-template-columns:repeat(4,minmax(0,72px));column-gap:16px}
  .refreshed .team-grid .team-member:nth-child(n):nth-last-child(n){grid-column:span 2}
  .refreshed .team-grid .team-member:nth-child(2n+1):nth-last-child(1){grid-column:2/span 2}
  .refreshed .team-grid .team-member:nth-child(1):nth-last-child(1){grid-column:1/span 2}
}
@media (max-width:768px){
  .topbar-inner{flex-direction:column;align-items:flex-start;height:auto;padding:12px 16px 6px;gap:6px}
  .topnav{width:100%;margin:0 -12px;padding:0 4px 4px}
  .refreshed .team-grid{padding:16px}
  .refreshed .teaser{margin-bottom:2rem}
  .refreshed article h1{font-size:1.9rem}
  .refreshed .page section .line > h1,.refreshed .page > section > div > div.line{padding-left:16px;padding-right:16px}
}
