/*
Theme Name: Mesam v2
Theme URI: https://mesam.se/
Author: Boid Studio
Description: A clean, editorial WordPress theme for the MESAM website, built to support research news, projects, publications, and events.
Version: 0.1.11
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: mesam-v2
*/

@import url("assets/css/project-members.css?ver=0.1.10");
@import url("assets/css/project-legacy.css?ver=0.1.9");
@import url("assets/css/cta.css?ver=0.1.11");

:root {
  color-scheme: light;
  --color-bg: #f7f8f3;
  --color-surface: #ffffff;
  --color-text: #11212d;
  --color-muted: #5f6d76;
  --color-accent: #01A0C6;
  --color-footer-bg: #181818;
  --color-footer-text: #ffffff;
  --color-footer-link: #6ec1e4;
  --color-panel: #f2f2f2;
  --color-news-rule: #181818;
  --color-news-meta: #808080;
  --max-width: 1120px;
  --card-radius: 8px;
  --card-shadow: 0 14px 36px rgba(17, 33, 45, 0.07);
  --border-radius: var(--card-radius);
  --border-radius-panel: 52px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Helvetica, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.4;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .admin-bar & {
    min-height: calc(100vh - 32px);
  }
}
a { color: var(--color-accent); }
p{
  margin: 0 0 1rem;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2rem, var(--max-width)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header {
  background: var(--color-surface);
  position: relative;
  z-index: 20;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  flex: 0 0 auto;
}

.site-brand img {
  width: clamp(260px, 20vw, 380px);
  height: auto;
  max-height: 78px;
}

.site-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-navigation > div,
.site-navigation > ul {
  width: 100%;
}

.site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation > div > ul,
.site-navigation > ul {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.site-navigation li {
  position: relative;
}

.site-navigation a {
  color: #111;
  text-decoration: none;
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a {
  color: #6f6f6f;
}

.site-navigation .menu-item-has-children > a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 0.14rem solid currentColor;
  border-bottom: 0.14rem solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.14rem;
  opacity: 0.75;
}

.site-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  min-width: 21rem;
  padding: 0.65rem 0;
  background: var(--color-surface);
  border-radius: 1.15rem;
  box-shadow: 0 18px 40px rgba(17, 33, 45, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 30;
}

.site-navigation .sub-menu li {
  width: 100%;
}

.site-navigation .sub-menu a {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 0.85rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.2;
}

.site-navigation .sub-menu a:hover,
.site-navigation .sub-menu a:focus-visible {
  color: #111;
  background: #f5f6f7;
}

.site-navigation li.menu-item--open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-navigation .menu-item-has-children > a {
  cursor: pointer;
}

.site-navigation .sub-menu .sub-menu {
  top: -0.35rem;
  left: calc(100% + 0.75rem);
}

.site-navigation .sub-menu .menu-item-has-children > a::after {
  transform: rotate(-45deg);
}

.site-navigation .sub-menu .menu-item-has-children.menu-item--open > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.site-nav-toggle-bars {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
}

.site-nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-nav-toggle-bars span:nth-child(1) { top: 0; }
.site-nav-toggle-bars span:nth-child(2) { top: 8px; }
.site-nav-toggle-bars span:nth-child(3) { top: 16px; }

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .site-nav-toggle-bars span { transition: none; }
}

@media (max-width: 960px) {
  .site-nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0 0.75rem;
  }

  .site-brand img {
    width: min(62vw, 300px);
    max-height: 60px;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    flex: 0 0 100%;
    display: none;
    justify-content: flex-start;
    margin-top: 0.25rem;
    border-top: 1px solid #e6e8e4;
  }

  .site-header.is-nav-open .site-navigation {
    display: flex;
  }

  .site-navigation > ul,
  .site-navigation > div > ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-navigation > ul > li,
  .site-navigation > div > ul > li {
    border-bottom: 1px solid #f0f1ee;
  }

  .site-navigation a,
  .site-navigation .sub-menu a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .site-navigation .sub-menu,
  .site-navigation .sub-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-navigation li.menu-item--open > .sub-menu {
    display: block;
  }

  .site-navigation .sub-menu li {
    border: 0;
  }

  .site-navigation .sub-menu a {
    padding: 0.6rem 0;
    font-size: 1rem;
  }

  .site-navigation .menu-item-has-children > a::after,
  .site-navigation .sub-menu .menu-item-has-children > a::after {
    width: 0.4rem;
    height: 0.4rem;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .site-navigation li.menu-item--open > a::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-navigation .menu-item-has-children > a::after { transition: none; }
  }
}

.hero { padding: 4rem 0 3rem; background: linear-gradient(135deg, #fefefe 0%, #eef5f2 100%); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.hero--has-image {
  display: flex;
  align-items: flex-end;
  min-height: min(70vh, 620px);
  padding: 7rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(1, 30, 37, 0.45) 0%, rgba(1, 30, 37, 0.1) 40%, rgba(1, 30, 37, 0.7) 100%),
    var(--hero-image) center / cover no-repeat;
  color: #fff;
  h1 { max-width: 18ch; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, 0.55); }
  .mesam-cta { margin-top: 0.5rem; filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5)); }
}
@media (max-width: 760px) {
  .hero--has-image { min-height: min(60vh, 420px); padding: 5rem 0 2.5rem; }
  .hero--has-image h1 { max-width: none; }
}
.card-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2rem; }

/* News panel — shared by the front page news section and the news page.
   The compact default lists date + title only; --feature adds excerpts,
   rules between items, and a double-width lead item. */
.news-panel {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.news-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  /* border-bottom: 1px solid var(--color-news-rule); */
}
.news-panel-title { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: #000; }
.news-panel-intro { margin-top: 1.5rem; color: var(--color-muted); }
.news-panel-intro > :first-child { margin-top: 0; }
.news-panel-intro > :last-child { margin-bottom: 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2rem;
}
.news-grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
/* Hug the content so the rule sits under the text, not at the row baseline. */
.news-item { align-self: start; }
.news-item-date { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.85; text-transform: capitalize; color: var(--color-news-meta); }
.news-item-title { margin: 0.5rem 0 0; font-size: 1.5rem; font-weight: 400; line-height: 1.2; color: var(--color-news-rule); }
.news-item-title a { color: inherit; text-decoration: none; }
.news-item-title a:hover, .news-item-title a:focus-visible { color: var(--color-accent); text-decoration: none; }
.news-item-excerpt { margin-top: 0.85rem; font-size: 1.125rem; line-height: 1.85; color: var(--color-news-rule); }
.news-item-excerpt p { margin: 0; }
.news-empty { grid-column: 1 / -1; margin: 0; color: var(--color-muted); }

.news-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--color-surface); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8eeeb; }
.news-card-image { width: 100%; height: 100%; object-fit: cover; }
.news-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 2rem; }
.news-card-title { margin: 0; color: #111b32; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover, .news-card-title a:focus-visible { color: var(--color-accent); }
.news-card-date { display: block; margin-top: 1rem; color: #111b32; font-size: 0.85rem; line-height: 1.5; }
.news-card-excerpt { margin-top: 1.35rem; color: #111b32; line-height: 1.5; }
.news-card-excerpt p { margin: 0; }
.news-card-content .news-card-link { align-self: flex-start; margin-top: auto; padding-top: 2rem;}

@media (max-width: 900px) {
  .news-panel { padding: 0.5rem 1.75rem 2rem; border-radius: 32px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .news-grid--feature { grid-template-columns: minmax(0, 1fr); }
  /* .news-grid--feature .news-item:first-child { grid-column: span 2; } */
}
@media (max-width: 600px) {
  .news-panel { padding: 0.25rem 1.25rem 1.5rem; border-radius: 24px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-item-title { font-size: 1.3rem; }
  .news-card-content { padding: 1.5rem; }
  .news-card-title { font-size: 1.5rem; }
  .news-card-date, .news-card-excerpt { font-size: 0.85rem; }
  .news-card-content .news-card-link { padding-top: 2rem; }
}
.project-card-list { gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-page-intro { max-width: 48rem; margin-top: 1rem; color: var(--color-muted); }
.project-search { display: flex; gap: 0.65rem; max-width: 42rem; margin-top: 1.5rem; }
.project-search input { min-width: 0; flex: 1; padding: 0.75rem 0.9rem; border: 1px solid #b8d0c9; border-radius: 6px; background: #fff; color: var(--color-text); font: inherit; }
.project-search button { padding: 0.75rem 1rem; border: 0; border-radius: 6px; background: var(--color-accent); color: #fff; cursor: pointer; font: inherit; }
.project-search button:hover, .project-search button:focus-visible { background: var(--color-text); }
.project-pagination { margin: 2.5rem 0; }
.project-pagination ul { display: flex; justify-content: center; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.project-pagination a, .project-pagination span { display: inline-flex; align-items: center; justify-content: center; padding: 0.35rem 0.45rem; color: var(--color-text); text-decoration: none; }
.project-pagination .current { width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--color-accent); border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 700; }
.project-pagination a:hover, .project-pagination a:focus-visible { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.card { background: var(--color-surface); padding: 1.25rem; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.project-card { min-width: 0; background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow);     display: flex;
    flex-direction: column;}
.project-card-media { aspect-ratio: 16 / 9; background: #dce8e5; overflow: hidden; }
.project-card-image { width: 100%; height: 100%; object-fit: cover; }
.project-card-media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #d7e5df, #a9c2ba); }
.project-card-content { display: flex; flex-direction: column; min-height: 19rem; padding: 1.45rem 1.4rem 1.15rem; flex-grow:1; }
.project-card-title { margin: 0 0 0.85rem; color: var(--color-text); font-size: 1.55rem; line-height: 1.12; font-weight: 300;}
.project-card-title a { color: inherit; text-decoration: none; }
.project-card-title a:hover, .project-card-title a:focus-visible { color: var(--color-accent); text-decoration: none; }
.project-card-intro { display: -webkit-box; margin: 0; overflow: hidden; color: #52615d; font-size: 1rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.project-card-terms { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: auto 0 1.1rem; padding: 1.25rem 0 0; list-style: none; }
.project-card-terms li { 
  border: 1px solid #b8d0c9; border-radius: 999px; color: var(--color-text); font-size: 0.8rem; line-height: 1.2; overflow: hidden; 
  &:hover { border-color: var(--color-accent); }
}
.project-card-terms a { display: block; padding: 0.25rem 0.65rem; color: var(--color-text); text-decoration: none; }
.project-card-terms a:hover, .project-card-terms a:focus-visible { background: var(--color-accent); border-color:var(--color-accent); color: #fff; text-decoration: none; }
.project-card-cta { align-self: flex-start; margin-top: 1.15rem; }
.project-card-footer { display: flex; justify-content: space-between; gap: 1rem; margin: 0 1.4rem; padding: 0.9rem 0 1.2rem; border-top: 1px solid #e2e8e4; color: var(--color-muted); font-size: 0.85rem; line-height: 1.3; }
.project-card-affiliation { min-width: 0; overflow-wrap: anywhere; }
.project-card-dates { flex: 0 0 auto; white-space: nowrap; }
.button { display: inline-block; padding: 0.8rem 1.1rem; border-radius: 999px; background: var(--color-accent); color: white; text-decoration: none; }

.wp-block-separator {
  border-top: 1px solid var(--color-muted);
  margin: 3rem 0;
}

.site-footer { margin-top: 2.5rem; background: var(--color-footer-bg); color: var(--color-footer-text); padding: 2.25rem 0; }
.site-footer a { color: var(--color-footer-link); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.site-footer p { margin: 0; }

.site-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-footer-brand { display: block; }
.site-footer-brand img { width: 415px; max-width: 100%; height: auto; filter: invert(1); }
.site-footer a.site-footer-totop { color: var(--color-footer-text); font-weight: 500; flex-shrink: 0; }

.site-footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 2.25rem; }
.site-footer-contact { display: flex; align-items: center; gap: 1.25rem; }
.site-footer-contact-text { line-height: 26px; }
.site-footer a.site-footer-social { display: block; flex-shrink: 0; line-height: 0; color: var(--color-footer-text); }
.site-footer-social svg { display: block; width: 42px; height: 42px; }
.site-footer-partner img { width: 213px; max-width: 100%; height: auto; }

@media (max-width: 760px) {
  .site-footer-top { flex-direction: column; align-items: flex-start; }
  .site-footer-totop { display: none; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
}
.site-main { padding: 0rem 0 0rem; flex-grow: 1;}
.project-page { display: grid; gap: 1.5rem; }
.project-hero { padding: 2rem 0 0.5rem; }
.project-header-image { margin-bottom: 1.25rem; }
.project-header-image img { border-radius: var(--card-radius); width: 100%; max-height: 420px; object-fit: cover; }
.project-hero h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 0.75rem; }
.project-intro { font-size: 1.1rem; color: var(--color-muted); max-width: 760px; }
.project-summary-card {
  margin-top: -4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 1.5rem 1.25rem;
  background: #111b22;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.project-summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  min-height: 96px;
  color: #f4f7f5;
}

.project-summary-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #f4f7f5;
}

.project-summary-icon svg {
  width: 52px;
  height: 52px;
}

.project-summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  text-align: center;
}

.project-summary-label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: rgba(244, 247, 245, 0.8);
  text-align: center;
}

.project-summary-copy strong {
  color: #f4f7f5;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 600;
}

.project-summary-link {
  display: flex;
  align-items: center;
}

.project-summary-link .button {
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f5;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-content {  
  padding: 1.25rem 1.5rem; 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(50%, 2fr);
  gap: 1.25rem; 
  border-radius: var(--card-radius);
  .project-excerpt{
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    font-weight: 400;
  }
}
section {  padding: 1.25rem 1.5rem; }
.project-section h2 { margin-top: 0; margin-bottom: 0.7rem; font-size: 1.2rem; }
.project-section ul { padding-left: 1.1rem; }

.project-related-items {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.project-related-group {
  margin-top: 1rem;
}

.project-related-group h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.project-taxonomy-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.project-taxonomy-list li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    /* border: 1px solid rgba(255, 255, 255, 0.8); */
    background: rgb(255 255 255 / 40%);
    /* box-shadow: 0 8px 18px rgba(17, 33, 45, 0.12); */
    backdrop-filter: blur(24px);
}

.project-taxonomy-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 500;
}

.project-hero{
  min-height: 70vh;
  padding-bottom: 4rem;
  background-size: cover;
  h1 { font-size: clamp(2rem, 3.4vw, 3.3rem); margin: 0 0 0.85rem; line-height: 1.1; color: #fff; }
  .project-hero-content {
    height: 100%;
    padding: 0;
    .container {
        display: flex;
        justify-content: flex-end;
        /* align-items: flex-end; */
        flex-direction: column;
        height: 100%;
    }
  }
  .project-hero-overlay {
    max-width: 65%;
    padding: 1.5rem;
    background: #011e2533;
    border-radius: var(--border-radius);
    backdrop-filter: blur(24px);
  }
  .project-intro { 
    font-size: 1.5rem; 
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85); 
    max-width: 720px; 

  }
  .project-taxonomy{
    margin-bottom: 1rem;
    /* display: flex;
    flex-wrap: wrap; */
    /* gap: 0.75rem; */
  }
}
.page-article { display: grid; gap: 2rem; }
.news-article {
  width: 100%;
  margin: 0 auto;
  padding: 4rem 0 6rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  column-gap: clamp(2rem, 4vw, 6rem);
  row-gap: clamp(2rem, 3.5vw, 5rem);
}
.news-article .page-article-header { display: contents; }
.news-article .page-article-header time {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 0.45rem;
  color: var(--color-news-meta);
  font-size: clamp(1rem, 1.1vw, 1.75rem);
}
.news-article-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #181818;
  font-size: clamp(2.5rem, 3.5vw, 6.25rem);
  font-weight: 700;
  line-height: 1.08;
}
.news-article-image,
.news-article .page-content { grid-column: 2; }
.news-article-image img { width: 100%; }
.news-article .page-content { margin: 0; }
.news-article .page-content-body {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.news-article .page-content-body p,
.news-article .page-content-body li {
  font-size: clamp(1.125rem, 1.2vw, 2.125rem);
  line-height: 1.8;
}
.news-article .page-content-body h2,
.news-article .page-content-body h3 { color: #181818; }
.page-hero { display: grid; gap: 1.5rem; padding: 0 0 0.5rem; }
.page-hero-image { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.page-hero-image img { width: 100%; max-height: 560px; object-fit: cover; display: block; box-shadow: 0 24px 60px rgba(17, 33, 45, 0.14); }
.page-hero-copy { width: min(100%, 760px); margin: -3rem auto 0; padding: 1.5rem 1.75rem; position: relative; z-index: 2; background: rgba(255, 255, 255, 0.95); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.page-hero-meta { display: inline-block; margin-bottom: 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.page-hero-copy h1 { font-size: clamp(2rem, 3.4vw, 3.3rem); margin: 0 0 0.85rem; line-height: 1.1; }
.page-intro { font-size: 1.08rem; color: #fff; max-width: 720px; }
/* .page-content { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(240px, 0.8fr); align-items: start; } */
.page-content { margin: 2rem; }
.page-content-body { background: var(--color-surface); padding: 2rem; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.page-content-body > :first-child { margin-top: 0; }
.page-content-body h2, .page-content-body h3 { color: var(--color-text); margin-top: 1.8rem; }
.page-content-body p, .page-content-body li { font-size: 1rem; line-height: 1.8; }
.page-sidebar-card { background: linear-gradient(135deg, #f0f4ef 0%, #ffffff 100%); border: 1px solid #e4e8de; padding: 1.25rem; border-radius: var(--card-radius); position: sticky; top: 1.5rem; }
.page-sidebar-card h2 { margin-top: 0; font-size: 1.05rem; }

@media (max-width: 900px) {
  .project-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content { grid-template-columns: 1fr; }
  .page-sidebar-card { position: static; }
  .page-hero-copy { margin-top: -1.5rem; padding: 1.25rem; }
  .news-article { grid-template-columns: 1fr; row-gap: 1.5rem; padding: 2rem 0 4rem; }
  .news-article .page-article-header { display: grid; gap: 0.75rem; }
  .news-article .page-article-header time,
  .news-article-title,
  .news-article-image,
  .news-article .page-content { grid-column: 1; grid-row: auto; }
  .news-article .page-article-header time { padding-top: 0; }
  .news-article-title { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* Front page block editor content */
.front-page-content { margin: 3rem auto; }
.front-page-content .entry-content > :first-child { margin-top: 0; }
.front-page-content .entry-content > :last-child { margin-bottom: 0; }
.front-page-content .entry-content h2, .front-page-content .entry-content h3 { color: var(--color-text); margin-top: 1.8rem; }
.front-page-content .entry-content p, .front-page-content .entry-content li { font-size: 1rem; line-height: 1.8; }

/* Event templates */
.event-page { display: grid; gap: 1.5rem; }
.event-hero { padding: 2rem 0 0.5rem; }
.event-hero h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 0.75rem; }
.event-header-image { margin-bottom: 1.25rem; }
.event-header-image img { border-radius: var(--card-radius); width: 100%; max-height: 420px; object-fit: cover; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 2rem; align-items: start; }

.event-summary-card {
  display: grid;
  gap: 0;
  position: sticky;
  top: 1.5rem;
  padding: 0;
  background: #111b22;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.event-summary-card h2 { margin: 0; padding: 1.2rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #f4f7f5; font-size: 1.15rem; font-weight: 500; }
.event-summary-item { display: flex; align-items: center; justify-content: flex-start; flex-direction: row; gap: 1rem; min-height: 0; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #f4f7f5; }
.event-summary-item:last-child { border-bottom: 0; }
.event-summary-icon { flex-shrink: 0; width: 2.45rem; height: 2.45rem; display: grid; place-items: center; color: #f4f7f5; }
.event-summary-icon svg { width: 2.45rem; height: 2.45rem; }
.event-summary-copy { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; min-width: 0; text-align: center; }
.event-summary-label { display: block; font-size: 0.82rem; line-height: 1.3; color: rgba(244, 247, 245, 0.7); text-align: left; }
.event-summary-copy strong { color: #f4f7f5; font-size: 1rem; line-height: 1.35; font-weight: 600; text-align: left; }
.event-summary-link { display: flex; flex-direction: column; align-items: stretch; gap: 0.55rem; padding: 1.25rem; }
.event-summary-link .button { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); text-align: center; }
.event-summary-link .button-closed { background: rgba(255, 255, 255, 0.08); color: #f4f7f5; border-color: rgba(255, 255, 255, 0.18); }
.event-summary-closing { font-size: 0.85rem; color: rgba(244, 247, 245, 0.75); text-align: left; }

.event-content { min-width: 0; padding: 1.25rem 1.5rem; background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.event-content > :first-child { margin-top: 0; }
.event-content > :last-child { margin-bottom: 0; }

.event-list-section { padding: 0; margin-top: 2.5rem; }
.event-list-section h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 300; }
.event-more-events { margin-top: 3rem; }
.event-list { display: grid; gap: 0.75rem; }
.event-list-empty {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.58);
  border-color: #e8eee9;
  box-shadow: none;
  min-height: 7.25rem;
  border: 1px solid #dfe8e3;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.event-list-item { display: grid; grid-template-columns: 7.5rem minmax(0, 1.7fr) minmax(9rem, 0.7fr) auto; align-items: stretch; min-height: 7.25rem; border: 1px solid #dfe8e3; border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); overflow: hidden; }
.event-list-date { align-items: center; color: var(--color-muted); font-size: 0.82rem; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; }
.event-list-date, .event-list-content, .event-list-location, .event-list-cta { display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.15rem; }
.event-list-content, .event-list-location, .event-list-cta { border-left: 1px solid #e8eee9; }
.event-list-date time { display: grid; gap: 0.1rem; justify-items: center; }
.event-list-day { display: block; color: var(--color-text); font-size: 2.5rem; line-height: 1; font-weight: 300; text-transform: none; }
.event-list-month { display: block; color: var(--color-text); font-size: 1.3rem; line-height: 1; font-weight: 500; text-transform: uppercase; }
.event-list-year { display: block; color: var(--color-muted); font-size: 1rem; line-height: 1.5; font-weight: 500; }
.event-list-content { min-width: 0; }
.event-list-type { display: inline-block; margin-bottom: 0.35rem; color: var(--color-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.event-list-title { margin: 0; color: var(--color-text); font-size: 1.25rem; line-height: 1.2; font-weight: 400; }
.event-list-title a { color: inherit; text-decoration: none; }
.event-list-title a:hover, .event-list-title a:focus-visible { color: var(--color-accent); text-decoration: none; }
.event-list-excerpt { margin: 0.55rem 0 0; color: #52615d; font-size: 0.95rem; line-height: 1.45; }
.event-list-location { gap: 0.25rem; min-width: 0; color: #52615d; font-size: 0.95rem; }
.event-list-location span { color: var(--color-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.event-list-location strong { min-width: 0; color: var(--color-text); font-size: 0.98rem; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.event-list-cta { align-items: center; white-space: nowrap; }
.event-list-item-past { background: rgba(255, 255, 255, 0.58); border-color: #e8eee9; box-shadow: none; opacity: 0.72; }
.event-list-item-past .event-list-date, .event-list-item-past .event-list-type, .event-list-item-past .event-list-location, .event-list-item-past .event-list-cta { color: var(--color-muted); }
.event-list-item-past .event-list-day, .event-list-item-past .event-list-title, .event-list-item-past .event-list-location strong { color: #43515a; }

@media (max-width: 900px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-summary-card { position: static; }
  .event-list-item { grid-template-columns: 5.75rem minmax(0, 1fr); }
  .event-list-location, .event-list-cta { grid-column: 2; border-left: 1px solid #e8eee9; border-top: 1px solid #e8eee9; }
}

@media (max-width: 560px) {
  .event-list-item { grid-template-columns: 1fr; }
  .event-list-content, .event-list-location, .event-list-cta { border-left: 0; border-top: 1px solid #e8eee9; }
  .event-list-location, .event-list-cta { grid-column: auto; }
}
.front-page-content .entry-content p, .front-page-content .entry-content li { font-size: 1.02rem; line-height: 1.8; }
.front-page-content .entry-content .alignwide { width: min(100vw - 2rem, calc(var(--max-width) + 160px)); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.front-page-content .entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
