/* ============================================================
   TIAS lab — stylesheet
   Vibrant, participatory. Postgrowth greens + warm accents.
   Built plain so it ports cleanly to a WordPress theme later.
   ============================================================ */

/* ---------- Self-hosted fonts (Inter, Space Grotesk) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/space-grotesk-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/space-grotesk-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/space-grotesk-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/space-grotesk-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/space-grotesk-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/space-grotesk-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Design tokens ---------- */
:root {
  --green:       #16936f;
  --green-dark:  #0d5d46;
  --green-deep:  #0a3d2e;
  --lime:        #c7e36b;
  --coral:       #ff6b4a;
  --sun:         #ffc24b;
  --sky:         #4aa8c9;
  --violet:      #7b61c9;

  --cream:       #fbf7ef;
  --cream-2:     #f3ecdf;
  --ink:         #15241f;
  --ink-soft:    #3c4f48;
  --line:        #e3dccd;
  --white:       #ffffff;

  --maxw: 1160px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(13, 93, 70, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 93, 70, 0.16);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(199, 227, 107, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--light { background: #fff; color: var(--green-deep); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .tag { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  color: var(--ink); padding: 9px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: rgba(22, 147, 111, 0.10); text-decoration: none; }
.nav-links a.is-active { background: var(--green); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero banner (full-bleed darkened image) ---------- */
.hero-banner {
  position: relative; background-size: cover; background-position: center; background-color: var(--green-deep);
  color: #fff;
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,61,46,0.70), rgba(10,61,46,0.84));
}
.hero-banner-inner { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero-banner h1 { color: #fff; max-width: 18ch; }
.hero-banner h1 span { color: var(--lime); }
.hero-banner .lead { margin-top: 18px; font-size: 1.25rem; color: #eafaf3; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Generic surfaces ---------- */
.surface-green { background: var(--green-deep); color: #eafaf3; }
.surface-green h1, .surface-green h2, .surface-green h3 { color: #fff; }
.surface-green .eyebrow { color: #0a3d2e; background: var(--lime); }
.surface-green .lead { color: #c8e9dc; }
.surface-cream2 { background: var(--cream-2); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--ink-soft); margin-bottom: 14px; }
.card .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--green-dark); }
.card .card-link::after { content: " →"; }

/* colour variants for icon chips & accents */
.c-green .icon { background: var(--green); }
.c-coral .icon { background: var(--coral); }
.c-sun   .icon { background: var(--sun); color: var(--ink); }
.c-sky   .icon { background: var(--sky); }
.c-lime  .icon { background: #9bc23b; }
.c-deep  .icon { background: var(--green-deep); }
.c-violet .icon { background: var(--violet); }

/* tag/pill */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tag {
  font-size: 0.78rem; font-family: var(--font-head); font-weight: 500;
  background: var(--cream-2); color: var(--green-deep); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}
.tag.is-done { background: rgba(22,147,111,0.12); border-color: rgba(22,147,111,0.3); }
.tag.is-live { background: var(--sun); border-color: #e9ad32; color: var(--ink); }

/* ---------- Case media gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.gallery figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption {
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--ink-soft);
  padding: 14px 18px;
}

/* ---------- Team (About) — flip circles ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 18px; max-width: 920px; margin-inline: auto; }
.team-member { text-align: center; }
.team-flip {
  width: 150px; height: 150px; margin: 0 auto; border-radius: 50%;
  perspective: 800px; cursor: default; outline: none;
}
.team-front, .team-back {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .5s ease; box-shadow: var(--shadow);
}
.team-flip { position: relative; }
.team-front img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); }
.team-back {
  transform: rotateY(180deg); display: grid; place-items: center; color: #fff;
  padding: 16px; text-align: center;
}
.team-back span { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.team-flip:hover .team-front, .team-flip:focus .team-front { transform: rotateY(180deg); }
.team-flip:hover .team-back,  .team-flip:focus .team-back  { transform: rotateY(360deg); }
.team-back.c-green { background: var(--green); }
.team-back.c-coral { background: var(--coral); }
.team-back.c-sky   { background: var(--sky); }
.team-back.c-sun   { background: var(--sun); color: var(--ink); }
.team-back.c-lime  { background: #9bc23b; }
.team-back.c-deep  { background: var(--green-deep); }
.team-back.c-violet{ background: var(--violet); }
.team-name { font-family: var(--font-head); font-weight: 600; margin: 14px 0 0; font-size: 0.98rem; }

/* ---------- Case (per-action) page ---------- */
.case-hero { padding: 40px 0 12px; }
.case-back {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--green-dark); margin-bottom: 22px;
}
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-head .tags { margin: 0; }
.case-area {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: #fff; padding: 5px 14px; border-radius: 999px;
}
.case-area:hover { text-decoration: none; opacity: 0.92; }
.case-area.c-green { background: var(--green); }
.case-area.c-coral { background: var(--coral); }
.case-area.c-sky   { background: var(--sky); }
.case-area.c-sun   { background: var(--sun); color: var(--ink); }
.case-area.c-lime  { background: #9bc23b; }
.case-area.c-deep  { background: var(--green-deep); }
.case-area.c-violet { background: var(--violet); }
.case-hero h1 { max-width: 20ch; }
.case-hero .lead { margin-top: 14px; }
.case-updated { margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); }

/* Detail pages (publication + action): back link + title live in the left column */
.case-back-wrap { padding-top: 34px; }
.case-grid--detail { padding-top: 16px; align-items: start; }
.case-grid--detail .case-head { margin-bottom: 10px; }
.detail-title { font-size: 1.95rem; line-height: 1.15; margin: 8px 0 6px; max-width: 28ch; }
.detail-authors { color: var(--ink-soft); margin: 0 0 8px; }
.detail-lead { font-size: 1.12rem; color: var(--ink-soft); margin: 4px 0 0; max-width: 65ch; }
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.case-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }

/* About: "what is a living lab?" figure */
.about-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.about-figure img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block; }

.case-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 44px;
  padding-top: 26px; padding-bottom: 80px; align-items: start;
}
.case-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 30px; background: var(--cream-2);
}
.case-media img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.case-media.is-contain { background: #fff; border: 1px solid var(--line); }
.case-media.is-contain img { object-fit: contain; max-height: 360px; padding: 20px; }

.case-section + .case-section { margin-top: 30px; }
.case-section h2 { font-size: 1.5rem; margin: 0 0 12px; }
.case-section p { max-width: 68ch; color: var(--ink-soft); }

.case-aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.case-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.case-box h3 {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-dark); margin: 0 0 14px;
}
.case-facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.case-facts dt { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); }
.case-facts dd { margin: 2px 0 0; font-weight: 500; }
.case-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.case-links a { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; word-break: break-word; }

/* Publication detail page (reuses .case-* layout) */
.pub-detail-cover { max-width: 320px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 0 0 30px; background: var(--cream-2); border: 1px solid var(--line); }
.pub-detail-cover img { width: 100%; height: auto; display: block; }
.pub-detail-dl { display: block; width: 100%; text-align: center; }
.pub-detail-dl:hover { transform: none; }
.pub-keywords { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pub-keywords li { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--green-dark); background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.pub-cite { font-size: 0.95rem; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; padding: 14px 16px; line-height: 1.55; word-break: break-word; }
.pub-doi { font-family: var(--font-head); font-weight: 600; word-break: break-all; }
.pub-permalink a { font-size: 0.88rem; word-break: break-all; color: var(--green-dark); }

@media (max-width: 880px) {
  .case-grid { grid-template-columns: 1fr; gap: 30px; }
  .case-aside { position: static; }
}

/* ---------- Projects / case hero ---------- */
.page-hero { padding: 72px 0 64px; }

/* ---------- Home: research clusters + lines ---------- */
/* Research clusters accordion (single-open strips) */
.cluster-acc { display: grid; gap: 12px; }
.cl-strip {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.cl-strip.c-coral  { border-left-color: var(--coral); }
.cl-strip.c-sky    { border-left-color: var(--sky); }
.cl-strip.c-sun    { border-left-color: var(--sun); }
.cl-strip.c-lime   { border-left-color: #9bc23b; }
.cl-strip.c-deep   { border-left-color: var(--green-deep); }
.cl-strip.c-violet { border-left-color: var(--violet); }
.cl-head {
  width: 100%; display: flex; align-items: center; gap: 16px; cursor: pointer;
  background: none; border: 0; padding: 18px 22px; text-align: left; font: inherit; color: var(--ink);
}
.cl-head:hover { background: var(--cream-2); }
.cl-head:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.cl-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.cl-ico svg { width: 22px; height: 22px; }
.cl-label { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.cl-toggle { position: relative; width: 20px; height: 20px; flex: 0 0 auto; }
.cl-toggle::before, .cl-toggle::after {
  content: ""; position: absolute; background: var(--green-dark); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease;
}
.cl-toggle::before { width: 16px; height: 2.5px; }                 /* horizontal bar */
.cl-toggle::after  { width: 2.5px; height: 16px; }                 /* vertical bar (hidden when open) */
.cl-strip.is-open .cl-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.cl-panel { padding: 0 22px 22px 22px; }
.cl-panel p { color: var(--ink-soft); margin: 0 0 12px; max-width: 70ch; }
.cl-panel .card-link { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); }
.cl-panel .card-link::after { content: " →"; }

/* Research lines (numbered editorial cards) */
.lines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.line-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; box-shadow: var(--shadow); position: relative;
}
.line-num { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--green); opacity: 0.45; }
.line-title { margin: 12px 0 8px; font-size: 1.18rem; }
.line-blurb { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* ---------- Action directory (projects) ---------- */
.dir-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.dir-search {
  flex: 0 0 auto; width: 300px; max-width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
}
.dir-search:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.dir-select {
  flex: 0 0 auto; min-width: 200px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 12px 40px 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d5d46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--green-deep); cursor: pointer; -webkit-appearance: none; appearance: none;
}
.dir-select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.dir-count { font-family: var(--font-head); font-weight: 500; color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 22px; }
.dir-empty { color: var(--ink-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--green-dark); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Uniform, fully-clickable action cards (participedia-style) */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.action-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease;
}
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.action-media { aspect-ratio: 16 / 10; background: var(--cream-2); overflow: hidden; }
.action-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.action-media.is-contain { background: #fff; }
.action-media.is-contain img { object-fit: contain; padding: 18px; }
.action-media.is-empty { display: grid; place-items: center; color: #fff; }
.action-media.is-empty svg { width: 46px; height: 46px; opacity: .9; }
.action-media.is-empty.c-green { background: var(--green); }
.action-media.is-empty.c-coral { background: var(--coral); }
.action-media.is-empty.c-sky   { background: var(--sky); }
.action-media.is-empty.c-sun   { background: var(--sun); color: var(--ink); }
.action-media.is-empty.c-lime  { background: #9bc23b; }
.action-media.is-empty.c-deep  { background: var(--green-deep); }
.action-media.is-empty.c-violet{ background: var(--violet); }
.action-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.action-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-title {
  font-family: var(--font-head); font-size: 1.14rem; line-height: 1.25; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.action-updated { margin-top: auto; font-family: var(--font-head); font-size: 0.82rem; color: var(--ink-soft); }

/* action card meta — editorial overline + subtle status */
.action-meta { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.action-cluster {
  font-family: var(--font-head); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
}
.action-cluster.c-green { color: var(--green-dark); }
.action-cluster.c-coral { color: #c4452a; }
.action-cluster.c-sky   { color: #2b7c9c; }
.action-cluster.c-sun   { color: #b5841f; }
.action-cluster.c-lime  { color: #6f8f1e; }
.action-cluster.c-deep  { color: var(--green-deep); }
.action-cluster.c-violet{ color: var(--violet); }
.action-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.8rem; color: var(--ink-soft);
}
.action-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.action-status.s-completed .dot { background: var(--green); }
.action-status.s-ongoing .dot   { background: var(--sun); }
.action-status.s-upcoming .dot,
.action-status.s-preparation .dot { background: var(--sky); }

@media (max-width: 720px) {
  .action-grid { grid-template-columns: 1fr; }
  .dir-controls { flex-direction: column; align-items: stretch; }
  /* stacked controls must fit the container (the cluster <select> would otherwise size to its longest option) */
  .dir-search, .dir-select { flex: 0 0 auto; width: 100%; max-width: none; min-width: 0; }
}

/* (publications now reuse the .dir-controls search + select from the action directory) */

/* ---------- Contact (form + details) ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 44px; align-items: start; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px; display: grid; gap: 18px;
}
.form-row { display: grid; gap: 7px; }
.form-row label {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.form-consent input { margin-top: 3px; flex: none; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-ok  { color: var(--green-dark); font-weight: 600; }
.form-status.is-err { color: #c4452a; font-weight: 600; }

.contact-aside { display: grid; gap: 24px; align-content: start; }
.contact-detail h3 {
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-dark); margin: 0 0 8px;
}
.contact-detail p, .contact-detail a { font-size: 0.98rem; }
.contact-detail > a { font-family: var(--font-head); font-weight: 600; word-break: break-word; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-links a { font-family: var(--font-head); font-weight: 600; }

.h-captcha { max-width: 100%; overflow-x: auto; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 22px; }
}

/* ---------- Publications grid (cover-first) ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.pub-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pub-cover { display: block; aspect-ratio: 1 / 1.3; background: var(--cream-2); overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .3s ease; }
.pub-card:hover .pub-cover img { transform: scale(1.03); }
.pub-cover-fallback { display: grid; place-items: center; height: 100%; font-family: var(--font-head); color: var(--ink-soft); }
.pub-dl { display: flex; justify-content: center; width: 100%; border-radius: 0; padding: 13px; margin-top: auto; }
.pub-dl:hover { transform: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 54px 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6f1e6; max-width: 56ch; margin-inline: auto; }
.cta-band .btn--light:hover { background: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #bfe3d4; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer a { color: #bfe3d4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand .mark { width: 36px; height: 36px; }
.footer-affil {
  margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
}
.footer-affil > span {
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #bfe3d4;
}
.footer-affil-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.footer-affil-logos a { display: inline-flex; align-items: center; opacity: .92; transition: opacity .15s ease; }
.footer-affil-logos a:hover { opacity: 1; }
.footer-affil-logos img { height: 30px; width: auto; display: block; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: 64px 0 40px; background:
    radial-gradient(110% 120% at 90% -20%, rgba(199,227,107,0.5), transparent 55%), var(--cream); }
.page-head .lead { margin-top: 14px; }

/* ---------- Misc content ---------- */
.prose p { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.note { background: var(--cream-2); border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; padding: 18px 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .case-grid--detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-banner-inner { padding-top: 72px; padding-bottom: 80px; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero-banner-inner { padding-top: 60px; padding-bottom: 64px; }
  .section { padding: 48px 0; }
  .legal-table { table-layout: fixed; width: 100%; font-size: 0.85rem; }
  .legal-table th, .legal-table td { padding: 7px 8px; word-break: break-word; }
}

/* ---------- Accessibility: skip link & focus ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; outline: 2px solid var(--lime); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { font-weight: 600; }
.legal-note {
  background: var(--cream-2); border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 0.92rem;
}
.legal-updated { font-family: var(--font-head); font-size: 0.85rem; color: var(--ink-soft); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-table th { background: var(--cream-2); font-family: var(--font-head); }
.legal-table td { color: var(--ink-soft); }

/* ---------- Footer legal links ---------- */
.footer-legal {
  list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.86rem;
}
.footer-legal a, .footer-cookie-btn {
  color: #bfe3d4; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.86rem;
}
.footer-legal a:hover, .footer-cookie-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin-inline: auto;
  background: var(--green-deep); color: #eafaf3;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.open { display: flex; }
.cookie-text { margin: 0; flex: 1 1 280px; font-size: 0.92rem; }
.cookie-text a { color: var(--lime); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.92rem; }
.cookie-banner .btn--ghost { color: #eafaf3; border-color: rgba(255,255,255,0.4); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 600px) { .cookie-actions { width: 100%; } .cookie-banner .btn { flex: 1; } }
