/*
 * GRAFEL child template for Cassiopeia (Joomla 6). Recreates the original JA Healthcare "Child" look
 * (see docs/migration/template-audit.md). Palette kept as-is by owner decision (D-011).
 * Loaded automatically by Cassiopeia as asset "template.user" (weight 500, after template.css).
 */

/* ---------- 1. Design tokens ---------- */
:root {
  --grafel-green: #01b888;
  --grafel-green-dark: #016c50;
  --grafel-olive: #39391e;
  --grafel-olive-light: #4a4a2a;
  --grafel-orange: #fca654;
  --grafel-bg-light: #e6eaf0;
  --grafel-text: #555;
  --grafel-text-strong: #333;
  --grafel-text-muted: #888;      /* was #999; imperceptibly darker (D-011 allows) */

  /* map onto Cassiopeia's variables */
  --cassiopeia-color-primary: var(--grafel-olive);
  /* links as on the legacy site (owner review R65): light green, no underline; darker green + underline on hover */
  --cassiopeia-color-link: var(--grafel-green);
  --cassiopeia-color-hover: var(--grafel-green);
  --link-color: var(--grafel-green);
  --link-color-rgb: 1, 184, 136;
  --link-hover-color: var(--grafel-green-dark);
  --link-hover-color-rgb: 1, 108, 80;
  --cassiopeia-font-family-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cassiopeia-font-family-headings: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cassiopeia-font-weight-headings: 500;
  --template-bg-light: var(--grafel-bg-light);
  --template-special-color: var(--grafel-olive);
  --body-color: var(--grafel-text);
}

body.site {
  color: var(--grafel-text);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { color: var(--grafel-text-strong); font-weight: 500; }

/* full-bleed helper: paints the background out to the viewport edges sideways only (border-image outset).
   NOTE: do not use box-shadow + clip-path here - clip-path also clips the dropdown menus (review issue R1). */
.grafel-fullbleed, .container-header .container-nav {
  border-image: conic-gradient(var(--bleed-color, transparent) 0 0) fill 0 // 0 100vmax;
}

/* ---------- 2. Header: logo on white, olive navigation bar ---------- */
.container-header {
  background: #fff;
  background-image: none;
  box-shadow: none;
}
.container-header .navbar-brand { padding: 1.1rem 0; margin: 0; }
.container-header .brand-logo img { max-height: 64px; width: auto; }

.container-header .container-nav {
  --bleed-color: var(--grafel-olive);
  background: var(--grafel-olive);
  padding: 0;
  align-items: center;
  min-height: 3.5rem;
}
.container-header .mod-menu { color: #fff; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > button {
  color: rgba(255, 255, 255, 0.8);          /* legacy: rgba(255,255,255,.8), lighter (white) on hover (R15) */
  transition: color 0.2s ease, background-color 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 2px;
  text-decoration: none;
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li:hover > a { color: #fff; }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* R18: no underlines anywhere in the menu (specific enough to beat Cassiopeia's metismenu link rules) */
.container-header .metismenu.mod-menu li > a,
.container-header .metismenu.mod-menu li > a:hover,
.container-header .metismenu.mod-menu li > a:focus,
.container-header .metismenu.mod-menu .mm-collapse > li > a:hover,
.container-header .metismenu.mod-menu .mm-collapse > li > a:focus { text-decoration: none; }

/* R17: discreet carets - legacy Bootstrap caret is 4px (Cassiopeia draws 6px solid white) */
.container-header .metismenu.mod-menu .mm-toggler::after {
  border-top-width: 4px; border-left-width: 4px; border-right-width: 4px; opacity: 0.6; transition: opacity 0.2s ease;
}
.container-header .metismenu.mod-menu li:hover > .mm-toggler::after,
.container-header .metismenu.mod-menu li.grafel-hover-open > .mm-toggler::after,
.container-header .metismenu.mod-menu .mm-toggler:focus::after { opacity: 1; }
.container-header .mod-menu > li > button.mm-toggler { color: rgba(255, 255, 255, 0.8); }
/* header above the hero/banner so dropdowns are never painted underneath it (R1) */
.container-header { position: relative; z-index: 1000; }

/* dropdowns */
.container-header .metismenu.mod-menu .mm-collapse {
  background: #fff;
  border-top: 3px solid var(--grafel-green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 14rem;
}
/* legacy T3 dropdown items: 14px bold, 6px vertical padding, line-height 1.7143 (R9) */
.container-header .metismenu.mod-menu .mm-collapse { padding: 0.5rem 0; }
.container-header .metismenu.mod-menu .mm-collapse > li { padding: 0; margin: 0; min-height: 0; }
.container-header .metismenu.mod-menu .mm-collapse > li > a,
.container-header .metismenu.mod-menu .mm-collapse > li > span {
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7143;
  padding: 6px 20px;
}
.container-header .metismenu.mod-menu .mm-collapse > li > button { padding-top: 0; padding-bottom: 0; }

/* Submenu effects (R10/R21) - chosen in user.js CONFIG.menuEffect, which sets a class on <html>:
   grafel-menu-fade-roll (default: fade + roll down, legacy-like), -fade, -roll, -none. Duration: CONFIG.menuEffectMs.
   The roll's clip-path is only applied DURING the animation (fill-mode backwards), so it never clips the
   CV flyout afterwards. */
@keyframes grafel-fade-roll { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes grafel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grafel-roll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.grafel-menu-fade-roll .container-header .metismenu.mod-menu .mm-collapse.mm-show,
.grafel-menu-fade-roll .container-header .metismenu.mod-menu li.grafel-hover-open > .mm-collapse {
  animation: grafel-fade-roll var(--grafel-menu-effect-ms, 400ms) ease-out backwards; }
.grafel-menu-fade .container-header .metismenu.mod-menu .mm-collapse.mm-show,
.grafel-menu-fade .container-header .metismenu.mod-menu li.grafel-hover-open > .mm-collapse {
  animation: grafel-fade var(--grafel-menu-effect-ms, 400ms) ease-out backwards; }
.grafel-menu-roll .container-header .metismenu.mod-menu .mm-collapse.mm-show,
.grafel-menu-roll .container-header .metismenu.mod-menu li.grafel-hover-open > .mm-collapse {
  animation: grafel-roll var(--grafel-menu-effect-ms, 400ms) ease-out backwards; }
/* R16: legacy hover - light bar #f2f4f8 across the whole item width, green text, text slides 12px (350ms) */
/* R48: the hover highlight (background bar) appears at once; only the text colour and the right glide animate */
.container-header .metismenu.mod-menu .mm-collapse > li { transition: none; }
.container-header .metismenu.mod-menu .mm-collapse > li > a { display: block; transition: padding 0.35s ease, color 0.2s ease; }
.container-header .metismenu.mod-menu .mm-collapse > li:hover,
.container-header .metismenu.mod-menu .mm-collapse > li.grafel-hover-open { background-color: #f2f4f8; }
.container-header .metismenu.mod-menu .mm-collapse > li:hover > a,
.container-header .metismenu.mod-menu .mm-collapse > li.grafel-hover-open > a,
.container-header .metismenu.mod-menu .mm-collapse > li > a:focus { color: #01b888; padding-left: 32px; background: transparent; }
.container-header .metismenu.mod-menu .mm-collapse > li > .mm-toggler::after { border-top-color: #888; }
/* items with a flyout (e.g. a person -> CV) get a right-pointing caret, as on the legacy site (owner review R38) */
@media (min-width: 992px) {
  .container-header .metismenu.mod-menu .mm-collapse > li > .mm-toggler::after {
    border-style: solid; border-width: 4px 0 4px 4px; border-color: transparent transparent transparent #888; transform: none;
    transition: transform 350ms ease, border-color 0.2s ease, opacity 0.2s ease; }
  /* R43 (legacy: the link gained 12px right padding over 350 ms): while the flyout is open the caret slides 12px
     left and turns green; it slides back when the flyout closes */
  html:not(.grafel-js) .container-header .metismenu.mod-menu .mm-collapse > li.parent:hover > .mm-toggler::after,
  .container-header .metismenu.mod-menu .mm-collapse > li.parent.grafel-hover-open > .mm-toggler::after {
    transform: translateX(-12px); border-left-color: #01b888; opacity: 1; }
}
.container-header .metismenu.mod-menu .mm-collapse > li.divider:hover,
.container-header .metismenu.mod-menu .mm-collapse > li:has(> .nav-header):hover { background: none; }
.container-header .metismenu.mod-menu .mm-collapse .nav-header,
.container-header .metismenu.mod-menu .mm-collapse > li.divider > span {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grafel-text-muted);
}

/* level-3 submenus (e.g. Staff > person > CV) open as a flyout to the right on desktop (R2) */
@media (min-width: 992px) {
  .container-header .metismenu.mod-menu .mm-collapse { z-index: 1001; }
  .container-header .metismenu.mod-menu .mm-collapse li { position: relative; }
  .container-header .metismenu.mod-menu .mm-collapse .mm-collapse { position: absolute; top: 0; left: 100%; margin-left: 0;
    background-color: #fff; min-width: 8rem; border-top: 3px solid var(--grafel-green); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); }
  .container-header .metismenu.mod-menu .mm-collapse > li.parent { display: flex; align-items: center; }
  .container-header .metismenu.mod-menu .mm-collapse > li.parent > a { flex: 1; }
  .container-header .metismenu.mod-menu .mm-collapse > li.parent > button { color: var(--grafel-text-strong); }
  /* desktop: also open on hover, like the legacy T3 mega menu (click/keyboard still work). With JS, user.js adds
     .grafel-hover-open with a close delay ("hover intent", R19); without JS, plain :hover. */
  html:not(.grafel-js) .container-header .metismenu.mod-menu li.parent:hover > .mm-collapse,
  .container-header .metismenu.mod-menu li.parent.grafel-hover-open > .mm-collapse { display: block; }
  /* invisible bridge into the flyout so a slightly imprecise mouse path does not leave the item (R19) */
  .container-header .metismenu.mod-menu .mm-collapse .mm-collapse::before {
    content: ""; position: absolute; top: -8px; bottom: -8px; left: -14px; width: 14px; }
}
.container-header .metismenu.mod-menu .mm-collapse li.divider > span,
.container-header .metismenu.mod-menu .mm-collapse li:has(> .nav-header) > span { display: block; flex: 1 1 100%; width: 100%; padding: 8px 20px 2px; border-top: 1px solid #e3e6ea;
  font-size: 11px; font-weight: 600; line-height: 1.6; }

/* mobile: submenus open in place (accordion) instead of floating over the page */
@media (max-width: 991.98px) {
  .container-header .metismenu.mod-menu li.parent { display: flex; flex-wrap: wrap; align-items: center; }
  .container-header .metismenu.mod-menu li.parent > a,
  .container-header .metismenu.mod-menu li.parent > span { flex: 1 1 auto; }
  .container-header .metismenu.mod-menu .mm-collapse { position: static; min-width: 0; box-shadow: none; border-top: 0;
    background: rgba(255, 255, 255, 0.06); flex: 0 0 100%; width: 100%; }
  .container-header .metismenu.mod-menu .mm-collapse > li > a,
  .container-header .metismenu.mod-menu .mm-collapse > li > span { color: #fff; padding-left: 1.5rem; }
  .container-header .metismenu.mod-menu .mm-collapse .mm-collapse > li > a { padding-left: 2.5rem; }
  .container-header .metismenu.mod-menu .mm-collapse > li > button { color: #fff; }
  .container-header .metismenu.mod-menu .mm-collapse li.divider > span,
  .container-header .metismenu.mod-menu .mm-collapse li:has(> .nav-header) > span { color: rgba(255, 255, 255, 0.6); border-top-color: rgba(255, 255, 255, 0.15); }
}

/* search box in the nav bar (right) */
.container-header .container-search { margin-left: auto; }
/* legacy .nav-search: transparent field, faint 15 % border, very faint placeholder, transparent button (R33) */
.container-header .container-search input[type="search"],
.container-header .container-search input[type="text"] {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  border-radius: 3px 0 0 3px;
  box-shadow: none;
}
.container-header .container-search input::placeholder { color: rgba(255, 255, 255, 0.15); }   /* legacy value */
.container-header .container-search input:focus { border-color: rgba(255, 255, 255, 0.25); outline: none; box-shadow: none; }
.container-header .container-search .btn, .container-header .container-search button {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0 3px 3px 0;
  color: rgba(255, 255, 255, 0.6); }
.container-header .container-search .btn:hover, .container-header .container-search button:hover {
  background: rgba(255, 255, 255, 0.08); color: #fff; }

/* mobile toggler */
.container-header .navbar-toggler { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- 2b. Header layout (owner review R32) ----------
   DEFAULT style "GRAFEL - Default": no white logo strip; the logo sits as a white badge at the far left of the
   olive bar, larger than the bar and hanging below it. Both header children share one grid row; the logo row is
   overlaid on the bar (absolute, same centred width as the bar's content), so the badge overflows downwards
   (header z-index 1000 keeps it above the page). The menu starts to the right of the badge.
   The classic stacked look (logo on white above the bar) is the template style "GRAFEL - Logo above bar
   (classic)", whose colour option loads media/css/global/custom_header-classic.css and undoes this block. */
.container-header { --grafel-bar-h: 3.5rem; --grafel-badge-logo-h: 76px; background: transparent; }
.container-header > .grid-child:not(.container-nav) {
  position: absolute; top: 0; left: 0; right: 0; margin-inline: auto; height: var(--grafel-bar-h);
  padding: 0; z-index: 2;
  pointer-events: none;             /* only the badge itself is clickable; the menu stays usable beside it */
}
.container-header > .container-nav {
  padding-left: max(0px, calc(var(--grafel-badge-logo-h) * 2.61 + 2.75rem - var(--grafel-badge-shift))); }
/* R39: on wide screens the badge moves left out of the content column (up to 10rem, keeping 0.5rem from the edge);
   100cqw = header width (the header is an inline-size container) */
.container-header { container-type: inline-size; }
.container-header > .grid-child {
  --grafel-gutter: max(0px, (100cqw - 1320px) / 2);
  --grafel-badge-shift: clamp(0px, var(--grafel-gutter) - 0.5rem, 10rem);
}
.container-header .navbar-brand { padding: 0; margin: 0 0 0 calc(-1 * var(--grafel-badge-shift)); pointer-events: auto; }
.container-header .brand-logo {
  display: block; background: #fff; padding: 10px 16px 12px; border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.container-header .brand-logo img { display: block; height: var(--grafel-badge-logo-h); max-height: none; width: auto; }
@media (min-width: 992px) and (max-width: 1199.98px) {   /* keep menu + search on one bar line */
  .container-header { --grafel-badge-logo-h: 58px; }
  .container-header .container-search { flex: 0 0 11.5rem; }
  .container-header .container-search input { min-width: 0; }
  .container-header .container-search .btn, .container-header .container-search button { padding-inline: 0.55rem; }
  .container-header .metismenu.mod-menu > li > a, .container-header .metismenu.mod-menu > li > span { padding-inline: 0.6rem; }
}
@media (max-width: 991.98px) {   /* collapsed menu: badge left, hamburger right in the bar; search beside the
                                    hanging badge; the opened menu drops below the badge, full width */
  .container-header { --grafel-badge-logo-h: 46px; --grafel-badge-w: calc(var(--grafel-badge-logo-h) * 2.61 + 32px); }
  .container-header > .container-nav { padding-left: 0; flex-wrap: wrap; }
  .container-header .container-nav > .navbar { flex: 1 0 100%; margin: 0; min-height: var(--grafel-bar-h);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .container-header .container-nav .navbar-toggler { margin-left: auto; }
  .container-header .container-nav .navbar-collapse { flex: 0 0 100%;
    margin-top: calc(var(--grafel-badge-logo-h) + 22px - var(--grafel-bar-h) + 8px); }
  .container-header .container-nav .container-search { flex: 1 0 100%; margin: 0 0 0.6rem;
    padding-left: calc(var(--grafel-badge-w) + 0.75rem); }
  .container-header .container-nav:has(.navbar-collapse.show, .navbar-collapse.collapsing) .container-search { padding-left: 0; }
}

/* ---------- 3. Masthead / hero: Custom module, layout "banner", position "banner" ---------- */
.container-banner .banner-overlay {
  position: relative;
  min-height: 15rem;
  height: auto;
  background-size: cover;
  background-position: center right;
  background-attachment: scroll;   /* Cassiopeia uses "fixed" (parallax); legacy did not */
  display: flex;
  align-items: center;
}
.container-banner .banner-overlay .overlay {
  /* diagonal green panel over the photo, as on the original site */
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(1, 184, 136, 0.93) 0%, rgba(1, 184, 136, 0.93) 48%, rgba(1, 184, 136, 0) 48.2%);
  display: flex; align-items: center;
  padding: 0 max(1rem, calc((100vw - 1140px) / 2));
  color: #fff;
  text-align: left;          /* legacy masthead text is left-aligned in the green panel */
  flex-direction: column; justify-content: center; align-items: flex-start;   /* Cassiopeia: column flex */
}
.container-banner .banner-overlay .overlay > * { max-width: 34rem; }
.container-banner .banner-overlay h1,
.container-banner .banner-overlay h2,
.container-banner .banner-overlay .grafel-masthead-title { color: #fff; font-size: 2.1rem; margin: 0 0 0.4rem; font-weight: 500; }
.container-banner .banner-overlay p,
.container-banner .banner-overlay .grafel-masthead-subtitle { color: #fff; margin: 0; font-size: 1rem; }

@media (max-width: 767.98px) {
  .container-banner .banner-overlay .overlay { background: rgba(1, 184, 136, 0.88); justify-content: center; text-align: center; }
  .container-banner .banner-overlay h1, .container-banner .banner-overlay .grafel-masthead-title { font-size: 1.6rem; }
}

/* ---------- 4. Buttons, links ---------- */
.btn-primary, .readmore .btn, a.btn-primary {
  --btn-bg: var(--grafel-green);
  background-color: var(--grafel-green);
  border-color: var(--grafel-green);
  color: #fff;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.8rem;
}
.btn, a.btn { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
/* R14: every button darkens on hover, like the legacy site */
.btn-primary:hover, .btn-primary:focus, .readmore .btn:hover, a.btn-primary:hover {
  background-color: #018560;        /* legacy Bootstrap btn-primary hover (#01b888 darkened) */
  border-color: #018560;
  color: #fff;
}
.btn-grafel-light { background: var(--grafel-orange); border-color: var(--grafel-orange); color: #fff; }

/* ---------- 5. Footer: olive bar, funding acknowledgement, AUTh + funder logos, credits ---------- */
.container-footer {
  background: var(--grafel-olive);
  background-image: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}
.container-footer a { color: var(--grafel-green); }
.container-footer a:hover { color: #fff; }
.container-footer .grid-child { padding-top: 1.5rem; padding-bottom: 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.grafel-funding { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
/* R68: funder/affiliation logos twice as large (was max-height 48px), aspect ratio kept (width auto) */
/*      height is set (not max-height) so the smaller source files (HFRI/GSRT, 70px tall) are enlarged too; object-fit
        keeps each logo's ratio even if a narrow screen limits the width */
.grafel-funding img { height: 96px; width: auto; max-width: 100%; object-fit: contain; background: #fff; padding: 6px 10px;
  border-radius: 2px; }
.grafel-funding p { margin: 0; max-width: 46rem; }
.container-footer .mod-custom { width: 100%; }
.grafel-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 0.75rem; margin-top: 0.75rem; }
.grafel-footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; }
.grafel-credit { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: #fff; font-weight: 500; }
.grafel-credit img { background: none; padding: 0; height: 36px; width: 36px; }
/* R51: logo + name link to the group's institutional site */
.grafel-credit a { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.grafel-credit a:hover span, .grafel-credit a:focus span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. People listing (category blog, 3 columns, pageclass grafel-people) ---------- */
/* row-by-row grid (Cassiopeia's "masonry" fills column-by-column, which breaks the legacy reading order) */
.grafel-people .blog-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; column-count: initial; }
.grafel-people .blog-items > .blog-item { break-inside: auto; margin: 0; }
@media (max-width: 991.98px) { .grafel-people .blog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .grafel-people .blog-items { grid-template-columns: 1fr; } }
.grafel-people .blog-item {
  background: #fff; border: 1px solid #e3e6ea; border-radius: 2px; padding: 0.9rem; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.grafel-people .blog-item .item-image { margin: 0 0 0.8rem; float: none; }
.grafel-people .blog-item .item-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.grafel-people .blog-item .page-header h2, .grafel-people .blog-item h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.grafel-people .blog-item h2 a { color: var(--grafel-text-strong); text-decoration: none; }
.grafel-people .blog-item h2 a:hover { color: var(--grafel-green-dark); }
/* R46: the whole tile is the link to the profile (legacy: an empty a.entry-link over the tile). CSS-only
   "stretched link": the name's link covers the tile; the field links (ORCID, CV, e-mail...) stay on top.
   On hover the tile lifts with a shadow (legacy shadow 0 0 10px 5px rgba(0,0,0,.2), 150 ms). */
.grafel-people .blog-item { position: relative; transition: transform 200ms ease, box-shadow 200ms ease; }
.grafel-people .blog-item .page-header h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.grafel-people .blog-item .fields-container a,
.grafel-people .blog-item .item-image a { position: relative; z-index: 2; }
.grafel-people .blog-item:hover,
.grafel-people .blog-item:focus-within { transform: translateY(-4px); box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.2); }
/* listing cards show photo, name and profile fields only (legacy layout); the biography stays on the profile page */
.grafel-people .blog-item .item-content > :not(.page-header):not(.fields-container) { display: none; }

/* profile fields as a label/value list (listing and article view) */
.fields-container { list-style: none; padding: 0; margin: 0.25rem 0 0; font-size: 0.85rem; }
.fields-container .field-entry { margin: 0 0 0.2rem; }
.fields-container .field-label { font-weight: 600; color: var(--grafel-text-strong); }
/* (R65) field links use the site link colours (legacy: light green, darker + underlined on hover) */

/* ---------- 6. Content basics ---------- */
.container-component > * + * { margin-top: 1rem; }
.page-header h1, .page-header h2 { font-size: 1.6rem; }
.item-page img, .blog-item img { max-width: 100%; height: auto; }
.com-content-category-blog .blog-item { border-bottom: 1px solid var(--grafel-bg-light); padding-bottom: 1rem; }

/* ---------- 6a. Links (owner review R65; legacy a { color:#01b888; text-decoration:none } a:hover,a:focus {
   color:#016c50; text-decoration:underline }). Colours come from the variables in section 1; the underline on
   hover/keyboard focus is limited to links in page content and the footer (menus, buttons, tiles keep their own). */
a, a:not([class]) { text-decoration: none; }   /* a:not([class]): Cassiopeia underlines class-less links */
:is(main, .container-footer) a:not(.btn):is(:hover, :focus-visible) { text-decoration: underline; }

/* ---------- 6b. Article typography = legacy K2 item view (owner review R59/R60; values from the legacy theme CSS) ----------
   main text 16px, grey #888, line-height 1.7143 (legacy .itemView .itemBody / body); article title 36px #39391e
   (legacy h2.itemTitle; 26px on phones); section headings h2 30px / h3 in the text 14px bold uppercase #39391e
   (legacy h2 / div.itemFullText h3); the introduction (text before "Read more", marked .grafel-intro by the
   migration) 18px semibold (legacy div.itemIntroText). Note: #888 on white is below WCAG AA (3.5:1); kept by the
   owner's choice for fidelity (D-011 best effort): change --grafel-body-text to darken all at once. */
:root { --grafel-body-text: #888; --grafel-title: #39391e; }
main { font-size: 1rem; color: var(--grafel-body-text); line-height: 1.7143; }
main .com-content-article .page-header h1, main .com-content-article .page-header h2 {
  font-size: 2.25rem; line-height: 1.4; color: var(--grafel-title); font-weight: 500; margin: 0 0 0.75rem; }
main .com-content-article__body h2 { font-size: 1.875rem; line-height: 1.4; color: inherit; font-weight: 500; margin: 1.5rem 0 0.75rem; }
main .com-content-article__body h3 { font-size: 0.875rem; line-height: 1.4; color: var(--grafel-title); font-weight: 700;
  text-transform: uppercase; margin: 1.5rem 0 0.75rem; }
main .com-content-article__body .grafel-intro { font-size: 1.125rem; font-weight: 600; color: var(--grafel-body-text); }
/* R67: a heading INSIDE the introduction (e.g. each equipment page's "CVD synthesis of graphene, like magic!") is a
   normal h3 in the legacy theme (26px/36px, weight 500, text colour); the small uppercase h3 is only for the rest */
main .com-content-article__body .grafel-intro h3 { font-size: 1.625rem; line-height: 2.25rem; font-weight: 500;
  text-transform: none; color: inherit; margin: 1.5rem 0 0.75rem; }
@media (max-width: 767.98px) {
  main .com-content-article .page-header h1, main .com-content-article .page-header h2 { font-size: 1.625rem; }
  main .com-content-article__body h2 { font-size: 1.5rem; }
}
/* R58: full article image centred with no text beside it: article -> Images -> full image "Image Class" =
   grafel-image-center (set for the Research overview by the migration) */
main .com-content-article .item-image.grafel-image-center { float: none; text-align: center; margin: 0 0 1.5rem; }
/* legacy K2 item image: always shown 600px wide (style="width:600px"), small images scaled up (R62) */
main .com-content-article .item-image.grafel-image-center img { display: inline-block; width: min(100%, 600px); height: auto; }

/* ---------- 8. Person profile page (menu item pageclass grafel-profile): photo + fields left, biography right ---------- */
.grafel-profile .com-content-article.item-page { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; column-gap: 2rem; align-items: start; }
.grafel-profile .item-page > * { grid-column: 1 / -1; }
.grafel-profile .item-page > .item-image { grid-column: 1; grid-row: 1; float: none; margin: 0 0 0.75rem; }
.grafel-profile .item-page > .item-image img { width: 100%; height: auto; border: 1px solid #e3e6ea; padding: 0.5rem; background: #fff; }
.grafel-profile .item-page > .fields-container { grid-column: 1; grid-row: 2; background: #f4f6f8; padding: 0.75rem 0.9rem; border-radius: 2px; }
.grafel-profile .item-page > .com-content-article__body { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
@media (max-width: 767.98px) {
  .grafel-profile .com-content-article.item-page { display: flex; flex-direction: column; }
  .grafel-profile .item-page > .item-image { order: -1; }
  .grafel-profile .item-page > .item-image img { max-width: 360px; }
}

/* ---------- 9. Home page ---------- */
body.site { overflow-x: clip; }
/* Home: stack sections vertically (Cassiopeia lays module positions out as columns), no card frames */
.view-featured .container-top-a, .view-featured .container-top-b,
.view-featured .container-bottom-a, .view-featured .container-bottom-b { display: block; }
.view-featured .container-top-a > *, .view-featured .container-top-b > *,
.view-featured .container-bottom-a > *, .view-featured .container-bottom-b > * { margin: 0; }
.view-featured .site-grid .card { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.view-featured .site-grid .card-body { padding: 0; }
.view-featured .site-grid .card-header { background: none; border: 0; padding: 0 0 1rem; font-size: 1.6rem; color: var(--grafel-text-strong); }
/* full-width band for mission, partners and facilities */
.view-featured .site-grid .container-bottom-a { grid-column: full-start / full-end; padding: 0; }
.view-featured .container-component { display: none; }   /* featured view has no articles on Home */

/* carousel component (hero, mission, gallery tiles; user.js). The track is a native scroll-snap row:
   it works without JS (swipe/scroll), user.js adds arrows, dots, mouse dragging and autoplay. */
.grafel-carousel { position: relative; overflow: hidden; background: #111; }
.grafel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-behavior: smooth; height: 100%; }
.grafel-slide { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; }
.grafel-slide-img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

/* enhanced carousels and carousel lists: hide the scrollbar (controls replace it), mouse drag cursor */
.is-enhanced > .grafel-track, .grafel-carousel-list.is-enhanced ul { scrollbar-width: none; cursor: grab; }
.is-enhanced > .grafel-track::-webkit-scrollbar, .grafel-carousel-list.is-enhanced ul::-webkit-scrollbar { display: none; }
.is-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; cursor: grabbing !important; user-select: none; }
/* glide mode (default): no CSS snapping at all - user.js eases every movement to its resting place (R7/R13).
   Snap mode (data-transition="snap" / class grafel-carousel-snap) keeps the browser's scroll-snap. */
.grafel-glide, .is-gliding { scroll-snap-type: none !important; scroll-behavior: auto !important; }

/* controls: arrows + dots */
.grafel-carousel-nav { position: absolute; left: 0; right: 0; bottom: 0.75rem; display: flex; justify-content: center;
  align-items: center; gap: 0.4rem; z-index: 5; }
.grafel-carousel-nav[hidden] { display: none; }
.grafel-dots { display: inline-flex; gap: 0.4rem; }
.grafel-carousel-nav button { border: 0; background: rgba(255, 255, 255, 0.85); color: var(--grafel-olive); cursor: pointer; }
.grafel-carousel-nav .grafel-prev, .grafel-carousel-nav .grafel-next { width: 2rem; height: 2rem; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.grafel-carousel-nav .grafel-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; padding: 0; opacity: 0.6; }
.grafel-carousel-nav .grafel-dot[aria-current="true"] { opacity: 1; background: var(--grafel-green); }
/* list carousels (e.g. Research Staff): controls below the cards, on the light background */
.grafel-carousel-list .grafel-carousel-nav { position: static; margin-top: 1rem; }
.grafel-carousel-list .grafel-carousel-nav button { background: #fff; border: 1px solid #d5d9de; }
.grafel-carousel-list .grafel-carousel-nav .grafel-dot { background: #c3c8ce; border: 0; }
.grafel-carousel-list .grafel-carousel-nav .grafel-dot[aria-current="true"] { background: var(--grafel-green); }

/* GREEN SHEET: a CSS effect layer over the photo (never part of the image). Legacy JA values:
   colour #01b888 at 80 % opacity; rectangle from the left edge to 205 px left of centre, plus a 190 px
   slanted edge; it sweeps in from the left (1.3 s) when its slide becomes active and travels with the slide.
   Adjust globally here, or per slide/module with an inline style, e.g. style="--grafel-sheet-width: 40%". */
.grafel-carousel {
  --grafel-sheet-width: calc(50% - 205px);
  --grafel-sheet-slant: 190px;
  --grafel-sheet-opacity: 0.8;
  --grafel-sheet-color: var(--grafel-green);
}
.grafel-sheet {
  position: absolute; inset: 0; background: var(--grafel-sheet-color);
  clip-path: polygon(0 0, calc(var(--grafel-sheet-width) + var(--grafel-sheet-slant)) 0, var(--grafel-sheet-width) 100%, 0 100%);
  opacity: 0; transform: translateX(-70%);
  transition: transform 1.3s ease, opacity 1.3s ease;
}
.grafel-slide.is-active .grafel-sheet { opacity: var(--grafel-sheet-opacity); transform: translateX(0); }
/* text rises in after the sheet, staggered (legacy "effect-fast" delays) */
/* text panel: starts at the content edge and is kept INSIDE the sheet (R12); legacy width = 1/3 of the content */
.grafel-slide-panel {
  --grafel-panel-left: max(1rem, calc((100% - 1140px) / 2));
  position: absolute; z-index: 2; top: 50%; left: var(--grafel-panel-left); transform: translateY(-50%);
  width: min(calc(min(1140px, 100% - 2rem) / 3), calc(var(--grafel-sheet-width) - var(--grafel-panel-left) - 1.5rem));
  color: #fff;
}
.grafel-anim { opacity: 0; transform: translateY(40%); transition: transform 1.3s ease, opacity 1.3s ease; }
.grafel-slide.is-active .grafel-anim { opacity: 1; transform: translateY(0); }
.grafel-slide.is-active .grafel-anim:nth-child(1) { transition-delay: 150ms; }
.grafel-slide.is-active .grafel-anim:nth-child(2) { transition-delay: 300ms; }
.grafel-slide.is-active .grafel-anim:nth-child(3) { transition-delay: 450ms; }
.grafel-slide-panel h2 { color: #fff; font-size: 36px; font-weight: 700; line-height: 48px; margin: 0 0 24px; }
.grafel-slide-panel p, .grafel-slide-panel li { color: rgba(255, 255, 255, 0.9); }
.grafel-hero .grafel-slide-panel p { font-size: 18px; font-weight: 500; line-height: 1.7; margin-bottom: 24px; }
.grafel-slide-panel .btn-primary { background: var(--grafel-olive); border-color: var(--grafel-olive); }
.grafel-slide-panel .btn-primary:hover, .grafel-slide-panel .btn-primary:focus { background: #1f1f10; border-color: #1f1f10; }   /* R14 */

/* hero: legacy photos are 1600x720; dots/arrows sit above the overlapping intro cards (R3) */
.grafel-hero .grafel-slide { aspect-ratio: 1600 / 720; max-height: 640px; min-height: 22rem; }
.grafel-hero .grafel-carousel-nav { bottom: calc(96px + 1rem); }   /* above the intro boxes (legacy overlap 96px) */
/* centre the text in the part of the hero NOT covered by the intro boxes */
.grafel-hero .grafel-slide-panel { top: calc((100% - 96px) / 2); }
@media (max-width: 1199.98px) {
  .grafel-hero .grafel-slide-panel h2 { font-size: 30px; line-height: 40px; margin-bottom: 16px; }
  .grafel-hero .grafel-slide-panel p { font-size: 16px; margin-bottom: 18px; }
}

@media (max-width: 1199.98px) { .grafel-carousel { --grafel-sheet-width: calc(50% - 172px); } }   /* legacy breakpoint */
@media (max-width: 991.98px) {   /* legacy: full-width 40 % tint, no slant; text 50 % wide */
  .grafel-carousel { --grafel-sheet-width: 100%; --grafel-sheet-slant: 0px; --grafel-sheet-opacity: 0.4; }
  .grafel-slide-panel { width: 50%; }
  .grafel-slide-panel h2 { font-size: 30px; line-height: 40px; }
}
@media (max-width: 767.98px) {
  .grafel-hero .grafel-slide-panel { top: 50%; }   /* boxes no longer overlap the hero */
  .grafel-slide-panel { left: 1rem; right: 1rem; width: auto; }
  .grafel-slide-panel h2 { font-size: 26px; line-height: 34px; margin-bottom: 12px; }
  .grafel-hero .grafel-slide-panel p { font-size: 16px; }
  .grafel-hero .grafel-slide { aspect-ratio: auto; height: 26rem; }
  .grafel-hero .grafel-carousel-nav { bottom: 0.75rem; }
  .grafel-carousel { --grafel-sheet-opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {   /* only if user.js CONFIG.respectReducedMotion = true */
  .grafel-respect-rm .grafel-track { scroll-behavior: auto; }
  .grafel-respect-rm .grafel-sheet, .grafel-respect-rm .grafel-anim { transition: none; }
}

/* Cassiopeia puts 32px below the banner area; on Home the boxes must overlap the hero by exactly 96px */
.view-featured .container-banner { margin-bottom: 0; }

/* three intro cards: legacy spotlight boxes - overlap the hero by 96px, equal height >= 288px,
   title 18px, text 14px at 80 % opacity, button at the bottom (R11) */
.grafel-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: -96px;
  position: relative; z-index: 3; }
.grafel-card { padding: 36px 30px 32px; color: #fff; min-height: 288px; display: flex; flex-direction: column; align-items: flex-start; }
.grafel-card h3 { color: #fff; font-size: 18px; font-weight: 400; margin: 0 0 18px; }
.grafel-card p { color: #fff; opacity: 0.8; font-size: 14px; line-height: 1.7; margin: 0 0 24px; flex: 1; }
.grafel-card.is-olive { background: var(--grafel-olive); }
.grafel-card.is-orange { background: var(--grafel-orange); }
.grafel-card.is-green { background: var(--grafel-green); }
.grafel-card .btn { background: rgba(0, 0, 0, 0.2); color: #fff; border: 0; font-size: 13px; font-weight: 600; padding: 8px 18px; }
.grafel-card.is-olive .btn { background: var(--grafel-orange); }
.grafel-card .btn:hover, .grafel-card .btn:focus { background: rgba(0, 0, 0, 0.38); color: #fff; }          /* R14 */
.grafel-card.is-olive .btn:hover, .grafel-card.is-olive .btn:focus { background: #fb8c22; }               /* legacy */
@media (max-width: 991.98px) { .grafel-cards { gap: 1rem; } .grafel-card { padding: 28px 22px; } }
@media (max-width: 767.98px) { .grafel-cards { grid-template-columns: 1fr; margin-top: 1rem; } .grafel-card { min-height: 0; } }

/* overview teaser */
.grafel-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.grafel-overview img { width: 100%; height: auto; }
@media (max-width: 767.98px) { .grafel-overview { grid-template-columns: 1fr; } }

/* research staff strip (mod_articles, pageless list of People) */
.grafel-staff-strip { --bleed-color: #f4f6f8; background: #f4f6f8; border-image: conic-gradient(#f4f6f8 0 0) fill 0 // 0 100vmax; padding: 2rem 0; }
.grafel-staff-strip .mod-articles-items.mod-articles-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; list-style: none; margin: 0; }
.grafel-staff-strip .mod-articles-items > li { scroll-snap-align: start; background: #fff; border: 1px solid #e3e6ea; padding: 0.9rem; }
.grafel-staff-strip .mod-articles-item-content { display: flex; flex-direction: column; height: 100%; }
.grafel-staff-strip .mod-articles-image { order: -1; float: none; margin: 0; width: 100%; }
.grafel-staff-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.grafel-staff-strip .readmore { margin-top: auto; }
.grafel-staff-strip h3 { font-size: 1.05rem; margin: 0.6rem 0 0.3rem; }
/* R45: hovering a member's card turns the name green (legacy features-intro style-1: #01b888, 400 ms) and the
   whole card links to the profile (stretched name link; Read more stays on top) */
.grafel-staff-strip .mod-articles-items > li { position: relative; cursor: pointer; }
.grafel-staff-strip h3 a { color: var(--grafel-text-strong); text-decoration: none; transition: color 400ms; }
.grafel-staff-strip h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.grafel-staff-strip .readmore, .grafel-staff-strip .readmore a { position: relative; z-index: 2; }
.grafel-staff-strip .mod-articles-items > li:hover h3 a,
.grafel-staff-strip .mod-articles-items > li:focus-within h3 a { color: #01b888; }
.grafel-staff-strip p { font-size: 0.82rem; }
@media (max-width: 767.98px) { .grafel-staff-strip .mod-articles-items.mod-articles-grid { grid-auto-columns: 75%; } }

/* mission carousel and partner blocks (full width) */
.grafel-mission .grafel-slide { height: 30rem; }
.grafel-mission ul { padding-left: 1.1rem; font-size: 0.85rem; }
.grafel-partner { display: grid; grid-template-columns: 1fr 1fr; background: var(--grafel-green); }
.grafel-partner img { width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }
.grafel-partner-text { padding: 2rem max(1rem, calc((100vw - 1140px) / 2)) 2rem 2rem; color: #fff; font-size: 0.85rem; }
.grafel-partner-text h2 { color: #fff; font-size: 1.25rem; }
.grafel-partner-text p { color: #fff; }
@media (max-width: 767.98px) { .grafel-partner { grid-template-columns: 1fr; } }

/* facilities mosaic */
.grafel-mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.grafel-tile { position: relative; background: #fff; display: flex; flex-direction: column; min-height: 18rem; overflow: hidden; }
.grafel-tile > img { width: 100%; height: 10rem; object-fit: cover; }
.grafel-tile-caption { padding: 0.9rem; font-size: 0.82rem; }
.grafel-tile-caption h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.grafel-tile-text { color: #fff; padding: 1.5rem; justify-content: center;
  background: linear-gradient(rgba(1, 184, 136, 0.9), rgba(1, 184, 136, 0.9)), var(--tile-bg) center / cover; }
.grafel-tile-text.is-olive { background: linear-gradient(rgba(57, 57, 30, 0.9), rgba(57, 57, 30, 0.9)), var(--tile-bg) center / cover; }
.grafel-tile-text h3, .grafel-tile-text p { color: #fff; }
.grafel-gallery .grafel-slide { min-height: 18rem; }
.grafel-mosaic + .grafel-mosaic { margin-top: 0; }
@media (max-width: 991.98px) { .grafel-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .grafel-mosaic { grid-template-columns: 1fr; } }

/* section headings on Home (R26): "Host Institutions", "About the Institutions", "Facilities" - same style as
   "Research Staff"; inside the full-width band the heading is aligned with the content column */
.view-featured .container-bottom-a .grafel-section > .card-header {
  padding: 2.5rem max(1rem, calc((100% - 1140px) / 2)) 1.25rem; margin: 0;
  /* R47: same left edge as "Research Staff" / FAQ = Cassiopeia's content column (.grid-child max-width 1320px,
     15px gutter below that width) */
  padding-left: max(15px, calc((100% - 1320px) / 2)); }

/* FAQ: native exclusive accordion (<details name="grafel-faq">), "+" on the far right that becomes "−" when open
   (R27); answers slide open/closed via user.js (R28) */
.grafel-faq { margin: 2.5rem 0; }
/* R41: FAQ heading spaced from the previous section like the bottom-a headings; questions right below it */
.view-featured .container-bottom-b .grafel-section > .card-header { padding: 2.5rem 0 1.25rem; margin: 0; }
.view-featured .container-bottom-b .grafel-section .grafel-faq { margin-top: 0; }
.grafel-faq-item { border: 1px solid #e3e6ea; background: #fff; margin-bottom: 0.5rem; }
.grafel-faq-item > summary { position: relative; display: block; list-style: none; cursor: pointer;
  padding: 0.85rem 3rem 0.85rem 1rem; font-weight: 500; color: var(--grafel-text-strong); transition: color 0.2s ease; }
.grafel-faq-item > summary::-webkit-details-marker { display: none; }
.grafel-faq-item > summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--grafel-green); transition: transform 0.2s ease; }
.grafel-faq-item[open]:not(.is-closing) > summary { color: var(--grafel-green-dark); }
.grafel-faq-item[open]:not(.is-closing) > summary::after { content: "\2212"; }   /* minus sign */
.grafel-faq-item > summary:hover { color: var(--grafel-green-dark); }
.grafel-faq-body { overflow: hidden; padding: 0 1rem; border-top: 1px solid #e3e6ea; }
.grafel-faq-body > :first-child { margin-top: 0.8rem; }
.grafel-faq-body > :last-child { margin-bottom: 0.8rem; }

/* ---------- 9b. Single articles (e.g. each facility): space between a floated intro image and the text (R40) ---------- */
body:not(.grafel-profile) .com-content-article .item-image.left { margin: 0.25rem 1.75rem 1rem 0; }
body:not(.grafel-profile) .com-content-article .item-image.right { margin: 0.25rem 0 1rem 1.75rem; }
@media (max-width: 575.98px) {
  body:not(.grafel-profile) .com-content-article .item-image.left,
  body:not(.grafel-profile) .com-content-article .item-image.right { float: none; margin: 0 0 1rem; }
}

/* ---------- 9c. Contact page (R55): group lockup (logo + name, contact image) between "Contact" and Position ---------- */
/* Cassiopeia's >=1200px grid puts the image in a right column: stack instead ("Contact" -> lockup -> Position -> address) */
.com-contact__container { display: block; }
.com-contact__container .com-contact__thumbnail { float: none; text-align: left; margin: 0.25rem 0 1.25rem; padding: 0; border: 0; background: none; }
.com-contact__thumbnail img { display: block; height: 56px; width: auto; max-width: 100%; }
.com-contact__thumbnail .grafel-lockup-link { display: inline-block; transition: opacity 0.2s ease; }
.com-contact__thumbnail .grafel-lockup-link:hover, .com-contact__thumbnail .grafel-lockup-link:focus { opacity: 0.75; }
@media (max-width: 575.98px) { .com-contact__thumbnail img { height: auto; } }

/* ---------- 10. Category listings (News, Conferences, Jobs, Publications, Research, Facilities): thumbnail left ---------- */
body:not(.grafel-people) .com-content-category-blog .blog-item {
  display: grid; grid-template-columns: minmax(0, 35%) 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0;
}
body:not(.grafel-people) .com-content-category-blog .blog-item:not(:has(.item-image)) { display: block; }
body:not(.grafel-people) .com-content-category-blog .blog-item .item-image { float: none; margin: 0; }
body:not(.grafel-people) .com-content-category-blog .blog-item .item-image img { width: 100%; height: auto; }
.com-content-category-blog .blog-item h2 { font-size: 1.25rem; margin-top: 0; }
.com-content-category-blog .blog-item h2 a { color: var(--grafel-text-strong); text-decoration: none; }
.com-content-category-blog .blog-item h2 a:hover { color: var(--grafel-green-dark); }
.com-content-category-blog .article-info { font-size: 0.8rem; color: var(--grafel-text-muted); }
@media (max-width: 767.98px) {
  body:not(.grafel-people) .com-content-category-blog .blog-item { grid-template-columns: 1fr; }
}

/* article info: no "Details" label (legacy showed just the date line) */
.article-info .article-info-term { display: none; }
