@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* The public project site shares the same design tokens as the data portal. */
:root {
  --portal-surface: #ffffff;
  --portal-subtle: #fafafa;
  --portal-muted: #f5f5f5;
  --portal-strong: #e5e5e5;
  --portal-line: #e5e7eb;
  --portal-ink: #555555;
  --portal-muted-ink: #737373;
  --portal-burgundy: #741b47;
  --portal-burgundy-ink: #741b47;
  --portal-mustard: #bf910a;
  --portal-light-mustard: #f9db85;
  --portal-shadow: 0 18px 46px rgb(64 25 48 / 9%);
}

[data-theme='dark'] {
  --portal-surface: #16181b;
  --portal-subtle: #1c1f23;
  --portal-muted: #23272c;
  --portal-strong: #2c3137;
  --portal-line: #3a4047;
  --portal-ink: #d4d4d4;
  --portal-muted-ink: #9ca3af;
  --portal-burgundy-ink: #e07aae;
  --portal-shadow: 0 18px 46px rgb(0 0 0 / 30%);
}

html { scroll-behavior: smooth; }

body.portal-site {
  margin: 0 !important;
  color: var(--portal-ink) !important;
  background: var(--portal-subtle) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.68;
}

body.portal-site * { box-sizing: border-box; }

body.portal-site .menu1,
body.portal-site .footer1,
body.portal-site .footer2 { display: none !important; }

body.portal-site a {
  color: var(--portal-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.portal-site a:hover { color: var(--portal-mustard); }

body.portal-site h1,
body.portal-site h2,
body.portal-site h3,
body.portal-site h4,
body.portal-site h5,
body.portal-site h6 {
  color: inherit !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em;
  line-height: 1.18 !important;
}

body.portal-site p,
body.portal-site li { color: inherit !important; }

/* Portal-like fixed/frosted navigation */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 64px;
  border-bottom: 1px solid color-mix(in srgb, var(--portal-line) 80%, transparent);
  background: color-mix(in srgb, var(--portal-subtle) 84%, transparent);
  box-shadow: 0 2px 10px rgb(0 0 0 / 4%);
  backdrop-filter: blur(18px) saturate(145%);
}

.portal-nav__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 64px;
  padding: 0 32px;
}

.portal-brand-group {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  min-width: max-content;
  color: var(--portal-ink) !important;
  text-decoration: none !important;
}

.portal-brand img { display: block; width: auto; height: 40px; }

.portal-links { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.portal-links > li { display: flex; margin: 0; }
.portal-links a,
.portal-menu-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  color: var(--portal-ink) !important;
  background: transparent;
  cursor: pointer;
  font: 600 13px/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none !important;
  white-space: nowrap;
}

.portal-links a::after,
.portal-menu-trigger::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  background: linear-gradient(90deg, var(--portal-mustard), var(--portal-burgundy));
  content: '';
  transform: scaleX(0);
  transition: transform .24s ease;
}

.portal-links a:hover,
.portal-links a:focus-visible,
.portal-links a[aria-current='page'],
.portal-menu-trigger:hover,
.portal-menu-group:focus-within .portal-menu-trigger,
.portal-menu-group.is-current .portal-menu-trigger { color: var(--portal-burgundy) !important; }
.portal-links a:hover::after,
.portal-links a:focus-visible::after,
.portal-links a[aria-current='page']::after,
.portal-menu-group:hover .portal-menu-trigger::after,
.portal-menu-group:focus-within .portal-menu-trigger::after,
.portal-menu-group.is-open .portal-menu-trigger::after,
.portal-menu-group.is-current .portal-menu-trigger::after { transform: scaleX(1); }
.portal-menu-group { position: relative; }
.portal-menu-trigger span { font-size: 12px; transition: transform .2s ease; }
.portal-menu-group:hover .portal-menu-trigger span,
.portal-menu-group:focus-within .portal-menu-trigger span,
.portal-menu-group.is-open .portal-menu-trigger span { transform: rotate(180deg); }

.portal-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  display: grid;
  min-width: 205px;
  margin: 0;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--portal-line) 78%, transparent);
  border-top: 3px solid var(--portal-mustard);
  border-radius: 0 0 9px 9px;
  background: color-mix(in srgb, var(--portal-surface) 93%, transparent);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(16px);
  list-style: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.portal-menu-group:hover .portal-submenu,
.portal-menu-group:focus-within .portal-submenu,
.portal-menu-group.is-open .portal-submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portal-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  padding: 9px 11px;
  border-radius: 5px;
  font-size: 12px;
}
.portal-submenu a::after { display: none; }
.portal-submenu a:hover,
.portal-submenu a:focus-visible { background: var(--portal-muted); }
.portal-menu-mark {
  width: 6px;
  height: 7px;
  flex: 0 0 auto;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(to bottom, var(--portal-mustard), var(--portal-burgundy));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.portal-submenu a:hover .portal-menu-mark,
.portal-submenu a:focus-visible .portal-menu-mark,
.portal-submenu a[aria-current='page'] .portal-menu-mark { opacity: 1; transform: translateX(0); }

.portal-theme,
.portal-menu-toggle {
  align-self: center;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  place-items: center;
  color: var(--portal-ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  transition: color .2s, background-color .2s;
}
.portal-theme:hover,
.portal-theme:focus-visible,
.portal-menu-toggle:hover,
.portal-menu-toggle:focus-visible { color: var(--portal-burgundy); background: var(--portal-muted); }
.portal-theme { margin-left: 12px; }
.portal-menu-toggle { display: none; }

/* Page frame and the portal's calm, data-focused rhythm */
body.portal-site section:not(.menu1):not(.footer1):not(.footer2):not(.header1):not(.header2):not(.portal-page-hero):not(.portal-page-header):not(.mbr-parallax-background):not(.portal-zenodo-callout) {
  position: relative;
  isolation: isolate;
  margin: 0 !important;
  padding: 52px 32px !important;
  color: var(--portal-ink) !important;
  background: var(--portal-surface) !important;
}

body.portal-site section:not(.menu1):not(.footer1):not(.footer2) > .container,
body.portal-site section:not(.menu1):not(.footer1):not(.footer2) > .container-fluid {
  width: min(1120px, 100%) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.portal-site section:nth-of-type(even):not(.menu1):not(.footer1):not(.footer2):not(.header1):not(.header2):not(.portal-page-hero):not(.portal-page-header):not(.mbr-parallax-background):not(.portal-zenodo-callout) { background: var(--portal-subtle) !important; }

/* Section labels are intentionally compact, like a portal page header. */
body.portal-site .mbr-section-title,
body.portal-site .mbr-section-title strong,
body.portal-site .mbr-section-title p {
  max-width: 980px;
  margin-right: auto !important;
  margin-left: auto !important;
  color: var(--portal-burgundy) !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  text-align: inherit;
}

body.portal-site .mbr-section-subtitle,
body.portal-site .mbr-section-text,
body.portal-site .mbr-text,
body.portal-site .mbr-article,
body.portal-site .mbr-timeline-text {
  max-width: 880px;
  margin-right: auto !important;
  margin-left: auto !important;
  color: var(--portal-ink) !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

body.portal-site .mbr-section-subtitle strong { font-weight: 600; }

/* Publications copies the data portal's toolkit layout and its textured muted
   surface, with Zenodo content substituted for the installation instructions. */
body.portal-site .portal-zenodo-callout {
  padding: 48px 112px !important;
  background-color: var(--portal-muted) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E") !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  background-size: auto !important;
}
body.portal-site .portal-zenodo-callout__layout {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
body.portal-site .portal-zenodo-callout__content { flex: 1 1 0; max-width: 896px; }
body.portal-site .portal-zenodo-callout__badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--portal-burgundy-ink) 40%, transparent);
  border-radius: 6px;
  color: var(--portal-burgundy-ink);
  background: color-mix(in srgb, var(--portal-burgundy-ink) 10%, transparent);
  font: 600 12px/1 'Plus Jakarta Sans', Arial, sans-serif;
}
body.portal-site .portal-zenodo-callout h2 {
  margin: 12px 0 8px;
  color: var(--portal-ink) !important;
  font-size: 1.875rem !important;
}
body.portal-site .portal-zenodo-callout h2 span { color: var(--portal-muted-ink); font-weight: 400; }
body.portal-site .portal-zenodo-callout__content p {
  max-width: 680px;
  margin: 0;
  color: var(--portal-ink) !important;
  font-size: 13px;
  line-height: 1.65;
}
body.portal-site .portal-zenodo-callout__action {
  display: flex;
  flex: 0 0 320px;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
body.portal-site .portal-zenodo-callout__action p {
  margin: 0 0 4px;
  color: var(--portal-muted-ink) !important;
  font: 400 12px/1.4 Inter, Arial, sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}
body.portal-site .portal-zenodo-callout__action a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  color: var(--portal-ink) !important;
  background: var(--portal-surface);
  font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body.portal-site .portal-zenodo-callout__action a:hover {
  background: var(--portal-strong);
}
body.portal-site .portal-zenodo-callout__action a + p {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
body.portal-site .portal-zenodo-callout__action a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--portal-burgundy-ink) 45%, transparent);
  outline-offset: 2px;
}
[data-theme='dark'] body.portal-site .portal-zenodo-callout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.18' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Scientific publications use one self-contained article card: the research
   figure anchors the left side while the citation details remain scannable. */
body.portal-site .portal-publications {
  background: var(--portal-subtle) !important;
}
body.portal-site .portal-publications__intro { margin-bottom: 28px; }
body.portal-site .portal-publications__eyebrow {
  margin: 0 0 7px;
  color: var(--portal-muted-ink) !important;
  font: 600 12px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
body.portal-site .portal-publications__intro h2 {
  margin: 0;
  color: var(--portal-burgundy) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
}
body.portal-site .portal-publications__list {
  display: grid;
  gap: 24px;
}
body.portal-site .portal-publication-card {
  display: grid;
  grid-template-columns: minmax(250px, 32%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: var(--portal-surface);
  box-shadow: 0 8px 26px rgb(64 25 48 / 7%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.portal-site .portal-publication-card:hover {
  border-color: color-mix(in srgb, var(--portal-burgundy-ink) 55%, var(--portal-line));
  box-shadow: var(--portal-shadow);
  transform: translateY(-2px);
}
body.portal-site .portal-publication-card__image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--portal-strong);
}
body.portal-site .portal-publication-card__image:focus-visible,
body.portal-site .portal-publication-card__link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--portal-burgundy-ink) 55%, transparent);
  outline-offset: -3px;
}
body.portal-site .portal-publication-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform .35s ease;
}
body.portal-site .portal-publication-card:hover .portal-publication-card__image img { transform: scale(1.025); }
body.portal-site .portal-publication-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 34px 32px;
}
body.portal-site .portal-publication-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--portal-muted-ink) !important;
  font: 500 11px/1.4 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
}
body.portal-site .portal-publication-card__type {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--portal-burgundy-ink) 35%, transparent);
  border-radius: 999px;
  color: var(--portal-burgundy-ink) !important;
  background: color-mix(in srgb, var(--portal-burgundy-ink) 9%, transparent);
}
body.portal-site .portal-publication-card h3 {
  margin: 0;
  color: var(--portal-ink) !important;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
}
body.portal-site .portal-publication-card__authors {
  margin: 13px 0 0;
  color: var(--portal-ink) !important;
  font-size: .95rem;
  font-weight: 600;
}
body.portal-site .portal-publication-card__summary {
  max-width: 70ch;
  margin: 14px 0 0;
  color: var(--portal-muted-ink) !important;
  font-size: .95rem;
  line-height: 1.65;
}
body.portal-site .portal-publication-card__link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  color: var(--portal-burgundy) !important;
  background: var(--portal-surface);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body.portal-site .portal-publication-card__link:hover {
  border-color: var(--portal-burgundy-ink);
  color: var(--portal-burgundy-ink) !important;
  background: color-mix(in srgb, var(--portal-burgundy-ink) 8%, var(--portal-surface));
}

/* Posters retain the publication-card hierarchy in a denser two-column grid.
   Their portrait artwork is deliberately kept smaller than the paper figures. */
body.portal-site .portal-posters { background: var(--portal-surface) !important; }
body.portal-site .portal-posters__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.portal-site .portal-poster-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  overflow: hidden;
  min-height: 204px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: var(--portal-surface);
  box-shadow: 0 6px 20px rgb(64 25 48 / 6%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.portal-site .portal-poster-card:hover {
  border-color: color-mix(in srgb, var(--portal-burgundy-ink) 48%, var(--portal-line));
  box-shadow: var(--portal-shadow);
  transform: translateY(-2px);
}
body.portal-site .portal-poster-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  background: var(--portal-subtle);
}
body.portal-site .portal-poster-card__image img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--portal-line) 75%, transparent);
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
}
body.portal-site .portal-poster-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 21px;
}
body.portal-site .portal-poster-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--portal-muted-ink) !important;
  font: 500 10px/1.35 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.portal-site .portal-poster-card__meta span {
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--portal-burgundy-ink) 35%, transparent);
  border-radius: 999px;
  color: var(--portal-burgundy-ink) !important;
  background: color-mix(in srgb, var(--portal-burgundy-ink) 9%, transparent);
}
body.portal-site .portal-poster-card h3 {
  margin: 0;
  color: var(--portal-ink) !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
}
body.portal-site .portal-poster-card__authors {
  margin: 11px 0 0;
  color: var(--portal-ink) !important;
  font-size: .86rem;
  font-weight: 600;
}
body.portal-site .portal-poster-card__event {
  margin: 7px 0 0;
  color: var(--portal-muted-ink) !important;
  font-size: .8rem;
  line-height: 1.5;
}

body.portal-site .header1,
body.portal-site .header2,
body.portal-site .portal-page-hero,
body.portal-site .portal-page-header,
body.portal-site .footer2 + .content4.mbr-parallax-background {
  display: grid !important;
  min-height: 410px;
  overflow: hidden;
  align-items: center;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  color: #fff !important;
  background-color: #BF910A !important;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%25"%3E%3Cdefs%3E%3ClinearGradient id="a" gradientUnits="userSpaceOnUse" x1="0" x2="0" y1="0" y2="100%25" gradientTransform="rotate(30,535,398)"%3E%3Cstop offset="0" stop-color="%23BF910A"/%3E%3Cstop offset="1" stop-color="%23741B47"/%3E%3C/linearGradient%3E%3Cpattern patternUnits="userSpaceOnUse" id="b" width="461" height="384.2" x="0" y="0" viewBox="0 0 1080 900"%3E%3Cg fill-opacity="0.1"%3E%3Cpolygon fill="%23444" points="90 150 0 300 180 300"/%3E%3Cpolygon points="90 150 180 0 0 0"/%3E%3Cpolygon fill="%23AAA" points="270 150 360 0 180 0"/%3E%3Cpolygon fill="%23DDD" points="450 150 360 300 540 300"/%3E%3Cpolygon fill="%23999" points="450 150 540 0 360 0"/%3E%3Cpolygon points="630 150 540 300 720 300"/%3E%3Cpolygon fill="%23DDD" points="630 150 720 0 540 0"/%3E%3Cpolygon fill="%23444" points="810 150 720 300 900 300"/%3E%3Cpolygon fill="%23FFF" points="810 150 900 0 720 0"/%3E%3Cpolygon fill="%23DDD" points="990 150 900 300 1080 300"/%3E%3Cpolygon fill="%23444" points="990 150 1080 0 900 0"/%3E%3Cpolygon fill="%23DDD" points="90 450 0 600 180 600"/%3E%3Cpolygon points="90 450 180 300 0 300"/%3E%3Cpolygon fill="%23666" points="270 450 180 600 360 600"/%3E%3Cpolygon fill="%23AAA" points="270 450 360 300 180 300"/%3E%3Cpolygon fill="%23DDD" points="450 450 360 600 540 600"/%3E%3Cpolygon fill="%23999" points="450 450 540 0 360 0"/%3E%3Cpolygon fill="%23999" points="630 450 540 900 720 900"/%3E%3Cpolygon fill="%23FFF" points="810 450 900 300 720 300"/%3E%3Cpolygon fill="%23DDD" points="990 450 900 600 1080 600"/%3E%3Cpolygon fill="%23444" points="990 450 1080 300 900 300"/%3E%3Cpolygon fill="%23DDD" points="90 750 0 900 180 900"/%3E%3Cpolygon points="270 750 180 900 360 900"/%3E%3Cpolygon fill="%23DDD" points="270 750 180 600 360 600"/%3E%3Cpolygon points="450 750 540 600 360 600"/%3E%3Cpolygon points="630 750 540 900 720 900"/%3E%3Cpolygon fill="%23444" points="630 750 720 600 540 600"/%3E%3Cpolygon fill="%23AAA" points="810 750 720 900 900 900"/%3E%3Cpolygon fill="%23666" points="810 750 900 600 720 600"/%3E%3Cpolygon fill="%23999" points="990 750 900 900 1080 900"/%3E%3Cpolygon fill="%23999" points="180 0 90 150 270 150"/%3E%3Cpolygon fill="%23444" points="360 0 270 150 450 150"/%3E%3Cpolygon fill="%23FFF" points="540 0 450 150 630 150"/%3E%3Cpolygon points="900 0 810 150 990 150"/%3E%3Cpolygon fill="%23222" points="0 300 -90 450 90 450"/%3E%3Cpolygon fill="%23FFF" points="0 300 90 150 -90 150"/%3E%3Cpolygon fill="%23FFF" points="180 300 90 450 270 450"/%3E%3Cpolygon fill="%23666" points="180 300 270 150 90 150"/%3E%3Cpolygon fill="%23222" points="360 300 270 450 450 450"/%3E%3Cpolygon fill="%23FFF" points="360 300 450 150 270 150"/%3E%3Cpolygon fill="%23444" points="540 300 450 150 270 150"/%3E%3Cpolygon fill="%23222" points="540 300 630 150 450 150"/%3E%3Cpolygon fill="%23AAA" points="720 300 630 450 810 450"/%3E%3Cpolygon fill="%23666" points="720 300 810 150 630 150"/%3E%3Cpolygon fill="%23FFF" points="900 300 810 450 990 450"/%3E%3Cpolygon fill="%23999" points="900 300 990 150 810 150"/%3E%3Cpolygon points="0 600 -90 750 90 750"/%3E%3Cpolygon fill="%23666" points="0 600 90 450 -90 450"/%3E%3Cpolygon fill="%23AAA" points="180 600 90 750 270 750"/%3E%3Cpolygon fill="%23444" points="180 600 270 450 90 450"/%3E%3Cpolygon fill="%23444" points="360 600 270 750 450 750"/%3E%3Cpolygon fill="%23999" points="360 600 450 450 270 450"/%3E%3Cpolygon fill="%23666" points="540 600 630 450 450 450"/%3E%3Cpolygon fill="%23222" points="720 600 630 750 810 750"/%3E%3Cpolygon fill="%23FFF" points="900 600 810 750 990 750"/%3E%3Cpolygon fill="%23222" points="900 600 990 450 810 450"/%3E%3Cpolygon fill="%23DDD" points="0 900 90 750 -90 750"/%3E%3Cpolygon fill="%23444" points="180 900 270 750 90 750"/%3E%3Cpolygon fill="%23FFF" points="360 900 450 750 270 750"/%3E%3Cpolygon fill="%23AAA" points="540 900 630 750 450 750"/%3E%3Cpolygon fill="%23FFF" points="720 900 810 750 630 750"/%3E%3Cpolygon fill="%23222" points="900 900 990 750 810 750"/%3E%3Cpolygon fill="%23222" points="1080 300 990 450 1170 450"/%3E%3Cpolygon fill="%23FFF" points="1080 300 1170 150 990 150"/%3E%3Cpolygon points="1080 600 990 750 1170 750"/%3E%3Cpolygon fill="%23666" points="1080 600 1170 450 990 450"/%3E%3Cpolygon fill="%23DDD" points="1080 900 1170 750 990 750"/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x="0" y="0" fill="url(%23a)" width="100%25" height="100%25"/%3E%3Crect x="0" y="0" fill="url(%23b)" width="100%25" height="100%25"/%3E%3C/svg%3E') !important;
  background-size: cover !important;
}

body.portal-site .header1::before,
body.portal-site .header2::before,
.portal-page-hero::before,
body.portal-site .footer2 + .content4.mbr-parallax-background::before,
.portal-footer::before { display: none; }

body.portal-site .header1 .label-text-2 {
  display: inline-block;
  margin-bottom: 17px !important;
  color: var(--portal-light-mustard) !important;
  font: 700 14px/1 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.portal-site .header1 h1,
body.portal-site .header1 .mbr-section-title,
body.portal-site .header1 .mbr-section-title strong,
body.portal-site .header1 .mbr-section-title p,
body.portal-site .header2 h1,
body.portal-site .header2 .mbr-section-title,
body.portal-site .header2 .mbr-section-title strong,
body.portal-site .header2 .mbr-section-title p,
body.portal-site .portal-page-hero h1,
body.portal-site .portal-page-hero .mbr-section-title,
body.portal-site .portal-page-hero .mbr-section-title strong,
body.portal-site .portal-page-hero .mbr-section-title p,
body.portal-site .footer2 + .content4.mbr-parallax-background h1,
body.portal-site .footer2 + .content4.mbr-parallax-background .mbr-section-title,
body.portal-site .footer2 + .content4.mbr-parallax-background .mbr-section-title strong,
body.portal-site .footer2 + .content4.mbr-parallax-background .mbr-section-title p {
  color: #fff !important;
  font-size: clamp(2.35rem, 5vw, 4.3rem) !important;
  line-height: 1.08 !important;
}

body.portal-site .header1 .mbr-section-subtitle,
body.portal-site .header2 .mbr-section-subtitle,
body.portal-site .portal-page-hero .mbr-section-subtitle,
body.portal-site .footer2 + .content4.mbr-parallax-background .mbr-section-subtitle { max-width: 760px; color: rgb(255 255 255 / 89%) !important; }
body.portal-site .header1 .text-container,
body.portal-site .header2 .text-container,
body.portal-site .portal-page-hero .text-container,
body.portal-site .footer2 + .content4.mbr-parallax-background .text-container { margin-top: 24px !important; }
body.portal-site .header1 .col-content,
body.portal-site .header2 .col-content,
body.portal-site .portal-page-hero .col-content,
body.portal-site .footer2 + .content4.mbr-parallax-background .col-content { margin: 0 auto !important; }

body.portal-site .portal-page-hero .mbr-overlay { display: none !important; }
body.portal-site .footer2 + .content4.mbr-parallax-background .mbr-overlay { display: none !important; }
body.portal-site .portal-page-hero__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
body.portal-site .portal-page-hero__inner h1 { max-width: 980px; margin: 0; }
body.portal-site .portal-source-title { display: none !important; }

/* The data portal's standard page header: a compact prism banner with a
   breadcrumb trail, mustard title, and optional constrained introduction. */
body.portal-site .portal-page-header {
  display: block !important;
  min-height: 0;
  padding: 24px 48px 40px !important;
}
body.portal-site .portal-page-header__breadcrumb {
  margin-bottom: 24px;
  color: rgb(250 250 250 / 85%);
  font: 400 12.5px/1 Inter, Arial, sans-serif;
}
body.portal-site .portal-page-header__breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(4px);
  list-style: none;
}
body.portal-site .portal-page-header__breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: inherit !important;
}
body.portal-site .portal-page-header__breadcrumb a {
  color: inherit !important;
  text-decoration: none;
  transition: color .2s;
}
body.portal-site .portal-page-header__breadcrumb a:hover { color: var(--portal-light-mustard) !important; }
body.portal-site .portal-page-header__separator {
  width: 6px;
  height: 7px;
  flex: 0 0 auto;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--portal-light-mustard);
}
body.portal-site .portal-page-header__current { color: #fafafa !important; font-weight: 600; }
body.portal-site .portal-page-header__title {
  max-width: 980px;
  margin: 0;
  color: var(--portal-light-mustard) !important;
  font: 700 36px/1.2 'Plus Jakarta Sans', Arial, sans-serif !important;
  letter-spacing: -0.035em;
}
body.portal-site .portal-page-header__intro {
  max-width: 896px;
  margin: 16px 0 0;
  color: #fafafa !important;
  font-size: 14px !important;
  line-height: 1.625 !important;
}
body.portal-site .portal-source-hero { display: none !important; }
body.portal-site .footer2 + .content4.mbr-parallax-background.portal-source-hero { display: none !important; }
body.portal-site .portal-source-intro { display: none !important; }

/* The project home has a distinctive prism hero; all following tiles form a clean portal grid. */
body.portal-site .features8 .mbr-section-head { max-width: 880px; margin: 0 auto 34px; }
body.portal-site .features8 .card-row,
body.portal-site .features6 .row,
body.portal-site .features10 .row,
body.portal-site .features01 .row,
body.portal-site .news1 .row { row-gap: 22px; }

body.portal-site .features8 .card,
body.portal-site .features6 .card,
body.portal-site .features10 .card,
body.portal-site .features01 .item,
body.portal-site .news1 .card,
body.portal-site .contact1 .card {
  display: flex;
  margin-bottom: 0 !important;
}

body.portal-site .features8 .card { margin-top: 0 !important; }

body.portal-site .features8 .card-wrapper,
body.portal-site .features6 .card-wrapper,
body.portal-site .features10 .card-wrapper,
body.portal-site .features01 .item-wrapper,
body.portal-site .news1 .card-wrapper,
body.portal-site .contact1 .card-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--portal-line) !important;
  border-radius: 10px !important;
  background: var(--portal-surface) !important;
  box-shadow: none !important;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

body.portal-site .features8 .card-wrapper:hover,
body.portal-site .features6 .card-wrapper:hover,
body.portal-site .features10 .card-wrapper:hover,
body.portal-site .features01 .item-wrapper:hover,
body.portal-site .news1 .card-wrapper:hover,
body.portal-site .contact1 .card-wrapper:hover {
  border-color: color-mix(in srgb, var(--portal-mustard) 60%, var(--portal-line)) !important;
  box-shadow: var(--portal-shadow) !important;
  transform: translateY(-4px);
}

body.portal-site .features8 .card-bg { display: none; }
body.portal-site .features8 .card-wrapper { height: auto !important; padding: 0 !important; }
body.portal-site .features8 .card-box {
  display: flex;
  min-height: 160px;
  padding: 28px 26px !important;
  align-items: center;
  justify-content: center;
  transform: none !important;
}
body.portal-site .features8 .card-title,
body.portal-site .features6 .card-title,
body.portal-site .features10 .card-title,
body.portal-site .features01 .item-title,
body.portal-site .news1 .card-title,
body.portal-site .contact1 .card-title {
  margin: 0 !important;
  color: var(--portal-burgundy) !important;
  font-size: 1.08rem !important;
}

body.portal-site .features8 .iconfont-wrapper { display: none !important; }
body.portal-site .features8 .iconfont-wrapper-hover { display: none !important; }
body.portal-site .features6 .image-wrap img,
body.portal-site .features6 .item-img img,
body.portal-site .features10 .image-wrap img,
body.portal-site .features01 .item-img img,
body.portal-site .news1 .image-wrap img {
  display: block;
  width: 100% !important;
  max-height: 190px;
  object-fit: contain;
  background: #fff;
}
body.portal-site .features6 .card-box,
body.portal-site .features10 .card-box,
body.portal-site .features01 .item-content,
body.portal-site .news1 .card-box,
body.portal-site .contact1 .card-box { padding: 22px 24px !important; }

/* Contact is an archival hand-off: the project has concluded, while its
   coordinator remains the single clear route for enquiries. */
body.portal-site .portal-contact-notice {
  padding: clamp(56px, 8vw, 96px) 32px !important;
  background: var(--portal-subtle) !important;
}
body.portal-site .portal-contact-notice__card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
}
body.portal-site .portal-contact-notice__eyebrow {
  margin: 0 0 14px;
  color: var(--portal-burgundy-ink) !important;
  font: 700 12px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
body.portal-site .portal-contact-notice h2 {
  max-width: 620px;
  margin: 0;
  color: var(--portal-burgundy) !important;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem) !important;
  line-height: 1.2;
}
body.portal-site .portal-contact-notice__copy {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--portal-ink) !important;
  font-size: 1rem;
  line-height: 1.7;
}
body.portal-site .portal-contact-notice__details {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 4px solid var(--portal-mustard);
  border-radius: 0 8px 8px 0;
  background: var(--portal-muted);
}
body.portal-site .portal-contact-notice__details p { margin: 0; }
body.portal-site .portal-contact-notice__label {
  color: var(--portal-muted-ink) !important;
  font: 700 11px/1.4 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.portal-site .portal-contact-notice__coordinator {
  margin-top: 7px !important;
  color: var(--portal-ink) !important;
  font-size: 1.05rem;
  font-weight: 700;
}
body.portal-site .portal-contact-notice__email {
  display: inline-block;
  margin-top: 4px;
  color: var(--portal-burgundy-ink) !important;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.portal-site .portal-contact-notice__email:hover { color: var(--portal-mustard) !important; }
body.portal-site .portal-contact-notice__email:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--portal-burgundy-ink) 45%, transparent);
  outline-offset: 3px;
}

/* Consortium partners are one responsive directory rather than a series of
   disconnected content blocks. The project cards retain their original logos
   and summaries, while consistent image and content areas make them easier to
   scan across three, two, and one-column breakpoints. */
body.portal-site .consortium-partners {
  background: var(--portal-subtle) !important;
}
body.portal-site .consortium-partners .contents {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
body.portal-site .consortium-partners .mbr-section-title {
  color: var(--portal-burgundy) !important;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem) !important;
}
body.portal-site .consortium-partners .mbr-section-subtitle {
  margin: 12px 0 0 !important;
  color: var(--portal-muted-ink) !important;
  font-size: .94rem !important;
  line-height: 1.6 !important;
}
body.portal-site .consortium-partners .row { row-gap: 24px; }
body.portal-site .consortium-partners .card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.portal-site .consortium-partners .card-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--portal-line);
  background: #fff;
}
body.portal-site .consortium-partners .card-img img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
}
body.portal-site .consortium-partners .meta-category {
  position: absolute;
  top: 12px;
  right: 12px;
}
body.portal-site .consortium-partners .meta-category .btn {
  min-width: 0;
  padding: 7px 9px !important;
  font-size: 11px !important;
}
body.portal-site .consortium-partners .card-box {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 24px 24px !important;
}
body.portal-site .consortium-partners .card-title {
  min-height: 2.55em;
  margin-bottom: 17px !important;
  padding: 0 !important;
  font-size: 1.02rem !important;
}
body.portal-site .consortium-partners .mbr-text {
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.62 !important;
}
body.portal-site .consortium-partners .mbr-text strong:first-child {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--portal-burgundy);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

[data-theme='dark'] body.portal-site .consortium-partners .card-img { background: #fff; }

@media (max-width: 640px) {
  body.portal-site .consortium-partners .contents { margin-bottom: 26px; }
  body.portal-site .consortium-partners .card-img { min-height: 112px; }
}

/* Article pages use a readable single-column layout with media kept deliberate. */
body.portal-site .content3 .mbr-text,
body.portal-site .content9 .mbr-text,
body.portal-site .article7 .mbr-text,
body.portal-site .content11 .mbr-text,
body.portal-site .content5 .mbr-text { max-width: 820px; }
body.portal-site .content3 img,
body.portal-site .content9 img,
body.portal-site .article7 img,
body.portal-site .content11 img,
body.portal-site .image3 img,
body.portal-site .list02 img {
  display: block;
  width: auto !important;
  max-width: min(100%, 980px) !important;
  height: auto !important;
  margin: 22px auto !important;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  box-shadow: var(--portal-shadow);
}

body.portal-site .content4.mbr-parallax-background {
  padding-top: 62px !important;
  padding-bottom: 62px !important;
  color: #fff !important;
  background: linear-gradient(120deg, #741b47, #a05b32 55%, #bf910a) !important;
}
body.portal-site .content4.mbr-parallax-background::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .1;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.5px);
  background-size: 5px 5px;
  content: '';
}
body.portal-site .content4.mbr-parallax-background .mbr-section-title { color: #fff !important; }
body.portal-site .content4.mbr-parallax-background .mbr-text,
body.portal-site .content4.mbr-parallax-background .mbr-section-subtitle { color: rgb(255 255 255 / 90%) !important; }

body.portal-site .accordion2 .card,
body.portal-site .accordion2 .card-header {
  border-color: var(--portal-line) !important;
  background: var(--portal-surface) !important;
}
body.portal-site .accordion2 .card { margin: 8px auto !important; border-radius: 8px !important; overflow: hidden; max-width: 880px; }
body.portal-site .accordion2 .card-header { padding: 0 !important; }
body.portal-site .accordion2 .panel-title { display: block; padding: 17px 20px !important; color: var(--portal-burgundy) !important; text-decoration: none !important; }
body.portal-site .accordion2 .panel-text { padding: 0 20px 19px !important; }

body.portal-site .timeline1 .mbr-timeline-item { padding-bottom: 30px !important; }
body.portal-site .timeline1 .mbr-timeline-text { max-width: none !important; }
body.portal-site .timeline1 .mbr-timeline-title { color: var(--portal-burgundy) !important; font-size: 1.18rem !important; }
body.portal-site .timeline1 img { max-height: 190px; object-fit: contain; border: 1px solid var(--portal-line); border-radius: 8px; background: var(--portal-surface); }
body.portal-site .timeline1 .mbr-timeline-panel { border-color: var(--portal-mustard) !important; }

/* Activities use a compact chronological card layout rather than Mobirise's
   oversized, page-wide timeline. This is deliberately scoped to the two
   Activities pages so imported timelines elsewhere retain their own context. */
body.portal-site.portal-activities-page .portal-activities-hero {
  display: flex;
  min-height: 292px;
  align-items: center;
}
body.portal-site.portal-activities-page .portal-activities-hero .title { max-width: 760px; }
body.portal-site.portal-activities-page .portal-activities-hero .mbr-section-title { margin-bottom: 15px !important; }
body.portal-site.portal-activities-page .portal-activities-intro {
  max-width: 660px;
  margin: 0 auto;
  color: rgb(255 255 255 / 90%) !important;
  font-size: 1.05rem;
  line-height: 1.65;
}

body.portal-site.portal-activities-page section.timeline1 {
  padding: 18px 32px !important;
  background: var(--portal-subtle) !important;
}
body.portal-site.portal-activities-page .timeline1 .timelines-container {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 8px 0 !important;
}
body.portal-site.portal-activities-page .timeline1 .timelines-container.reverseTimeline { flex-direction: column-reverse; }
body.portal-site.portal-activities-page .timeline1 .timelines-container::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 194px;
  width: 2px;
  background: color-mix(in srgb, var(--portal-mustard) 60%, var(--portal-line));
  content: '';
}
body.portal-site.portal-activities-page .timeline1 .timeline-element {
  position: relative;
  display: grid !important;
  grid-template-columns: 172px minmax(0, 1fr);
  column-gap: 46px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
body.portal-site.portal-activities-page .timeline1 .timeline-element.separline::before,
body.portal-site.portal-activities-page .timeline1 .timeline-element.first-separline::before,
body.portal-site.portal-activities-page .timeline1 .timeline-element.separline::after { display: none !important; }
body.portal-site.portal-activities-page .timeline1 .timeline-date-panel,
body.portal-site.portal-activities-page .timeline1 .date,
body.portal-site.portal-activities-page .timeline1 .timeline-element > .col-md-7 {
  width: auto !important;
  max-width: none !important;
  min-height: 0;
  padding: 0 !important;
}
body.portal-site.portal-activities-page .timeline1 .date {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}
body.portal-site.portal-activities-page .timeline1 .mbr-timeline-date {
  display: inline-flex;
  margin: 0 !important;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--portal-mustard) 55%, var(--portal-line));
  border-radius: 999px;
  color: var(--portal-burgundy) !important;
  background: color-mix(in srgb, var(--portal-mustard) 13%, transparent);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.portal-site.portal-activities-page .timeline1 .timeline-date-panel {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 16px;
}
body.portal-site.portal-activities-page .timeline1 .time-line-date-content,
body.portal-site.portal-activities-page .timeline1 .mbr-figure { margin: 0 !important; }
body.portal-site.portal-activities-page .timeline1 .mbr-figure {
  display: grid;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  place-items: center;
  background: var(--portal-surface);
}
body.portal-site.portal-activities-page .timeline1 img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
}
body.portal-site.portal-activities-page .timeline1 .iconBackground {
  position: absolute !important;
  z-index: 1;
  top: 0 !important;
  bottom: 0 !important;
  left: 194px !important;
  display: block !important;
  width: 2px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--portal-mustard) 60%, var(--portal-line)) !important;
}
body.portal-site.portal-activities-page .timeline1 .iconBackground::after {
  position: absolute;
  top: 7px;
  left: -6px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--portal-surface);
  border-radius: 50%;
  background: var(--portal-mustard);
  content: '';
}
body.portal-site.portal-activities-page .timeline1 .timeline-element > .col-md-7 {
  grid-column: 2;
  grid-row: 1 / span 2;
}
body.portal-site.portal-activities-page .timeline1 .timeline-text-content {
  position: relative;
  max-width: none;
  margin: 0 !important;
  padding: 26px 28px !important;
  border: 1px solid var(--portal-line);
  border-left: 3px solid var(--portal-mustard);
  border-radius: 9px;
  background: var(--portal-surface);
  box-shadow: 0 8px 22px rgb(64 25 48 / 5%);
  text-align: left !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.portal-site.portal-activities-page .timeline1 .timeline-text-content::before {
  position: absolute;
  top: 13px;
  right: 100%;
  width: 24px;
  height: 2px;
  background: color-mix(in srgb, var(--portal-mustard) 60%, var(--portal-line));
  content: '';
}
body.portal-site.portal-activities-page .timeline1 .timeline-element:hover .timeline-text-content {
  border-left-color: var(--portal-burgundy);
  box-shadow: var(--portal-shadow);
  transform: translateY(-2px);
}
body.portal-site.portal-activities-page .timeline1 .mbr-timeline-title {
  margin: 0 0 10px !important;
  color: var(--portal-burgundy) !important;
  font-size: 1.18rem !important;
  line-height: 1.3 !important;
}
body.portal-site.portal-activities-page .timeline1 .mbr-timeline-text {
  max-width: none !important;
  margin: 0 !important;
  color: var(--portal-ink) !important;
  font-size: .95rem !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

@media (max-width: 767px) {
  body.portal-site.portal-activities-page .portal-activities-hero { min-height: 0; }
  body.portal-site.portal-activities-page .portal-activities-intro { font-size: 1rem; }
  body.portal-site.portal-activities-page section.timeline1 { padding: 12px 20px !important; }
  body.portal-site.portal-activities-page .timeline1 .timelines-container { gap: 14px; }
  body.portal-site.portal-activities-page .timeline1 .timelines-container::before { left: 6px; }
  body.portal-site.portal-activities-page .timeline1 .timeline-element {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding: 0 0 0 28px !important;
  }
  body.portal-site.portal-activities-page .timeline1 .timeline-element:hover .timeline-text-content { transform: none; }
  body.portal-site.portal-activities-page .timeline1 .date { grid-column: 1; grid-row: 1; }
  body.portal-site.portal-activities-page .timeline1 .timeline-date-panel {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 300px) !important;
    margin-top: 0;
  }
  body.portal-site.portal-activities-page .timeline1 .mbr-figure { height: 132px; }
  body.portal-site.portal-activities-page .timeline1 .iconBackground { left: 6px !important; }
  body.portal-site.portal-activities-page .timeline1 .timeline-element > .col-md-7 { grid-column: 1; grid-row: 3; }
}

body.portal-site .video1 .mbr-media,
body.portal-site .video1 iframe { border-radius: 10px; overflow: hidden; }
body.portal-site .video1 .mbr-media { box-shadow: var(--portal-shadow); }

/* ElectricBlaze content is retained, but each imported post reads as a portal
   navigation block rather than a third-party embed. Vendor promotion is hidden
   again in JavaScript when the delayed widget attaches after cookie consent. */
body.portal-site section.eb-twitter-feed {
  padding-top: 46px !important;
  padding-bottom: 46px !important;
  background-color: var(--portal-subtle) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E") !important;
}

body.portal-site .eb-twitter-feed a[href*='electricblaze.com/twitter-feed'] { display: none !important; }
body.portal-site .eb-twitter-feed .portal-feed-card,
body.portal-site .eb-twitter-feed blockquote.twitter-tweet {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  min-width: min(19rem, 100%) !important;
  max-width: 26rem !important;
  margin: 0 !important;
  border: 1px solid var(--portal-line) !important;
  border-radius: 10px !important;
  background: var(--portal-surface) !important;
  box-shadow: none !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body.portal-site .eb-twitter-feed .portal-feed-card::before,
body.portal-site .eb-twitter-feed blockquote.twitter-tweet::before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--portal-mustard), var(--portal-burgundy));
  content: '';
}

body.portal-site .eb-twitter-feed .portal-feed-card:hover,
body.portal-site .eb-twitter-feed blockquote.twitter-tweet:hover {
  border-color: color-mix(in srgb, var(--portal-mustard) 60%, var(--portal-line)) !important;
  box-shadow: var(--portal-shadow) !important;
  transform: translateY(-4px);
}

body.portal-site .eb-twitter-feed iframe.twitter-tweet-rendered {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.portal-site .form-control,
body.portal-site input,
body.portal-site textarea {
  border: 1px solid var(--portal-line) !important;
  border-radius: 6px !important;
  color: var(--portal-ink) !important;
  background: var(--portal-surface) !important;
  box-shadow: none !important;
}
body.portal-site .btn,
body.portal-site .mbr-section-btn .btn {
  border: 0 !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: var(--portal-burgundy) !important;
  box-shadow: none !important;
  font: 700 13px/1 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: .01em;
  text-transform: none !important;
}
body.portal-site .btn:hover,
body.portal-site .mbr-section-btn .btn:hover { background: var(--portal-mustard) !important; }

.portal-footer {
  position: relative;
  display: flex;
  gap: 288px;
  align-items: center;
  padding: 48px 96px 40px !important;
  overflow: hidden;
  color: #fafafa;
  font-size: 14px;
  background-color: #741B47;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%25"%3E%3Cdefs%3E%3ClinearGradient id="a" gradientUnits="userSpaceOnUse" x1="0" x2="0" y1="0" y2="100%25" gradientTransform="rotate(30,535,398)"%3E%3Cstop offset="0" stop-color="%23BF910A"/%3E%3Cstop offset="1" stop-color="%23741B47"/%3E%3C/linearGradient%3E%3Cpattern patternUnits="userSpaceOnUse" id="b" width="461" height="384.2" x="0" y="0" viewBox="0 0 1080 900"%3E%3Cg fill-opacity="0.1"%3E%3Cpolygon fill="%23444" points="90 150 0 300 180 300"/%3E%3Cpolygon points="90 150 180 0 0 0"/%3E%3Cpolygon fill="%23AAA" points="270 150 360 0 180 0"/%3E%3Cpolygon fill="%23DDD" points="450 150 360 300 540 300"/%3E%3Cpolygon fill="%23999" points="450 150 540 0 360 0"/%3E%3Cpolygon points="630 150 540 300 720 300"/%3E%3Cpolygon fill="%23DDD" points="630 150 720 0 540 0"/%3E%3Cpolygon fill="%23444" points="810 150 720 300 900 300"/%3E%3Cpolygon fill="%23FFF" points="810 150 900 0 720 0"/%3E%3Cpolygon fill="%23DDD" points="990 150 900 300 1080 300"/%3E%3Cpolygon fill="%23444" points="990 150 1080 0 900 0"/%3E%3Cpolygon fill="%23DDD" points="90 450 0 600 180 600"/%3E%3Cpolygon points="90 450 180 300 0 300"/%3E%3Cpolygon fill="%23666" points="270 450 180 600 360 600"/%3E%3Cpolygon fill="%23AAA" points="270 450 360 300 180 300"/%3E%3Cpolygon fill="%23DDD" points="450 450 360 600 540 600"/%3E%3Cpolygon fill="%23999" points="450 450 540 300 360 300"/%3E%3Cpolygon fill="%23999" points="630 450 540 600 720 600"/%3E%3Cpolygon fill="%23FFF" points="630 450 720 300 540 300"/%3E%3Cpolygon points="810 450 720 600 900 600"/%3E%3Cpolygon fill="%23DDD" points="810 450 900 300 720 300"/%3E%3Cpolygon fill="%23AAA" points="990 450 900 600 1080 600"/%3E%3Cpolygon fill="%23444" points="990 450 1080 300 900 300"/%3E%3Cpolygon fill="%23222" points="90 750 0 900 180 900"/%3E%3Cpolygon points="270 750 180 900 360 900"/%3E%3Cpolygon fill="%23DDD" points="270 750 360 600 180 600"/%3E%3Cpolygon points="450 750 540 600 360 600"/%3E%3Cpolygon points="630 750 540 900 720 900"/%3E%3Cpolygon fill="%23444" points="630 750 720 600 540 600"/%3E%3Cpolygon fill="%23AAA" points="810 750 720 900 900 900"/%3E%3Cpolygon fill="%23666" points="810 750 900 600 720 600"/%3E%3Cpolygon fill="%23999" points="990 750 900 900 1080 900"/%3E%3Cpolygon fill="%23999" points="180 0 90 150 270 150"/%3E%3Cpolygon fill="%23444" points="360 0 270 150 450 150"/%3E%3Cpolygon fill="%23FFF" points="540 0 450 150 630 150"/%3E%3Cpolygon points="900 0 810 150 990 150"/%3E%3Cpolygon fill="%23222" points="0 300 -90 450 90 450"/%3E%3Cpolygon fill="%23FFF" points="0 300 90 150 -90 150"/%3E%3Cpolygon fill="%23FFF" points="180 300 90 450 270 450"/%3E%3Cpolygon fill="%23666" points="180 300 270 150 90 150"/%3E%3Cpolygon fill="%23222" points="360 300 270 450 450 450"/%3E%3Cpolygon fill="%23FFF" points="360 300 450 150 270 150"/%3E%3Cpolygon fill="%23444" points="540 300 450 450 630 450"/%3E%3Cpolygon fill="%23222" points="540 300 630 150 450 150"/%3E%3Cpolygon fill="%23AAA" points="720 300 630 450 810 450"/%3E%3Cpolygon fill="%23666" points="720 300 810 150 630 150"/%3E%3Cpolygon fill="%23FFF" points="900 300 810 450 990 450"/%3E%3Cpolygon fill="%23999" points="900 300 990 150 810 150"/%3E%3Cpolygon points="0 600 -90 750 90 750"/%3E%3Cpolygon fill="%23666" points="0 600 90 450 -90 450"/%3E%3Cpolygon fill="%23AAA" points="180 600 90 750 270 750"/%3E%3Cpolygon fill="%23444" points="180 600 270 450 90 450"/%3E%3Cpolygon fill="%23444" points="360 600 270 750 450 750"/%3E%3Cpolygon fill="%23999" points="360 600 450 450 270 450"/%3E%3Cpolygon fill="%23666" points="540 600 630 450 450 450"/%3E%3Cpolygon fill="%23222" points="720 600 630 750 810 750"/%3E%3Cpolygon fill="%23FFF" points="900 600 810 750 990 750"/%3E%3Cpolygon fill="%23222" points="900 600 990 450 810 450"/%3E%3Cpolygon fill="%23DDD" points="0 900 90 750 -90 750"/%3E%3Cpolygon fill="%23444" points="180 900 270 750 90 750"/%3E%3Cpolygon fill="%23FFF" points="360 900 450 750 270 750"/%3E%3Cpolygon fill="%23AAA" points="540 900 630 750 450 750"/%3E%3Cpolygon fill="%23FFF" points="720 900 810 750 630 750"/%3E%3Cpolygon fill="%23222" points="900 900 990 750 810 750"/%3E%3Cpolygon fill="%23222" points="1080 300 990 450 1170 450"/%3E%3Cpolygon fill="%23FFF" points="1080 300 1170 150 990 150"/%3E%3Cpolygon points="1080 600 990 750 1170 750"/%3E%3Cpolygon fill="%23666" points="1080 600 1170 450 990 450"/%3E%3Cpolygon fill="%23DDD" points="1080 900 1170 750 990 750"/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x="0" y="0" fill="url(%23a)" width="100%25" height="100%25"/%3E%3Crect x="0" y="0" fill="url(%23b)" width="100%25" height="100%25"/%3E%3C/svg%3E');
  background-size: cover;
}
.portal-footer__content { min-width: 0; }
.portal-footer__funding { display: flex; gap: 24px; align-items: center; margin-bottom: 48px; }
.portal-footer__flag { width: auto; height: 64px; }
.portal-footer p { max-width: none; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.portal-footer__meta-panel {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(4px);
}
.portal-footer__meta { display: flex; margin: 0; padding: 0; color: inherit; text-align: center; list-style: none; }
.portal-footer__meta li { margin-bottom: 4px; color: inherit; }
.portal-footer__meta-separator { margin: 0 16px; font-weight: 600; }
.portal-footer a { color: #fff !important; }
.portal-footer a:hover { color: var(--portal-light-mustard); }
.portal-footer__social { display: flex; gap: 32px; width: fit-content; margin: 0 auto; padding: 0; list-style: none; }
.portal-footer__social li { margin: 0; }
.portal-footer__social a { display: block; color: #fff !important; text-decoration: none; }
.portal-footer__social .mbr-iconfont { color: inherit !important; font-size: 30px; }
.portal-footer__social a:hover { color: var(--portal-ink) !important; }

@media (max-width: 1280px) {
  .portal-nav__inner { padding: 0 24px; }
  .portal-brand { padding: 0 8px; }
  .portal-links a, .portal-menu-trigger { padding: 0 6px; font-size: 12px; }
  .portal-theme { margin-left: 4px; }
  .portal-footer { gap: 64px; padding-right: 32px !important; padding-left: 32px !important; }
}

@media (max-width: 1024px) {
  body.portal-site .portal-zenodo-callout__layout { flex-direction: column; gap: 24px; align-items: stretch; }
  body.portal-site .portal-zenodo-callout__action { flex-basis: auto; }
  body.portal-site .portal-zenodo-callout h2 { font-size: 1.5rem !important; }
  body.portal-site .portal-zenodo-callout__content p { font-size: 14px; }
  .portal-footer { display: block; padding-bottom: 32px !important; }
  .portal-footer__funding { margin-bottom: 32px; padding: 0 64px; text-align: center; }
  .portal-footer__meta-panel { display: table; margin: 0 auto 48px; }
  .portal-footer__meta { justify-content: center; }
  .portal-footer__social { margin: 0 auto; }
  .portal-footer__social .mbr-iconfont { font-size: 24px; }
}

@media (max-width: 900px) {
  body.portal-site .portal-posters__list { grid-template-columns: 1fr; }
  .portal-nav__inner { padding: 0 20px; }
  .portal-menu-toggle { display: grid; margin-left: 12px; }
  .portal-links { position: absolute; top: 64px; right: 13px; left: 13px; display: none; max-height: calc(100vh - 80px); overflow: auto; padding: 9px; border: 1px solid var(--portal-line); border-top: 3px solid var(--portal-mustard); border-radius: 0 0 9px 9px; background: var(--portal-surface); box-shadow: var(--portal-shadow); }
  .portal-links.is-open { display: block; }
  .portal-links > li, .portal-menu-group { display: block; width: 100%; }
  .portal-links a, .portal-menu-trigger { min-height: 43px; width: 100%; padding: 0 13px; font-size: 13px; }
  .portal-links a::after, .portal-menu-trigger::after { display: none; }
  .portal-links a:hover, .portal-links a:focus-visible, .portal-links a[aria-current='page'], .portal-menu-trigger:hover, .portal-menu-trigger:focus-visible { border-radius: 5px; background: var(--portal-muted); }
  .portal-submenu { position: static; display: none; min-width: 0; margin: 0 10px 6px; border-top-width: 1px; border-radius: 6px; box-shadow: none; visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .portal-menu-group:hover .portal-submenu, .portal-menu-group:focus-within .portal-submenu, .portal-menu-group.is-open .portal-submenu { display: grid; }
}

@media (max-width: 768px) {
  body.portal-site .portal-zenodo-callout { padding: 48px 64px !important; }
  body.portal-site .portal-publications__intro { margin-bottom: 20px; }
  body.portal-site .portal-publication-card { grid-template-columns: 1fr; }
  body.portal-site .portal-publication-card__image { min-height: 0; aspect-ratio: 16 / 9; }
  body.portal-site .portal-publication-card__image img { min-height: 0; }
  body.portal-site .portal-publication-card__content { padding: 24px; }
  body.portal-site .portal-publication-card__meta { margin-bottom: 13px; }
  body.portal-site .portal-publication-card__link { margin-top: 18px; }
  body.portal-site .portal-poster-card { grid-template-columns: 122px minmax(0, 1fr); min-height: 182px; }
  body.portal-site .portal-poster-card__content { padding: 18px; }
  body.portal-site .portal-poster-card__image { padding: 8px; }
  body.portal-site .portal-poster-card__image img { max-height: 200px; }
  .portal-footer__funding { gap: 8px; padding: 0 32px; }
  .portal-footer__funding p { font-size: 14px; line-height: 1.375; }
  .portal-footer__meta { display: block; }
  .portal-footer__meta-separator { display: none; }
}

@media (max-width: 640px) {
  body.portal-site { font-size: 15px; }
  .portal-nav, .portal-nav__inner { min-height: 64px; }
  .portal-nav__inner { padding: 0 12px; }
  .portal-brand { padding: 0 4px; }
  .portal-brand img { height: 32px; }
  body.portal-site section:not(.menu1):not(.footer1):not(.footer2):not(.portal-zenodo-callout) { padding: 39px 20px !important; }
  body.portal-site .header1, body.portal-site .header2, body.portal-site .portal-page-hero { min-height: 355px; padding-top: 62px !important; padding-bottom: 62px !important; }
  body.portal-site .portal-page-header { min-height: 0; padding: 16px 16px 40px !important; }
  body.portal-site .portal-page-header__breadcrumb { margin-bottom: 16px; font-size: 10px; }
  body.portal-site .portal-page-header__breadcrumb ol { padding: 6px 10px; }
  body.portal-site .portal-page-header__title { font-size: 30px !important; }
  body.portal-site .portal-zenodo-callout { padding: 32px 16px !important; }
  body.portal-site .portal-poster-card { grid-template-columns: 104px minmax(0, 1fr); }
  body.portal-site .portal-poster-card__content { padding: 16px; }
  body.portal-site .portal-poster-card h3 { font-size: 1rem !important; }
  body.portal-site .portal-poster-card__event { font-size: .78rem; }
  body.portal-site .features8 .card-box { min-height: 160px; padding: 24px !important; }
  .portal-footer { padding: 32px 24px !important; }
  .portal-footer__funding { display: block; padding: 0; }
  .portal-footer__flag { display: block; margin: 0 auto 24px; }
}
