/* ============================================
   INTERVISIONS — Main Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ---- Brand Tokens ---- */
:root {
  --black: #0d0d0d;
  --white: #f5f5f0;
  --off-white: #f0efea;

  /* Brand palette */
  --pink-light: #f8c5d4;
  --pink:       #f9b6d7;
  --red:        #ea5054;
  --yellow:     #f6f262;
  --green:      #b3fc50;
  --mint:       #c7d8c4;
  --blue-light: #717cf8;
  --blue-dark:  #3356a3;

  /* Accordion colors (matching design) */
  --acc-1: var(--green);
  --acc-2: var(--yellow);
  --acc-3: var(--pink);
  --acc-4: var(--blue-light);

  /* Typography */
  --font: 'Archivo', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 6rem);
  --container: 1200px;
  --border: 2px solid var(--black);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---- Container ---- */
.container {
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
  border-bottom-color: #333;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu-btn {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  background: none;
  border: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ============================================
   FULL-SCREEN MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 769px) {
  .menu-overlay {
    width: 600px;
    right: 1.5rem;
    opacity: 1;
    transform: translateX(calc(100% + 1.5rem));
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
  }
  .menu-overlay.open {
    transform: translateX(0);
  }
  .menu-body {
    grid-template-columns: 2fr 1fr;
    overflow-y: auto;
  }
  .menu-col:first-child {
    border-right: 1px solid #333;
    border-bottom: none;
  }
}

.menu-overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid #333;
}

.menu-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.menu-top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-lang {
  display: flex;
  gap: 1.5rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.menu-lang a { opacity: 0.5; transition: opacity 0.2s; }
.menu-lang a.active { opacity: 1; text-decoration: underline; }
.menu-lang a:hover { opacity: 1; }

.menu-close {
  color: var(--white);
  font-size: 1.5rem;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem;
}

.menu-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  border-top: 1px solid #333;
}

.menu-col {
  padding: clamp(2rem, 5vw, 3rem);
}
.menu-col:first-child { border-right: 1px solid #333; }

.menu-col-meta {
  display: flex;
  flex-direction: column;
}

.menu-section-title {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.menu-col .menu-section-title:first-child { margin-top: 0; }

.menu-links { list-style: none; }
.menu-links li { padding: 0.6rem 0; border-bottom: 1px solid #222; }
.menu-links a {
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.menu-links a:hover { color: var(--green); }
.menu-links .arrow { font-size: 0.9rem; }

.menu-contact {
  margin-top: 2rem;
}
.menu-contact-label {
  color: #666;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.menu-contact a {
  color: var(--white);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.menu-contact a:hover { border-bottom-color: var(--white); }

.menu-funding-label {
  color: #666;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 2rem;
  display: block;
}
.menu-col-meta .menu-funding-label:first-child { margin-top: 0; }

.menu-participants {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-privacy-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 6rem;
  transition: color 0.2s;
}
.menu-privacy-link:hover { color: var(--white); }

/* Shared logo image styles */
.eu-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  align-self: flex-start;
}

.participant-logo {
  height: 44px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}
.participant-logo[alt="ALIA Investigació"] { height: 32px; }
.participant-logo[alt="Diputació Barcelona"] { height: 56px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(60px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero .container {
  max-width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-description {
  color: var(--white);
  font-size: clamp(2.1rem, 3.2vw, 2.625rem);
  font-weight: 300;
  line-height: 1.2;
  margin-left: clamp(5rem, 21vw, 15rem);
  max-width: 55%;
}
.hero-description strong { font-weight: 700; }

.hero-callout {
  align-self: flex-end;
  width: 30%;
  margin-right: clamp(1rem, 3vw, 2.5rem);
  border-top: 5px solid var(--white);
  border-bottom: 5px solid var(--white);
  padding: 1.25rem 0;
}
.hero-callout p {
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: var(--black);
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.video-section .container {
  max-width: 100%;
  padding: 0;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.video-play-btn:hover { transform: scale(1.1); background: #c83a3e; }
.video-play-btn svg { width: 22px; fill: white; margin-left: 3px; }


/* ============================================
   KEY ASPECTS SECTION
   ============================================ */
.key-aspects {
  background: var(--black);
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.key-aspects .section-label {
  color: var(--white);
}

.key-aspects .section-intro {
  color: rgba(255,255,255,0.9);
}

.key-aspects .section-header {
  gap: 1.5rem;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: clamp(3rem, 6vw, 6rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.section-label {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 450;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-intro {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  color: rgba(0,0,0,0.9);
  line-height: 1.2;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.accordion-item { border-bottom: var(--border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg, var(--green));
  border: none;
  cursor: pointer;
  text-align: left;
  transition: filter 0.15s;
}
.accordion-trigger:hover { filter: brightness(0.93); }

.accordion-trigger h3 {
  font-size: clamp(2.9rem, 5.2vw, 4.2rem);
  font-weight: 300;
  color: var(--black);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.accordion-trigger h3 strong {
  font-weight: 700;
}

.acc-icon {
  font-size: clamp(2.9rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  flex-shrink: 0;
  transition: transform 0.3s;
  width: 1em;
  text-align: center;
}

.accordion-item.open .acc-icon { transform: rotate(45deg); }

.accordion-content {
  display: none;
  padding: 0 1.5rem 2.5rem;
  background: var(--bg);
  border-top: var(--border);
}
.accordion-item.open .accordion-content { display: block; }

.accordion-content p {
  font-size: 1.1rem;
  line-height: 1.2;
  max-width: 70ch;
  color: var(--black);
}

/* Accordion color variants */
.acc-color-1 { --bg: var(--acc-1); }
.acc-color-2 { --bg: var(--acc-2); }
.acc-color-3 { --bg: var(--acc-3); }
.acc-color-4 { --bg: var(--acc-4); }

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
  background: var(--black);
  padding: clamp(1rem, 2vw, 1.5rem) 0 var(--section-pad);
}

.tools-section .section-label {
  color: var(--white);
}

.tools-section .section-intro {
  color: rgba(255,255,255,0.9);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 2.5rem;
}

.tools-image {
  border-right: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

.tools-list-col {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.tools-list-col .tools-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tools-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tools-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

.tools-list { list-style: none; }
.tools-list li {
  border-bottom: var(--border);
  display: flex;
  flex: 1;
}
.tools-list li:last-child { border-bottom: var(--border); }

.tools-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: clamp(2.2rem, 4vw, 2.6rem);
  font-weight: 500;
  transition: background 0.15s;
  gap: 1rem;
}
.tools-list a:hover { background: var(--yellow); }

.tools-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.2rem, 4vw, 2.6rem);
  flex-shrink: 0;
  transition: color 0.15s;
}
.tools-list a:hover .tools-arrow {
  color: inherit;
}

/* ============================================
   COMMUNITY VOICES
   ============================================ */
.community-section { border-top: var(--border); }

.community-header {
  background: var(--black);
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.community-header .section-label { color: var(--white); }
.community-header .section-intro { color: rgba(255,255,255,0.9); }

.community-body {
  background: var(--pink-light);
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: var(--border);
}

.community-form { width: 100%; }

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.form-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 15%;
}

.form-left .form-input {
  width: 65%;
}

.form-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 20%;
}

.form-input,
.form-textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--black);
  background: transparent;
  width: 100%;
  outline: none;
  transition: background 0.15s;
}
.form-input:focus,
.form-textarea:focus { background: rgba(255,255,255,0.5); }

.form-textarea { resize: vertical; min-height: 240px; flex: 1; }

.form-submit {
  width: 100%;
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.form-submit:hover {
  background: var(--black);
  color: var(--white);
}

.form-thankyou {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

.form-thankyou-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
}

.form-thankyou-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.2;
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section { border-top: var(--border); }

.resources-header {
  background: var(--black);
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.resources-header .section-label { color: var(--white); }
.resources-header .section-intro { color: rgba(255,255,255,0.9); }

.resources-body {
  background: var(--yellow);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: var(--border);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border);
  margin-top: 2.5rem;
}

.resource-card {
  border-right: var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--yellow);
}
.resource-card:last-child { border-right: none; }

.resource-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.resource-author {
  font-size: 0.8rem;
  color: #555;
}

.resource-description {
  font-size: 0.82rem;
  line-height: 1.2;
  color: #333;
  flex: 1;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.resource-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #333;
  background: rgba(0,0,0,0.08);
  padding: 0.2rem 0.5rem;
}

.resource-link {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  align-self: flex-start;
  transition: background 0.15s;
}
.resource-link:hover { background: #333; }

.resources-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.page-info {
  font-size: 0.85rem;
  font-weight: 500;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: var(--border);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.page-btn:hover { background: var(--black); color: var(--yellow); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  border-top: var(--border);
  border-top-color: #333;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #333;
}

.footer-logo-img {
  height: clamp(60px, 9vw, 100px);
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-lang {
  display: flex;
  gap: 1.5rem;
}
.footer-lang a {
  color: var(--white);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-lang a.active { opacity: 1; text-decoration: underline; }
.footer-lang a:hover { opacity: 1; }

.footer-body {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  border-bottom: 1px solid #333;
}

.footer-col {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid #333;
}
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { border-right: none; }

.footer-col-meta {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  display: block;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.footer-col .footer-col-title:first-child { margin-top: 0; }

.footer-col-label {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; margin-bottom: 2rem; }
.footer-links li { padding: 0.5rem 0; border-bottom: 1px solid #222; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links .arr { font-size: 0.8rem; flex-shrink: 0; }

.footer-contact a {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  display: block;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.footer-contact a:hover { color: var(--white); border-bottom-color: var(--white); }

.footer-participants {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: center;
  align-self: flex-start;
  width: 150px;
}

.footer-privacy-link {
  color: rgba(255,255,255,0.4);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  text-decoration: none;
  margin-top: auto;
  padding-top: 6rem;
  transition: color 0.2s;
}
.footer-privacy-link:hover { color: var(--white); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--black);
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: calc(60px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-hero .container {
  max-width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.page-hero p {
  color: var(--white);
  font-size: clamp(2.1rem, 3.75vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-left: clamp(5rem, 21vw, 15rem);
  max-width: 55%;
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-section {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}

.accordion-section {
  background: var(--black);
}

/* Team member cards in expanded accordion */
.org-group {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.15);
}

.org-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.member-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
}

.member-photo {
  width: 80px;
  height: 80px;
  background: #ddd;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #888;
}

.member-info {}
.member-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.member-bio {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
}
.member-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  transition: opacity 0.2s;
}
.member-links a:hover { opacity: 0.6; }

/* Consortium: name | photo | bio+links, one row per member */
.members-grid--consortium {
  display: flex;
  flex-direction: column;
}

.member-card--consortium {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 200px) 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 2px solid rgba(0,0,0,0.2);
}
.member-card--consortium:last-child { border-bottom: none; }

.member-card--consortium .member-name {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.member-card--consortium .member-photo {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
}

.member-card--consortium .member-info {
  display: flex;
  flex-direction: column;
}

.member-card--consortium .member-bio {
  display: block;
  overflow: visible;
  flex: 1;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.member-card--consortium .member-bio p { display: none; }
.member-card--consortium .member-bio p:first-child { display: block; }
.member-card--consortium .member-bio.expanded p { display: block; }

/* Advisory / Working Groups: 2 per row, no photo, stacked */
.members-grid--advisory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid rgba(0,0,0,0.2);
  border-left: 2px solid rgba(0,0,0,0.2);
}

.member-card--advisory {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-right: 2px solid rgba(0,0,0,0.2);
  border-bottom: 2px solid rgba(0,0,0,0.2);
}

.member-card--advisory .member-name {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.member-card--advisory .member-bio {
  flex: 1;
  display: block;
  overflow: hidden;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.member-card--advisory .member-links {
  margin-top: auto;
}

/* ============================================
   TOOLS PAGE
   ============================================ */
.tool-expanded {
  padding: 2rem 1.5rem 2.5rem;
  background: var(--off-white);
  border-top: var(--border);
}

.tool-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tool-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}
.tool-text h4:first-child { margin-top: 0; }

.tool-text p {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 0.75rem;
}

.tool-text ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}
.tool-text ul li {
  font-size: 0.85rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 0.3rem;
}

.tool-aside {}
.tool-aside img {
  width: 100%;
  border: var(--border);
}

.tool-cta {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--black);
  color: var(--white);
}
.tool-cta p {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tool-cta a {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  transition: background 0.15s;
}
.tool-cta a:hover { background: var(--yellow); }

/* Tool 1 — Guidelines layout */
.tool1-layout {
  display: flex;
  flex-direction: column;
}

.tool1-text {
  padding-left: 40%;
  padding-right: 8%;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.tool1-text p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}
[data-i18n="tool1-p1"] { font-size: 1.875rem; }
[data-i18n="tool1-p2"],
[data-i18n="tool1-p3"] { font-size: 1.5rem; }

.tool1-text h4 {
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.tool1-image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2.5rem -1.5rem;
}

.tool1-image-strip img {
  width: 100%;
  display: block;
}

.tool1-download-banner {
  display: block;
  background: var(--black);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

/* Tool 2 — Audit Tools layout */
.tool2-layout {
  display: flex;
  flex-direction: column;
}

.tool2-intro {
  max-width: 55%;
  padding-left: 8%;
  padding-top: 6rem;
  margin-bottom: 2rem;
}

.tool2-intro p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}

.tool2-methodology {
  margin-left: auto;
  margin-right: 8%;
  max-width: 48%;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
  margin-bottom: 0;
}

.tool2-methodology h4 {
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tool2-methodology p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
}

.tool2-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--black);
  color: var(--white);
  margin: 2.5rem -1.5rem -2.5rem;
  padding: 2.5rem 1.5rem;
}
.tool2-cta-strip p,
.tool2-cta-strip li {
  color: var(--white);
}

.tool2-cta-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.tool2-repo-card {
  background: #111;
  border: 1px solid #444;
  margin-bottom: 1.5rem;
  overflow: hidden;
  font-family: monospace;
}

.tool2-repo-header {
  background: #222;
  border-bottom: 1px solid #444;
  padding: 0.45rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.tool2-repo-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}

.tool2-repo-body {
  padding: 0.75rem;
}

.tool2-repo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.tool2-repo-line {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool2-cta-main a {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid currentColor;
}

.tool2-cta-details p {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tool2-different-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool2-cta-details ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.tool2-cta-details ul li {
  font-size: 1.5rem;
  line-height: 1.2;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.tool2-cta-details ul li::before {
  content: "→";
  position: absolute;
  left: 0;
}

/* Tool 3 — Participatory Workshops layout */
.tool3-layout {
  display: flex;
  flex-direction: column;
}

.tool3-intro {
  max-width: 55%;
  padding-left: 8%;
  padding-top: 6rem;
  margin-bottom: 2rem;
}

.tool3-intro p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}

.tool3-carousel {
  display: flex;
  align-items: center;
  margin: 0 -1.5rem 2.5rem;
}

.carousel-track {
  flex: 1;
  overflow: hidden;
}

.carousel-track img {
  width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
  display: none;
}

.carousel-track img.carousel-active {
  display: block;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  padding: 1rem 1.25rem;
  color: inherit;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.carousel-btn:hover { opacity: 0.5; }

.tool3-principles {
  padding-left: 40%;
  padding-bottom: 4rem;
}

.tool3-principles p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}

.tool3-principles h4 {
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.tool3-principles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool3-principles ul li {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.tool3-principles ul li::before {
  content: "→";
  position: absolute;
  left: 0;
}

/* Tool 4 — Benchmark layout */
.tool4-layout {
  display: flex;
  flex-direction: column;
}

.tool4-intro {
  max-width: 55%;
  padding-left: 8%;
  padding-top: 6rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.tool4-intro p {
  font-size: clamp(1.2rem, 1.75vw, 1.85rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}

.tool4-tagline {
  font-size: 2.4rem !important;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem !important;
}

.tool4-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--black);
  color: var(--white);
  margin: 0 -1.5rem -2.5rem;
  padding: 2.5rem 1.5rem;
}
.tool4-cta-strip p,
.tool4-cta-strip li {
  color: var(--white);
}

.tool4-cta-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.tool4-cta-placeholder {
  background: #333;
  aspect-ratio: 1/1;
  width: 60%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tool4-cta-placeholder span {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: #888;
  text-align: center;
}

.tool4-cta-details {
  align-self: center;
}

.tool4-cta-details p {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tool4-cta-details ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.tool4-cta-details ul li {
  font-size: 1.5rem;
  line-height: 1.2;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.tool4-cta-details ul li::before {
  content: "→";
  position: absolute;
  left: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-description { max-width: 100%; margin-left: 0; }
  .page-hero p { max-width: 100%; margin-left: 0; }
  .hero-callout { width: 100%; align-self: stretch; }
  .form-columns { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-image { display: block; min-height: 240px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .community-inner { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .resource-card { border-right: none; border-bottom: var(--border); }
  .footer-body { grid-template-columns: 1fr; }
  .footer-col { border-right: none; border-bottom: 1px solid #333; padding-left: 0; }
  .footer-col:last-child { border-bottom: none; }
  .footer-privacy-link { margin-top: 1.5rem; padding-top: 0; }
  .menu-body { grid-template-columns: 1fr; }
  .menu-col:first-child { border-right: none; border-bottom: 1px solid #333; }
  .tool-content { grid-template-columns: 1fr; }
  .tool1-text { padding-left: 0; }
  .tool1-image-strip { grid-template-columns: 1fr; margin: 1.5rem -1.5rem; }
  .tool2-intro { max-width: 100%; }
  .tool2-methodology { margin-left: 0; }
  .tool2-cta-strip { grid-template-columns: 1fr; }
  .tool3-intro { max-width: 100%; }
  .tool3-principles { padding-left: 0; }
  .tool4-intro { max-width: 100%; padding-left: 0; }
  .tool4-cta-strip { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .member-card--consortium { grid-template-columns: 1fr; }
  .members-grid--advisory { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
